summaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-10 11:20:03 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-10 11:20:03 +0000
commitfb8715f7e4c12140a7256c9141cd629584d1c76f (patch)
tree2e588b2f3d1399a79b4aa8e460eea0db231ca765 /gcc/ada
parentb09ffcd35ab49ac5c1ebd460be26812de649a36d (diff)
downloadgcc-fb8715f7e4c12140a7256c9141cd629584d1c76f.tar.gz
Add handling of -nostdlib, now recognized/needed by gnat1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73413 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/ChangeLog5
-rw-r--r--gcc/ada/lang.opt4
-rw-r--r--gcc/ada/misc.c5
3 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index b5fb857bbea..14d37a400e7 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,5 +1,10 @@
2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
+ * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
+ by gnat1.
+
+2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
+
* Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
no longer needed.
diff --git a/gcc/ada/lang.opt b/gcc/ada/lang.opt
index e38af20b2e8..ec3e924ad7b 100644
--- a/gcc/ada/lang.opt
+++ b/gcc/ada/lang.opt
@@ -53,6 +53,10 @@ nostdinc
Ada RejectNegative
; Don't look for source files
+nostdlib
+Ada
+; Don't look for object files
+
fRTS
Ada RejectNegative
diff --git a/gcc/ada/misc.c b/gcc/ada/misc.c
index d0b49369119..c7510fcc5c2 100644
--- a/gcc/ada/misc.c
+++ b/gcc/ada/misc.c
@@ -266,6 +266,11 @@ gnat_handle_option (size_t scode, const char *arg, int value ATTRIBUTE_UNUSED)
case OPT_nostdinc:
break;
+ case OPT_nostdlib:
+ gnat_argv[gnat_argc] = xstrdup ("-nostdlib");
+ gnat_argc++;
+ break;
+
case OPT_fRTS:
gnat_argv[gnat_argc] = xstrdup ("-fRTS");
gnat_argc++;