Commit 047a3193 by Iain Sandoe Committed by Richard Henderson

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
parent c33ac441
2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
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.
2009-09-24 Jeff Law <law@redhat.com> 2009-09-24 Jeff Law <law@redhat.com>
* tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks. * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
......
...@@ -1473,7 +1473,7 @@ Common JoinedOrMissing Negative(gvms) ...@@ -1473,7 +1473,7 @@ Common JoinedOrMissing Negative(gvms)
Generate debug information in extended STABS format Generate debug information in extended STABS format
gno-strict-dwarf gno-strict-dwarf
Common RejectNegative Var(dwarf_strict,0) Common RejectNegative Var(dwarf_strict,0) Init(-1)
Emit DWARF additions beyond selected version Emit DWARF additions beyond selected version
gstrict-dwarf gstrict-dwarf
......
...@@ -1692,6 +1692,11 @@ darwin_kextabi_p (void) { ...@@ -1692,6 +1692,11 @@ darwin_kextabi_p (void) {
void void
darwin_override_options (void) darwin_override_options (void)
{ {
/* Don't emit DWARF3/4 unless specifically selected. This is a
workaround for tool bugs. */
if (dwarf_strict < 0)
dwarf_strict = 1;
if (flag_mkernel || flag_apple_kext) if (flag_mkernel || flag_apple_kext)
{ {
/* -mkernel implies -fapple-kext for C++ */ /* -mkernel implies -fapple-kext for C++ */
......
...@@ -1910,6 +1910,11 @@ process_options (void) ...@@ -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 /* A lot of code assumes write_symbols == NO_DEBUG if the debugging
level is 0. */ level is 0. */
if (debug_info_level == DINFO_LEVEL_NONE) if (debug_info_level == DINFO_LEVEL_NONE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment