Commit Graph

135649 Commits

Author SHA1 Message Date
Philipp Tomsich c61fcfa602 MAINTAINERS: (Write After Approval): Add myself.
2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>

        * MAINTAINERS: (Write After Approval): Add myself.

From-SVN: r219653
2015-01-15 13:18:53 +00:00
Jakub Jelinek e54bd4ab15 gengtype.c (create_user_defined_type): Workaround -Wmaybe-uninitialized false positives.
* gengtype.c (create_user_defined_type): Workaround
	-Wmaybe-uninitialized false positives.
	* cse.c (fold_rtx): Likewise.
	* loop-invariant.c (gain_for_invariant): Likewise.

From-SVN: r219652
2015-01-15 14:08:44 +01:00
Richard Biener 928923e765 re PR middle-end/64415 (ICE: verify_ssa failed / segmentation fault with LTO)
2015-01-15  Richard Biener  <rguenther@suse.de>

	PR lto/64415
	* gcc.dg/lto/pr64415_0.c: Re-enable for darwin with
	-Wl,-undefined,dynamic_lookup.

From-SVN: r219651
2015-01-15 12:18:33 +00:00
Eric Botcazou 4c113f8789 Fix oversight in previous commit
From-SVN: r219649
2015-01-15 11:59:51 +00:00
Eric Botcazou 3aabdc00d0 expr.c (expand_expr_real_1): Use the expression to set the memory attributes in all cases but clear MEM_EXPR...
* expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
	set the memory attributes in all cases but clear MEM_EXPR if need be.

From-SVN: r219648
2015-01-15 11:55:37 +00:00
Richard Biener 04d8b4dcbf re PR middle-end/64415 (ICE: verify_ssa failed / segmentation fault with LTO)
2015-01-15  Richard Biener  <rguenther@suse.de>

	PR lto/64415
	* gcc.dg/lto/pr64415_0.c: Skip on darwin.

From-SVN: r219647
2015-01-15 11:42:26 +00:00
Yuri Rumyantsev d2626c0b69 re PR tree-optimization/64434 (Performance regression after operand canonicalization (r216728).)
gcc/

	PR tree-optimization/64434
	* cfgexpand.c (reorder_operands): New function.
	(expand_gimple_basic_block): Insert call of reorder_operands if
	optimized is true.

gcc/testsuite/

	PR tree-optimization/64434
	* gcc.dg/torture/pr64434.c: New test.

From-SVN: r219646
2015-01-15 11:39:20 +00:00
Matthew Fortune 3387e6141e Ensure options incompatible with micromips imply -mno-micromips
gcc/testsuite/

	* gcc.target/mips/mips.exp (mips-dg-options): -mips3d requires
	-mno-micromips.  MIPS32R1 and below require -mno-micromips.
	-march=loongson* and -march=octeon* require -mno-micromips.

From-SVN: r219641
2015-01-15 11:20:22 +00:00
Andrew Bennett 63ecaca0c0 Update the call-saved tests for micromips output
gcc/testsuite/

	* gcc.target/mips/call-saved-4.c (foo): Add NOCOMPRESSION.
	* gcc.target/mips/call-saved-5.c (foo): Likewise.
	* gcc.target/mips/call-saved-6.c (foo): Likewise.
	* gcc.target/mips/call-saved-7.c: New file.
	* gcc.target/mips/call-saved-8.c: New file.
	* gcc.target/mips/call-saved-9.c: New file.

Co-Authored-By: Matthew Fortune <matthew.fortune@imgtec.com>

From-SVN: r219640
2015-01-15 11:20:12 +00:00
Matthew Fortune 2c3bcf47f2 [MIPS] Remove all excess parallel constructs
gcc/

	* config/mips/micromips.md (*swp): Remove explicit parallel.
	(jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
	* config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
	(mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
	(mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
	(mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
	(mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
	(mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
	(mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
	(mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
	(mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
	(mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
	(mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
	(mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
	(mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
	(mips_wrdsp): Likewise.
	* config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
	parallel.
	(mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
	(mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
	(mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
	(mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
	(mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
	(mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
	* config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
	(ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
	(ssmaddsqdq4, ssmsubsqdq4): Likewise.

From-SVN: r219639
2015-01-15 11:00:18 +00:00
Matthew Fortune 954bdd5881 Add support for the R6 LSA and DLSA instructions
gcc/

	* config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
	(mips_print_operand): Support 'y' to print exact log2 in decimal
	of a const_int.
	* config/mips/mips.h (ISA_HAS_LSA): New define.
	(ISA_HAS_DLSA): Likewise.
	* config/mips/mips.md (<GPR:d>lsa): New define_insn.
	* config/mips/predicates.md (const_immlsa_operand): New predicate.

gcc/testsuite/

	* gcc.target/mips/lsa.c: New file.
	* gcc.target/mips/mips64-lsa.c: Likewise.
	* gcc.target/mips/mulsize-2.c: Require !HAS_LSA.
	* gcc.target/mips/mulsize-4.c: Likewise.
	* gcc.target/mips/mulsize-5.c: New file.
	* gcc.target/mips/mulsize-6.c: Likewise.
	* gcc.target/mips/mips.exp (mips_option_groups): Support HAS_LSA
	and !HAS_LSA as ghost options.
	(mips-dg-options): Require rev 6 for HAS_LSA. Downgrade to rev 5
	for !HAS_LSA.

From-SVN: r219638
2015-01-15 10:44:57 +00:00
Matthew Wahab 953bcfa6c8 Fix oversized bitfield warning.
testsuite/
2015-01-15  Matthew Wahab  <matthew.wahab@arm.com>

	* g++.dg/torture/20141013.C: Set -fno-short-enums.

From-SVN: r219637
2015-01-15 10:15:50 +00:00
Martin Liska 5e306f6ed5 Target optimization nodes: add support for arrays.
PR target/64377
	* optc-save-gen.awk: Add support for array types.

From-SVN: r219636
2015-01-15 09:53:55 +00:00
Richard Biener d679e96bbe re PR tree-optimization/64365 (Predictive commoning after loop vectorization produces incorrect code.)
2015-01-15  Richard Biener  <rguenther@suse.de>

	PR middle-end/64365
	* tree-data-ref.c (dr_analyze_indices): Make sure that accesses
	for MEM_REF access functions with the same base can never partially
	overlap.

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

From-SVN: r219634
2015-01-15 08:41:08 +00:00
Marcos Diaz 5434dc0730 common.opt: New option -fstack-protector-explicit.
2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>

	* common.opt: New option -fstack-protector-explicit.
	* cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
	(stack_protect_decl_phase): Handle stack_protect attribute for
	explicit stack protection requests.
	(expand_used_vars): Similarly.
	* doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
	* doc/extend.texi: Add documentation for "stack_protect" attribute.
	* doc/invoke.texi: Add documentation for -fstack-protector-explicit.

	* c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
	for the new option fstack-protector_explicit.
	* c-common.c (c_common_attribute_table): Add stack_protect attribute.
	(handle_stack_protect_attribute): New function.

	* gcc.dg/stackprotectexplicit1.c: New test.
	* g++.dg/stackprotectexplicit2.c: New test.

From-SVN: r219633
2015-01-14 22:29:12 -07:00
Jerry DeLisle 1a0c698345 re PR fortran/61933 (Inquire on internal units)
2015-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR target/61933
	* gfortran.dg/inquire_internal.f90: New.
	* gfortran.dg/negative_unit_check.f90: New.

From-SVN: r219632
2015-01-15 04:06:02 +00:00
Jerry DeLisle 351b443252 re PR fortran/61933 (Inquire on internal units)
2015-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/61933
	* io/inquire.c (inquire_via_unit): Set existing to true if a
	gfc_unit stucture was found for the given unit number.
	* runtime/error.c (translate_error): Add case for
	LIBERROR_INQUIRE_INTERNAL_UNIT.

From-SVN: r219631
2015-01-15 03:57:29 +00:00
Jerry DeLisle 2da229cb17 re PR fortran/61933 (Inquire on internal units)
2015-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/61933
	* io.c (gfc_match_inquire): Generate error if unit number in
	inquire statement is a constant -1.  All other values allowed.
	* trans-io.c (gfc_trans_inquire): Delete dummy iostat variable.
	(create_dummy_iostat): Delete function no longer used.

From-SVN: r219630
2015-01-15 03:51:16 +00:00
Ian Lance Taylor d5d9c650a2 libgo: Bump version number in libgo configure script.
From-SVN: r219629
2015-01-15 00:52:38 +00:00
Ian Lance Taylor 3307c079d5 Add files somehow left out of last commit (upgrade to Go 1.4).
From-SVN: r219628
2015-01-15 00:40:25 +00:00
Ian Lance Taylor f8d9fa9e80 libgo, compiler: Upgrade libgo to Go 1.4, except for runtime.
This upgrades all of libgo other than the runtime package to
the Go 1.4 release.  In Go 1.4 much of the runtime was
rewritten into Go.  Merging that code will take more time and
will not change the API, so I'm putting it off for now.

There are a few runtime changes anyhow, to accomodate other
packages that rely on minor modifications to the runtime
support.

The compiler changes slightly to add a one-bit flag to each
type descriptor kind that is stored directly in an interface,
which for gccgo is currently only pointer types.  Another
one-bit flag (gcprog) is reserved because it is used by the gc
compiler, but gccgo does not currently use it.

There is another error check in the compiler since I ran
across it during testing.

gotools/:
	* Makefile.am (go_cmd_go_files): Sort entries.  Add generate.go.
	* Makefile.in: Rebuild.

From-SVN: r219627
2015-01-15 00:27:56 +00:00
GCC Administrator 6bd3f109d8 Daily bump.
From-SVN: r219626
2015-01-15 00:17:03 +00:00
Oleg Endo 83e3f98b8d re PR target/53988 ([SH] tst Rm,Rn not used for QI/HImode)
gcc/
	PR target/53988
	* config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
	reg-reg copies.
	(sh_extending_set_of_reg): New struct.
	(sh_find_extending_set_of_reg, sh_split_tst_subregs,
	sh_remove_reg_dead_or_unused_notes): New Declarations.
	* config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
	sh_find_extending_set_of_reg, sh_split_tst_subregs,
	sh_extending_set_of_reg::use_as_extended_reg): New functions.
	* config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
	convert to insn_and_split and use new function sh_split_tst_subregs.

gcc/testsuite/
	PR target/53988
	* gcc.target/sh/pr53988-1.c: New.

From-SVN: r219623
2015-01-14 23:46:34 +00:00
Sandra Loosemore ce2c3163d2 invoke.texi (Option Summary): Reclassify -fuse-ld as a linker option.
2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
	option.
	(Optimization Options): Move -fuse-ld documentation to...
	(Link Options): ...here.

From-SVN: r219622
2015-01-14 18:09:03 -05:00
Paolo Carlini 36b218ee8f re PR c++/58671 ([c++11] ICE with thread_local and self-referential variable initialization)
/cp
2015-01-14  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58671
	* decl2.c (var_defined_without_dynamic_init): Handle gracefully
	self-initialization.

/testsuite
2015-01-14  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58671
	* g++.dg/tls/thread_local-ice3.C: New.

From-SVN: r219621
2015-01-14 22:28:07 +00:00
Matthew Fortune 622ef5dae9 Fix indentation in an earlier gcc/ChangeLog update
From-SVN: r219620
2015-01-14 22:10:21 +00:00
Matthew Fortune 047b52f61d [MIPS] Update the ZC constraint.
gcc/

	* config/mips/constraints.md (ZC): Add support for R6 LL/SC
	offsets.
	(ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
	* config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
	(ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
	* config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
	instead of ZR for the memory operand of LL/SC.
	(compare_and_swap_12, sync_add<mode>): Likewise.
	(sync_<optab>_12, sync_old_<optab>_12): Likewise.
	(sync_new_<optab>_12, sync_nand_12): Likewise.
	(sync_old_nand_12, sync_new_nand_12): Likewise.
	(sync_sub<mode>, sync_old_add<mode>): Likewise.
	(sync_old_sub<mode>, sync_new_add<mode>): Likewise.
	(sync_new_sub<mode>, sync_<optab><mode>): Likewise.
	(sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
	(sync_nand<mode>, sync_old_nand<mode>): Likewise.
	(sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
	(test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
	(atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
	* doc/md.texi (ZC): Update description.

From-SVN: r219619
2015-01-14 22:08:37 +00:00
Jan-Benedict Glaw 7fc39e2189 Pull libiberty.h copyright update from Binutils
2015-12-14  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

	* libiberty.h: Merge Copyright year update from Binutils.

From-SVN: r219617
2015-01-14 21:55:35 +00:00
H.J. Lu 541c580691 Correct target selector in -mfentry tests
-fprofile -mfentry works with PIE if gcrt1.o is compiled with -fPIC.  A
glibc has been filed, PR 17836, and a glibc patch has been submitted.

	* gcc.target/i386/fentry-override.c: Properly place {} in target
	selector.  Remove nonpic.
	* gcc.target/i386/fentry.c: Likewise.

From-SVN: r219616
2015-01-14 13:51:09 -08:00
Andrew MacLeod 77df532784 builtins.c (expand_builtin_atomic_exchange): Remove error when memory model is CONSUME.
2015-01-14  Andrew MacLeod  <amacleod@redhat.com>

	* builtins.c (expand_builtin_atomic_exchange): Remove error when
	memory model is CONSUME.
	(expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
	expand_builtin_atomic_store): Change invalid memory model errors to
	warnings.
	(expand_builtin_atomic_clear): Change invalid model errors to warnings
	and issue warning for CONSUME.
	* testsuite/gcc.dg/atomic-invalid.c: Check for invalid memory model
	warnings instead of errors.



M    gcc/ChangeLog
M    gcc/builtins.c
M    gcc/testsuite/ChangeLog
M    gcc/testsuite/gcc.dg/atomic-invalid.c

From-SVN: r219615
2015-01-14 21:30:39 +00:00
Aldy Hernandez 2ead7928a2 + * lto-cgraph: Update function comments for
+       lto_symtab_encoder_encode_*.

From-SVN: r219607
2015-01-14 16:37:15 +00:00
Ilya Verbin 3b6e42f965 Makefile.in (site.exp): Do not set ENABLE_LTO.
gcc/
	* Makefile.in (site.exp): Do not set ENABLE_LTO.

gcc/testsuite/
	* lib/target-supports.exp (check_effective_target_lto): Check for -flto
	option support instead of ENABLE_LTO from Makefile.

From-SVN: r219606
2015-01-14 15:51:37 +00:00
Ilya Verbin 837bac8cb6 cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
gcc/
	* cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
	* lto-cgraph.c (select_what_to_stream): Remove argument, use
	lto_stream_offload_p instead.
	* lto-streamer.h (select_what_to_stream): Remove argument.
	* passes.c (ipa_write_summaries): Likewise.
	* tree-pass.h (ipa_write_summaries): Likewise.
gcc/lto/
	* lto-partition.c (lto_promote_cross_file_statics): Remove argument
	from select_what_to_stream.

From-SVN: r219605
2015-01-14 15:15:21 +00:00
Ilya Tocar 2f6c116d28 Fix year in ChangeLog.
From-SVN: r219604
2015-01-14 17:23:47 +03:00
Richard Biener 7ef95f9cf0 re PR tree-optimization/59354 (Element swizzling produces invalid result with -O3)
2015-01-14  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/59354
	* tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
	groups larger than the slp group size as having gaps.

	* gcc.dg/vect/pr59354.c: New testcase.

From-SVN: r219603
2015-01-14 14:06:07 +00:00
Andrew Stubbs 7d11e4d632 Fix neon test fails on non-neon configs.
gcc/testsuite/
	* lib/target-supports.exp
	(check_effective_target_arm_neon_ok_nocache): Don't try to test Neon
	on ARM architures before v7.

From-SVN: r219602
2015-01-14 14:03:10 +00:00
Andrew MacLeod 8673b6713e re PR middle-end/59448 (Code generation doesn't respect C11 address-dependency)
2015-01-14  Andrew MacLeod  <amacleod@redhat.com>

	PR middle-end/59448
	* builtins.c (get_memmodel): Promote consume to acquire always.
	* testsuite/gcc.dg/atomic-invalid.c: Remove obselete test for illegal
	consume in an atomic_exchange.

From-SVN: r219601
2015-01-14 13:58:35 +00:00
Ilya Tocar 4b54ab976e re PR target/64386 (ICE: in extract_insn, at recog.c:2327 (unrecognizable insn) with -mavx512bw)
PR target/64386

gcc/
	PR target/64386
	* config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
	V32HImode.

testsuite/ 
	* gcc.target/i386/pr64386.c: New test.

From-SVN: r219600
2015-01-14 16:55:06 +03:00
Ilya Tocar c67917b65d re PR target/64393 (ICE: in extract_insn, at recog.c:2327 (unrecognizable insn) with -mavx512vbmi)
PR target/64393

gcc/
	* common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
	Enable AVX512BW.
	(OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
	* config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
	AVX512VBMI, as it implies AVX512BW.

testsuite/

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

From-SVN: r219599
2015-01-14 16:49:58 +03:00
Ilya Tocar 110b788648 re PR target/64387 (ICE: in extract_insn, at recog.c:2327 (unrecognizable insn) with -ffloat-store -mavx512er)
PR target/64387

gcc/
	* config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
	(vec_unpacks_hi_v16sf): Ditto.

testsuite/
	* gcc.target/i386/pr64387.c: New test.

From-SVN: r219598
2015-01-14 16:45:49 +03:00
Christophe Lyon 5c52d24936 store-pair-1.c: Fix typo.
2015-01-14  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/aarch64/store-pair-1.c: Fix typo.

From-SVN: r219595
2015-01-14 13:07:43 +01:00
Kyrylo Tkachov 2a62514fca [AArch64] Error out of arm_neon.h if nofp/nosimd
* config/aarch64/arm_neon.h: Error out if AdvancedSIMD
	is not available.

	* gcc.target/aarch64/arm_neon-nosimd-error.c: New test.

From-SVN: r219594
2015-01-14 12:03:22 +00:00
Kyrylo Tkachov 3bbbd3ee8e [doc][ARM] Deprecate -mapcs and -mapcs-frame.
* doc/invoke.texi (mapcs): Mention deprecation.
	(mapcs-frame): Likewise.

From-SVN: r219593
2015-01-14 11:58:06 +00:00
Thomas Preud'homme 6f0a6218e3 re PR target/64453 (Live high register not saved in function prolog on ARM with -Os)
2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    PR target/64453
    * config/arm/arm.c (callee_saved_reg_p): Define.
    (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
    register is callee saved instead of !call_used_regs[reg].
    (thumb1_compute_save_reg_mask): Likewise.

    gcc/testsuite/
    PR target/64453
    * gcc.target/arm/pr64453.c: New.

From-SVN: r219592
2015-01-14 11:51:40 +00:00
Hale Wang 6af2585d5c arm.c: Tune the max_cond_insns/branch_cost for Cortex-M7.
2015-01-14  Hale Wang  <hale.wang@arm.com>

	* config/arm/arm.c: Tune the max_cond_insns/branch_cost for
		Cortex-M7.

From-SVN: r219589
2015-01-14 11:15:30 +00:00
Richard Biener 683750ce09 re PR middle-end/64415 (ICE: verify_ssa failed / segmentation fault with LTO)
2015-01-14  Richard Biener  <rguenther@suse.de>

	PR lto/64415
	* tree-inline.c (insert_debug_decl_map): Check destination
	function MAY_HAVE_DEBUG_STMTS.
	(insert_init_debug_bind): Likewise.
	(insert_init_stmt): Remove redundant check.
	(remap_gimple_stmt): Drop debug stmts if the destination
	function has var-tracking assignments disabled.

	* gcc.dg/lto/pr64415_0.c: New testcase.
	* gcc.dg/lto/pr64415_1.c: Likewise.

From-SVN: r219588
2015-01-14 11:06:18 +00:00
Martin Liska 217c08c571 IPA ICF: handle IMAGPART_EXPR and REALPART_EXPR.
* gcc.dg/ipa/pr64307.c: New test.
	* ipa-icf-gimple.c (func_checker::compare_operand): Add support for
	IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.

From-SVN: r219586
2015-01-14 10:35:13 +00:00
Tejas Belagod f29e90f541 vect-movi.c: Check for vectorization for 64-bit and 128-bit.
2015-01-14  Tejas Belagod  <tejas.belagod@arm.com>

        * gcc.target/aarch64/vect-movi.c: Check for vectorization for 
        64-bit and 128-bit.

From-SVN: r219585
2015-01-14 10:29:09 +00:00
Kyrylo Tkachov ca39a43acc [ARM] Fix PR target/64460: Set 'shift' attr properly on some patterns.
PR target/64460
	* config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
	(*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.

	* gcc.target/arm/pr64460_1.c: New test.

From-SVN: r219583
2015-01-14 10:14:23 +00:00
Matthew Fortune fcd7669cb6 Fix Linux multilib configurations with default architectures
gcc/

	* config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
	level from an ARCH; do not inject the default.
	(MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
	MIPS_ISA_LEVEL_SPEC.
	(MIPS_ISA_NAN2008_SPEC): Update comment.
	(BASE_DRIVER_SELF_SPECS): Likewise.
	* config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
	MIPS_DEFAULT_ISA_LEVEL_SPEC.
	* config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
	* config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
	* config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.

From-SVN: r219580
2015-01-14 08:35:52 +00:00