diff options
author | Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk> | 2009-09-24 17:02:29 +0000 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2009-09-24 10:02:29 -0700 |
commit | 047a3193bd729475182a438d9929ec923f484481 (patch) | |
tree | 08082379e6d49ceefcba2533a02f3292e225e0da /gcc/toplev.c | |
parent | c33ac441b202e1c6a19ba085c8c23946ff3e7a2e (diff) | |
download | gcc-047a3193bd729475182a438d9929ec923f484481.zip gcc-047a3193bd729475182a438d9929ec923f484481.tar.gz gcc-047a3193bd729475182a438d9929ec923f484481.tar.bz2 |
re PR bootstrap/41405 (Bootstrap fails on *-apple-darwin* due to revision 151815)
PR bootstrap/41405
* common.opt: Initialize dwarf_strict to -1.
* toplev.c (process_options): Catch unset dwarf_strict
and set to 0 for all targets not overriding.
* config/darwin.c (darwin_override_options): Catch unset
dwarf_strict and override to 1.
From-SVN: r152127
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index cf035d8..4dd17e4 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1910,6 +1910,11 @@ process_options (void) } } + /* Unless over-ridden for the target, assume that all DWARF levels + may be emitted, if DWARF2_DEBUG is selected. */ + if (dwarf_strict < 0) + dwarf_strict = 0; + /* A lot of code assumes write_symbols == NO_DEBUG if the debugging level is 0. */ if (debug_info_level == DINFO_LEVEL_NONE) |