Commit Graph

91756 Commits

Author SHA1 Message Date
Chris Fairles 959d14e166 acinclude.m4 ([GLIBCXX_ENABLE_CLOCK_GETTIME], [...]): Remove.
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
2009-01-15 14:01:04 +00:00
Douglas B Rupp 52535a64bf configure.ac (ia64*-*-*vms*): Add case with no gdb or ld support.
* configure.ac (ia64*-*-*vms*): Add case with no gdb or ld support.
* configure: Regenerate.

From-SVN: r143394
2009-01-15 13:14:16 +00:00
Dodji Seketeli 0efc44420b re PR c++/38636 (ICE with broken ctor declaration)
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
2009-01-15 14:01:36 +01:00
Jakub Jelinek 0196c95ed4 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
2009-01-15 09:07:38 +01:00
Michael Meissner 6df6bcfa0f Fix PR22599
From-SVN: r143386
2009-01-14 22:40:34 +00:00
Steven G. Kargl 3e55cc6f7c ChangeLog-2007: Clean out svn merge droppings.
2009-01-14  Steven G. Kargl  <kargl@gcc.gnu.org>

        * ChangeLog-2007: Clean out svn merge droppings.

From-SVN: r143385
2009-01-14 21:22:53 +00:00
Sebastian Pop 765ec70c92 re PR middle-end/38431 ([graphite] several ICEs with CP2K (summary))
2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/38431
	* graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
	(scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
	(gloog): Do not call cleanup_tree_cfg.
	(graphite_transform_loops): Call cleanup_tree_cfg after all 
	scops have been code generated.

From-SVN: r143384
2009-01-14 21:11:05 +00:00
Adam Nemet 2bdfeb3854 mips.exp (mips_option_tests(-mips16)): Make the sequence PC-relative.
* gcc.target/mips/mips.exp (mips_option_tests(-mips16)): Make the
	sequence PC-relative.

From-SVN: r143382
2009-01-14 19:46:38 +00:00
Mark Mitchell 670dc171dc long-calls-1.c: Tolerate the lack of sibling calls and/or PLT markers.
* gcc.target/arm/long-calls-1.c: Tolerate the lack of sibling
	calls and/or PLT markers.
	* gcc.target/arm/long-calls-2.c: Tolerate the lack of sibling
	calls and/or PLT markers.
	* gcc.target/arm/long-calls-3.c: Tolerate the lack of sibling
	calls and/or PLT markers.
	* gcc.target/arm/long-calls-4.c: Tolerate the lack of sibling
	calls and/or PLT markers.

From-SVN: r143381
2009-01-14 19:37:02 +00:00
Jakub Jelinek ed8a0bc47c Fix non-UTF-8 sequence in ChangeLog-2006 and left-over
conflict marker in testsuite/ChangeLog-2008.

From-SVN: r143380
2009-01-14 19:57:55 +01:00
Daniel Jacobowitz 96a995c4af target-supports.exp (check_effective_target_powerpc_spe_nocache): New function.
* lib/target-supports.exp (check_effective_target_powerpc_spe_nocache):
	New function.
	* gcc.target/powerpc/20030218-1.c: Skip if not powerpc_spe_nocache
	and use consistent CFLAGS.
	* gcc.target/powerpc/20030505.c: Likewise.
	* gcc.target/powerpc/20081204-1.c: Likewise.
	* gcc.target/powerpc/ppc-spe.c: Likewise.
	* gcc.target/powerpc/spe1.c: Likewise.
	* g++.dg/ext/spe1.C: Likewise.
	* g++.dg/other/opaque-1.C: Likewise.
	* g++.dg/other/opaque-2.C: Likewise.
	* g++.dg/other/opaque-3.C: Likewise.

Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
Co-Authored-By: Nathan Froyd <froydnj@codesourcery.com>

From-SVN: r143379
2009-01-14 17:58:13 +00:00
Mark Mitchell 4e2199ab68 vect-105.c: Prevent compiler from hoisting abort out of loop.
* gcc.dg/vect/vect-105.c: Prevent compiler from hoisting abort
	out of loop.

From-SVN: r143378
2009-01-14 17:54:07 +00:00
Vladimir Makarov 5321dace26 pr38811.C: New file.
2009-01-14  Vladimir Makarov  <vmakarov@redhat.com>

	* testsuite/g++.dg/torture/pr38811.C: New file.

From-SVN: r143376
2009-01-14 17:33:48 +00:00
Basile Starynkevitch 7de2b68817 gty.texi (Invoking the garbage collector): Added new node and section documenting ggc_collect.
2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
	* doc/gty.texi (Invoking the garbage collector): Added new node
	and section documenting ggc_collect.

From-SVN: r143375
2009-01-14 17:08:47 +00:00
Richard Guenther 10bd6c5c4a re PR tree-optimization/38826 (points-to result wrong for reads from call-clobbered vars)
2009-01-14  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/38826
	PR middle-end/38477
	* tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
	initialization notes only if we actually emitted a warning.
	(intra_create_variable_infos): Add constraints for a result decl
	that is passed by hidden reference.
	(build_pred_graph): Mark all related variables non-direct on
	address-taking.

	* gcc.dg/Wstrict-aliasing-bogus-pta-1.c: New testcase.

From-SVN: r143374
2009-01-14 16:45:22 +00:00
Sebastian Pop 7fe8ccdae5 pr38786.c: Fix commit problem.
2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>

	* gcc.dg/graphite/pr38786.c: Fix commit problem.

From-SVN: r143373
2009-01-14 15:29:39 +00:00
Nick Clifton f2c2d5e379 oops - omitted from previous delta
From-SVN: r143370
2009-01-14 13:04:25 +00:00
Nick Clifton cee9035de5 re PR c++/37862 (Parenthesised indirection alters class member access)
PR c++/37862
        * parser.c: Pass cp_id_kind computed in
        cp_parser_postfix_dot_deref_expression to
        cp_parser_primary_expression.

        * g++.cp/parse/pr37862.C: New test.

From-SVN: r143369
2009-01-14 13:00:21 +00:00
Ramana Radhakrishnan e04a57df1b MAINTAINERS (Write After Approval): Add myself.
2009-01-12  Ramana Radhakrishnan  <ramana.r@gmail.com>

	* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r143367
2009-01-14 12:49:05 +00:00
Nick Clifton 9c7c70ee6f ira-conflicts.c: Include addresses.h for the definition of base_reg_class.
* ira-conflicts.c: Include addresses.h for the definition of
        base_reg_class.
        (ira_build_conflicts): Use base_reg_class instead of
        BASE_REG_CLASS.
        * Makefile.in: Add a dependency of ira-conflicts.o on
        addresses.h.

From-SVN: r143365
2009-01-14 11:28:01 +00:00
Vladimir Makarov cf0c2a602b re PR target/38811 (internal compiler error: in compensate_edge, at reg-stack.c:2754)
2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>

	PR target/38811
	* Makefile.in (ira-lives.o): Add except.h.

	* ira-lives.c: Include except.h.
	(process_bb_node_lives): Process can_throw_internal.

From-SVN: r143362
2009-01-14 03:35:35 +00:00
Julian Brown 41d3c94943 2009-01-14 Julian Brown <julian@codesourcery.com>
* gcc.target/arm/eabi1.c (__eabi_uread4, __eabi_uwrite4)
	(__eabi_uread8, __eabi_uwrite8): Change spellings of declarations
	to...
	(__aeabi_uread4, __aeabi_uwrite4, __aeabi_uread8, __aeabi_uwrite8):
	These.

From-SVN: r143361
2009-01-14 01:44:39 +00:00
GCC Administrator 8f5a02dab9 Daily bump.
From-SVN: r143358
2009-01-14 00:17:02 +00:00
Jakub Jelinek d3302fd318 re PR rtl-optimization/38774 (ice in df_refs_verify, at df-scan.c:4307)
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
2009-01-13 23:36:06 +01:00
Joseph Myers 7ab23fd0b9 invoke.texi (ARM Options): Update lists of -mcpu and -march values.
* doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
	values.  Remove duplicate arm8 entry.

From-SVN: r143353
2009-01-13 21:18:50 +00:00
Jakub Jelinek a7cbc51756 re PR c++/38795 (ICE with reinterpret_cast and variadic templates)
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
2009-01-13 19:11:50 +01:00
Daniel Jacobowitz 5bdf05c874 altivec-consts.c: Run if vmx_hw, compile otherwise.
* 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
2009-01-13 17:52:32 +00:00
Nathan Froyd 425a0a4d44 altivec-macros.c: Require a powerpc_altivec_ok effective target.
* gcc.target/powerpc/altivec-macros.c: Require a powerpc_altivec_ok
	effective target.  Adjust line numbers accordingly.

From-SVN: r143349
2009-01-13 17:50:39 +00:00
Mark Mitchell 5b6b9db175 sse-10.c: Pass -mno-omit-leaf-frame-pointer.
2009-01-13  Mark Mitchell  <mark@codesourcery.com>

	* gcc.target/i386/sse-10.c: Pass -mno-omit-leaf-frame-pointer.

From-SVN: r143345
2009-01-13 16:48:26 +00:00
Sebastian Pop f93444883d re PR middle-end/38786 ([graphite] ICE with -floop-block in verify_ssa)
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
2009-01-13 15:33:13 +00:00
Sebastian Pop 2d8bb84db9 graphite.h (debug_value): Removed.
2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite.h (debug_value): Removed.
	* graphite.c (debug_value): Removed.

From-SVN: r143340
2009-01-13 15:27:09 +00:00
Richard Earnshaw ff12863264 arm.c (output_move_double): Don't synthesize thumb-2 ldrd/strd with two 32-bit instructions.
* arm.c (output_move_double): Don't synthesize thumb-2 ldrd/strd with
	two 32-bit instructions.

From-SVN: r143339
2009-01-13 14:31:56 +00:00
Richard Earnshaw d5a0a47bee arm.c (struct processors): Pass for speed down into cost helper functions.
* 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
2009-01-13 14:09:50 +00:00
Uros Bizjak 43b2b720fa hash_data_map_rand.cc: Add dg-timeout-factor 2.0.
* 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
2009-01-13 13:55:08 +01:00
Ben Elliston bcf4713bec t-softfp: New file.
* config/t-softfp: New file.
	* config.host (powerpc64-*-linux*, powerpc64-*-gnu*): Add t-softfp.
	(powerpc-*-linux*spe*, powerpc-*-linux*): Likewise.

From-SVN: r143334
2009-01-13 22:53:41 +11:00
Uros Bizjak 616ea7ac83 * scripts/extract_symvers: Escape [ and ] brackets.
From-SVN: r143333
2009-01-13 09:30:12 +01:00
Uros Bizjak 26d5bf5baa alpha.c (alpha_legitimate_address_p): Explicit relocations of local symbols wider than UNITS_PER_WORD are not valid.
* config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
	relocations of local symbols  wider than UNITS_PER_WORD are not valid.
	(alpha_legitimize_address): Do not split local symbols wider than
	UNITS_PER_WORD into HIGH/LO_SUM parts.

testsuite/ChangeLog:

	Revert:
	2009-01-05  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.dg/compat/struct-layout-1_generate.c (dg-options): Add -mieee
	for alpha*-*-* targets.
	* g++.dg/compat/struct-layout-1_generate.c (dg-options): Ditto.

From-SVN: r143332
2009-01-13 09:04:11 +01:00
Uros Bizjak 6ce45dc046 extract_symvers: Add sed script to remove ' [<other>: xx] ' field from readelf output.
* scripts/extract_symvers: Add sed script to remove ' [<other>: xx] '
	field from readelf output.

From-SVN: r143331
2009-01-13 08:42:26 +01:00
Danny Smith 5d14e3d50a re PR bootstrap/38580 (Bootstrap broken on mingw32)
PR bootstrap/38580
	* gcc.c (process_command): Replace call to execvp with calls
	to pex_one and exit.

From-SVN: r143330
2009-01-13 07:40:51 +00:00
Jerry DeLisle 2e50357552 re PR libfortran/38772 (r143102 reveals missed error checking on floating point reads)
2009-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/38772
	* gfortran.dg/fmt_bz_bn_err.f: New test.

From-SVN: r143328
2009-01-13 05:53:07 +00:00
Jerry DeLisle 1a15c900e8 re PR libfortran/38772 (r143102 reveals missed error checking on floating point reads)
2009-01-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/38772
	* io/read.c (read_f): Clean up loop conditions for BZ/BN,
	allowing proper digit testing. White space fix.

From-SVN: r143327
2009-01-13 05:40:36 +00:00
Nathan Froyd 1b82a0656e add missing target-supports.exp commit
From-SVN: r143326
2009-01-13 03:14:32 +00:00
Nathan Froyd 44c4becf0c * gcc.target/powerpc/ppc-spe64-1.c: Add dg-error handler.
From-SVN: r143325
2009-01-13 03:11:48 +00:00
Daniel Jacobowitz 82fc74c7a6 target-supports.exp (check_effective_target_powerpc64): New.
* lib/target-supports.exp (check_effective_target_powerpc64): New.
	* gcc.target/powerpc/darwin-longlong.c: Explicitly require 64-bit
	instruction support.  Do not check for it at runtime.

From-SVN: r143324
2009-01-13 03:05:10 +00:00
Benjamin Kosnik 55c8e6a320 re PR target/38384 (shared link/execute fails for cross gcc from linux to target hppa64-hp-hpux11.00)
2009-01-12  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/38384
	* crossconfig.m4 (hpux): Update for 10.20, 11, 11.20.
	* configure: Regenerate.

2009-01-12  Benjamin Kosnik  <bkoz@redhat.com>

	* crossconfig.m4 (linux): Add GCC_CHECK_TLS to define _GLIBCXX_HAVE_TLS.
	Use GLIBCXX_CHECK_COMPILER_FEATURES to compute SECTION_FLAGS.

From-SVN: r143322
2009-01-13 01:49:30 +00:00
Jason Merrill 8e39b3681c tweak comment
From-SVN: r143321
2009-01-12 20:29:48 -05:00
Jason Merrill b9f673eb35 re PR c++/35109 (ICE in lookup_name_real, at cp/name-lookup.c:4056)
PR c++/35109
        * name-lookup.c (lookup_name_real): Keep looking past a hidden
        binding.

Co-Authored-By: Steve Ellcey <sje@cup.hp.com>

From-SVN: r143320
2009-01-12 20:23:34 -05:00
GCC Administrator 38a5aa4ae4 Daily bump.
From-SVN: r143318
2009-01-13 00:16:57 +00:00
Dodji Seketeli 172a459435 re PR c++/36019 (template parameter does not hide class name)
gcc/cp/ChangeLog:
2009-01-12  Dodji Seketeli  <dodji@redhat.com>

	PR c++/36019
	* pt.c (parameter_of_template_p): New function.
	* cp-tree.h: Declare it.
	* name-lookup.c (binding_to_template_parms_of_scope_p): New
	function.
	(outer_binding): Take template parameters in account when looking for
	a name binding.

gcc/testsuite/ChangeLog:
2009-01-12  Dodji Seketeli  <dodji@redhat.com>

	PR c++/36019
	* g++.dg/lookup/hidden-class12.C: New test.
	* g++.dg/lookup/hidden-class13.C: New test.
	* g++.dg/lookup/hidden-class14.C: New test.
	* g++.dg/lookup/hidden-class15.C: New test.
	* g++.dg/lookup/hidden-class16.C: New test.

From-SVN: r143315
2009-01-12 23:47:49 +01:00
Steven G. Kargl 856c450bd5 MAINTAINERS: Add myself to reviewers (Fortran).
2009-01-12  Steven G. Kargl  <sgk@troutmask.apl.washington.edu>

	* MAINTAINERS: Add myself to reviewers (Fortran).

From-SVN: r143312
2009-01-12 21:56:28 +00:00