mirror of git://gcc.gnu.org/git/gcc.git
common.opt (flag_debug_types_section): Default to 0.
* common.opt (flag_debug_types_section): Default to 0. (dwarf_version): Default to 4. (dwarf_record_gcc_switches): Default to 1. (dwarf_strict): Default to 0. * toplev.c (process_options): Don't handle dwarf_strict or dwarf_version here. * config/vxworks.c (vxworks_override_options): Don't test whether dwarf_strict or dwarf_version are negative, instead test !global_options_set.x_dwarf_*. * config/darwin.c (darwin_override_options): Default to dwarf_version 2. * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches and -fno-debug-types-section are now the default. From-SVN: r186835
This commit is contained in:
parent
9c8305f8fc
commit
98095aa337
|
@ -1,3 +1,19 @@
|
||||||
|
2012-04-25 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* common.opt (flag_debug_types_section): Default to 0.
|
||||||
|
(dwarf_version): Default to 4.
|
||||||
|
(dwarf_record_gcc_switches): Default to 1.
|
||||||
|
(dwarf_strict): Default to 0.
|
||||||
|
* toplev.c (process_options): Don't handle dwarf_strict
|
||||||
|
or dwarf_version here.
|
||||||
|
* config/vxworks.c (vxworks_override_options): Don't
|
||||||
|
test whether dwarf_strict or dwarf_version are negative,
|
||||||
|
instead test !global_options_set.x_dwarf_*.
|
||||||
|
* config/darwin.c (darwin_override_options): Default to
|
||||||
|
dwarf_version 2.
|
||||||
|
* doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
|
||||||
|
and -fno-debug-types-section are now the default.
|
||||||
|
|
||||||
2012-04-25 Jan Hubicka <jh@suse.cz>
|
2012-04-25 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
* cgraphunit.c: Update toplevel comment.
|
* cgraphunit.c: Update toplevel comment.
|
||||||
|
|
|
@ -967,7 +967,7 @@ Common Joined RejectNegative Var(common_deferred_options) Defer
|
||||||
Map one directory name to another in debug information
|
Map one directory name to another in debug information
|
||||||
|
|
||||||
fdebug-types-section
|
fdebug-types-section
|
||||||
Common Report Var(flag_debug_types_section) Init(1)
|
Common Report Var(flag_debug_types_section) Init(0)
|
||||||
Output .debug_types section when using DWARF v4 debuginfo.
|
Output .debug_types section when using DWARF v4 debuginfo.
|
||||||
|
|
||||||
; Nonzero for -fdefer-pop: don't pop args after each function call
|
; Nonzero for -fdefer-pop: don't pop args after each function call
|
||||||
|
@ -2212,7 +2212,7 @@ Common JoinedOrMissing Negative(gdwarf-)
|
||||||
Generate debug information in COFF format
|
Generate debug information in COFF format
|
||||||
|
|
||||||
gdwarf-
|
gdwarf-
|
||||||
Common Joined UInteger Var(dwarf_version) Init(-1) Negative(gstabs)
|
Common Joined UInteger Var(dwarf_version) Init(4) Negative(gstabs)
|
||||||
Generate debug information in DWARF v2 (or later) format
|
Generate debug information in DWARF v2 (or later) format
|
||||||
|
|
||||||
ggdb
|
ggdb
|
||||||
|
@ -2220,7 +2220,7 @@ Common JoinedOrMissing
|
||||||
Generate debug information in default extended format
|
Generate debug information in default extended format
|
||||||
|
|
||||||
gno-record-gcc-switches
|
gno-record-gcc-switches
|
||||||
Common RejectNegative Var(dwarf_record_gcc_switches,0) Init(0)
|
Common RejectNegative Var(dwarf_record_gcc_switches,0) Init(1)
|
||||||
Don't record gcc command line switches in DWARF DW_AT_producer.
|
Don't record gcc command line switches in DWARF DW_AT_producer.
|
||||||
|
|
||||||
grecord-gcc-switches
|
grecord-gcc-switches
|
||||||
|
@ -2236,7 +2236,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) Init(-1)
|
Common RejectNegative Var(dwarf_strict,0) Init(0)
|
||||||
Emit DWARF additions beyond selected version
|
Emit DWARF additions beyond selected version
|
||||||
|
|
||||||
gstrict-dwarf
|
gstrict-dwarf
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* Functions for generic Darwin as target machine for GNU C compiler.
|
/* Functions for generic Darwin as target machine for GNU C compiler.
|
||||||
Copyright (C) 1989, 1990, 1991, 1992, 1993, 2000, 2001, 2002, 2003, 2004,
|
Copyright (C) 1989, 1990, 1991, 1992, 1993, 2000, 2001, 2002, 2003, 2004,
|
||||||
2005, 2006, 2007, 2008, 2009, 2010, 2011
|
2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
Contributed by Apple Computer Inc.
|
Contributed by Apple Computer Inc.
|
||||||
|
|
||||||
|
@ -2973,6 +2973,8 @@ darwin_override_options (void)
|
||||||
workaround for tool bugs. */
|
workaround for tool bugs. */
|
||||||
if (!global_options_set.x_dwarf_strict)
|
if (!global_options_set.x_dwarf_strict)
|
||||||
dwarf_strict = 1;
|
dwarf_strict = 1;
|
||||||
|
if (!global_options_set.x_dwarf_version)
|
||||||
|
dwarf_version = 2;
|
||||||
|
|
||||||
/* Do not allow unwind tables to be generated by default for m32.
|
/* Do not allow unwind tables to be generated by default for m32.
|
||||||
fnon-call-exceptions will override this, regardless of what we do. */
|
fnon-call-exceptions will override this, regardless of what we do. */
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Common VxWorks target definitions for GNU compiler.
|
/* Common VxWorks target definitions for GNU compiler.
|
||||||
Copyright (C) 2007, 2008, 2010
|
Copyright (C) 2007, 2008, 2010, 2012
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
Contributed by CodeSourcery, Inc.
|
Contributed by CodeSourcery, Inc.
|
||||||
|
|
||||||
|
@ -147,9 +147,9 @@ vxworks_override_options (void)
|
||||||
|
|
||||||
/* Default to strict dwarf-2 to prevent potential difficulties observed with
|
/* Default to strict dwarf-2 to prevent potential difficulties observed with
|
||||||
non-gdb debuggers on extensions > 2. */
|
non-gdb debuggers on extensions > 2. */
|
||||||
if (dwarf_strict < 0)
|
if (!global_options_set.x_dwarf_strict)
|
||||||
dwarf_strict = 1;
|
dwarf_strict = 1;
|
||||||
|
|
||||||
if (dwarf_version < 0)
|
if (!global_options_set.x_dwarf_version)
|
||||||
dwarf_version = 2;
|
dwarf_version = 2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4781,14 +4781,16 @@ normally emits debugging information for classes because using this
|
||||||
option increases the size of debugging information by as much as a
|
option increases the size of debugging information by as much as a
|
||||||
factor of two.
|
factor of two.
|
||||||
|
|
||||||
@item -fno-debug-types-section
|
@item -fdebug-types-section
|
||||||
@opindex fno-debug-types-section
|
|
||||||
@opindex fdebug-types-section
|
@opindex fdebug-types-section
|
||||||
By default when using DWARF Version 4 or higher, type DIEs are put into
|
@opindex fno-debug-types-section
|
||||||
|
When using DWARF Version 4 or higher, type DIEs can be put into
|
||||||
their own @code{.debug_types} section instead of making them part of the
|
their own @code{.debug_types} section instead of making them part of the
|
||||||
@code{.debug_info} section. It is more efficient to put them in a separate
|
@code{.debug_info} section. It is more efficient to put them in a separate
|
||||||
comdat sections since the linker can then remove duplicates.
|
comdat sections since the linker can then remove duplicates.
|
||||||
But not all DWARF consumers support @code{.debug_types} sections yet.
|
But not all DWARF consumers support @code{.debug_types} sections yet
|
||||||
|
and on some objects @code{.debug_types} produces larger instead of smaller
|
||||||
|
debugging information.
|
||||||
|
|
||||||
@item -gstabs+
|
@item -gstabs+
|
||||||
@opindex gstabs+
|
@opindex gstabs+
|
||||||
|
@ -4819,7 +4821,8 @@ assembler (GAS) to fail with an error.
|
||||||
@item -gdwarf-@var{version}
|
@item -gdwarf-@var{version}
|
||||||
@opindex gdwarf-@var{version}
|
@opindex gdwarf-@var{version}
|
||||||
Produce debugging information in DWARF format (if that is supported).
|
Produce debugging information in DWARF format (if that is supported).
|
||||||
The value of @var{version} may be either 2, 3 or 4; the default version is 2.
|
The value of @var{version} may be either 2, 3 or 4; the default version
|
||||||
|
for most targets is 4.
|
||||||
|
|
||||||
Note that with DWARF Version 2, some ports require and always
|
Note that with DWARF Version 2, some ports require and always
|
||||||
use some non-conflicting DWARF 3 extensions in the unwind tables.
|
use some non-conflicting DWARF 3 extensions in the unwind tables.
|
||||||
|
@ -4834,12 +4837,12 @@ compiler that may affect code generation to be appended to the
|
||||||
DW_AT_producer attribute in DWARF debugging information. The options
|
DW_AT_producer attribute in DWARF debugging information. The options
|
||||||
are concatenated with spaces separating them from each other and from
|
are concatenated with spaces separating them from each other and from
|
||||||
the compiler version. See also @option{-frecord-gcc-switches} for another
|
the compiler version. See also @option{-frecord-gcc-switches} for another
|
||||||
way of storing compiler options into the object file.
|
way of storing compiler options into the object file. This is the default.
|
||||||
|
|
||||||
@item -gno-record-gcc-switches
|
@item -gno-record-gcc-switches
|
||||||
@opindex gno-record-gcc-switches
|
@opindex gno-record-gcc-switches
|
||||||
Disallow appending command-line options to the DW_AT_producer attribute
|
Disallow appending command-line options to the DW_AT_producer attribute
|
||||||
in DWARF debugging information. This is the default.
|
in DWARF debugging information.
|
||||||
|
|
||||||
@item -gstrict-dwarf
|
@item -gstrict-dwarf
|
||||||
@opindex gstrict-dwarf
|
@opindex gstrict-dwarf
|
||||||
|
|
|
@ -1375,15 +1375,6 @@ 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;
|
|
||||||
|
|
||||||
/* And select a default dwarf level. */
|
|
||||||
if (dwarf_version < 0)
|
|
||||||
dwarf_version = 2;
|
|
||||||
|
|
||||||
/* 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)
|
||||||
|
|
Loading…
Reference in New Issue