Commit Graph

107032 Commits

Author SHA1 Message Date
Andreas Krebbel bc6ce33429 s390.c (s390_decompose_address): Reject non-literal pool references in UNSPEC_LTREL_OFFSET.
2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.c (s390_decompose_address): Reject non-literal
	pool references in UNSPEC_LTREL_OFFSET.

From-SVN: r170685
2011-03-04 20:47:11 +00:00
Nicola Pero 78a8b16bad In gcc/testsuite/: 2011-03-04 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/testsuite/:
2011-03-04  Nicola Pero  <nicola.pero@meta-innovation.com>

	* objc.dg/property/property-encoding-1.m: Tidied up testcase.
	* obj-c++.dg/property/property-encoding-1.mm: Likewise.

From-SVN: r170684
2011-03-04 19:09:34 +00:00
Janne Blomqvist 246a273017 PR 47802 Use builtins to check localtime_r return type
From-SVN: r170683
2011-03-04 21:07:49 +02:00
Jan Hubicka 87e7b310b3 re PR lto/47497 (SPEC CPU 2006 failed to link with LTO -fuse-linker-plugin -fwhole-program)
PR lto/47497
	* lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
	(lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
	* cgraph.h (cgraph_same_body_alias, cgraph_add_thunk): Add node pointers.
	* cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
	cgraph_add_thunk): Add node pointers.
	* lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
	associated to right node.
	(input_node): Update use of cgraph_same_body_alias
	and cgraph_add_thunk.

	* optimize.c (maybe_clone_body): Update call of cgraph_same_body_alias
	and cgraph_add_thunk.
	* method.c (make_alias_for_thunk, use_thunk): Likewise.
	* mangle.c (mangle_decl): Likewise.

From-SVN: r170682
2011-03-04 18:49:23 +00:00
Changpeng Fang d9c6424620 Introduce flag -mprefer-avx128 for the auto-vectorizer to generate only 128-bit avx insns.
* config/i386/i386.opt (mprefer-avx128): New flag.
	* config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit mode
	when the flag -mprefer-avx128 is on.

From-SVN: r170681
2011-03-04 17:56:39 +00:00
Janne Blomqvist 7a9d7a4f86 PR 47802 Hack to work around draft POSIX localtime_r
From-SVN: r170680
2011-03-04 19:52:10 +02:00
Janne Blomqvist d9d114ecd0 PR 47802 Update doc for CTIME and FDATE intrinsics
From-SVN: r170679
2011-03-04 19:37:11 +02:00
Nicola Pero f787ea5a40 In gcc/testsuite/: 2011-03-04 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/testsuite/:
2011-03-04  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc.dg/gnu-api-2-property.m: Added tests for property_getName()
        and property_getAttributes() if __OBJC2__.
        * obj-c++.dg/gnu-api-2-property.mm: Likewise.
        * objc.dg/property/property-encoding-1.m: New.
        * obj-c++.dg/property/property-encoding-1.mm: New.

From-SVN: r170678
2011-03-04 15:45:30 +00:00
Jason Merrill ad00b8db9a re PR c++/47971 (ICE: in tsubst_copy, at cp/pt.c:11725 on valid code)
PR c++/47971
	* pt.c (tsubst_copy_and_build) [PSEUDO_DTOR_EXPR]: Use tsubst for type.
	(tsubst_copy) [default]: Just return t if !ENABLE_CHECKING.

From-SVN: r170677
2011-03-04 10:18:07 -05:00
Jason Merrill 38ffa8289c re PR c++/46220 (Error: invalid covariant return type generated for incomplete class type and different qualifer)
PR c++/46220
	* search.c (check_final_overrider): Allow pointer to same incomplete
	class type with different cv-quals.

From-SVN: r170676
2011-03-04 10:17:55 -05:00
Richard Sandiford 087070764a dwarf2out.c (compare_loc_operands): Fix address handling.
gcc/
	* dwarf2out.c (compare_loc_operands): Fix address handling.

From-SVN: r170675
2011-03-04 14:19:19 +00:00
Alan Modra 52517c8121 tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
* tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.

From-SVN: r170674
2011-03-04 21:21:56 +10:30
Richard Guenther b147c5b92f re PR middle-end/47968 (ICE: in gen_lowpart_general, at rtlhooks.c:51 when converting vector of double to vector of float)
2011-03-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/47968
	* expmed.c (extract_bit_field_1): Prefer vector modes that
	vec_extract patterns can handle.

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

From-SVN: r170673
2011-03-04 10:31:33 +00:00
Richard Guenther 8750672fae re PR target/47975 (ICE: in expand_shift, at expmed.c:2299 when using 256b vectors without -mavx)
2011-03-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/47975
	* optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.

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

From-SVN: r170672
2011-03-04 10:27:10 +00:00
GCC Administrator d1ad70b2b0 Daily bump.
From-SVN: r170669
2011-03-04 00:18:28 +00:00
Richard Henderson 9eac0f2a07 explow.c (emit_stack_save): Remove 'after' parameter.
* explow.c (emit_stack_save): Remove 'after' parameter.
        (emit_stack_restore): Likewise.
        * expr.h: Update to match.
        * builtins.c, calls.c, stmt.c: Likewise.
        * config/alpha/alpha.md, config/avr/avr.md: Likewise.
        * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
        * function.c (expand_function_end): Insert the emit_stack_save
        sequence before parm_birth_insn instead of after.

From-SVN: r170663
2011-03-03 13:56:58 -08:00
Uros Bizjak dfee1406b9 sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
* config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
	(ssse3_pmaddubsw128): Ditto.
	(ssse3_pmaddubsw): Ditto.

From-SVN: r170661
2011-03-03 20:56:56 +01:00
Steve Ellcey f1d4c3de86 t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
2011-03-03  Steve Ellcey  <sje@cup.hp.com>

	* config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH

From-SVN: r170659
2011-03-03 18:57:35 +00:00
Paolo Carlini 5c62e6611d re PR c++/47974 (ICE: tree check: expected tree_vec, have error_mark in tsubst_template_args, at cp/pt.c:8969 on invalid code)
/cp
2011-03-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/47974
	* pt.c (tsubst_template_args): Check argument t for error_mark_node.

/testsuite
2011-03-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/47974
	* g++.dg/template/crash106.C: New.

From-SVN: r170658
2011-03-03 17:07:28 +00:00
Jason Merrill ff4bfb1056 re PR c++/47950 ([C++0x] Internal compiler error: non-dependent declaration as condition causes tsubst_copy_and_build assertion failure.)
PR c++/47950
	* pt.c (tsubst_copy_and_build) [TARGET_EXPR]: Retain TREE_CONSTANT.

From-SVN: r170656
2011-03-03 11:51:20 -05:00
Jakub Jelinek 423ed4163b re PR c/47963 (ICE: tree check: expected tree that contains 'decl common' structure, have 'integer_cst' in is_global_var, at tree-flow-inline.h:599 on invalid code with -fopenmp)
PR c/47963
	* gimplify.c (omp_add_variable): Only call omp_notice_variable
	on TYPE_SIZE_UNIT if it is a DECL.

	* gcc.dg/gomp/pr47963.c: New test.
	* g++.dg/gomp/pr47963.C: New test.

From-SVN: r170655
2011-03-03 17:09:55 +01:00
Jakub Jelinek 71f3a3f517 re PR debug/47283 (ICE in refs_may_alias_p_1, at tree-ssa-alias.c)
PR debug/47283
	* cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
	first operand is not is_gimple_mem_ref_addr, try to fold it.
	If the operand still isn't is_gimple_mem_ref_addr, clear
	MEM_EXPR on op0.

From-SVN: r170654
2011-03-03 17:06:33 +01:00
Richard Guenther 4b1a5c0ded re PR debug/47283 (ICE in refs_may_alias_p_1, at tree-ssa-alias.c)
2011-03-03  Richard Guenther  <rguenther@suse.de>

	PR middle-end/47283
	* tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
	match comment.
	(refs_may_alias_p_1): For release branches return true if
	we are confused by our input.

From-SVN: r170650
2011-03-03 12:10:40 +00:00
Andreas Krebbel b46616fda7 s390.c (s390_function_value): Rename to ...
2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.c (s390_function_value): Rename to ...
	(s390_function_and_libcall_value): ... this.
	(s390_function_value): New function.
	(s390_libcall_value): New function.
	(TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target
	hooks.
	* config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
	target macro definitions.
	* config/s390/s390-protos.h (s390_function_value): Remove prototype.

From-SVN: r170649
2011-03-03 12:08:21 +00:00
Ian Lance Taylor f7a10f0d78 Don't crash if erroneous type was not converted.
From-SVN: r170646
2011-03-03 06:50:32 +00:00
Ian Lance Taylor e2e280a3e5 Don't crash on large composite literal array index.
From-SVN: r170645
2011-03-03 06:40:50 +00:00
Ian Lance Taylor 5a34af783a Don't crash calling make with NaN or Infinity.
From-SVN: r170644
2011-03-03 06:18:55 +00:00
Ian Lance Taylor eba4ad892b Make sure variable type is determined when var initialized to var.
From-SVN: r170643
2011-03-03 04:28:25 +00:00
Ian Lance Taylor ba6413bd18 Don't crash getting type descriptor of abstract types.
From-SVN: r170642
2011-03-03 04:25:47 +00:00
Ralf Wildenhues 4d04d67a55 docs: fix typos and markup nits in Fortran manual.
gcc/fortran/:
	* invoke.texi (Option Summary, Fortran Dialect Options)
	(Preprocessing Options, Runtime Options, Code Gen Options):
	Fix vertical list spacing by using @itemx for additinoal
	items, empty line before @table.  Fix typos.

From-SVN: r170641
2011-03-03 04:14:29 +00:00
Ian Lance Taylor d5a7f1a768 Don't look for methods on named pointer types.
From-SVN: r170640
2011-03-03 03:31:17 +00:00
Jason Merrill 79d3d3f46c re PR c++/47950 ([C++0x] Internal compiler error: non-dependent declaration as condition causes tsubst_copy_and_build assertion failure.)
PR c++/47950
	* parser.c (cp_parser_condition): Don't fold_non_dependent_expr here.

From-SVN: r170639
2011-03-02 21:49:28 -05:00
Jason Merrill 262a7d6bc0 re PR c++/47774 ([C++0x] constexpr specifier on ctor not ignored when template instantiation causes ctor to not satify constexpr requirements)
PR c++/47774
	* tree.c (build_vec_init_elt): Split out from...
	(build_vec_init_expr): ...here.
	(diagnose_non_constexpr_vec_init): New fn.
	* semantics.c (potential_constant_expression_1): Use it.
	* cp-tree.h: Declare it.

From-SVN: r170638
2011-03-02 21:49:19 -05:00
Ian Lance Taylor 20532210cd Determine call types even if first call result is not used.
From-SVN: r170637
2011-03-03 02:08:28 +00:00
Ian Lance Taylor 4bb9014024 Don't crash declaring a function named "_".
From-SVN: r170636
2011-03-03 01:48:28 +00:00
Ian Lance Taylor 86620d2d5f Don't crash on erroneous void initializer in temporary statement.
From-SVN: r170635
2011-03-03 01:39:25 +00:00
Ian Lance Taylor deed202085 Fix type of discarded send expression.
From-SVN: r170634
2011-03-03 01:17:34 +00:00
Ian Lance Taylor b5ba6ad2d6 Don't crash on erroneous named result.
From-SVN: r170633
2011-03-03 00:54:42 +00:00
Ian Lance Taylor 8ca93ccfd2 Don't crash if a constant has a declared but undefined type.
From-SVN: r170632
2011-03-03 00:42:10 +00:00
GCC Administrator b58219c16d Daily bump.
From-SVN: r170631
2011-03-03 00:18:27 +00:00
Ian Lance Taylor 91349ecb12 Rewrite conversion of named types to backend representation.
From-SVN: r170627
2011-03-03 00:15:16 +00:00
Benjamin Kosnik f63f8a3c19 Makefile.am: Make clean fixups.
2011-03-02  Benjamin Kosnik  <bkoz@redhat.com>

        * testsuite/Makefile.am: Make clean fixups.
        * testsuite/Makefile.in: Regenerate.

From-SVN: r170626
2011-03-02 23:32:56 +00:00
Joseph Myers 46d8fabb20 freebsd64.h (CC1_SPEC): Define.
* config/i386/freebsd64.h (CC1_SPEC): Define.
	* config/i386/linux64.h (CC1_SPEC): Define.
	* config/i386/x86-64.h (CC1_SPEC): Don't define.

From-SVN: r170625
2011-03-02 22:35:36 +00:00
Anatoly Sokolov 6b1ce54540 stormy16.h (REGISTER_MOVE_COST, [...]): Remove.
* config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
	Remove.
	* config/stormy16/stormy16.c: Include reload.h.
	(xstormy16_memory_move_cost): New function.
	(TARGET_MEMORY_MOVE_COST): Define.

From-SVN: r170623
2011-03-03 00:36:02 +03:00
Jason Merrill f8221c67ba re PR c++/46159 (Bogus warning about lambdas)
PR c++/46159
	* parser.c (cp_parser_primary_expression): Don't warn about a
	failed tentative parse.

From-SVN: r170621
2011-03-02 13:18:41 -05:00
Jason Merrill c6f54c7aa7 re PR c++/47200 ([C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5821 with missing definition of constexpr function)
PR c++/47200
	* semantics.c (cxx_bind_parameters_in_call): Don't call
	adjust_temp_type on non-constant args.

From-SVN: r170620
2011-03-02 13:18:31 -05:00
Sebastian Pop f158c8d0ed Fix configure problem.
2011-03-02  Sebastian Pop  <sebastian.pop@amd.com>

	* configure.ac: Adjust test of with_ppl.
	* configure: Regenerated.

From-SVN: r170618
2011-03-02 15:18:47 +00:00
Marc Glisse a7443a2dd6 ratio (ratio_less): Add comments.
2011-03-02  Marc Glisse  <marc.glisse@normalesup.org>

	* include/std/ratio (ratio_less): Add comments.

From-SVN: r170617
2011-03-02 15:06:00 +00:00
Marc Glisse 8fddbce4ab re PR libstdc++/47913 ([C++0x] improve ratio_add to overflow less often)
2011-03-02  Marc Glisse  <marc.glisse@normalesup.org>

	PR libstdc++/47913
	* include/std/ratio (ratio_add): Avoid denominator overflow.
	* testsuite/20_util/ratio/operations/47913.cc: New.

From-SVN: r170616
2011-03-02 14:57:57 +00:00
Richard Sandiford 34161e98f7 re PR rtl-optimization/47925 (delete_trivially_dead_insns mishandles volatile mems)
gcc/
	PR rtl-optimization/47925
	* cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
	with side effects.  Remove the more-specific check for volatile asms.

gcc/testsuite/
	PR rtl-optimization/47925
	* gcc.c-torture/execute/pr47925.c: New test.

From-SVN: r170613
2011-03-02 13:25:10 +00:00