Commit 8fae6016 by Arnaud Charlet Committed by Arnaud Charlet

lang.opt: Add AdaWhy language, simimlar to Ada.

	* gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada.
	* gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls       
	gnat1why).

From-SVN: r177396
parent a54d0eb4
2011-08-04 Arnaud Charlet <charlet@adacore.com>
* gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada.
* gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls
gnat1why).
2011-08-04 Robert Dewar <dewar@adacore.com> 2011-08-04 Robert Dewar <dewar@adacore.com>
* sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb, * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb,
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* * * *
* C Header File * * C Header File *
* * * *
* Copyright (C) 1992-2010, Free Software Foundation, Inc. * * Copyright (C) 1992-2011, Free Software Foundation, Inc. *
* * * *
* GNAT is free software; you can redistribute it and/or modify it under * * GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- * * terms of the GNU General Public License as published by the Free Soft- *
...@@ -46,3 +46,16 @@ ...@@ -46,3 +46,16 @@
%i %{S:%W{o*}%{!o*:-o %b.s}} \ %i %{S:%W{o*}%{!o*:-o %b.s}} \
%{gnatc*|gnats*: -o %j} %{-param*} \ %{gnatc*|gnats*: -o %j} %{-param*} \
%{!gnatc*:%{!gnats*:%(invoke_as)}}", 0, 0, 0}, %{!gnatc*:%{!gnats*:%(invoke_as)}}", 0, 0, 0},
{"@adawhy",
"\
%{!c:%e-c required for gnat2why}\
gnat1why %{I*} %{k8:-gnatk8} %{!Q:-quiet}\
%{nostdinc*} %{nostdlib*}\
-dumpbase %{.adb:%b.adb}%{.ads:%b.ads}%{!.adb:%{!.ads:%b.ada}}\
%{o*:-auxbase-strip %*}%{!o*:-auxbase %b} \
%{a} %{d*} %{f*} \
%{gnatea:-gnatez} %{g*&m*} \
%1 %{o*:%w%*-gnatO} \
%i \
%{gnatc*|gnats*: -o %j} %{-param*} ", 0, 0, 0},
...@@ -25,89 +25,92 @@ ...@@ -25,89 +25,92 @@
Language Language
Ada Ada
Language
AdaWhy
-all-warnings -all-warnings
Ada Alias(Wall) Ada AdaWhy Alias(Wall)
-include-barrier -include-barrier
Ada Alias(I, -) Ada AdaWhy Alias(I, -)
-include-directory -include-directory
Ada Separate Alias(I) Ada AdaWhy Separate Alias(I)
-include-directory= -include-directory=
Ada Joined Alias(I) Ada AdaWhy Joined Alias(I)
-no-standard-includes -no-standard-includes
Ada Alias(nostdinc) Ada AdaWhy Alias(nostdinc)
-no-standard-libraries -no-standard-libraries
Ada Alias(nostdlib) Ada AdaWhy Alias(nostdlib)
I I
Ada Joined Separate Ada AdaWhy Joined Separate
; Documented for C ; Documented for C
Wall Wall
Ada Ada AdaWhy
; Documented for C ; Documented for C
Wmissing-prototypes Wmissing-prototypes
Ada Ada AdaWhy
; Documented for C ; Documented for C
Wstrict-prototypes Wstrict-prototypes
Ada Ada AdaWhy
; Documented for C ; Documented for C
Wwrite-strings Wwrite-strings
Ada Ada AdaWhy
; Documented for C ; Documented for C
Wlong-long Wlong-long
Ada Ada AdaWhy
; Documented for C ; Documented for C
Wvariadic-macros Wvariadic-macros
Ada Ada AdaWhy
; Documented for C ; Documented for C
Wold-style-definition Wold-style-definition
Ada Ada AdaWhy
; Documented for C ; Documented for C
Wmissing-format-attribute Wmissing-format-attribute
Ada Ada AdaWhy
; Documented for C ; Documented for C
Woverlength-strings Woverlength-strings
Ada Ada AdaWhy
; Documented for C ; Documented for C
k8 k8
Driver Driver
nostdinc nostdinc
Ada RejectNegative Ada AdaWhy RejectNegative
; Don't look for source files ; Don't look for source files
nostdlib nostdlib
Ada Ada AdaWhy
; Don't look for object files ; Don't look for object files
fRTS= fRTS=
Ada Joined RejectNegative Ada AdaWhy Joined RejectNegative
; Selects the runtime ; Selects the runtime
gant gant
Ada Joined Undocumented Ada AdaWhy Joined Undocumented
; Catches typos ; Catches typos
gnatO gnatO
Ada Separate Ada AdaWhy Separate
; Sets name of output ALI file (internal switch) ; Sets name of output ALI file (internal switch)
gnat gnat
Ada Joined Ada AdaWhy Joined
-gnat<options> Specify options to GNAT -gnat<options> Specify options to GNAT
; This comment is to ensure we retain the blank line above. ; This comment is to ensure we retain the blank line above.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment