diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index b5fb857bbea..14d37a400e7 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2003-11-10 Arnaud Charlet + + * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed + by gnat1. + 2003-11-10 Arnaud Charlet * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta, 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++;