diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-16 12:14:09 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-16 12:14:09 +0000 |
commit | 1a9c54a35da528ea0ed834cd8303b31767be0c1f (patch) | |
tree | f346fc01f4a2485fda22909adcf915a88470d975 /gcc/collect2.c | |
parent | b2a24299a6103ccdfca2d79e2dc98e13cdc08009 (diff) | |
download | gcc-1a9c54a35da528ea0ed834cd8303b31767be0c1f.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155961 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r-- | gcc/collect2.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c index 777510b4e40..914015f06f9 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); |