1. 17 Apr, 2007 6 commits
    • invoke.texi (Debugging Options): Add documentation for the -femit-struct-debug options... · 39ef6592
      ./:	* 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
      Lawrence Crowl committed
    • re PR tree-optimization/31522 (False overflow warning with phi nodes) · fc6827fe
      ./:	PR tree-optimization/31522
      	* tree-vrp.c (vr_phi_edge_counts): New static variable.
      	(vrp_initialize): Allocate vr_phi_edge_counts.
      	(vrp_visit_phi_node): Don't push to infinity if we saw a new
      	executable edge.  Drop test for all constants.
      	(vrp_finalize): Free vrp_phi_edge_counts.
      testsuite/:
      	PR tree-optimization/31522
      	* gcc.dg/Wstrict-overflow-16.c: New test.
      
      From-SVN: r123908
      Ian Lance Taylor committed
    • cpp.texi (Common Predefined Macros): Clarify description of __GNUC_GNU_INLINE__… · 4075e231
      cpp.texi (Common Predefined Macros): Clarify description of __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
      
      	* doc/cpp.texi (Common Predefined Macros): Clarify description of
      	__GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
      
      From-SVN: r123907
      Ian Lance Taylor committed
    • tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer predecessors at… · 5a0ed003
      tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer predecessors at head rather than tail.
      
      	* tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
      	predecessors at head rather than tail.
      
      From-SVN: r123906
      Ian Lance Taylor committed
    • * gcc.dg/cpp/_Pragma6.c: Skip on fido-*-* and m68k-*-*. · 59152316
      From-SVN: r123905
      Kazu Hirata committed
    • re PR fortran/31144 (gfortran module symbol names are not standard compliant) · 9998ef84
      
      PR fortran/31144
      fortran/
      * decl.c (gfc_sym_mangled_identifier): Use capital letters in name
      mangling.
      (gfc_sym_mangled_function_id): Likewise.
      testsuite/
      * gfortran.dg/module_naming_1.f90: New.
      
      From-SVN: r123904
      Tobias Schlüter committed
  2. 16 Apr, 2007 26 commits
  3. 15 Apr, 2007 8 commits