aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/collect2.c5
-rw-r--r--gcc/toplev.c10
3 files changed, 15 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e9305fa..6f29442 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct 14 13:54:25 1999 Jason Merrill <jason@yorick.cygnus.com>
+
+ * toplev.c (main): Only warn about options for other languages.
+ * collect2.c (main): Pass -w to sub-gcc.
+
Thu Oct 14 16:27:50 1999 Richard Henderson <rth@cygnus.com>
* flow.c (propagate_block): Add call-clobbered registers to
@@ -8,10 +13,6 @@ Thu Oct 14 16:27:50 1999 Richard Henderson <rth@cygnus.com>
(invalidate_mems_from_autoinc): Use free_EXPR_LIST_node.
(mark_set_1, mark_used_regs): Likewise.
-Thu Oct 14 13:54:25 1999 Jason Merrill <jason@yorick.cygnus.com>
-
- * toplev.c (main): Don't complain about options for other languages.
-
Thu Oct 14 10:51:49 1999 Richard Henderson <rth@cygnus.com>
* m68k.md (zero_extendsidi2): Add missing output reload constraint.
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.
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 2f40f12..89a1c90 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -5380,7 +5380,7 @@ main (argc, argv)
/* Give the language a chance to decode the option for itself. */
lang_processed = lang_decode_option (argc - i, argv + i);
-
+
/* Now see if the option also has a language independent meaning.
Some options are both language specific and language independent,
eg --help. It is possible that there might be options that should
@@ -5394,8 +5394,10 @@ main (argc, argv)
i += (lang_processed > indep_processed
? lang_processed : indep_processed);
else
- /* This option applies to some other language; ignore it. */
- i++;
+ {
+ warning ("ignoring option `%s'", argv[i]);
+ i++;
+ }
}
/* Checker uses the frame pointer. */
@@ -5520,7 +5522,7 @@ main (argc, argv)
if (sorrycount)
return (FATAL_EXIT_CODE);
return (SUCCESS_EXIT_CODE);
- }
+}
/* Decode -m switches. */
/* Decode the switch -mNAME. */