Commit Graph

128382 Commits

Author SHA1 Message Date
GCC Administrator
cd7734ca9e Daily bump.
From-SVN: r207796
2014-02-15 00:17:04 +00:00
Jeff Law
059742a47f re PR rtl-optimization/60131 (RTL check fail in rhs_regno)
PR rtl-optimization/60131
	* ree.c (get_extended_src_reg): New function.
	(combine_reaching_defs): Use it rather than assuming location
	of REG.
	(find_and_remove_re): Verify first operand of extension is
	a REG before adding the insns to the copy list.

	PR rtl-optimization/60131
	* g++.dg/torture/pr60131.C: New test.

From-SVN: r207792
2014-02-14 13:26:31 -07:00
Roland McGrath
88f7c49a8b Use ud2 assembly mnemonic when available.
gcc/
	* configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
	* configure: Regenerated.
	* config.in: Regenerated.
	* config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
	instead of ASM_SHORT.

From-SVN: r207789
2014-02-14 17:37:23 +00:00
Ian Bolton
f8cdff388d Skip test if -mfloat-abi=hard specified
From-SVN: r207788
2014-02-14 17:20:46 +00:00
Vladimir Makarov
2ae577fdbd re PR rtl-optimization/59535 (-Os code size regressions for Thumb1/Thumb2 with LRA)
2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
	    Richard Earnshaw  <rearnsha@arm.com>

	PR rtl-optimization/59535
	* lra-constraints.c (process_alt_operands): Encourage alternative
	when unassigned pseudo class is superset of the alternative class.
	(inherit_reload_reg): Don't inherit when optimizing for code size.
	* config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
	returning CORE_REGS for anything but Thumb1 and BASE_REGS for
	modes not less than 4 for Thumb1.


Co-Authored-By: Richard Earnshaw <rearnsha@arm.com>

From-SVN: r207787
2014-02-14 16:18:29 +00:00
Bernd Edlinger
efdf3f4df5 overflow-negate-2.c (main): Use signed char.
2014-02-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * c-c++-common/ubsan/overflow-negate-2.c (main): Use signed char.

From-SVN: r207786
2014-02-14 14:25:56 +00:00
Kyle McMartin
5d88af08e6 re PR pch/60010 (AArch64: sigsegv in cc1plus using pch without defining TRY_EMPTY_VM_SPACE)
PR pch/60010
2014-02-14  Kyle McMartin  <kyle@redhat.com>

	* config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.

From-SVN: r207785
2014-02-14 14:14:03 +00:00
Richard Biener
3069b4210a cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
2014-02-14  Richard Biener  <rguenther@suse.de>

	* cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
	(get_frame_arg): Drop the assert with langhook types_compatible_p.
	Do not strip INDIRECT_REFs.

From-SVN: r207784
2014-02-14 14:07:30 +00:00
Richard Biener
1966fd99d8 re PR target/60179 (target optimization attribute streaming is broken)
2014-02-14  Richard Biener  <rguenther@suse.de>

	PR lto/60179
	* lto-streamer-out.c (DFS_write_tree_body): Do not follow
	DECL_FUNCTION_SPECIFIC_TARGET.
	(hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
	* tree-streamer-out.c (pack_ts_target_option): Remove.
	(streamer_pack_tree_bitfields): Do not stream
	TS_TARGET_OPTION.
	(write_ts_function_decl_tree_pointers): Do not stream
	DECL_FUNCTION_SPECIFIC_TARGET.
	* tree-streamer-in.c (unpack_ts_target_option): Remove.
	(unpack_value_fields): Do not stream TS_TARGET_OPTION.
	(lto_input_ts_function_decl_tree_pointers): Do not stream
	DECL_FUNCTION_SPECIFIC_TARGET.

	lto/
	* lto.c (compare_tree_sccs_1): Do not compare
	DECL_FUNCTION_SPECIFIC_TARGET.
	(lto_read_decls): Re-build DECL_FUNCTION_SPECIFIC_TARGET.

From-SVN: r207783
2014-02-14 12:03:43 +00:00
Jakub Jelinek
b010d60175 tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
* tree-vect-loop.c (vect_is_slp_reduction): Don't set
	use_stmt twice.
	(get_initial_def_for_induction, vectorizable_induction): Ignore
	debug stmts when looking for exit_phi.
	(vectorizable_live_operation): Fix up condition.

	* gcc.c-torture/compile/20140213.c: New test.

From-SVN: r207778
2014-02-14 08:31:23 +01:00
Chung-Ju Wu
f2dafb914e nds32.c (nds32_asm_function_prologue): Do not use nreverse() because it changes the content of original tree list.
2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>

	* config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
	nreverse() because it changes the content of original tree list.

From-SVN: r207777
2014-02-14 06:02:16 +00:00
Chung-Ju Wu
59043e7595 t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>

	* config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
	* config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.

From-SVN: r207775
2014-02-14 05:01:31 +00:00
Chung-Ju Wu
810f736f0c nds32.c (nds32_naked_function_p): Follow the GNU coding standards.
2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>

	* config/nds32/nds32.c (nds32_naked_function_p): Follow the
	GNU coding standards.

From-SVN: r207774
2014-02-14 04:45:56 +00:00
GCC Administrator
c689273266 Daily bump.
From-SVN: r207773
2014-02-14 00:16:55 +00:00
Jakub Jelinek
1a025bbfa0 re PR debug/60152 (multiple AT_calling_convention attributes generated after r205679)
PR debug/60152
	* dwarf2out.c (gen_subprogram_die): Don't call
	add_calling_convention_attribute if subr_die is old_die.

From-SVN: r207770
2014-02-13 23:42:44 +01:00
Sharad Singhai
69479ebda8 optinfo.texi: Fix order of nodes.
2014-02-13  Sharad Singhai  <singhai@google.com>

	* doc/optinfo.texi: Fix order of nodes.

From-SVN: r207767
2014-02-13 21:43:53 +00:00
Uros Bizjak
1287ae503e sse.md (xop_vmfrcz<mode>2): Generate const0 in operands[2], not operands[3].
* config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
	operands[2], not operands[3].

From-SVN: r207764
2014-02-13 17:47:35 +01:00
Eric Botcazou
30255340f6 re PR libffi/60073 (64-bit libffi.call/cls_double_va.c FAILs after recent modification)
PR libffi/60073
	* src/sparc/ffitarget.h (FFI_TARGET_SPECIFIC_VARIADIC): Define.
	(FFI_EXTRA_CIF_FIELDS): Likewise.
	(FFI_NATIVE_RAW_API): Move around.
	* src/sparc/ffi.c (ffi_prep_cif_machdep_core): New function from...
	(ffi_prep_cif_machdep): ...here.  Call ffi_prep_cif_machdep_core.
	(ffi_prep_cif_machdep_var): New function.
	(ffi_closure_sparc_inner_v9): Do not pass anonymous FP arguments in
	FP registers.
	* doc/libffi.texi (Introduction): Fix inaccuracy.

From-SVN: r207763
2014-02-13 16:18:13 +00:00
Richard Biener
662dae0db0 download_prerequisites: Update ISL and CLOOG versions.
2014-02-13  Richard Biener  <rguenther@suse.de>

	* download_prerequisites: Update ISL and CLOOG versions.

From-SVN: r207759
2014-02-13 14:06:48 +00:00
Richard Biener
4337223623 re PR bootstrap/59878 (ISL from cloog does not work with trunk)
2014-02-13  Richard Biener  <rguenther@suse.de>

	PR bootstrap/59878
	* doc/install.texi (ISL): Update recommended version to 0.12.2,
	mention the possibility of an in-tree build.
	(CLooG): Update recommended version to 0.18.1, mention the
	possibility of an in-tree build and clarify that the ISL
	bundled with CLooG does not work.

From-SVN: r207758
2014-02-13 13:35:10 +00:00
Jakub Jelinek
a4d70cfae3 re PR target/43546 (ICE: in assign_stack_local_1, at function.c:353 with -mpreferred-stack-boundary=2 -msseregparm)
PR target/43546
	* expr.c (compress_float_constant): If x is a hard register,
	extend into a pseudo and then move to x.

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

From-SVN: r207757
2014-02-13 14:20:06 +01:00
Dominik Vogt
e697d1191c s390.c (s390_asm_output_function_label): Fix crash caused by bad second argument to warning_at() with -mhotpatch and...
2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>

	* config/s390/s390.c (s390_asm_output_function_label): Fix crash
	caused by bad second argument to warning_at() with -mhotpatch and
	nested functions (e.g. with gfortran).

2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>

	* gcc.target/s390/hotpatch-compile-8.c: New test.

From-SVN: r207753
2014-02-13 12:38:52 +00:00
Richard Sandiford
37eb01c282 pr59605.c: Convert to a compile test.
gcc/testsuite/
	* gcc.dg/pr59605.c: Convert to a compile test.  Protect MAX_COPY
	definition with an ifndef.
	* gcc.dg/pr59605-2.c: New test.

From-SVN: r207748
2014-02-13 09:22:26 +00:00
Richard Sandiford
9f8da9073b opts.c (option_name): Remove "enabled by default" rider.
gcc/
	* opts.c (option_name): Remove "enabled by default" rider.

gcc/testsuite/
	* gcc.dg/gomp/simd-clones-5.c: Update comment for new warning message.

From-SVN: r207747
2014-02-13 09:22:04 +00:00
GCC Administrator
1de01e3ebf Daily bump.
From-SVN: r207746
2014-02-13 00:16:47 +00:00
John David Anglin
0fdd1196f7 pa.c (pa_option_override): Remove auto increment FIXME.
* config/pa/pa.c (pa_option_override): Remove auto increment FIXME.

From-SVN: r207743
2014-02-12 23:28:24 +00:00
Joseph Myers
9acf28f153 float128-mul-underflow.c, [...]: New tests.
gcc/testsuite:
	* gcc.dg/torture/float128-mul-underflow.c,
	gcc.dg/torture/float128-truncdf-underflow.c,
	gcc.dg/torture/float128-truncsf-underflow.c: New tests.

libgcc:
	* soft-fp/adddf3.c: Update from glibc.
	* soft-fp/addsf3.c: Likewise.
	* soft-fp/addtf3.c: Likewise.
	* soft-fp/divdf3.c: Likewise.
	* soft-fp/divsf3.c: Likewise.
	* soft-fp/divtf3.c: Likewise.
	* soft-fp/double.h: Likewise.
	* soft-fp/eqdf2.c: Likewise.
	* soft-fp/eqsf2.c: Likewise.
	* soft-fp/eqtf2.c: Likewise.
	* soft-fp/extenddftf2.c: Likewise.
	* soft-fp/extended.h: Likewise.
	* soft-fp/extendsfdf2.c: Likewise.
	* soft-fp/extendsftf2.c: Likewise.
	* soft-fp/extendxftf2.c: Likewise.
	* soft-fp/fixdfdi.c: Likewise.
	* soft-fp/fixdfsi.c: Likewise.
	* soft-fp/fixdfti.c: Likewise.
	* soft-fp/fixsfdi.c: Likewise.
	* soft-fp/fixsfsi.c: Likewise.
	* soft-fp/fixsfti.c: Likewise.
	* soft-fp/fixtfdi.c: Likewise.
	* soft-fp/fixtfsi.c: Likewise.
	* soft-fp/fixtfti.c: Likewise.
	* soft-fp/fixunsdfdi.c: Likewise.
	* soft-fp/fixunsdfsi.c: Likewise.
	* soft-fp/fixunsdfti.c: Likewise.
	* soft-fp/fixunssfdi.c: Likewise.
	* soft-fp/fixunssfsi.c: Likewise.
	* soft-fp/fixunssfti.c: Likewise.
	* soft-fp/fixunstfdi.c: Likewise.
	* soft-fp/fixunstfsi.c: Likewise.
	* soft-fp/fixunstfti.c: Likewise.
	* soft-fp/floatdidf.c: Likewise.
	* soft-fp/floatdisf.c: Likewise.
	* soft-fp/floatditf.c: Likewise.
	* soft-fp/floatsidf.c: Likewise.
	* soft-fp/floatsisf.c: Likewise.
	* soft-fp/floatsitf.c: Likewise.
	* soft-fp/floattidf.c: Likewise.
	* soft-fp/floattisf.c: Likewise.
	* soft-fp/floattitf.c: Likewise.
	* soft-fp/floatundidf.c: Likewise.
	* soft-fp/floatundisf.c: Likewise.
	* soft-fp/floatunditf.c: Likewise.
	* soft-fp/floatunsidf.c: Likewise.
	* soft-fp/floatunsisf.c: Likewise.
	* soft-fp/floatunsitf.c: Likewise.
	* soft-fp/floatuntidf.c: Likewise.
	* soft-fp/floatuntisf.c: Likewise.
	* soft-fp/floatuntitf.c: Likewise.
	* soft-fp/gedf2.c: Likewise.
	* soft-fp/gesf2.c: Likewise.
	* soft-fp/getf2.c: Likewise.
	* soft-fp/ledf2.c: Likewise.
	* soft-fp/lesf2.c: Likewise.
	* soft-fp/letf2.c: Likewise.
	* soft-fp/muldf3.c: Likewise.
	* soft-fp/mulsf3.c: Likewise.
	* soft-fp/multf3.c: Likewise.
	* soft-fp/negdf2.c: Likewise.
	* soft-fp/negsf2.c: Likewise.
	* soft-fp/negtf2.c: Likewise.
	* soft-fp/op-1.h: Likewise.
	* soft-fp/op-2.h: Likewise.
	* soft-fp/op-4.h: Likewise.
	* soft-fp/op-8.h: Likewise.
	* soft-fp/op-common.h: Likewise.
	* soft-fp/quad.h: Likewise.
	* soft-fp/single.h: Likewise.
	* soft-fp/soft-fp.h: Likewise.
	* soft-fp/subdf3.c: Likewise.
	* soft-fp/subsf3.c: Likewise.
	* soft-fp/subtf3.c: Likewise.
	* soft-fp/truncdfsf2.c: Likewise.
	* soft-fp/trunctfdf2.c: Likewise.
	* soft-fp/trunctfsf2.c: Likewise.
	* soft-fp/trunctfxf2.c: Likewise.
	* soft-fp/unorddf2.c: Likewise.
	* soft-fp/unordsf2.c: Likewise.
	* soft-fp/unordtf2.c: Likewise.
	* config/aarch64/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING): New
	macro.
	* config/arm/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.
	* config/c6x/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.
	* config/cris/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.
	* config/i386/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.
	* config/ia64/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.
	* config/lm32/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.
	* config/mips/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.
	* config/moxie/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.
	* config/nds32/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.
	* config/nios2/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.
	* config/rs6000/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.
	* config/score/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.
	* config/tilegx/sfp-machine32.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.
	* config/tilegx/sfp-machine64.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.
	* config/tilepro/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
	Likewise.

From-SVN: r207742
2014-02-12 23:24:49 +00:00
Jakub Jelinek
f494a60736 re PR middle-end/59737 (ice from optimize_inline_calls)
PR middle-end/59737
	* g++.dg/ipa/pr59737.C: New test.

From-SVN: r207735
2014-02-12 17:55:51 +01:00
H.J. Lu
0544c44869 Pass --32 to GNU assembler for .long foo@GOTOFF check
PR target/60151
	* configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU
	assembler.
	* configure: Regenerated.

Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>

From-SVN: r207731
2014-02-12 08:12:36 -08:00
H.J. Lu
8a17013438 Compile g++.dg/opt/pr52727.C with -march=i686 for ia32
* g++.dg/opt/pr52727.C: Compile with -march=i686 for ia32.

From-SVN: r207730
2014-02-12 08:02:45 -08:00
Richard Biener
3a938d756b vec.c (vec_prefix::calculate_allocation): Move as inline variant to vec.h.
2014-02-12  Richard Biener  <rguenther@suse.de>

	* vec.c (vec_prefix::calculate_allocation): Move as
	inline variant to vec.h.
	(vec_prefix::calculate_allocation_1): New out-of-line version.
	* vec.h (vec_prefix::calculate_allocation_1): Declare.
	(vec_prefix::m_has_auto_buf): Rename to ...
	(vec_prefix::m_using_auto_storage): ... this.
	(vec_prefix::calculate_allocation): Inline the easy cases
	and dispatch to calculate_allocation_1 which doesn't need the
	prefix address.
	(va_heap::reserve): Use gcc_checking_assert.
	(vec<T, A, vl_embed>::embedded_init): Add argument to initialize
	m_using_auto_storage.
	(auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
	member and adjust.
	(vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
	(vec<T, va_heap, vl_ptr>::release): Avoid casting.
	(vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.

From-SVN: r207729
2014-02-12 16:01:03 +00:00
Richard Biener
ad0188be21 gcse.c (compute_transp): break from loop over canon_modify_mem_list when we found a dependence.
2014-02-12  Richard Biener  <rguenther@suse.de>

	* gcse.c (compute_transp): break from loop over canon_modify_mem_list
	when we found a dependence.

From-SVN: r207726
2014-02-12 14:50:06 +00:00
Thomas Schwinge
77d8d4eb66 Fix typo in dg-error invocation.
gcc/testsuite/
	* c-c++-common/raw-string-3.c: Fix typo in dg-error invocation.

From-SVN: r207725
2014-02-12 15:46:41 +01:00
Thomas Schwinge
88ac13da93 Refactor common code into new maybe_fold_stmt function.
gcc/
	* gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
	common code...
	(maybe_fold_stmt): ... into this new function.
	* omp-low.c (lower_omp): Update comment.

From-SVN: r207724
2014-02-12 15:46:30 +01:00
Thomas Schwinge
bae729a29f Add clobber for object, after last use.
gcc/
	* omp-low.c (lower_omp_target): Add clobber for sizes array, after
	last use.

From-SVN: r207723
2014-02-12 15:46:19 +01:00
Thomas Schwinge
64e5ace535 Fix potential ICE (null pointer dereference) in omp-low.c:diagnose_sb_0.
gcc/
	* omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
	dereference.
	gcc/testsuite/
	* gcc.dg/cilk-plus/jump-openmp.c: New file.

From-SVN: r207722
2014-02-12 15:46:08 +01:00
James Greenhalgh
7b40f5cf04 [ARM] [Churn] Comments on cost tables should have lower-case identifiers.
* config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
	identifiers in comments.
	(cortexa53_extra_costs): Likewise.
	* config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in
	comments.
	(cortexa7_extra_costs): Likewise.
	(cortexa12_extra_costs): Likewise.
	(cortexa15_extra_costs): Likewise.
	(v7m_extra_costs): Likewise.

From-SVN: r207721
2014-02-12 13:52:02 +00:00
Richard Biener
c4c8514e0d re PR middle-end/60092 (posix_memalign not recognized to derive alias and alignment info)
2014-02-12  Richard Biener  <rguenther@suse.de>

	PR middle-end/60092
	* gimple-low.c (lower_builtin_posix_memalign): Lower conditional
	of posix_memalign being successful.
	(lower_stmt): Restrict lowering of posix_memalign to when
	-ftree-bit-ccp is enabled.

	* gcc.dg/torture/pr60092.c: New testcase.
	* gcc.dg/tree-ssa/alias-31.c: Disable SRA.

From-SVN: r207720
2014-02-12 13:36:08 +00:00
Senthil Kumar Selvaraj
8eb651bd31 avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for arg_loc.
* config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for arg_loc.
	* config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.

From-SVN: r207718
2014-02-12 10:39:57 +00:00
Eric Botcazou
491bdba30e re PR rtl-optimization/60116 (wrong code at -Os on x86_64-linux-gnu in 32-bit mode)
PR rtl-optimization/60116
	* combine.c (try_combine): Fix oversight in previous change.

From-SVN: r207716
2014-02-12 10:16:34 +00:00
Richard Biener
283416b3fb re PR fortran/60060 (lto1: internal compiler error: in add_AT_specification, at dwarf2out.c:4096)
2014-02-12  Richard Biener  <rguenther@suse.de>

	PR lto/60060
	* lto-lang.c (lto_write_globals): Do not call
	wrapup_global_declarations or emit_debug_global_declarations
	but emit debug info for non-function scope variables
	directly.

From-SVN: r207715
2014-02-12 09:01:30 +00:00
Eric Botcazou
62b0355332 re PR rtl-optimization/60116 (wrong code at -Os on x86_64-linux-gnu in 32-bit mode)
PR rtl-optimization/60116
	* combine.c (try_combine): Also remove dangling REG_DEAD notes on the
	other_insn once the combination has been validated.

From-SVN: r207713
2014-02-12 08:49:55 +00:00
Paolo Carlini
6cfbc02310 re PR c++/60047 (ICE with defaulted copy constructor and virtual base class)
/cp
2014-02-12  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60047
	* method.c (implicitly_declare_fn): A constructor of a class with
	virtual base classes isn't constexpr (7.1.5p4).

/testsuite
2014-02-12  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60047
	* g++.dg/cpp0x/pr60047.C: New.

From-SVN: r207712
2014-02-12 08:45:46 +00:00
Jakub Jelinek
c2bf53a1ac re PR c/60101 (Long compile times when mixed complex floating point datatypes are used in lengthy expressions)
PR c/60101
	* c-common.c (merge_tlist): If copy is true, call new_tlist,
	if false, add ADD itself, rather than vice versa.
	(verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
	copy.  For SAVE_EXPR, only call merge_tlist once.

	* c-c++-common/pr60101.c: New test.

From-SVN: r207711
2014-02-12 08:35:50 +01:00
GCC Administrator
87667d8b6e Daily bump.
From-SVN: r207706
2014-02-12 00:16:54 +00:00
Jan Hubicka
ec77d61fe3 re PR lto/59468 (ICE on invalid C++ code with LTO in gimple_get_virt_method_for_binfo, at gimple-fold.c:3224)
PR lto/59468
	* ipa-utils.h (possible_polymorphic_call_targets): Update prototype
	and wrapper.
	* ipa-devirt.c: Include demangle.h
	(odr_violation_reported): New static variable.
	(add_type_duplicate): Update odr_violations.
	(maybe_record_node): Add completep parameter; update it.
	(record_target_from_binfo): Add COMPLETEP parameter;
	update it as needed.
	(possible_polymorphic_call_targets_1): Likewise.
	(struct polymorphic_call_target_d): Add nonconstruction_targets;
	rename FINAL to COMPLETE.
	(record_targets_from_bases): Sanity check we found the binfo;
	fix COMPLETEP updating.
	(possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
	parameter, fix computing of COMPLETEP.
	(dump_possible_polymorphic_call_targets): Imrove readability of dump; at
	LTO time do demangling.
	(ipa_devirt): Use nonconstruction_targets; Improve dumps.
	* gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
	parameter.
	(gimple_get_virt_method_for_binfo): Likewise.
	* gimple-fold.h (gimple_get_virt_method_for_binfo,
	gimple_get_virt_method_for_vtable): Update prototypes.

	PR lto/59468
	* g++.dg/ipa/devirt-27.C: New testcase.
	* g++.dg/ipa/devirt-26.C: New testcase.

From-SVN: r207702
2014-02-11 22:54:21 +00:00
Vladimir Makarov
5a4dcd9bd9 re PR target/49008 (A typo code found in genautomata.c)
2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>

	PR target/49008
	* genautomata.c (add_presence_absence): Fix typo with
	{final_}presence_list.

From-SVN: r207701
2014-02-11 22:00:04 +00:00
Michael Meissner
69b7afeda5 re PR target/60137 (Code fails with -mcpu=power8 -O3 -mno-vsx)
[gcc]
2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/60137
	* config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
	for VSX/Altivec vectors that land in GPR registers.

[gcc/testsuite]
2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/60137
	* gcc.target/powerpc/pr60137.c: New file.

From-SVN: r207699
2014-02-11 21:05:35 +00:00
Jakub Jelinek
879287d96b re PR fortran/52370 (Spurious "may be used uninitialized" warning for check of optional argument)
PR fortran/52370
	* trans-decl.c (gfc_build_dummy_array_decl): Set TREE_NO_WARNING
	on decl if sym->attr.optional.

	* gfortran.dg/pr52370.f90: New test.

From-SVN: r207698
2014-02-11 21:48:26 +01:00
Uros Bizjak
fe89bba406 re PR target/59927 (ICE sorry, unimplemented: ms_abi attribute requires -maccumulate-outgoing-args or subtarget optimization implying it)
PR target/59927
	Revert
	2013-12-15  Uros Bizjak  <ubizjak@gmail.com>

	PR testsuite/58630
	* gcc.target/i386/pr43662.c (dg-options):
	Add -maccumulate-outgoing-args.
	* gcc.target/i386/pr43869.c (dg-options): Ditto.
	* gcc.target/i386/pr57003.c (dg-options): Ditto.
	* gcc.target/i386/avx-vzeroupper-16.c (dg-options):
	Remove -mtune=generic and add -maccumulate-outgoing-args instead.
	* gcc.target/i386/avx-vzeroupper-17.c (dg-options): Ditto.
	* gcc.target/i386/avx-vzeroupper-18.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/func-1.c (dg-options):
	Add -maccumulate-outgoing-args.
	* gcc.target/x86_64/abi/callabi/func-2a.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/func-2b.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/func-indirect.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/func-indirect-2a.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/func-indirect-2b.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/leaf-1.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/leaf-2.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/pr38891.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/vaarg-1.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/vaarg-2.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/vaarg-3.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/vaarg-4a.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/vaarg-4b.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/vaarg-5a.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/vaarg-5b.c (dg-options): Ditto.

From-SVN: r207697
2014-02-11 19:59:24 +01:00