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
This commit is contained in:
Iain Sandoe 2009-09-24 17:02:29 +00:00 committed by Richard Henderson
parent c33ac441b2
commit 047a3193bd
4 changed files with 20 additions and 1 deletions

View file

@ -1,3 +1,12 @@
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>
* tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.

View file

@ -1473,7 +1473,7 @@ Common JoinedOrMissing Negative(gvms)
Generate debug information in extended STABS format
gno-strict-dwarf
Common RejectNegative Var(dwarf_strict,0)
Common RejectNegative Var(dwarf_strict,0) Init(-1)
Emit DWARF additions beyond selected version
gstrict-dwarf

View file

@ -1692,6 +1692,11 @@ darwin_kextabi_p (void) {
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)
{
/* -mkernel implies -fapple-kext for C++ */

View file

@ -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)