From 636cf8b1f93f6e2fe66e9b25ebe9555ed93d538e Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sat, 16 Jan 2010 12:14:09 +0000 Subject: 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 --- gcc/collect2.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gcc/collect2.c') 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); -- cgit v1.1