Commit Graph

91847 Commits

Author SHA1 Message Date
H.J. Lu f13eae6a01 i386.c (construct_container): Rewrite processing BLKmode with X86_64_SSE_CLASS.
2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (construct_container): Rewrite processing
	BLKmode with X86_64_SSE_CLASS.

From-SVN: r144128
2009-02-12 06:42:20 -08:00
H.J. Lu 552af63412 defaulted9.C: Compile with "-std=c++0x -fno-inline".
2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>

	* g++.dg/cpp0x/defaulted9.C: Compile with "-std=c++0x -fno-inline".

From-SVN: r144127
2009-02-12 06:17:17 -08:00
H.J. Lu 12019aec3d re PR target/39152 (Revision 144098 breaks 416.gamess in SPEC CPU 2006)
gcc/

2009-02-12  Paolo Bonzini  <bonzini@gnu.org>

	PR target/39152
	* config/i386/i386.md: Replace simplify_replace_rtx with
	replace_rtx in the new peephole2.

gcc/testsuite/

2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39152
	* gfortran.dg/pr39152.f: New.

From-SVN: r144126
2009-02-12 06:04:20 -08:00
Nathan Sidwell 28c11eb39b invoke.texi (Optimize Options): Stop claiming inlining and loop unrolling do not happen at -O2.
* doc/invoke.texi (Optimize Options): Stop claiming inlining and
	loop unrolling do not happen at -O2.

From-SVN: r144123
2009-02-12 10:57:59 +00:00
Michael Matz c7b94907e4 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
From-SVN: r144122
2009-02-12 08:49:08 +00:00
Jakub Jelinek 61e9896759 dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die for -g3.
* dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
	for -g3.

From-SVN: r144121
2009-02-12 09:42:57 +01:00
Ben Elliston a2a237b534 rs6000.md (allocate_stack): Use _stack form of patterns when updating the back chain.
* config/rs6000/rs6000.md (allocate_stack): Use _stack form of
	patterns when updating the back chain.  Missed in the 2009-02-10
	change.

From-SVN: r144120
2009-02-12 15:37:09 +11:00
Jason Merrill bff54b1987 re PR c++/39153 (virtual default dtor not defined)
PR c++/39153
        * decl2.c (cp_write_global_declarations):
        Check DECL_DEFAULTED_FN, not DECL_ARTIFICIAL.

From-SVN: r144119
2009-02-11 21:01:07 -05:00
GCC Administrator c8619fe964 Daily bump.
From-SVN: r144117
2009-02-12 00:16:44 +00:00
Janis Johnson 853eda8dac extend.texi (Decimal Floating Types): Update identifier of draft TR and list of missing support.
* doc/extend.texi (Decimal Floating Types): Update identifier of
	draft TR and list of missing support.

From-SVN: r144114
2009-02-12 00:04:19 +00:00
Jason Merrill fd97a96a10 re PR c++/30111 (Value-initialization of POD base class doesn't initialize members)
PR c++/30111
        * init.c (build_value_init_noctor): Split out from...
        (build_value_init): ...here.
        (expand_aggr_init_1): Handle value-initialization.
        * cp-tree.h: Add declaration.
        * class.c (type_has_user_provided_constructor):
        Handle non-class arguments.

From-SVN: r144112
2009-02-11 17:38:37 -05:00
Jakub Jelinek 3ad6b2669b re PR middle-end/39154 (Miscompilation of VLAs in nested parallel regions)
PR middle-end/39154
	* gimplify.c (omp_notice_variable): If adding GOVD_SEEN
	bit to variable length decl's flags, add it also to its
	pointer replacement variable.

	* testsuite/libgomp.c/pr39154.c: New test.

From-SVN: r144111
2009-02-11 22:57:52 +01:00
Uros Bizjak b058b75355 re PR target/39118 (x86_64 red zone violation)
PR target/39118
	* config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
	(memory_blockage): New expander.
	(*memory_blockage): New insn pattern.
	* config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
	instead of general blockage at the end of function prologue when
	frame pointer is used to access red zone area.  Do not emit blockage
	when profiling, it is emitted in generic code.
	(ix86_expand_epilogue): Emit memory_blockage at the beginning of
	function epilogue when frame pointer is used to access red zone area.

From-SVN: r144100
2009-02-11 12:43:24 +01:00
Kai Tietz 3a24ac1d39 mh-cygwin (LDFLAGS): Add linker option to increase stack limit up to 8MB.
2009-02-11  Kai Tietz  <kai.tietz@onevision.com>

        * mh-cygwin (LDFLAGS): Add linker option to increase stack limit
        up to 8MB.

From-SVN: r144099
2009-02-11 11:50:50 +01:00
Paolo Bonzini bab64f23e9 i386.md: Add two new peephole2 to avoid mov followed by arithmetic with memory operands.
gcc:
2009-02-06  Paolo Bonzini  <bonzini@gnu.org>

	* config/i386/i386.md: Add two new peephole2 to avoid mov followed
	by arithmetic with memory operands.
	* config/i386/predicates.md (commutative_operator): New.

gcc/testsuite:
2009-02-06  Paolo Bonzini  <bonzini@gnu.org>

	* gcc.target/i386/pr38824.c: New testcase.

From-SVN: r144098
2009-02-11 08:56:41 +00:00
Jason Merrill bfbe1b687b re PR c++/38649 (Trouble with defaulted constructors)
PR c++/38649
        * class.c (defaultable_fn_p): Handle ... properly.

From-SVN: r144092
2009-02-11 00:23:38 -05:00
Jason Merrill 952e24fed6 re PR c++/36744 ([C++0x] function modifying argument received by-value affects caller's variable when passed as rvalue)
PR c++/36744
        * tree.c (lvalue_p_1): Condition rvalue ref handling on
        treat_class_rvalues_as_lvalues, too.

From-SVN: r144091
2009-02-11 00:23:02 -05:00
GCC Administrator 1d428010b4 Daily bump.
From-SVN: r144089
2009-02-11 00:16:40 +00:00
Janis Johnson 8fd94bdae7 extend.texi (Fixed-Point Types): Break long paragraphs into bulleted lists.
* doc/extend.texi (Fixed-Point Types): Break long paragraphs into
	bulleted lists.

From-SVN: r144086
2009-02-11 00:06:31 +00:00
Eric Botcazou 794511d20a alias.h (record_alias_subset): Declare.
* alias.h (record_alias_subset): Declare.
	* alias.c (record_alias_subset): Make global.
ada/
	* gcc-interface/decl.c (enum alias_set_op): New enumeration.
	(copy_alias_set): Rename into...
	(relate_alias_sets): ...this.  Add third parameter OP.  Retrieve the
	underlying array of unconstrained arrays for the new type as well.
	If the old and new alias sets don't conflict, make one a subset of
	the other as per the OP parameter.
	(gnat_to_gnu_entity): Adjust calls to copy_alias_set.
	<E_Record_Type>: Do not copy the alias set for derived types.
	For all types, make the alias set of derived types a superset of
	that of their parent type.
	(make_aligning_type): Adjust calls to copy_alias_set.
	(make_packable_type): Likewise.
	* gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
	Check for alias set conflict instead of strict equality to issue the
	warning.

From-SVN: r144084
2009-02-10 22:52:51 +00:00
Paolo Carlini 493e377c04 re PR c++/34397 (ICE on invalid default template parameter)
/cp
2009-02-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/34397
	* typeck.c (build_x_array_ref): New.
	* cp-tree.h: Declare it.
	* pt.c (tsubst_copy_and_build): Use it for case ARRAY_REF.

/testsuite
2009-02-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/34397
	* g++.dg/template/crash88.C: New.
	* g++.dg/template/crash89.C: Likewise.

From-SVN: r144083
2009-02-10 21:47:12 +00:00
Mark Mitchell 1f542826fd Makefile.am (AM_MAKEFLAGS): Pass down datadir.
* Makefile.am (AM_MAKEFLAGS): Pass down datadir.
	* Makefile.in: Regenerated.

From-SVN: r144081
2009-02-10 21:39:15 +00:00
Nick Clifton 6da7fc872f tree-parloops.c: Change license to GPLv3.
* tree-parloops.c: Change license to GPLv3.
        * ipa-struct-reorg.c: Change license to GPLv3.
        * ipa-struct-reorg.h: Change license to GPLv3.

From-SVN: r144072
2009-02-10 17:59:08 +00:00
Steve Ellcey 914ff5654a re PR c/39084 (ice on struct redefinition)
PR c/39084
	gcc.dg/pr39084.c: New test.

From-SVN: r144068
2009-02-10 16:34:30 +00:00
Steve Ellcey a03813c899 re PR c/39084 (ice on struct redefinition)
PR c/39084
	* c-decl.c (start_struct): Return NULL on error.

From-SVN: r144067
2009-02-10 16:33:19 +00:00
Jakub Jelinek 9b43d37b83 re PR middle-end/39124 (-fno-exceptions leads to a ICE)
PR middle-end/39124
	* cfgloopmanip.c (remove_path): Call remove_bbs after
	cancel_loop_tree, not before it.

From-SVN: r144066
2009-02-10 17:23:17 +01:00
Jakub Jelinek fc3103e7c9 re PR target/39139 (ICE with stringop and register var)
PR target/39139
	* function.h (struct function): Add has_local_explicit_reg_vars
	bit.
	* gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
	VAR_DECLs were seen.
	* tree-ssa-live.c (remove_unused_locals): Recompute
	cfun->has_local_explicit_reg_vars.
	* tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
	copies or clearings if cfun->has_local_explicit_reg_vars.

	* gcc.target/i386/pr39139.c: New test.

From-SVN: r144065
2009-02-10 17:22:29 +01:00
Uros Bizjak dbf9ee15b8 re PR target/39118 (x86_64 red zone violation)
PR target/39118
	* config/i386/i386.c (expand_prologue): Emit blockage at the end
	of function prologue when frame pointer is used to access
	red zone area.

From-SVN: r144063
2009-02-10 17:12:33 +01:00
Joseph Myers f76f0eddf7 * Makefile.in (clean): Don't remove makedepend$(EXEEXT).
From-SVN: r144062
2009-02-10 14:56:10 +00:00
Richard Guenther bdec4dc7be re PR middle-end/39127 (Invalid GIMPLE with OpenMP)
2009-02-10  Richard Guenther  <rguenther@suse.de>

	PR middle-end/39127
	* gimplify.c (gimple_regimplify_operands): Always look if
	we need to create a temporary.

From-SVN: r144061
2009-02-10 14:55:15 +00:00
Richard Guenther 7cae94fcba re PR tree-optimization/39132 (wrong code generated with -ftree-loop-disttribution)
2009-02-10  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/39132
	* tree-loop-distribution.c (todo): New global var.
	(generate_memset_zero): Trigger TODO_rebuild_alias.
	(tree_loop_distribution): Return todo.

	* gcc.dg/torture/pr39132.c: New testcase.

From-SVN: r144060
2009-02-10 14:54:13 +00:00
H.J. Lu a8800687f5 re PR target/39119 (Update classification of aggregates with __m256)
gcc/

2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39119
	* config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
	(x86_64_reg_class_name): Removed.
	(classify_argument): Return 0 if bytes > 32.  Return 0 if the
	first one isn't X86_64_SSE_CLASS or any other ones aren't
	X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
	X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
	is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
	and 3 X86_64_SSEUP_CLASS.
	(construct_container): Remove X86_64_AVX_CLASS.  Handle 4
	registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.

gcc/testsuite/

2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39119
	* gcc.target/x86_64/abi/avx/abi-avx.exp: New.
	* gcc.target/x86_64/abi/avx/args.h: Likewise.
	* gcc.target/x86_64/abi/avx/asm-support.S: Likewise.
	* gcc.target/x86_64/abi/avx/avx-check.h: Likewise.
	* gcc.target/x86_64/abi/avx/test_m256_returning.c: Likewise.
	* gcc.target/x86_64/abi/avx/test_passing_m256.c: Likewise.
	* gcc.target/x86_64/abi/avx/test_passing_structs.c: Likewise.
	* gcc.target/x86_64/abi/avx/test_passing_unions.c: Likewise.

From-SVN: r144058
2009-02-10 06:00:46 -08:00
Benjamin Kosnik f7459b6c53 condition_variable (condition_variable): Remove _M_internal_mutex.
2009-02-09  Benjamin Kosnik  <bkoz@redhat.com>

	* include/std/condition_variable (condition_variable): Remove
	_M_internal_mutex. Add private __native_type typedef.
	* src/condition_variable.cc (condition_variable::notify_one):
	Remove _M_internal_mutex use. Use typedef.
	(condition_variable::notify_all): Same.
	* include/std/mutex (mutex): Add private __native_type typedef. Use it.
	(recursive_mutex): Same.
	(timed_mutex): Same.
	(recursive_timed_mutex): Same.
	(once_flag): Make __native_type typedef private.

	* include/std/thread (this_thread): Add minimal markup.

	* testsuite/30_threads/condition_variable_any/cons/assign_neg.cc:
	Adjust line numbers.
	* testsuite/30_threads/condition_variable_any/cons/copy_neg.cc: Same.
	* testsuite/30_threads/mutex/cons/assign_neg.cc: Same.
	* testsuite/30_threads/mutex/cons/copy_neg.cc: Same.
	* testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Same.
	* testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Same.
	* testsuite/30_threads/thread/cons/assign_neg.cc: Same.
	* testsuite/30_threads/thread/cons/copy_neg.cc: Same.
	* testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Same.
	* testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Same.
	* testsuite/30_threads/condition_variable/cons/assign_neg.cc: Same.
	* testsuite/30_threads/condition_variable/cons/copy_neg.cc: Same.
	* testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc: Same.
	* testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc: Same.

	* testsuite/util/thread/all.h: Testsuite utilities for testing thread.
	* testsuite/30_threads/condition_variable_any/native_handle/
	typesizes.cc: New.
	* testsuite/30_threads/mutex/native_handle/typesizes.cc: Same.
	* testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Same.
	* testsuite/30_threads/thread/native_handle/typesizes.cc: Same.
	* testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: Same.
	* testsuite/30_threads/condition_variable/native_handle/
	typesizes.cc: Same.
	* testsuite/30_threads/recursive_timed_mutex/native_handle/
	typesizes.cc: Same.

From-SVN: r144053
2009-02-10 08:29:57 +00:00
GCC Administrator 7314b35ac2 Daily bump.
From-SVN: r144050
2009-02-10 00:16:43 +00:00
Ben Elliston d4bacef026 rs6000.md (allocate_stack): Always use an update form instruction to update the stack back chain word...
* config/rs6000/rs6000.md (allocate_stack): Always use an update
	form instruction to update the stack back chain word, even if the
	user has disabled the generation of update instructions.
	(movdi_<mode>_update_stack): New.
	(movsi_update_stack): Likewise.
	* config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
	always use an update form instruction to update the stack back
	chain word.

From-SVN: r144047
2009-02-10 11:13:34 +11:00
Mark Mitchell 48965b7c6d addr2name.awk: Remove.
* addr2name.awk: Remove.
	* Makefile.am (bin_SCRIPTS): Remove addr2name.awk.
	* Makefile.in: Regenerated.

	* configure.ac: Define enable_sjlj_exceptions
	appropriately under the ARM EH ABI.
	* configure: Regenerated.

	* Makefile.am (LTLDFLAGS): Define.
	(GCJLINK): Use it.
	(LIBLINK): Likewise.
	* Makefile.in: Regenerated.

From-SVN: r144046
2009-02-09 22:52:08 +00:00
Mark Mitchell 71c8958e67 Makefile.am (LTLDFLAGS): New variable.
* Makefile.am (LTLDFLAGS): New variable.
	(LINK): Use it.
	* Makefile.in: Regenerated.

From-SVN: r144045
2009-02-09 22:51:40 +00:00
Jason Merrill 450a927a7a re PR c++/39109 (Accessible constructor required for new)
PR c++/39109
        * semantics.c (simplify_aggr_init_expr): Do zero-initialization here.
        * init.c (build_value_init): Not here. Don't build a TARGET_EXPR.
        * tree.c (get_target_expr): Handle AGGR_INIT_EXPR.
        * cp-gimplify.c (cp_gimplify_init_expr): Remove special handling
        for build_value_init TARGET_EXPR.
        * cp-tree.h (AGGR_INIT_ZERO_FIRST): New macro.

From-SVN: r144044
2009-02-09 16:46:18 -05:00
Jack Howarth 9a3b094ff2 re PR testsuite/33300 ([libstdc++-v3] 27_io/ios_base/storage/2.cc with -m64 kills Darwin)
2009-02-09  Jack Howarth  <howarth@bromo.med.uc.edu>

	PR testsuite/33300
	* libstdc++-v3/testsuite/27_io/ios_base/storage/2.cc: Skip
	on darwin for lp64.

From-SVN: r144043
2009-02-09 20:53:22 +00:00
Sebastian Pop 01d7d2f3e6 re PR tree-optimization/38953 ([graphite] loop closed SSA not maintained by graphite code generation)
2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/38953
	* graphite.c (if_region_set_false_region): After moving a region 
	in the false branch of a condition, remove the empty dummy basic block.
	(gloog): Remove wrong fix for PR38953.

From-SVN: r144042
2009-02-09 20:35:09 +00:00
Adam Nemet 8deecedf4c configure.host: Set abi_baseline_pair for mips64*-linux.
* configure.host: Set abi_baseline_pair for mips64*-linux.
	* config/abi/post/mips64-linux-gnu/baseline_symbols.txt: New file.

From-SVN: r144041
2009-02-09 20:24:08 +00:00
Eric Botcazou c37348963d decl.c (gnat_to_gnu_entity): Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
	Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
	(copy_alias_set): Assert that arrays have the same aliasing settings.
	(substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.

From-SVN: r144038
2009-02-09 18:34:20 +00:00
H.J. Lu 493905ba45 abi-x86_64.exp: Use glob instead of find.
2009-02-09  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.target/x86_64/abi/abi-x86_64.exp: Use glob instead of
	find.

From-SVN: r144036
2009-02-09 10:07:41 -08:00
Ulrich Weigand e41e2ab405 spu.c (array_to_constant): Fix (latent) wrong-code generation due to implicit sign extension.
* config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
	generation due to implicit sign extension.

From-SVN: r144034
2009-02-09 14:35:38 +00:00
Eric Botcazou 4bb07c5d37 re PR middle-end/38981 (internal compiler error)
PR middle-end/38981
	* tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
	at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.

From-SVN: r144032
2009-02-09 11:09:25 +00:00
Richard Guenther f060a26123 re PR tree-optimization/35202 (exp->expf transformation incorrect with -fmath-errno)
2009-02-09  Richard Guenther  <rguenther@suse.de>

	PR middle-end/35202
	* convert.c (convert_to_real): Disable (float)fn((double)x)
	to fnf(x) conversion if errno differences may occur and
	-fmath-errno is set.

From-SVN: r144030
2009-02-09 09:35:22 +00:00
Chris Fairles 4a50cd932f thread (this_thread::get_id): Inline.
2009-02-08  Chris Fairles  <cfairles@gcc.gnu.org>

        * include/std/thread (this_thread::get_id): Inline.

From-SVN: r144029
2009-02-09 06:32:12 +00:00
Eric Botcazou 7a4fbffcb2 revert: tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Make case self-contained.
Revert:

	* tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>:
	Make case self-contained.
	<ARRAY_REF>: Test TYPE_NONALIASED_COMPONENT flag.

From-SVN: r144028
2009-02-09 06:18:23 +00:00
GCC Administrator afbe166081 Daily bump.
From-SVN: r144026
2009-02-09 00:16:50 +00:00
Chris Fairles b47f0044ab thread (thread<>::thread(_Callable)): Explicitly use _Callable as template argument for _M_make_shared_data.
2009-02-08  Chris Fairles  <cfairles@gcc.gnu.org>

        * include/std/thread (thread<>::thread(_Callable)): Explicitly use
        _Callable as template argument for _M_make_shared_data.
        * testsuite/30_threads/thread/cons/6.cc: New.
        * testsuite/30_threads/thread/cons/7.cc: New.
        * testsuite/30_threads/thread/cons/8.cc: New.

From-SVN: r144023
2009-02-09 00:13:47 +00:00