111
|
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-2015, 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 ****************************************************************************/
|
|
25
|
|
26 /* This is the contribution to the `default_compilers' array in gcc.c for
|
|
27 GNAT. */
|
|
28
|
|
29 {".ads", "@ada", 0, 0, 0},
|
|
30 {".adb", "@ada", 0, 0, 0},
|
|
31 {"@ada",
|
|
32 "\
|
|
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*} \
|
|
40 %{coverage:-fprofile-arcs -ftest-coverage} "
|
|
41 #if defined(TARGET_VXWORKS_RTP)
|
|
42 "%{fRTS=rtp|fRTS=rtp-smp|fRTS=ravenscar-cert-rtp:-mrtp} "
|
|
43 #endif
|
|
44 "%{gnatea:-gnatez} %{g*&m*&f*} "
|
|
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},
|
|
49
|
|
50 {"@adawhy",
|
|
51 "\
|
|
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*} \
|
|
58 %{gnatea:-gnatez} %{g*&m*&f*} \
|
|
59 %1 %{o*:%w%*-gnatO} \
|
|
60 %i \
|
|
61 %{gnatc*|gnats*: -o %j} %{-param*} ", 0, 0, 0},
|
|
62
|
|
63 {"@adascil",
|
|
64 "\
|
|
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*} \
|
|
71 %{gnatea:-gnatez} %{g*&m*&f*} \
|
|
72 %1 %{o*:%w%*-gnatO} \
|
|
73 %i \
|
|
74 %{gnatc*|gnats*: -o %j} %{-param*} ", 0, 0, 0},
|