aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2000-11-13 21:22:10 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2000-11-13 21:22:10 +0000
commitd9068c61428f89ce1db4bae6f5adb6acbd8b5b6b (patch)
treefd2583d1bff6b5fbb21a491a9da567cce4465262 /gcc/collect2.c
parent51d61f8686efee2132bf91c5a89993c1cbf103c7 (diff)
downloadgcc-d9068c61428f89ce1db4bae6f5adb6acbd8b5b6b.zip
gcc-d9068c61428f89ce1db4bae6f5adb6acbd8b5b6b.tar.gz
gcc-d9068c61428f89ce1db4bae6f5adb6acbd8b5b6b.tar.bz2
c-lex.c (cb_leave_file): Harmonize conditions and order of statements to those of process_directive for...
* c-lex.c (cb_leave_file): Harmonize conditions and order of statements to those of process_directive for (action == act_pop). * collect2.c (main): Pass on -B options from COLLECT_GCC_OPTIONS. * local-alloc.c (equiv_init_movable_p): References to CC0 are not movable. From-SVN: r37438
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 8277723..49cb0e7 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1096,6 +1096,15 @@ main (argc, argv)
*c_ptr++ = obstack_copy0 (&permanent_obstack, q, strlen (q));
if (strncmp (q, "-shared", sizeof ("-shared") - 1) == 0)
shared_obj = 1;
+ if (*q == '-' && q[1] == 'B')
+ {
+ *c_ptr++ = obstack_copy0 (&permanent_obstack, q, strlen (q));
+ if (q[2] == 0)
+ {
+ q = extract_string (&p);
+ *c_ptr++ = obstack_copy0 (&permanent_obstack, q, strlen (q));
+ }
+ }
}
obstack_free (&temporary_obstack, temporary_firstobj);
*c_ptr++ = "-fno-exceptions";