gcc.git
10 years agosse.md (xop_vmfrcz<mode>2): Generate const0 in operands[2], not operands[3].
Uros Bizjak [Thu, 13 Feb 2014 16:47:35 +0000 (17:47 +0100)]
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

10 years agore PR libffi/60073 (64-bit libffi.call/cls_double_va.c FAILs after recent modification)
Eric Botcazou [Thu, 13 Feb 2014 16:18:13 +0000 (16:18 +0000)]
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

10 years agodownload_prerequisites: Update ISL and CLOOG versions.
Richard Biener [Thu, 13 Feb 2014 14:06:48 +0000 (14:06 +0000)]
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

10 years agore PR bootstrap/59878 (ISL from cloog does not work with trunk)
Richard Biener [Thu, 13 Feb 2014 13:35:10 +0000 (13:35 +0000)]
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

10 years agore PR target/43546 (ICE: in assign_stack_local_1, at function.c:353 with -mpreferred...
Jakub Jelinek [Thu, 13 Feb 2014 13:20:06 +0000 (14:20 +0100)]
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

10 years agos390.c (s390_asm_output_function_label): Fix crash caused by bad second argument...
Dominik Vogt [Thu, 13 Feb 2014 12:38:52 +0000 (12:38 +0000)]
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

10 years agopr59605.c: Convert to a compile test.
Richard Sandiford [Thu, 13 Feb 2014 09:22:26 +0000 (09:22 +0000)]
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

10 years agoopts.c (option_name): Remove "enabled by default" rider.
Richard Sandiford [Thu, 13 Feb 2014 09:22:04 +0000 (09:22 +0000)]
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

10 years agoDaily bump.
GCC Administrator [Thu, 13 Feb 2014 00:16:47 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r207746

10 years agopa.c (pa_option_override): Remove auto increment FIXME.
John David Anglin [Wed, 12 Feb 2014 23:28:24 +0000 (23:28 +0000)]
pa.c (pa_option_override): Remove auto increment FIXME.

* config/pa/pa.c (pa_option_override): Remove auto increment FIXME.

From-SVN: r207743

10 years agofloat128-mul-underflow.c, [...]: New tests.
Joseph Myers [Wed, 12 Feb 2014 23:24:49 +0000 (23:24 +0000)]
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

10 years agore PR middle-end/59737 (ice from optimize_inline_calls)
Jakub Jelinek [Wed, 12 Feb 2014 16:55:51 +0000 (17:55 +0100)]
re PR middle-end/59737 (ice from optimize_inline_calls)

PR middle-end/59737
* g++.dg/ipa/pr59737.C: New test.

From-SVN: r207735

10 years agoPass --32 to GNU assembler for .long foo@GOTOFF check
H.J. Lu [Wed, 12 Feb 2014 16:12:36 +0000 (16:12 +0000)]
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

10 years agoCompile g++.dg/opt/pr52727.C with -march=i686 for ia32
H.J. Lu [Wed, 12 Feb 2014 16:02:45 +0000 (16:02 +0000)]
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

10 years agovec.c (vec_prefix::calculate_allocation): Move as inline variant to vec.h.
Richard Biener [Wed, 12 Feb 2014 16:01:03 +0000 (16:01 +0000)]
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

10 years agogcse.c (compute_transp): break from loop over canon_modify_mem_list when we found...
Richard Biener [Wed, 12 Feb 2014 14:50:06 +0000 (14:50 +0000)]
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

10 years agoFix typo in dg-error invocation.
Thomas Schwinge [Wed, 12 Feb 2014 14:46:41 +0000 (15:46 +0100)]
Fix typo in dg-error invocation.

gcc/testsuite/
* c-c++-common/raw-string-3.c: Fix typo in dg-error invocation.

From-SVN: r207725

10 years agoRefactor common code into new maybe_fold_stmt function.
Thomas Schwinge [Wed, 12 Feb 2014 14:46:30 +0000 (15:46 +0100)]
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

10 years agoAdd clobber for object, after last use.
Thomas Schwinge [Wed, 12 Feb 2014 14:46:19 +0000 (15:46 +0100)]
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

10 years agoFix potential ICE (null pointer dereference) in omp-low.c:diagnose_sb_0.
Thomas Schwinge [Wed, 12 Feb 2014 14:46:08 +0000 (15:46 +0100)]
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

10 years ago[ARM] [Churn] Comments on cost tables should have lower-case identifiers.
James Greenhalgh [Wed, 12 Feb 2014 13:52:02 +0000 (13:52 +0000)]
[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

10 years agore PR middle-end/60092 (posix_memalign not recognized to derive alias and alignment...
Richard Biener [Wed, 12 Feb 2014 13:36:08 +0000 (13:36 +0000)]
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

10 years agoavr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for arg_loc.
Senthil Kumar Selvaraj [Wed, 12 Feb 2014 10:39:57 +0000 (10:39 +0000)]
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

10 years agore PR rtl-optimization/60116 (wrong code at -Os on x86_64-linux-gnu in 32-bit mode)
Eric Botcazou [Wed, 12 Feb 2014 10:16:34 +0000 (10:16 +0000)]
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

10 years agore PR fortran/60060 (lto1: internal compiler error: in add_AT_specification, at dwarf...
Richard Biener [Wed, 12 Feb 2014 09:01:30 +0000 (09:01 +0000)]
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

10 years agore PR rtl-optimization/60116 (wrong code at -Os on x86_64-linux-gnu in 32-bit mode)
Eric Botcazou [Wed, 12 Feb 2014 08:49:55 +0000 (08:49 +0000)]
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

10 years agore PR c++/60047 (ICE with defaulted copy constructor and virtual base class)
Paolo Carlini [Wed, 12 Feb 2014 08:45:46 +0000 (08:45 +0000)]
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

10 years agore PR c/60101 (Long compile times when mixed complex floating point datatypes are...
Jakub Jelinek [Wed, 12 Feb 2014 07:35:50 +0000 (08:35 +0100)]
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

10 years agoDaily bump.
GCC Administrator [Wed, 12 Feb 2014 00:16:54 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r207706

10 years agore PR lto/59468 (ICE on invalid C++ code with LTO in gimple_get_virt_method_for_binfo...
Jan Hubicka [Tue, 11 Feb 2014 22:54:21 +0000 (23:54 +0100)]
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

10 years agore PR target/49008 (A typo code found in genautomata.c)
Vladimir Makarov [Tue, 11 Feb 2014 22:00:04 +0000 (22:00 +0000)]
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

10 years agore PR target/60137 (Code fails with -mcpu=power8 -O3 -mno-vsx)
Michael Meissner [Tue, 11 Feb 2014 21:05:35 +0000 (21:05 +0000)]
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

10 years agore PR fortran/52370 (Spurious "may be used uninitialized" warning for check of option...
Jakub Jelinek [Tue, 11 Feb 2014 20:48:26 +0000 (21:48 +0100)]
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

10 years agore PR target/59927 (ICE sorry, unimplemented: ms_abi attribute requires -maccumulate...
Uros Bizjak [Tue, 11 Feb 2014 18:59:24 +0000 (19:59 +0100)]
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

10 years agopr56787.c: Mark as xfail for vect_no_align.
Richard Sandiford [Tue, 11 Feb 2014 18:05:01 +0000 (18:05 +0000)]
pr56787.c: Mark as xfail for vect_no_align.

gcc/testsuite/
* gcc.dg/vect/pr56787.c: Mark as xfail for vect_no_align.

From-SVN: r207696

10 years agore PR middle-end/59776 (gcc -g -O1 ICE in expand_debug_locations, at cfgexpand.c...
Jakub Jelinek [Tue, 11 Feb 2014 17:46:34 +0000 (18:46 +0100)]
re PR middle-end/59776 (gcc -g -O1 ICE in expand_debug_locations, at cfgexpand.c:3865)

PR debug/59776
* tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
around drhs if type conversion to lacc->type is not useless.

* gcc.dg/guality/pr59776.c: New test.

From-SVN: r207695

10 years agosourcebuild.texi (arm_vfp3_ok): Add missing anchor.
Uros Bizjak [Tue, 11 Feb 2014 17:39:50 +0000 (18:39 +0100)]
sourcebuild.texi (arm_vfp3_ok): Add missing anchor.

* doc/sourcebuild.texi (arm_vfp3_ok): Add missing anchor.

From-SVN: r207694

10 years ago[AArch64] Wire up Cortex-A57 rtx costs.
Kyrylo Tkachov [Tue, 11 Feb 2014 16:00:19 +0000 (16:00 +0000)]
[AArch64] Wire up Cortex-A57 rtx costs.

* config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
tuning struct.
(cortex-a57.cortex-a53): Likewise.
* config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.

From-SVN: r207693

10 years ago[ARM] Adjust thumb2_movhi_insn pattern for -mrestrict-it.
Kyrylo Tkachov [Tue, 11 Feb 2014 15:48:08 +0000 (15:48 +0000)]
[ARM] Adjust thumb2_movhi_insn pattern for -mrestrict-it.

* config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
arm_restrict_it.

From-SVN: r207692

10 years agosourcebuild.texi: Document check_effective_target_arm_vfp3_ok and add_options_for_arm...
Renlin Li [Tue, 11 Feb 2014 15:26:46 +0000 (15:26 +0000)]
sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and add_options_for_arm_vfp3.

2014-02-11  Renlin Li  <Renlin.Li@arm.com>

gcc/
* doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
add_options_for_arm_vfp3.

gcc/testsuite/
* gcc.target/arm/fixed_float_conversion.c: Add arm_vfp3 option.
* lib/target-supports.exp (check_effective_target_arm_vfp3_ok): New.
(add_options_for_arm_vfp3): New.

From-SVN: r207691

10 years agore PR middle-end/54041 (-mshort ICE in convert_memory_address_addr_space, at explow...
Jeff Law [Tue, 11 Feb 2014 13:58:46 +0000 (06:58 -0700)]
re PR middle-end/54041 (-mshort ICE in convert_memory_address_addr_space, at explow.c:327)

PR middle-end/54041
* expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
object with an undesirable mode.

PR middle-end/54041
* gcc.target/m68k/pr54041.c: New test.

From-SVN: r207689

10 years agoOnly assume 4-byte stack alignment on Solaris 9/x86 (PR libgomp/60107)
Rainer Orth [Tue, 11 Feb 2014 12:56:39 +0000 (12:56 +0000)]
Only assume 4-byte stack alignment on Solaris 9/x86 (PR libgomp/60107)

PR libgomp/60107
* config/i386/sol2-9.h: New file.
* config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
*-*-solaris2.9*): Use it.

From-SVN: r207688

10 years agore PR target/59927 (ICE sorry, unimplemented: ms_abi attribute requires -maccumulate...
Jakub Jelinek [Tue, 11 Feb 2014 09:06:37 +0000 (10:06 +0100)]
re PR target/59927 (ICE sorry, unimplemented: ms_abi attribute requires -maccumulate-outgoing-args or subtarget optimization implying it)

PR target/59927
* gcc.target/i386/pr59927.c: New test.

From-SVN: r207686

10 years agoAdded the lwr/swr instructions pattern.
Nagaraju Mekala [Tue, 11 Feb 2014 01:52:54 +0000 (01:52 +0000)]
Added the lwr/swr instructions pattern.

lwr and swr instructions will load/store the data with opposite endianness.

Changelog

2014-02-10  Nagaraju Mekala <nagaraju.mekala@xilinx.com>

 * gcc/config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
 * gcc/config/microblaze/predicates.md: Add reg_or_mem_operand predicate.

From-SVN: r207683

10 years agomicroblaze.c: Extend mcpu version format
Nagaraju Mekala [Tue, 11 Feb 2014 01:34:03 +0000 (01:34 +0000)]
microblaze.c: Extend mcpu version format

2013-11-26  Nagaraju Mekala <nagaraju.mekala@xilinx.com>

 * gcc/config/microblaze/microblaze.c: Extend mcpu version format

From-SVN: r207680

10 years agoFixes warnings like;
David Holsgrove [Tue, 11 Feb 2014 01:28:00 +0000 (01:28 +0000)]
Fixes warnings like;

warning: format '%zX' expects argument of type 'size_t',
but argument 3 has type 'unsigned int' [-Wformat]

2013-03-18  David Holsgrove <david.holsgrove@xilinx.com>

 * gcc/config/microblaze/microblaze.h: Define SIZE_TYPE
   and PTRDIFF_TYPE.

From-SVN: r207678

10 years agore PR target/59927 (ICE sorry, unimplemented: ms_abi attribute requires -maccumulate...
Richard Henderson [Tue, 11 Feb 2014 01:12:38 +0000 (17:12 -0800)]
re PR target/59927 (ICE sorry, unimplemented: ms_abi attribute requires -maccumulate-outgoing-args or subtarget optimization implying it)

PR target/59927

        * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
        * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
        ms-abi vs -mno-accumulate-outgoing-args.
        (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
        * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
        respect to ms-abi.

From-SVN: r207677

10 years agoDaily bump.
GCC Administrator [Tue, 11 Feb 2014 00:16:56 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r207676

10 years agopr57741-3.c: Require vect_int.
Richard Sandiford [Mon, 10 Feb 2014 20:30:24 +0000 (20:30 +0000)]
pr57741-3.c: Require vect_int.

gcc/testsuite/
* gcc.dg/vect/pr57741-3.c: Require vect_int.
* gcc.dg/vect/pr60012.c: Likewise.
* gcc.dg/vect/vect-119.c: Likewise.
* gcc.dg/vect/vect-outer-4c-big-array.c: Likewise.
* gcc.dg/vect/vect-outer-4c.c: Likewise.

From-SVN: r207669

10 years agore PR middle-end/60080 (gcc.dg/vect/vect-nop-move.c FAILs)
Bernd Edlinger [Mon, 10 Feb 2014 18:19:01 +0000 (18:19 +0000)]
re PR middle-end/60080 (gcc.dg/vect/vect-nop-move.c FAILs)

2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR middle-end/60080
        * cfgexpand.c (expand_asm_operands): Attach source location to
        ASM_INPUT rtx objects.
        * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.

From-SVN: r207668

10 years agomn10300.c (popcount): New function.
Nick Clifton [Mon, 10 Feb 2014 17:23:40 +0000 (17:23 +0000)]
mn10300.c (popcount): New function.

* config/mn10300/mn10300.c (popcount): New function.
(mn10300_expand_prologue): Include saved registers in stack usage
count.

From-SVN: r207665

10 years agore PR target/59691 (cilk-plus run failures on non-sse processors)
Balaji V. Iyer [Mon, 10 Feb 2014 16:56:54 +0000 (16:56 +0000)]
re PR target/59691 (cilk-plus run failures on non-sse processors)

Fix for PR target/59691.
+2014-02-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR target/59691
+       * runtime/config/x86/os-unix-sysdep.c (__builtin_cpu_supports): New
+       function.
+       (restore_x86_fp_state): Added a check if the cpu supports the
+       instruction before emitting it.
+       (sysdep_save_fp_ctrl_state): Likewise.
+

From-SVN: r207664

10 years agoDon't xfail gcc.dg/binop-xor1.c
Rainer Orth [Mon, 10 Feb 2014 16:44:05 +0000 (16:44 +0000)]
Don't xfail gcc.dg/binop-xor1.c

* gcc.dg/binop-xor1.c: Don't xfail scan-tree-dump-times.

From-SVN: r207663

10 years agore PR middle-end/52306 (ICE in cselib_record_set, at cselib.c:2158)
Jeff Law [Mon, 10 Feb 2014 16:25:44 +0000 (09:25 -0700)]
re PR middle-end/52306 (ICE in cselib_record_set, at cselib.c:2158)

PR middle-end/52306
* reload1.c (emit_input_reload_insns): Do not create invalid RTL
when changing the SET_DEST of a prior insn to avoid an input
reload.

PR middle-end-52306
* gcc.c-torture/compile/pr52306.c: New test.

From-SVN: r207662

10 years agoCompile g++.dg/ext/vector26.C with -mmmx
Rainer Orth [Mon, 10 Feb 2014 16:23:38 +0000 (16:23 +0000)]
Compile g++.dg/ext/vector26.C with -mmmx

* g++.dg/ext/vector26.C: Use -mmmx for 32-bit x86.

From-SVN: r207661

10 years agoDon't xfail 22_locale/num_put/put/char/14220.cc etc. on Solaris 9/x86
Rainer Orth [Mon, 10 Feb 2014 16:18:20 +0000 (16:18 +0000)]
Don't xfail 22_locale/num_put/put/char/14220.cc etc. on Solaris 9/x86

* testsuite/22_locale/num_put/put/char/14220.cc: Don't xfail
execution on i?86-*-solaris2.9, remove comment.
* testsuite/22_locale/num_put/put/wchar_t/14220.cc: Likewise.

From-SVN: r207660

10 years agosysv4.h (ENDIAN_SELECT): Do not attempt to enforce big-endian mode for -mcall-aixdesc...
Ulrich Weigand [Mon, 10 Feb 2014 14:46:24 +0000 (14:46 +0000)]
sysv4.h (ENDIAN_SELECT): Do not attempt to enforce big-endian mode for -mcall-aixdesc...

* config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
-mcall-openbsd, or -mcall-linux.
(CC1_ENDIAN_BIG_SPEC): Remove.
(CC1_ENDIAN_LITTLE_SPEC): Remove.
(CC1_ENDIAN_DEFAULT_SPEC): Remove.
(CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
(SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
and %cc1_endian_default.
* config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.

From-SVN: r207658

10 years agore PR tree-optimization/60115 (wrong code at -O3 on x86_64-linux-gnu)
Richard Biener [Mon, 10 Feb 2014 13:51:23 +0000 (13:51 +0000)]
re PR tree-optimization/60115 (wrong code at -O3 on x86_64-linux-gnu)

2014-02-10  Richard Biener  <rguenther@suse.de>

PR tree-optimization/60115
* tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
MEM_REF handling.  Properly verify that the accesses are not
out of the objects bound.

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

From-SVN: r207656

10 years agoaarch64.c (aarch64_override_options): Fix typo from coretex to cortex.
Kyrylo Tkachov [Mon, 10 Feb 2014 11:25:16 +0000 (11:25 +0000)]
aarch64.c (aarch64_override_options): Fix typo from coretex to cortex.

* config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
coretex to cortex.

From-SVN: r207654

10 years agoipa-devirt.c (get_polymorphic_call_info_from_invariant): Return proper constants...
Eric Botcazou [Mon, 10 Feb 2014 11:15:38 +0000 (11:15 +0000)]
ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return proper constants and fix formatting.

* ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
proper constants and fix formatting.
(possible_polymorphic_call_targets): Fix formatting.

From-SVN: r207653

10 years agopr33426-ivdep-3.cc: Require vect_int_mult as well.
Eric Botcazou [Mon, 10 Feb 2014 11:09:21 +0000 (11:09 +0000)]
pr33426-ivdep-3.cc: Require vect_int_mult as well.

* g++.dg/vect/pr33426-ivdep-3.cc: Require vect_int_mult as well.
* g++.dg/vect/pr33426-ivdep-4.cc: Likewise.

From-SVN: r207652

10 years agoavx512fintrin.h (_mm512_storeu_epi64): Removed.
Kirill Yukhin [Mon, 10 Feb 2014 10:36:59 +0000 (10:36 +0000)]
avx512fintrin.h (_mm512_storeu_epi64): Removed.

gcc/
* config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
(_mm512_loadu_epi32): Renamed into...
(_mm512_loadu_si512): This.
(_mm512_storeu_epi32): Renamed into...
(_mm512_storeu_si512): This.
(_mm512_maskz_ceil_ps): Removed.
(_mm512_maskz_ceil_pd): Ditto.
(_mm512_maskz_floor_ps): Ditto.
(_mm512_maskz_floor_pd): Ditto.
(_mm512_floor_round_ps): Ditto.
(_mm512_floor_round_pd): Ditto.
(_mm512_ceil_round_ps): Ditto.
(_mm512_ceil_round_pd): Ditto.
(_mm512_mask_floor_round_ps): Ditto.
(_mm512_mask_floor_round_pd): Ditto.
(_mm512_mask_ceil_round_ps): Ditto.
(_mm512_mask_ceil_round_pd): Ditto.
(_mm512_maskz_floor_round_ps): Ditto.
(_mm512_maskz_floor_round_pd): Ditto.
(_mm512_maskz_ceil_round_ps): Ditto.
(_mm512_maskz_ceil_round_pd): Ditto.
(_mm512_expand_pd): Ditto.
(_mm512_expand_ps): Ditto.
* config/i386/i386.c (ix86_builtins): Remove
IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
(bdesc_args): Ditto.
* config/i386/predicates.md (const1256_operand): New.
(const_1_to_2_operand): Ditto.
* config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
(*avx512pf_gatherpf<mode>sf_mask): Ditto.
(*avx512pf_gatherpf<mode>sf): Ditto.
(avx512pf_gatherpf<mode>df): Ditto.
(*avx512pf_gatherpf<mode>df_mask): Ditto.
(*avx512pf_gatherpf<mode>df): Ditto.
(avx512pf_scatterpf<mode>sf): Ditto.
(*avx512pf_scatterpf<mode>sf_mask): Ditto.
(*avx512pf_scatterpf<mode>sf): Ditto.
(avx512pf_scatterpf<mode>df): Ditto.
(*avx512pf_scatterpf<mode>df_mask): Ditto.
(*avx512pf_scatterpf<mode>df): Ditto.
(avx512f_expand<mode>): Removed.
(<shift_insn><mode>3<mask_name>): Change predicate type.

testsuite/gcc/
* gcc.target/i386/avx512f-vexpandpd-1.c: Update intrinsics.
* gcc.target/i386/avx512f-vexpandps-1.c: Ditto.
* gcc.target/i386/avx512f-vexpandpd-2.c: Ditto.
* gcc.target/i386/avx512f-vexpandps-2.c: Ditto.
* gcc.target/i386/avx512f-vmovdqu32-1: Ditto.
* gcc.target/i386/avx512f-vmovdqu32-2: Ditto.
* gcc.target/i386/avx512f-vmovdqu64-1: Ditto.
* gcc.target/i386/avx512f-vmovdqu64-2: Ditto.
* gcc.target/i386/avx512f-vpcmpd-2.c: Ditto.
* gcc.target/i386/avx512f-vpcmpq-2.c: Ditto.
* gcc.target/i386/avx512f-vpcmupd-2.c: Ditto.
* gcc.target/i386/avx512f-vpcmupq-2.c: Ditto.
* gcc.target/i386/avx512f-vrndscalepd-1.c: Ditto.
* gcc.target/i386/avx512f-vrndscaleps-1.c: Ditto.
* gcc.target/i386/avx512f-vrndscalepd-2.c: Ditto.
* gcc.target/i386/avx512f-vrndscaleps-2.c: Ditto.
* gcc.target/i386/avx512pf-vgatherpf0dpd-1.c: Update parameters.
* gcc.target/i386/avx512pf-vgatherpf0dps-1.c: Ditto.
* gcc.target/i386/avx512pf-vgatherpf0qpd-1.c: Ditto.
* gcc.target/i386/avx512pf-vgatherpf0qps-1.c: Ditto.
* gcc.target/i386/avx512pf-vgatherpf1dpd-1.c: Ditto.
* gcc.target/i386/avx512pf-vgatherpf1dps-1.c: Ditto.
* gcc.target/i386/avx512pf-vgatherpf1qpd-1.c: Ditto.
* gcc.target/i386/avx512pf-vgatherpf1qps-1.c: Ditto.
* gcc.target/i386/avx512f-vpsrad-2.c: Initialize 64 bits.
* gcc.target/i386/avx512f-vpslld-2.c: Ditto.
* gcc.target/i386/avx512f-vpsrld-2.c: Ditto.

Co-Authored-By: Ilya Tocar <ilya.tocar@intel.com>
From-SVN: r207651

10 years agopr59984.c: Require effective target vect_simd_clones.
Jakub Jelinek [Mon, 10 Feb 2014 10:01:23 +0000 (11:01 +0100)]
pr59984.c: Require effective target vect_simd_clones.

* gcc.dg/vect/pr59984.c: Require effective target
vect_simd_clones.

From-SVN: r207650

10 years agoDaily bump.
GCC Administrator [Mon, 10 Feb 2014 00:16:44 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r207649

10 years agore PR fortran/57522 ([F03] ASSOCIATE construct creates array descriptor with incorrec...
Paul Thomas [Sun, 9 Feb 2014 20:50:21 +0000 (20:50 +0000)]
re PR fortran/57522 ([F03] ASSOCIATE construct creates array descriptor with incorrect stride for derived type array component)

2014-02-09  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/57522
* resolve.c (resolve_assoc_var): Set the subref_array_pointer
attribute for the 'associate-name' if necessary.
* trans-stmt.c (trans_associate_var): If the 'associate-name'
is a subref_array_pointer, assign the element size of the
associate variable to 'span'.

2014-02-09  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/57522
* gfortran.dg/associated_target_5.f03 : New test

From-SVN: r207646

10 years agore PR fortran/59026 (ELEMENTAL procedure with VALUE arguments emits wrong code)
Paul Thomas [Sun, 9 Feb 2014 19:45:06 +0000 (19:45 +0000)]
re PR fortran/59026 (ELEMENTAL procedure with VALUE arguments emits wrong code)

2014-02-09  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/59026
* trans-expr.c (gfc_conv_procedure_call): Pass the value of the
actual argument to a formal argument with the value attribute
in an elemental procedure.

2014-02-09  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/59026
* gfortran.dg/elemental_by_value_1.f90 : New test

From-SVN: r207645

10 years agobaseline_symbols.txt: New file.
Richard Sandiford [Sun, 9 Feb 2014 14:19:13 +0000 (14:19 +0000)]
baseline_symbols.txt: New file.

libstdc++-v3/
* config/abi/post/mips64-linux-gnu/32/baseline_symbols.txt: New file.
* config/abi/post/mips64-linux-gnu/baseline_symbols.txt: Update.
* config/abi/post/mips64-linux-gnu/64/baseline_symbols.txt: Likewise.

From-SVN: r207643

10 years agoDaily bump.
GCC Administrator [Sun, 9 Feb 2014 00:16:51 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r207641

10 years agore PR fortran/58470 ([OOP] ICE on invalid with FINAL procedure and type extension)
Janus Weil [Sat, 8 Feb 2014 21:32:25 +0000 (22:32 +0100)]
re PR fortran/58470 ([OOP] ICE on invalid with FINAL procedure and type extension)

2014-02-08  Janus Weil  <janus@gcc.gnu.org>
    Mikael Morin <mikael.morin@gcc.gnu.org>

PR fortran/58470
* class.c (generate_finalization_wrapper): Assert that proc_tree has
been set in gfc_resolve_finalizers.
* resolve.c (resolve_fl_derived0): Remove unnecessary call to
gfc_is_finalizable.

2014-02-08  Janus Weil  <janus@gcc.gnu.org>

PR fortran/58470
* gfortran.dg/finalize_22.f90: New.

Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>
From-SVN: r207636

10 years agore PR fortran/60066 (Bad elemental invocation of non-scalar base object)
Paul Thomas [Sat, 8 Feb 2014 16:22:46 +0000 (16:22 +0000)]
re PR fortran/60066 (Bad elemental invocation of non-scalar base object)

2014-02-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/60066
* gfortran.dg/elemental_subroutine_10.f90 : New test. This PR
was fixed by the patch for PR59906.

From-SVN: r207633

10 years agotree-vect-data-refs.c (vect_analyze_data_refs): For clobbers not at the end of datare...
Jakub Jelinek [Sat, 8 Feb 2014 14:52:39 +0000 (15:52 +0100)]
tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers not at the end of datarefs vector use ordered_remove to avoid...

* tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
not at the end of datarefs vector use ordered_remove to avoid
reordering datarefs vector.

From-SVN: r207632

10 years agore PR translation/52289 (translatable string typo: "must not be have")
Andreas Schwab [Sat, 8 Feb 2014 09:33:24 +0000 (09:33 +0000)]
re PR translation/52289 (translatable string typo: "must not be have")

PR translation/52289
* gfortran.dg/coarray_8.f90: Update dg-error match.

From-SVN: r207630

10 years agore PR c/59984 (OpenMP pragma makes loop incorrect)
Jakub Jelinek [Sat, 8 Feb 2014 09:10:14 +0000 (10:10 +0100)]
re PR c/59984 (OpenMP pragma makes loop incorrect)

PR c/59984
* gimplify.c (gimplify_bind_expr): In ORT_SIMD region
mark local addressable non-static vars as GOVD_PRIVATE
instead of GOVD_LOCAL.
* omp-low.c (lower_omp_for): Move gimple_bind_vars
and BLOCK_VARS of gimple_bind_block to new_stmt rather
than copying them.

* gcc.dg/vect/pr59984.c: New test.

From-SVN: r207629

10 years agore PR middle-end/60092 (posix_memalign not recognized to derive alias and alignment...
Jakub Jelinek [Sat, 8 Feb 2014 09:09:01 +0000 (10:09 +0100)]
re PR middle-end/60092 (posix_memalign not recognized to derive alias and alignment info)

PR middle-end/60092
* tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
assume_aligned or alloc_align attributes.
(bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
arguments.  Handle also assume_aligned and alloc_align attributes.
(evaluate_stmt): Adjust bit_value_assume_aligned caller.
Handle calls to functions with assume_aligned or alloc_align
attributes.
* doc/extend.texi: Document assume_aligned and alloc_align
attributes.
c-family/
* c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
and tree_to_uhwi.
(handle_alloc_align_attribute, handle_assume_aligned_attribute): New
functions.
(c_common_attribute_table): Add alloc_align and assume_aligned
attributes.
testsuite/
* gcc.dg/attr-alloc_align-1.c: New test.
* gcc.dg/attr-alloc_align-2.c: New test.
* gcc.dg/attr-alloc_align-3.c: New test.
* gcc.dg/attr-assume_aligned-1.c: New test.
* gcc.dg/attr-assume_aligned-2.c: New test.
* gcc.dg/attr-assume_aligned-3.c: New test.

From-SVN: r207628

10 years agoinvoke.texi: Document ARM -march=armv7e-m.
Terry Guo [Sat, 8 Feb 2014 01:33:54 +0000 (01:33 +0000)]
invoke.texi: Document ARM -march=armv7e-m.

2014-02-08  Terry Guo  <terry.guo@arm.com>

* doc/invoke.texi: Document ARM -march=armv7e-m.

From-SVN: r207627

10 years agoDaily bump.
GCC Administrator [Sat, 8 Feb 2014 00:16:41 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r207626

10 years agocilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW flag on __cilkrts_rethrow...
Jakub Jelinek [Fri, 7 Feb 2014 23:58:29 +0000 (00:58 +0100)]
cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW flag on __cilkrts_rethrow builtin.

* cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
flag on __cilkrts_rethrow builtin.

From-SVN: r207623

10 years agore PR target/60077 (gcc.target/i386/pr35767-5.c FAILs)
Jakub Jelinek [Fri, 7 Feb 2014 23:55:24 +0000 (00:55 +0100)]
re PR target/60077 (gcc.target/i386/pr35767-5.c FAILs)

PR target/60077
* gcc.target/i386/pr60077-1.c: New test.
* gcc.target/i386/pr60077-2.c: New test.

From-SVN: r207622

10 years agore PR ipa/60026 (ICE at -O3 on valid code (with the optimize pragma) on x86_64-linux...
Jakub Jelinek [Fri, 7 Feb 2014 23:54:17 +0000 (00:54 +0100)]
re PR ipa/60026 (ICE at -O3 on valid code (with the optimize pragma) on x86_64-linux-gnu)

PR ipa/60026
* ipa-cp.c (determine_versionability): Fail at -O0
or __attribute__((optimize (0))) or -fno-ipa-cp functions.
* tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.

Revert:
2014-02-04  Jakub Jelinek  <jakub@redhat.com>

PR ipa/60026
* tree-inline.c (copy_forbidden): Fail for
__attribute__((optimize (0))) functions.

From-SVN: r207621

10 years agovarpool.c: Include pointer-set.h.
Jan Hubicka [Fri, 7 Feb 2014 23:49:18 +0000 (00:49 +0100)]
varpool.c: Include pointer-set.h.

* varpool.c: Include pointer-set.h.
(varpool_remove_unreferenced_decls): Variables in other partitions
will not be output; be however careful to not lose information
about partitioning.

From-SVN: r207620

10 years ago* lto.c (unify_scc): Free CONSTRUCTOR_ELTS.
Jan Hubicka [Fri, 7 Feb 2014 23:47:17 +0000 (00:47 +0100)]
* lto.c (unify_scc): Free CONSTRUCTOR_ELTS.

From-SVN: r207619

10 years agogimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1) lookup in the vtable const...
Jan Hubicka [Fri, 7 Feb 2014 23:26:39 +0000 (00:26 +0100)]
gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1) lookup in the vtable constructor.

* gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
lookup in the vtable constructor.

From-SVN: r207616

10 years agore PR target/40977 (problem with code like this: res = ((uint64_t)resh << 32) | resl;)
Jeff Law [Fri, 7 Feb 2014 22:35:49 +0000 (15:35 -0700)]
re PR target/40977 (problem with code like this: res = ((uint64_t)resh << 32) | resl;)

PR target/40977
* config/m68k/m68k.md (ashldi_extsi): Turn into a
define_insn_and_split.

From-SVN: r207615

10 years agoc-parser.c (c_parser_get_builtin_args): Replace calls to C_EXPR_APPEND by vec_safe_push.
Prathamesh Kulkarni [Fri, 7 Feb 2014 22:09:01 +0000 (22:09 +0000)]
c-parser.c (c_parser_get_builtin_args): Replace calls to C_EXPR_APPEND by vec_safe_push.

* c-parser.c (c_parser_get_builtin_args): Replace calls to
C_EXPR_APPEND by vec_safe_push.
* c-tree.h (C_EXPR_APPEND): Remove.

From-SVN: r207614

10 years agore PR libgcc/58710 (HAVE_GETIPINFO is incorrectly set on Mac OS X 10.4)
Misty De Meo [Fri, 7 Feb 2014 21:10:55 +0000 (21:10 +0000)]
re PR libgcc/58710 (HAVE_GETIPINFO is incorrectly set on Mac OS X 10.4)

PR target/58710
* configure.ac: Use AC_LINK_IFELSE in check for
_Unwind_GetIPInfo.
* configure: Regenerate.

From-SVN: r207612

10 years agore PR translation/52289 (translatable string typo: "must not be have")
Benno Schulenberg [Fri, 7 Feb 2014 17:52:59 +0000 (17:52 +0000)]
re PR translation/52289 (translatable string typo: "must not be have")

        PR translation/52289
        * fortran/resolve.c (resolve_ordinary_assign): Fix typoed word
        in an error message.

From-SVN: r207609

10 years ago* ipa-inline.c (inline_small_functions): Fix typos.
Jeff Law [Fri, 7 Feb 2014 17:29:26 +0000 (10:29 -0700)]
* ipa-inline.c (inline_small_functions): Fix typos.

From-SVN: r207608

10 years agore PR preprocessor/56824 (pragma GCC diagnostic push/pop fail with GCC diagnostic...
Jakub Jelinek [Fri, 7 Feb 2014 16:42:24 +0000 (17:42 +0100)]
re PR preprocessor/56824 (pragma GCC diagnostic push/pop fail with GCC diagnostic ignored "-Waggregate-return")

PR preprocessor/56824
* line-map.c (get_combined_adhoc_loc, linemap_get_expansion_line,
linemap_get_expansion_filename, linemap_location_in_system_header_p,
linemap_location_from_macro_expansion_p,
linemap_macro_loc_to_spelling_point, linemap_macro_loc_to_def_point,
linemap_macro_loc_to_exp_point, linemap_expand_location): Fix
formatting.
(linemap_compare_locations): Look through adhoc locations for both
l0 and l1.

* gcc.dg/pr56824.c: New test.

From-SVN: r207606

10 years agogcc/
Richard Sandiford [Fri, 7 Feb 2014 14:52:26 +0000 (14:52 +0000)]
gcc/
* config/s390/s390-protos.h (s390_can_use_simple_return_insn)
(s390_can_use_return_insn): Declare.
* config/s390/s390.h (EPILOGUE_USES): Define.
* config/s390/s390.c (s390_mainpool_start): Allow two main_pool
instructions.
(s390_chunkify_start): Handle return JUMP_LABELs.
(s390_early_mach): Emit a main_pool instruction on the entry edge.
(s300_set_up_by_prologue, s390_can_use_simple_return_insn)
(s390_can_use_return_insn): New functions.
(s390_fix_long_loop_prediction): Handle conditional returns.
(TARGET_SET_UP_BY_PROLOGUE): Define.
* config/s390/s390.md (ANY_RETURN): New code iterator.
(*creturn, *csimple_return, return, simple_return): New patterns.

From-SVN: r207605

10 years agos390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE notes to each restore.
Richard Sandiford [Fri, 7 Feb 2014 14:52:13 +0000 (14:52 +0000)]
s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE notes to each restore.

gcc/
* config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
(s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
REG_CFA_RESTORE list when deciding not to restore a register.

From-SVN: r207604

10 years agos390.c: Include tree-pass.h and context.h.
Richard Sandiford [Fri, 7 Feb 2014 14:50:19 +0000 (14:50 +0000)]
s390.c: Include tree-pass.h and context.h.

gcc/
* config/s390/s390.c: Include tree-pass.h and context.h.
(s390_early_mach): New function, split out from...
(s390_emit_prologue): ...here.
(pass_data_s390_early_mach): New pass structure.
(pass_s390_early_mach): New class.
(s390_option_override): Create and register early_mach pass.
Move to end of file.

From-SVN: r207603

10 years agovar-tracking.c (vt_stack_adjustments): Don't require stack_adjusts to match for the...
Richard Sandiford [Fri, 7 Feb 2014 14:49:12 +0000 (14:49 +0000)]
var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts to match for the exit block.

gcc/
* var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
to match for the exit block.

From-SVN: r207602

10 years ago2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Fri, 7 Feb 2014 14:22:41 +0000 (14:22 +0000)]
2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
Reject misaligned operands.

From-SVN: r207601

10 years agogcc-have-sync-compare-and-swap.c: Align the 16 byte variable used for atomic operations.
Andreas Krebbel [Fri, 7 Feb 2014 14:21:29 +0000 (14:21 +0000)]
gcc-have-sync-compare-and-swap.c: Align the 16 byte variable used for atomic operations.

2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.dg/gcc-have-sync-compare-and-swap.c: Align the 16 byte
variable used for atomic operations.

From-SVN: r207600

10 years agooptabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
Andreas Krebbel [Fri, 7 Feb 2014 14:20:17 +0000 (14:20 +0000)]
optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.

2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* optabs.c (expand_atomic_compare_and_swap): Allow expander to
fail.

From-SVN: r207599

10 years agore PR middle-end/60092 (posix_memalign not recognized to derive alias and alignment...
Richard Biener [Fri, 7 Feb 2014 13:41:10 +0000 (13:41 +0000)]
re PR middle-end/60092 (posix_memalign not recognized to derive alias and alignment info)

2014-02-07  Richard Biener  <rguenther@suse.de>

PR middle-end/60092
* gimple-low.c (lower_builtin_posix_memalign): New function.
(lower_stmt): Call it to lower posix_memalign in a way
to make alignment info accessible.

* gcc.dg/vect/pr60092-2.c: New testcase.

From-SVN: r207598

10 years agore PR c++/60082 (Certain Cilk keywords executable Hanging for -O1)
Jakub Jelinek [Fri, 7 Feb 2014 10:49:08 +0000 (11:49 +0100)]
re PR c++/60082 (Certain Cilk keywords executable Hanging for -O1)

PR c++/60082
* tree.c (build_common_builtin_nodes): Set ECF_LEAF for
__builtin_setjmp_receiver.

Revert
2014-02-05  Balaji V. Iyer  <balaji.v.iyer@intel.com>

* g++.dg/cilk-plus/CK/catch_exc.cc: Disable test for -O1.
* c-c++-common/cilk-plus/CK/spawner_inline.c: Likewise.

From-SVN: r207597

10 years ago_fixdfdi.c: Throw invalid exception if number cannot be represented.
Andreas Krebbel [Fri, 7 Feb 2014 10:14:24 +0000 (10:14 +0000)]
_fixdfdi.c: Throw invalid exception if number cannot be represented.

2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/32/_fixdfdi.c: Throw invalid exception if number
cannot be represented.
* config/s390/32/_fixsfdi.c: Likewise.
* config/s390/32/_fixtfdi.c: Likewise.
* config/s390/32/_fixunsdfdi.c: Likewise.
* config/s390/32/_fixunssfdi.c: Likewise.
* config/s390/32/_fixunstfdi.c: Likewise.

2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.target/s390/fp2int1.c: New testcase.

From-SVN: r207596

10 years agore PR middle-end/60092 (posix_memalign not recognized to derive alias and alignment...
Richard Biener [Fri, 7 Feb 2014 09:33:23 +0000 (09:33 +0000)]
re PR middle-end/60092 (posix_memalign not recognized to derive alias and alignment info)

2014-02-07  Richard Biener  <rguenther@suse.de>

PR middle-end/60092
* builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
* builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
* tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
Handle BUILT_IN_POSIX_MEMALIGN.
(find_func_clobbers): Likewise.
* tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
(call_may_clobber_ref_p_1): Likewise.

* gcc.dg/tree-ssa/alias-30.c: New testcase.
* gcc.dg/tree-ssa/alias-31.c: Likewise.

From-SVN: r207595

10 years agoconfigure.ac (libgcc_cv_mips_hard_float): New.
Richard Sandiford [Fri, 7 Feb 2014 07:46:34 +0000 (07:46 +0000)]
configure.ac (libgcc_cv_mips_hard_float): New.

libgcc/
* configure.ac (libgcc_cv_mips_hard_float): New.
* configure: Regenerate.
* config.host (mips*-*-*): Use t-hardfp-sfdf rather than
t-softfp-sfdf for hard-float targets.
* config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Reinstate.
(softfp_float_modes, softfp_int_modes, softfp_extensions)
(softfp_truncations, softfp_exclude_libgcc2): New.
* config/t-hardfp: New file.
* config/t-hardfp-sfdf: Likewise.
* config/hardfp.c: Likewise.

From-SVN: r207593