1. 15 Jan, 2009 9 commits
    • re PR c++/36334 (typedef to function type leads to problems) · 4af9e878
              PR c++/36334
              PR c++/37646
              * tree.c (lvalue_p_1): Handle BASELINK.  A COMPONENT_REF to
              a function isn't necessarily an lvalue. Take tree, not const_tree.
              (lvalue_p, real_lvalue_p): Take tree, not const_tree.
              * typeck.c (lvalue_or_else): Likewise.
              * cp-tree.h: Adjust prototypes.
      
      From-SVN: r143404
      Jason Merrill committed
    • re PR c++/38357 (ICE cc1plus (Segmentation fault)) · f1253e7e
      	PR c++/38357
      	* g++.dg/template/crash87.C: New test.
      
      From-SVN: r143403
      Steve Ellcey committed
    • re PR c++/38357 (ICE cc1plus (Segmentation fault)) · 5fa0e853
      	PR c++/38357
      	* pt.c (tsubst): Check for NULL args.
      
      From-SVN: r143402
      Steve Ellcey committed
    • re PR middle-end/37843 (unaligned stack in main due to tail call optimization) · e939805b
      gcc/
      
      2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
      	    Joey Ye  <joey.ye@intel.com>
      
      	PR middle-end/37843
      	* cfgexpand.c (expand_stack_alignment): Don't update stack
      	boundary nor check incoming stack boundary here.
      	(gimple_expand_cfg): Update stack boundary and check incoming
      	stack boundary here.
      
      gcc/testsuite/
      
      2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR middle-end/37843
      	* gcc.target/i386/pr37843-3.c: Replace _Decimal128 with __m128.
      
      Co-Authored-By: Joey Ye <joey.ye@intel.com>
      
      From-SVN: r143400
      H.J. Lu committed
    • dce.c (find_call_stack_args, [...]): Fixed comments. · 750900db
      2009-01-15  Kenneth Zadeck <zadeck@naturalbridge.com>
      
      	* dce.c (find_call_stack_args, delete_unmarked_insns): Fixed
      	comments.
      
      From-SVN: r143398
      Kenneth Zadeck committed
    • acinclude.m4 ([GLIBCXX_ENABLE_CLOCK_GETTIME], [...]): Remove. · 959d14e1
      2009-01-15  Chris Fairles  <cfairles@gcc.gnu.org>
      	    Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* acinclude.m4 ([GLIBCXX_ENABLE_CLOCK_GETTIME],
      	[GLIBCXX_CHECK_NANOSLEEP]): Remove.
      	([GLIBCXX_ENABLE_LIBSTDCXX_TIME]): Add.
      	* configure.ac: Adjust.
      	* doc/xml/manual/configure.xml: Update.
      	* testsuite/lib/libstdc++.exp (check_v3_target_sched_yield): Add.
      	* testsuite/lib/dg-options.exp (dg-require-sched-yield): Add.
      	* testsuite/30_threads/thread/this_thread/2.cc: Use the latter.
      	* configure: Regenerate.
      	* config.h.in: Likewise.
      
      	* src/thread.cc (thread::thread(), thread::~thread, thread::get_id,
      	thread::joinable, thread::swap, this_thread::get_id,
      	this_thread::yield): Define inline...
      	* include/std/thread: ... here.
      	* config/abi/pre/gnu.ver: Adjust.
      
      Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
      
      From-SVN: r143397
      Chris Fairles committed
    • configure.ac (ia64*-*-*vms*): Add case with no gdb or ld support. · 52535a64
      * configure.ac (ia64*-*-*vms*): Add case with no gdb or ld support.
      * configure: Regenerate.
      
      From-SVN: r143394
      Douglas B Rupp committed
    • re PR c++/38636 (ICE with broken ctor declaration) · 0efc4442
      gcc/cp/ChangeLog:
      2009-01-13  Dodji Seketeli  <dodji@redhat.com>
      
      	PR c++/38636
      	* name-lookup.c (pushtag): Don't create members to types that are not
      	being created.
      
      gcc/testsuite/ChangeLog:
      2009-01-13  Dodji Seketeli  <dodji@redhat.com>
      
      	PR c++/38636
      	* g++.dg/parse/crash50.C: New test.
      
      From-SVN: r143392
      Dodji Seketeli committed
    • re PR rtl-optimization/38245 (stack corruption when a call is removed but not… · 0196c95e
      re PR rtl-optimization/38245 (stack corruption when a call is removed but not the outgoing argument pushes)
      
      	PR rtl-optimization/38245
      	* calls.c (expand_call): Add stack arguments to
      	CALL_INSN_FUNCTION_USAGE even for pure calls (when
      	ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
      	in regs and partially in memory or BLKmode arguments.
      	(emit_library_call_value_1): Add stack arguments to
      	CALL_INSN_FUNCTION_USAGE even for pure calls (when
      	ACCUMULATE_OUTGOING_ARGS).
      	* dce.c: Include tm_p.h.
      	(find_call_stack_args): New function.
      	(deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
      	argument.
      	(mark_insn): Call find_call_stack_args for CALL_Ps.
      	(prescan_insns_for_dce): Walk insns backwards in bb rather than
      	forwards.  Allocate and free arg_stores bitmap if needed, pass it
      	down to deletable_insn_p, don't mark stores set in arg_stores
      	bitmap, clear the bitmap at the beginning of each bb.
      	* Makefile.in (dce.o): Depend on $(TM_P_H).
      
      	* gcc.dg/pr38245-3.c: New test.
      	* gcc.dg/pr38245-3.h: New file.
      	* gcc.dg/pr38245-4.c: New file.
      	* gcc.dg/pr38364.c: New test.
      
      From-SVN: r143387
      Jakub Jelinek committed
  2. 14 Jan, 2009 19 commits
  3. 13 Jan, 2009 12 commits
    • re PR rtl-optimization/38774 (ice in df_refs_verify, at df-scan.c:4307) · d3302fd3
      	PR rtl-optimization/38774
      	* combine.c (simplify_set): When undoing cc_use change, don't do
      	PUT_CODE on the newly created comparison, but instead put back the
      	old comparison.
      
      	* gcc.dg/torture/pr38774.c: New test.
      
      From-SVN: r143355
      Jakub Jelinek committed
    • invoke.texi (ARM Options): Update lists of -mcpu and -march values. · 7ab23fd0
      	* doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
      	values.  Remove duplicate arm8 entry.
      
      From-SVN: r143353
      Joseph Myers committed
    • re PR c++/38795 (ICE with reinterpret_cast and variadic templates) · a7cbc517
      	PR c++/38795
      	* tree.c (cp_walk_subtrees): Handle REINTERPRET_CAST_EXPR,
      	STATIC_CAST_EXPR, CONST_CAST_EXPR and DYNAMIC_CAST_EXPR the same
      	as CAST_EXPR.
      
      	* g++.dg/cpp0x/pr38795.C: New test.
      
      From-SVN: r143351
      Jakub Jelinek committed
    • altivec-consts.c: Run if vmx_hw, compile otherwise. · 5bdf05c8
      	* gcc.target/powerpc/altivec-consts.c: Run if vmx_hw, compile
      	otherwise.  Do not check for AltiVec at runtime.
      	* gcc.target/powerpc/altivec-varargs-1.c: Likewise.
      	* gcc.target/powerpc/altivec-vec-merge.c: Likewise.
      	* gcc.target/powerpc/altivec-1.c: Likewise.
      	* gcc.target/powerpc/altivec-3.c: Likewise.
      	* gcc.target/powerpc/altivec-10.c: Likewise.
      	* gcc.target/powerpc/altivec-12.c: Likewise.
      	* gcc.target/powerpc/altivec-24.c: Likewise.
      	* gcc.target/powerpc/altivec-cell-2.c: Likewise.
      	* gcc.target/powerpc/altivec-cell-3.c: Likewise.
      	* gcc.target/powerpc/altivec-cell-4.c: Likewise.
      	* gcc.target/powerpc/pr35907.c: Likewise.
      	* gcc.target/powerpc/altivec-cell-8.c: Run if cell_hw, compile
      	otherwise.  Do not check for Cell at runtime.
      	* gcc.target/powerpc/altivec_check.h: Delete.
      
      	* g++.dg/ext/altivec-2.C: Do not check for AltiVec at runtime.
      	* g++.dg/ext/altivec-3.C: Run if vmx_hw, compile otherwise.  Do
      	not check for AltiVec at runtime.
      	* g++.dg/ext/altivec-cell-2.C: Likewise.
      	* g++.dg/ext/altivec-cell-3.C: Likewise.
      	* g++.dg/ext/altivec-cell-4.C: Likewise.
      	* g++.dg/eh/simd-2.C: Only use -maltivec if vmx_hw.
      	* g++.dg/eh/check-vect.h (sig_ill_handler): Remove AltiVec runtime
      	check.
      	* g++.dg/ext/altivec_check.h: Delete.
      
      Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
      Co-Authored-By: Nathan Froyd <froydnj@codesourcery.com>
      
      From-SVN: r143350
      Daniel Jacobowitz committed
    • altivec-macros.c: Require a powerpc_altivec_ok effective target. · 425a0a4d
      	* gcc.target/powerpc/altivec-macros.c: Require a powerpc_altivec_ok
      	effective target.  Adjust line numbers accordingly.
      
      From-SVN: r143349
      Nathan Froyd committed
    • sse-10.c: Pass -mno-omit-leaf-frame-pointer. · 5b6b9db1
      2009-01-13  Mark Mitchell  <mark@codesourcery.com>
      
      	* gcc.target/i386/sse-10.c: Pass -mno-omit-leaf-frame-pointer.
      
      From-SVN: r143345
      Mark Mitchell committed
    • re PR middle-end/38786 ([graphite] ICE with -floop-block in verify_ssa) · f9344488
      2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
      
      	PR tree-optimization/38786
      	* gcc.dg/graphite/pr38786.c: New.
      	* graphite.c (expand_scalar_variables_ssa_name): New, outlined from
      	the SSA_NAME case of expand_scalar_variables_expr.
      	Set the type of an expression to the type of its assign	statement.
      	(expand_scalar_variables_expr): Also gather the scalar computation
      	used to index the memory access.  Do not pass loop_p.
      	Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
      	(expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
      	the gimple_stmt_iterator where it inserts new code.  Do not pass loop_p.
      	(copy_bb_and_scalar_dependences): Do not pass loop_p.
      	(translate_clast): Update call to copy_bb_and_scalar_dependences.
      
      From-SVN: r143341
      Sebastian Pop committed
    • graphite.h (debug_value): Removed. · 2d8bb84d
      2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* graphite.h (debug_value): Removed.
      	* graphite.c (debug_value): Removed.
      
      From-SVN: r143340
      Sebastian Pop committed
    • arm.c (output_move_double): Don't synthesize thumb-2 ldrd/strd with two 32-bit instructions. · ff128632
      	* arm.c (output_move_double): Don't synthesize thumb-2 ldrd/strd with
      	two 32-bit instructions.
      
      From-SVN: r143339
      Richard Earnshaw committed
    • arm.c (struct processors): Pass for speed down into cost helper functions. · d5a0a47b
      	* arm.c (struct processors): Pass for speed down into cost helper
      	functions.
      	(const_ok_for_op): Handle COMPARE and inequality nodes.
      	(arm_rtx_costs_1): Rewrite.
      	(arm_size_rtx_costs): Update prototype.
      	(arm_rtx_costs): Pass speed down to helper functions.
      	(arm_slowmul_rtx_costs): Rework cost calculations.
      	(arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
      	(arm_9e_rtx_costs): Likewise.
      
      From-SVN: r143338
      Richard Earnshaw committed
    • hash_data_map_rand.cc: Add dg-timeout-factor 2.0. · 43b2b720
      	* testsuite/ext/pb_ds/regression/hash_data_map_rand.cc:
      	Add dg-timeout-factor 2.0.
      	* testsuite/ext/pb_ds/regression/trie_data_map_rand.cc: Ditto.
      	* testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc: Ditto.
      	* testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc: Ditto.
      	* testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Ditto.
      	* testsuite/ext/pb_ds/regression/tree_data_map_rand.cc: Ditto.
      	* testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc: Ditto.
      
      From-SVN: r143335
      Uros Bizjak committed
    • t-softfp: New file. · bcf4713b
      	* config/t-softfp: New file.
      	* config.host (powerpc64-*-linux*, powerpc64-*-gnu*): Add t-softfp.
      	(powerpc-*-linux*spe*, powerpc-*-linux*): Likewise.
      
      From-SVN: r143334
      Ben Elliston committed