aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorRichard Sandiford <r.sandiford@uk.ibm.com>2010-01-16 12:14:09 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2010-01-16 12:14:09 +0000
commit636cf8b1f93f6e2fe66e9b25ebe9555ed93d538e (patch)
treef346fc01f4a2485fda22909adcf915a88470d975 /gcc/collect2.c
parent7647c8412acec7c838ad4e5a813e331e099451d7 (diff)
downloadgcc-636cf8b1f93f6e2fe66e9b25ebe9555ed93d538e.zip
gcc-636cf8b1f93f6e2fe66e9b25ebe9555ed93d538e.tar.gz
gcc-636cf8b1f93f6e2fe66e9b25ebe9555ed93d538e.tar.bz2
configure.ac (HAVE_AS_REF): New C macro.
gcc/ * configure.ac (HAVE_AS_REF): New C macro. * configure: Regenerate. * config.in: Likewise. * collect2.c (main): Only postpone SCAN_DWEH to the second pass if HAVE_AS_REF. * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define if HAVE_AS_REF. From-SVN: r155961
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 777510b..914015f 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1677,8 +1677,11 @@ main (int argc, char **argv)
control whether we need a first pass link later on or not, and what
will remain to be scanned there. */
- scanfilter this_filter
- = shared_obj ? ld1_filter : (ld1_filter & ~SCAN_DWEH);
+ scanfilter this_filter = ld1_filter;
+#if HAVE_AS_REF
+ if (!shared_obj)
+ this_filter &= ~SCAN_DWEH;
+#endif
while (export_object_lst < object)
scan_prog_file (*export_object_lst++, PASS_OBJ, this_filter);