./: * doc/invoke.texi (Debugging Options): Add documentation for the
-femit-struct-debug options -femit-struct-debug-baseonly,
-femit-struct-debug-reduced, and
-femit-struct-debug-detailed[=...].
* c-opts.c (c_common_handle_option): Add
OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
and OPT_femit_struct_debug_detailed_.
* c.opt: Add specifications for
-femit-struct-debug-baseonly, -femit-struct-debug-reduced,
and -femit-struct-debug-detailed[=...].
* opts.c (set_struct_debug_option): Parse the
-femit-struct-debug-... options.
* opts.c (matches_main_base, main_input_basename,
main_input_baselength, base_of_path, matches_main_base): Add
variables and functions to compare header base name to compilation
unit base name.
* opts.c (should_emit_struct_debug): Add to determine to emit a
structure based on the option.
(dump_struct_debug) Also disabled function to debug this
function.
* opts.c (handle_options): Save the base name of the
compilation unit.
* langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
(LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
This hook indicates if a type is generic. Set it by default
to "never generic".
* langhooks.h (struct lang_hooks_for_types): Add a new hook
to determine if a struct type is generic or not.
* cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
* cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
* cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
with live C++ hook.
* flags.h (enum debug_info_usage): Add an enumeration to describe
a program's use of a structure type.
* dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
to indicate the program's usage of the type. Filter structs based
on the -femit-struct-debug-... specification.
(gen_type_die): Split into two routines, gen_type_die and
gen_type_die_with_usage. gen_type_die is now a wrapper
that assumes direct usage.
(gen_type_die_with_usage): Replace calls to gen_type_die
with gen_type_die_with_usage adding the program usage of
the referenced type.
(dwarf2out_imported_module_or_decl): Suppress struct debug
information using should_emit_struct_debug when appropriate.
testsuite/:
* g++.dg/other/fesd-any.C: Test -femit-struct-debug-detailed=any.
* g++.dg/other/fesd-any.h: Test -femit-struct-debug-detailed=any.
* g++.dg/other/fesd-baseonly.C: Test -femit-struct-debug-baseonly.
* g++.dg/other/fesd-baseonly.h: Test -femit-struct-debug-baseonly.
* g++.dg/other/fesd-none.C: Test -femit-struct-debug-detailed=none.
* g++.dg/other/fesd-none.h: Test -femit-struct-debug-detailed=none.
* g++.dg/other/fesd-reduced.C: Test -femit-struct-debug-reduced.
* g++.dg/other/fesd-reduced.h: Test -femit-struct-debug-reduced.
* g++.dg/other/fesd-sys.C: Test -femit-struct-debug-detailed=sys.
* g++.dg/other/fesd-sys.h: Test -femit-struct-debug-detailed=sys.
* g++.dg/other/fesd.h: Common to -femit-struct-debug-... tests.
* gcc.dg/fesd-any.c: Test -femit-struct-debug-detailed=any.
* gcc.dg/fesd-any.h: Test -femit-struct-debug-detailed=any.
* gcc.dg/fesd-baseonly.c: Test -femit-struct-debug-baseonly.
* gcc.dg/fesd-baseonly.h: Test -femit-struct-debug-baseonly.
* gcc.dg/fesd-none.c: Test -femit-struct-debug-detailed=none.
* gcc.dg/fesd-none.h: Test -femit-struct-debug-detailed=none.
* gcc.dg/fesd-reduced.c: Test -femit-struct-debug-reduced.
* gcc.dg/fesd-reduced.h: Test -femit-struct-debug-reduced.
* gcc.dg/fesd-sys.c: Test -femit-struct-debug-detailed=sys.
* gcc.dg/fesd-sys.h: Test -femit-struct-debug-detailed=sys.
* gcc.dg/fesd.h: Common to -femit-struct-debug-... tests.
From-SVN: r123909
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| PR23205.C | Loading commit data... | |
| abstract1.C | Loading commit data... | |
| abstract2.C | Loading commit data... | |
| access1.C | Loading commit data... | |
| access2.C | Loading commit data... | |
| access3.C | Loading commit data... | |
| anon-struct.C | Loading commit data... | |
| anon-union.C | Loading commit data... | |
| anon2.C | Loading commit data... | |
| anon3.C | Loading commit data... | |
| anon4.C | Loading commit data... | |
| array1.C | Loading commit data... | |
| array2.C | Loading commit data... | |
| array3.C | Loading commit data... | |
| array4.C | Loading commit data... | |
| array5.C | Loading commit data... | |
| assign1.C | Loading commit data... | |
| big-struct.C | Loading commit data... | |
| bitfield1.C | Loading commit data... | |
| bitfield2.C | Loading commit data... | |
| classkey1.C | Loading commit data... | |
| complex1.C | Loading commit data... | |
| component1.C | Loading commit data... | |
| const1.C | Loading commit data... | |
| const2.C | Loading commit data... | |
| constref1.C | Loading commit data... | |
| constref2.C | Loading commit data... | |
| conversion1.C | Loading commit data... | |
| copy1.C | Loading commit data... | |
| copy2.C | Loading commit data... | |
| crash-1.C | Loading commit data... | |
| crash-2.C | Loading commit data... | |
| crash-3.C | Loading commit data... | |
| crash-4.C | Loading commit data... | |
| cv_func.C | Loading commit data... | |
| cv_func2.C | Loading commit data... | |
| cxa-atexit1.C | Loading commit data... | |
| darwin-minversion-1.C | Loading commit data... | |
| default1.C | Loading commit data... | |
| default2.C | Loading commit data... | |
| default3.C | Loading commit data... | |
| default4.C | Loading commit data... | |
| default5.C | Loading commit data... | |
| default6.C | Loading commit data... | |
| default7.C | Loading commit data... | |
| do1.C | Loading commit data... | |
| ellipsis1.C | Loading commit data... | |
| enum1.C | Loading commit data... | |
| error1.C | Loading commit data... | |
| error10.C | Loading commit data... | |
| error11.C | Loading commit data... | |
| error12.C | Loading commit data... | |
| error13.C | Loading commit data... | |
| error14.C | Loading commit data... | |
| error2.C | Loading commit data... | |
| error3.C | Loading commit data... | |
| error4.C | Loading commit data... | |
| error5.C | Loading commit data... | |
| error6.C | Loading commit data... | |
| error7.C | Loading commit data... | |
| error8.C | Loading commit data... | |
| error9.C | Loading commit data... | |
| fesd-any.C | Loading commit data... | |
| fesd-any.h | Loading commit data... | |
| fesd-baseonly.C | Loading commit data... | |
| fesd-baseonly.h | Loading commit data... | |
| fesd-none.C | Loading commit data... | |
| fesd-none.h | Loading commit data... | |
| fesd-reduced.C | Loading commit data... | |
| fesd-reduced.h | Loading commit data... | |
| fesd-sys.C | Loading commit data... | |
| fesd-sys.h | Loading commit data... | |
| fesd.h | Loading commit data... | |
| field1.C | Loading commit data... | |
| first-global.C | Loading commit data... | |
| fold1.C | Loading commit data... | |
| friend1.C | Loading commit data... | |
| friend2.C | Loading commit data... | |
| friend3.C | Loading commit data... | |
| friend4.C | Loading commit data... | |
| gc1.C | Loading commit data... | |
| gc2.C | Loading commit data... | |
| gc3.C | Loading commit data... | |
| i386-1.C | Loading commit data... | |
| i386-2.C | Loading commit data... | |
| incomplete1.C | Loading commit data... | |
| incomplete2.C | Loading commit data... | |
| incomplete3.C | Loading commit data... | |
| infloop-1.C | Loading commit data... | |
| init1.C | Loading commit data... | |
| init2.C | Loading commit data... | |
| java1.C | Loading commit data... | |
| java2.C | Loading commit data... | |
| label1.C | Loading commit data... | |
| large-size-array.C | Loading commit data... | |
| linkage1.C | Loading commit data... | |
| main1.C | Loading commit data... | |
| mmintrin.C | Loading commit data... | |
| mult-stor1.C | Loading commit data... | |
| new1.C | Loading commit data... | |
| nontype-1.C | Loading commit data... | |
| ns1.C | Loading commit data... | |
| offsetof1.C | Loading commit data... | |
| offsetof2.C | Loading commit data... | |
| offsetof3.C | Loading commit data... | |
| offsetof4.C | Loading commit data... | |
| opaque-1.C | Loading commit data... | |
| opaque-2.C | Loading commit data... | |
| opaque-3.C | Loading commit data... | |
| operator1.C | Loading commit data... | |
| operator2.C | Loading commit data... | |
| packed1.C | Loading commit data... | |
| pr22003.C | Loading commit data... | |
| pr22358.C | Loading commit data... | |
| pr24623.C | Loading commit data... | |
| pr25632.C | Loading commit data... | |
| pr27495.C | Loading commit data... | |
| pr28114.C | Loading commit data... | |
| pr28304.C | Loading commit data... | |
| pr28432.C | Loading commit data... | |
| pr29610.C | Loading commit data... | |
| pr31078.C | Loading commit data... | |
| pragma-ep-1.C | Loading commit data... | |
| pragma-re-1.C | Loading commit data... | |
| pragma-re-2.C | Loading commit data... | |
| profile1.C | Loading commit data... | |
| ptrmem1.C | Loading commit data... | |
| ptrmem2.C | Loading commit data... | |
| ptrmem3.C | Loading commit data... | |
| ptrmem4.C | Loading commit data... | |
| ptrmem5.C | Loading commit data... | |
| ptrmem6.C | Loading commit data... | |
| ptrmem7.C | Loading commit data... | |
| qual1.C | Loading commit data... | |
| redecl1.C | Loading commit data... | |
| redecl2.C | Loading commit data... | |
| return1.C | Loading commit data... | |
| s390-1.C | Loading commit data... | |
| scope1.C | Loading commit data... | |
| semicolon.C | Loading commit data... | |
| static1.C | Loading commit data... | |
| static11.C | Loading commit data... | |
| static2.C | Loading commit data... | |
| stdarg1.C | Loading commit data... | |
| stdarg2.C | Loading commit data... | |
| stdarg3.C | Loading commit data... | |
| struct-va_list.C | Loading commit data... | |
| switch1.C | Loading commit data... | |
| switch2.C | Loading commit data... | |
| synth1.C | Loading commit data... | |
| typedef1.C | Loading commit data... | |
| ucnid-1.C | Loading commit data... | |
| unreachable1.C | Loading commit data... | |
| unused1.C | Loading commit data... | |
| vararg-1.C | Loading commit data... | |
| vararg-2.C | Loading commit data... | |
| virtual1.C | Loading commit data... | |
| virtual2.C | Loading commit data... | |
| void1.C | Loading commit data... | |
| void2.C | Loading commit data... | |
| vthunk1.C | Loading commit data... | |
| warning1.C | Loading commit data... |