2014-11-18 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / gcc / ada / gcc-interface / lang-specs.h
blob850fee5e268de881a8ca962f9d64a6bdc65ca19a
1 /****************************************************************************
2 * *
3 * GNAT COMPILER COMPONENTS *
4 * *
5 * L A N G - S P E C S *
6 * *
7 * C Header File *
8 * *
9 * Copyright (C) 1992-2012, Free Software Foundation, Inc. *
10 * *
11 * GNAT is free software; you can redistribute it and/or modify it under *
12 * terms of the GNU General Public License as published by the Free Soft- *
13 * ware Foundation; either version 3, or (at your option) any later ver- *
14 * sion. GNAT is distributed in the hope that it will be useful, but WITH- *
15 * OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *
16 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License *
17 * for more details. You should have received a copy of the GNU General *
18 * Public License along with GCC; see the file COPYING3. If not see *
19 * <http://www.gnu.org/licenses/>. *
20 * *
21 * GNAT was originally developed by the GNAT team at New York University. *
22 * Extensive contributions were provided by Ada Core Technologies Inc. *
23 * *
24 ****************************************************************************/
26 /* This is the contribution to the `default_compilers' array in gcc.c for
27 GNAT. */
29 {".ads", "@ada", 0, 0, 0},
30 {".adb", "@ada", 0, 0, 0},
31 {"@ada",
33 %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
34 %{!S:%{!c:%e-c or -S required for Ada}}\
35 gnat1 %{I*} %{k8:-gnatk8} %{Wall:-gnatwa} %{w:-gnatws} %{!Q:-quiet}\
36 %{nostdinc*} %{nostdlib*}\
37 -dumpbase %{.adb:%b.adb}%{.ads:%b.ads}%{!.adb:%{!.ads:%b.ada}}\
38 %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} \
39 %{O*} %{W*} %{w} %{p} %{pg:-p} %{d*} %{f*}\
40 %{coverage:-fprofile-arcs -ftest-coverage} "
41 "%{gnatea:-gnatez} %{g*&m*} "
42 #if defined(TARGET_VXWORKS_RTP)
43 "%{fRTS=rtp:-mrtp} %{fRTS=rtp-smp:-mrtp} %{fRTS=ravenscar-cert-rtp:-mrtp}"
44 #endif
45 "%1 %{!S:%{o*:%w%*-gnatO}} \
46 %i %{S:%W{o*}%{!o*:-o %b.s}} \
47 %{gnatc*|gnats*: -o %j} %{-param*} \
48 %{!gnatc*:%{!gnats*:%(invoke_as)}}", 0, 0, 0},
50 {"@adawhy",
52 %{!c:%e-c required for gnat2why}\
53 gnat1why %{I*} %{k8:-gnatk8} %{!Q:-quiet}\
54 %{nostdinc*} %{nostdlib*}\
55 -dumpbase %{.adb:%b.adb}%{.ads:%b.ads}%{!.adb:%{!.ads:%b.ada}}\
56 %{o*:-auxbase-strip %*}%{!o*:-auxbase %b} \
57 %{a} %{d*} %{f*} \
58 %{gnatea:-gnatez} %{g*&m*} \
59 %1 %{o*:%w%*-gnatO} \
60 %i \
61 %{gnatc*|gnats*: -o %j} %{-param*} ", 0, 0, 0},
63 {"@adascil",
65 %{!c:%e-c required for gnat2scil}\
66 gnat1scil %{I*} %{k8:-gnatk8} %{!Q:-quiet}\
67 %{nostdinc*} %{nostdlib*}\
68 -dumpbase %{.adb:%b.adb}%{.ads:%b.ads}%{!.adb:%{!.ads:%b.ada}}\
69 %{o*:-auxbase-strip %*}%{!o*:-auxbase %b} \
70 %{a} %{d*} %{f*} \
71 %{gnatea:-gnatez} %{g*&m*} \
72 %1 %{o*:%w%*-gnatO} \
73 %i \
74 %{gnatc*|gnats*: -o %j} %{-param*} ", 0, 0, 0},