aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1999-10-15 00:05:52 +0000
committerJason Merrill <jason@gcc.gnu.org>1999-10-14 20:05:52 -0400
commit43a8f6d50127ae2b30bdfc611fbeaff414ba86da (patch)
treef0aee9e6414740e1f1768d018ac8bf78e3d2d32e /gcc/collect2.c
parentff6663134070df58da6bee2b654fb683ba4cfb25 (diff)
downloadgcc-43a8f6d50127ae2b30bdfc611fbeaff414ba86da.zip
gcc-43a8f6d50127ae2b30bdfc611fbeaff414ba86da.tar.gz
gcc-43a8f6d50127ae2b30bdfc611fbeaff414ba86da.tar.bz2
toplev.c (main): Only warn about options for other languages.
* toplev.c (main): Only warn about options for other languages. * collect2.c (main): Pass -w to sub-gcc. From-SVN: r29991
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 6b36144..64101bf 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -927,7 +927,9 @@ main (argc, argv)
num_c_args++;
}
obstack_free (&temporary_obstack, temporary_firstobj);
- ++num_c_args;
+
+ /* -fno-exceptions -w */
+ num_c_args += 2;
c_ptr = (const char **)
(c_argv = (char **) xcalloc (sizeof (char *), num_c_args));
@@ -1107,6 +1109,7 @@ main (argc, argv)
}
obstack_free (&temporary_obstack, temporary_firstobj);
*c_ptr++ = "-fno-exceptions";
+ *c_ptr++ = "-w";
/* !!! When GCC calls collect2,
it does not know whether it is calling collect2 or ld.