1. 10 Oct, 2008 7 commits
    • 24803.cc: Avoid uninitialized warnings. · 6cbdd6b2
      2008-10-10  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* testsuite/20_util/reference_wrapper/24803.cc: Avoid uninitialized
      	warnings.
      
      From-SVN: r141041
      Paolo Carlini committed
    • system_error (native_category): Remove. · 4661c8fd
      2008-10-10  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/std/system_error (native_category): Remove.
      	(posix_category): Add.
      	(error_code::error_code(_ErrorCodeEnum, typename enable_if<>:type*):
      	Fix _M_cat initialization.
      	(error_code::operator=(_ErrorCodeEnum)): Assign _M_cat too.
      	(error_condition::_M_cat, error_condtion::operator=
      	(_ErrorConditionEnum)): Implement resolution of DR 804.
      	(error_condition::error_condition(_ErrorConditionEnum, typename
      	enable_if<>:type*): Fix.
      	(error_condition::clear, error_condition::assign): Implement.
      	(operator==, operator!=): Fix uglification of parameters.
      	(make_error_code, make_error_condition): Define in namespace
      	posix_error.
      	(operator<<(basic_ostream<>&, const error_code&)): Define here.
      	* include/std/ostream (operator<<(basic_ostream<>&,
      	const error_code&)): Do not define here.
      	* testsuite/19_diagnostics/error_condition/cons/1.cc: New.	
      	* testsuite/19_diagnostics/error_condition/operators/bool.cc: Likewise.
      	* testsuite/19_diagnostics/error_condition/operators/bool_neg.cc:
      	Likewise.
      	* testsuite/19_diagnostics/error_condition/operators/equal.cc:
      	Likewise.
      	* testsuite/19_diagnostics/error_condition/operators/not_equal.cc:
      	Likewise.
      	* testsuite/19_diagnostics/error_code/cons/1.cc: Tweak.
      	* testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Adjust
      	dg-error line numbers.
      	* testsuite/30_threads/unique_lock/locking/2.cc: Tweak.
      
      	* testsuite/util/testsuite_error.h: Minor tweaks.
      	* testsuite/util/testsuite_hooks.cc: Avoid uninitialized warning.
      
      From-SVN: r141039
      Paolo Carlini committed
    • 1.cc: Remove invalid check of uninitialized duration. · 87ad5081
      2008-10-10  Chris Fairles  <cfairles@gcc.gnu.org>
      
              * testsuite/20_util/duration/cons/1.cc: Remove invalid check of
              uninitialized duration.
      
      From-SVN: r141038
      Chris Fairles committed
    • trans-types.c (gfc_get_nodesc_array_type): Don't vary types depending on debug info. · 09775c40
      * fortran/trans-types.c (gfc_get_nodesc_array_type): Don't
      vary types depending on debug info.
      
      From-SVN: r141021
      Alexandre Oliva committed
    • c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME before ensuring… · fd9fffd1
      c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME before ensuring it's already computed.
      
      * c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME
      before ensuring it's already computed.
      
      From-SVN: r141020
      Alexandre Oliva committed
    • 2008-10-08 Jerry DeLisle <jvdelisle@gcc.gnu.org · 6d5d3adf
      	PR libfortran/37707
      	* gfortran.dg/namelist_54.f90: Revise test, check a(3).
      
      From-SVN: r141016
      Jerry DeLisle committed
    • Daily bump. · 8e84988f
      From-SVN: r141014
      GCC Administrator committed
  2. 09 Oct, 2008 11 commits
  3. 08 Oct, 2008 15 commits
  4. 07 Oct, 2008 7 commits
    • re PR middle-end/37576 (-v --help ICEs) · a1fd13d0
      	PR middle-end/37576
      	* opts.h (CL_SAVE): Move up to flags range.
      	(CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET,
      	CL_COMMON): Renumber.
      	(CL_MIN_OPTION_CLASS): Set to CL_PARAMS.
      	* opts.c (common_handle_option): Revert last change.
      
      From-SVN: r140955
      Jakub Jelinek committed
    • i386-protos.h (ix86_schedule): New. · 7ab91c5f
      2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* config/i386/i386-protos.h (ix86_schedule): New.
      
      	* config/i386/i386.c (ix86_schedule): New.
      	(override_options): Add schedule to processor_alias_table.  Set
      	ix86_schedule from the schedule field in processor_alias_table.
      	(ix86_function_specific_save): Save ix86_schedule.
      	(ix86_function_specific_restore): Restore ix86_schedule.
      
      	* config/i386/i386.md (cpu): Map to ix86_schedule instead of
      	ix86_tune.  Add none and remove i386, i486, pentium4, nocona
      	and generic32.
      
      	* config/i386/i386.opt: Add schedule.
      
      	* config/i386/ppro.md: Remove generic32.
      
      From-SVN: r140954
      H.J. Lu committed
    • re PR c/35437 (ICE with struct containing incomplete type) · 16d5ffec
      gcc/
      
      2008-10-07  Simon Martin  <simartin@users.sourceforge.net>
              
              PR c/35437
              * expr.c (count_type_elements): Handle ERROR_MARK.
      
      gcc/testsuite/
      
      2008-01-07  Simon Martin  <simartin@users.sourceforge.net>
      
              PR c/35437
              * gcc.dg/struct-parse-2.c: New test.
              * g++.dg/parse/struct-4.C: New test.
      
      From-SVN: r140953
      Simon Martin committed
    • * decl.c (start_cleanup_fn): Declare as inline. · 3b14bb39
      From-SVN: r140952
      Steve Ellcey committed
    • re PR middle-end/29609 (Even with -O0 -g gcc optimizes a goto away and I cannot debug) · 7241571e
      	PR debug/29609
      	PR debug/36690
      	PR debug/37616
      	* basic-block.h (struct edge_def): Add goto_block field.
      	* cfglayout.c (fixup_reorder_chain): Ensure that there is at least
      	one insn with locus corresponding to edge's goto_locus if !optimize.
      	* profile.c (branch_prob): Copy edge's goto_block.
      	* cfgrtl.c (force_nonfallthru_and_redirect): Use goto_locus for
      	emitted jumps.
      	(cfg_layout_merge_blocks): Emit a nop with edge's goto_locus
      	locator in between the merged basic blocks if !optimize and needed.
      	* cfgexpand.c (expand_gimple_cond): Convert goto_block and
      	goto_locus into RTL locator.  For unconditional jump use that
      	locator for the jump insn.
      	(expand_gimple_cond): Convert goto_block and goto_locus into
      	RTL locator for all remaining edges.  For unconditional jump
      	use that locator for the jump insn.
      	* cfgcleanup.c (try_forward_edges): Avoid the optimization if
      	there is more than one edge or insn locator along the forwarding
      	edges and !optimize.  If there is just one, set e->goto_locus.
      	* tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Set also
      	edge's goto_block.
      	(move_block_to_fn): Adjust edge's goto_block.
      
      	* gcc.dg/debug/pr29609-1.c: New test.
      	* gcc.dg/debug/pr29609-2.c: New test.
      	* gcc.dg/debug/pr36690-1.c: New test.
      	* gcc.dg/debug/pr36690-2.c: New test.
      	* gcc.dg/debug/pr36690-3.c: New test.
      	* gcc.dg/debug/pr37616.c: New test.
      	* gcc.dg/debug/dwarf2/pr29609-1.c: New test.
      	* gcc.dg/debug/dwarf2/pr29609-2.c: New test.
      	* gcc.dg/debug/dwarf2/pr36690-1.c: New test.
      	* gcc.dg/debug/dwarf2/pr36690-2.c: New test.
      	* gcc.dg/debug/dwarf2/pr36690-3.c: New test.
      	* gcc.dg/debug/dwarf2/pr37616.c: New test.
      
      From-SVN: r140948
      Jakub Jelinek committed
    • re PR middle-end/37731 (long long may not work correctly on 32bit host) · aee857a2
      gcc/
      
      2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR middle-end/37731
      	* expmed.c (expand_mult): Properly check DImode constant in
      	CONST_DOUBLE.
      
      gcc/testsuite/
      
      2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR middle-end/37731
      	* gcc.dg/torture/pr37731-1.c: New.
      	* gcc.dg/torture/pr37731-2.c: Likewise.
      
      From-SVN: r140947
      H.J. Lu committed
    • f95-lang.c (poplevel): Don't clear BLOCK_VARS if functionbody. · c7c79a09
      	* f95-lang.c (poplevel): Don't clear BLOCK_VARS if functionbody.
      	* trans-decl.c (gfc_build_qualified_array): Build accurate debug type
      	even if nest.
      	(build_entry_thunks, gfc_generate_function_code,
      	gfc_generate_constructors): Ensure DECL_SAVED_TREE is a BIND_EXPR
      	with DECL_INITIAL as its BLOCK.
      
      From-SVN: r140945
      Jakub Jelinek committed