platform/upstream/linaro-gcc.git
10 years ago * regex.c (bzero) [!_LIBC]: Cast the call to memcpy to (void).
uros [Thu, 13 Mar 2014 22:04:07 +0000 (22:04 +0000)]
* regex.c (bzero) [!_LIBC]: Cast the call to memcpy to (void).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208558 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR middle-end/36282
jakub [Thu, 13 Mar 2014 20:56:06 +0000 (20:56 +0000)]
PR middle-end/36282
* c-pragma.c (apply_pragma_weak): Only look at
TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
DECL_ASSEMBLER_NAME_SET_P (decl).
(maybe_apply_pending_pragma_weaks): Exit early if
vec_safe_is_empty (pending_weaks) rather than only when
!pending_weaks.
(maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
set assembler name back to NULL afterwards.

* c-c++-common/pr36282-1.c: New test.
* c-c++-common/pr36282-2.c: New test.
* c-c++-common/pr36282-3.c: New test.
* c-c++-common/pr36282-4.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208557 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoPR debug/60438
rth [Thu, 13 Mar 2014 20:24:56 +0000 (20:24 +0000)]
PR debug/60438

        * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
        (ix86_force_to_memory, ix86_free_from_memory): Remove.
        * config/i386/i386-protos.h: Likewise.
        * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
        in the expander instead of a splitter.
        (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
        any possibility of requiring a memory.
        (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
        (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
        (fp branch splitters): Update for ix86_split_fp_branch.
        (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
        (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
        (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
        (*fop_<MODEF>_2_i387): Remove f/r alternative.
        (*fop_<MODEF>_3_i387): Likewise.
        (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
        (splitters for the fop_* register patterns): Remove.
        (fscalexf4_i387): Rename from *fscalexf4_i387.
        (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208556 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR tree-optimization/59779
jakub [Thu, 13 Mar 2014 19:10:05 +0000 (19:10 +0000)]
PR tree-optimization/59779
* tree-dfa.c (get_ref_base_and_extent): Use double_int
type for bitsize and maxsize instead of HOST_WIDE_INT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208554 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * regex.c (bzero) [!_LIBC]: Define without coma expression.
uros [Thu, 13 Mar 2014 18:34:47 +0000 (18:34 +0000)]
* regex.c (bzero) [!_LIBC]: Define without coma expression.
(regerror): Cast the call to memcpy to (void) to avoid unused
value warnings.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208553 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR rtl-optimization/57320
jakub [Thu, 13 Mar 2014 18:01:48 +0000 (18:01 +0000)]
PR rtl-optimization/57320
* function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
the CFG after thread_prologue_and_epilogue_insns.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208551 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago/cp
paolo [Thu, 13 Mar 2014 16:05:15 +0000 (16:05 +0000)]
/cp
2014-03-13  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60383
* pt.c (maybe_process_partial_specialization): Check return value
of check_specialization_namespace.

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

PR c++/60383
* g++.dg/template/crash118.C: New.
* g++.dg/template/crash95.C: Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208550 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Thu, 13 Mar 2014 15:52:50 +0000 (15:52 +0000)]
2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/57189
* lra-constraints.c (process_alt_operands): Disfavor spilling
vector pseudos.

2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/57189
* gcc.target/i386/pr57189.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208549 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR ada/51483
ebotcazou [Thu, 13 Mar 2014 15:42:21 +0000 (15:42 +0000)]
PR ada/51483
* cstand.adb (Register_Float_Type): Add 'precision' parameter and use
it to set the RM size.  Use directly 'size' for the Esize.
(Create_Back_End_Float_Types): Adjust call to above.
* get_targ.ads (Register_Type_Proc): Add 'precision' parameter.
* set_targ.ads (FPT_Mode_Entry): Add 'precision' component.
(Write_Target_Dependent_Values): Adjust comment.
* set_targ.adb (Register_Float_Type): Add 'precision' parameter and
deal with it.
(Write_Target_Dependent_Values): Write the precision in lieu of size.
(Initialization): Read the precision in lieu of size and compute the
size from the precision and the alignment.
* gcc-interface/gigi.h (enumerate_modes): Add integer parameter.
* gcc-interface/misc.c (enumerate_modes): Likewise.  Do not register
types for vector modes, pass the size in addition to the precision.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208546 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago/cp
paolo [Thu, 13 Mar 2014 09:51:52 +0000 (09:51 +0000)]
/cp
2014-03-13  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60254
* semantics.c (finish_static_assert): Call cxx_constant_value only
if require_potential_rvalue_constant_expression returns true.

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

PR c++/60254
* g++.dg/cpp0x/static_assert10.C: New.
* g++.dg/cpp0x/static_assert11.C: Likewise.
* g++.dg/cpp0x/static_assert3.C: Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208538 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
rguenth [Thu, 13 Mar 2014 09:50:26 +0000 (09:50 +0000)]
2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>

* lto-wrapper.c (maybe_unlink_file): Suppress diagnostic
messages.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208537 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-13 Richard Biener <rguenther@suse.de>
rguenth [Thu, 13 Mar 2014 09:48:16 +0000 (09:48 +0000)]
2014-03-13  Richard Biener  <rguenther@suse.de>

* lib/lto.exp (lto-execute): Fix error catching for dg-final.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208536 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR tree-optimization/59025
jakub [Thu, 13 Mar 2014 09:38:28 +0000 (09:38 +0000)]
PR tree-optimization/59025
PR middle-end/60418
* tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208535 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR target/60486
gjl [Thu, 13 Mar 2014 09:16:53 +0000 (09:16 +0000)]
PR target/60486
* config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
calls of avr_out_plus_1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208532 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * ChangeLog: Fix whitespace.
uros [Thu, 13 Mar 2014 07:30:45 +0000 (07:30 +0000)]
* ChangeLog: Fix whitespace.
* testsuite/ChangeLog: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208530 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-12 Jerry DeLisle <jvdelisle@gcc.gnu>
jvdelisle [Thu, 13 Mar 2014 05:06:57 +0000 (05:06 +0000)]
2014-03-12  Jerry DeLisle  <jvdelisle@gcc.gnu>

PR libfortran/38199
* io/read.c (read_decimal): Quickly skip spaces to avoid calls
to next_char.
* io/unit.c (is_trim_ok): New helper function to check various
conditions to see if its OK to trim the internal unit string.
(get_internal_unit): Use LEN_TRIM to shorten selected internal
unit strings for optimizing READ. Enable this optimization for
formatted READ.
* io/list_read.c (finish_list_read): Don't call eat_line for
internal units.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208528 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
amker [Thu, 13 Mar 2014 02:40:08 +0000 (02:40 +0000)]
* tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
BB's single pred and update the father loop's latch info later.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208527 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoDaily bump.
gccadmin [Thu, 13 Mar 2014 00:17:03 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208525 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago[gcc]
meissner [Thu, 13 Mar 2014 00:11:56 +0000 (00:11 +0000)]
[gcc]
2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

* config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
(VEC_M): Likewise.
(VEC_N): Likewise.
(VEC_R): Likewise.
(VEC_base): Likewise.
(mov<MODE>, VEC_M modes): If we are loading TImode into VSX
registers, we need to swap double words in little endian mode.

* config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
to be a container mode for 128-bit integer operations added in ISA
2.07.  Unlike TImode and PTImode, the preferred register set is
the Altivec/VMX registers for the 128-bit operations.

* config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
declarations.
(rs6000_split_128bit_ok_p): Likewise.

* config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
macros for creating ISA 2.07 normal and overloaded builtin
functions with 3 arguments.
(BU_P8V_OVERLOAD_3): Likewise.
(VPERM_1T): Add support for V1TImode in 128-bit vector operations
for use as overloaded functions.
(VPERM_1TI_UNS): Likewise.
(VSEL_1TI): Likewise.
(VSEL_1TI_UNS): Likewise.
(ST_INTERNAL_1ti): Likewise.
(LD_INTERNAL_1ti): Likewise.
(XXSEL_1TI): Likewise.
(XXSEL_1TI_UNS): Likewise.
(VPERM_1TI): Likewise.
(VPERM_1TI_UNS): Likewise.
(XXPERMDI_1TI): Likewise.
(SET_1TI): Likewise.
(LXVD2X_V1TI): Likewise.
(STXVD2X_V1TI): Likewise.
(VEC_INIT_V1TI): Likewise.
(VEC_SET_V1TI): Likewise.
(VEC_EXT_V1TI): Likewise.
(EQV_V1TI): Likewise.
(NAND_V1TI): Likewise.
(ORC_V1TI): Likewise.
(VADDCUQ): Add support for 128-bit integer arithmetic instructions
added in ISA 2.07.  Add both normal 'altivec' builtins, and the
overloaded builtin.
(VADDUQM): Likewise.
(VSUBCUQ): Likewise.
(VADDEUQM): Likewise.
(VADDECUQ): Likewise.
(VSUBEUQM): Likewise.
(VSUBECUQ): Likewise.

* config/rs6000/rs6000-c.c (__int128_type): New static to hold
__int128_t and __uint128_t types.
(__uint128_type): Likewise.
(altivec_categorize_keyword): Add support for vector __int128_t,
vector __uint128_t, vector __int128, and vector unsigned __int128
as a container type for TImode operations that need to be done in
VSX/Altivec registers.
(rs6000_macro_to_expand): Likewise.
(altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
to support 128-bit integer instructions vaddcuq, vadduqm,
vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
(altivec_resolve_overloaded_builtin): Add support for V1TImode.

* config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
for V1TImode, and set up preferences to use VSX/Altivec
registers.  Setup VSX reload handlers.
(rs6000_debug_reg_global): Likewise.
(rs6000_init_hard_regno_mode_ok): Likewise.
(rs6000_preferred_simd_mode): Likewise.
(vspltis_constant): Do not allow V1TImode as easy altivec
constants.
(easy_altivec_constant): Likewise.
(output_vec_const_move): Likewise.
(rs6000_expand_vector_set): Convert V1TImode set and extract to
simple move.
(rs6000_expand_vector_extract): Likewise.
(reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
addressing.
(rs6000_const_vec): Add support for V1TImode.
(rs6000_emit_le_vsx_load): Swap double words when loading or
storing TImode/V1TImode.
(rs6000_emit_le_vsx_store): Likewise.
(rs6000_emit_le_vsx_move): Likewise.
(rs6000_emit_move): Add support for V1TImode.
(altivec_expand_ld_builtin): Likewise.
(altivec_expand_st_builtin): Likewise.
(altivec_expand_vec_init_builtin): Likewise.
(altivec_expand_builtin): Likewise.
(rs6000_init_builtins): Add support for V1TImode type.  Add
support for ISA 2.07 128-bit integer builtins.  Define type names
for the VSX/Altivec vector types.
(altivec_init_builtins): Add support for overloaded vector
functions with V1TImode type.
(rs6000_preferred_reload_class): Prefer Altivec registers for
V1TImode.
(rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
external function.
(rs6000_split_128bit_ok_p): Likewise.
(rs6000_handle_altivec_attribute): Create V1TImode from vector
__int128_t and vector __uint128_t.

* config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
and mode attributes.
(VSX_M): Likewise.
(VSX_M2): Likewise.
(VSm): Likewise.
(VSs): Likewise.
(VSr): Likewise.
(VSv): Likewise.
(VS_scalar): Likewise.
(VS_double): Likewise.
(vsx_set_v1ti): New builtin function to create V1TImode from
TImode.

* config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say
whether we support the ISA 2.07 128-bit integer arithmetic
instructions.
(ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
(enum rs6000_builtin_type_index): Add fields to hold V1TImode
and TImode types for use with the builtin functions.
(V1TI_type_node): Likewise.
(unsigned_V1TI_type_node): Likewise.
(intTI_type_internal_node): Likewise.
(uintTI_type_internal_node): Likewise.

* config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA
2.07 128-bit builtin functions.
(UNSPEC_VADDEUQM): Likewise.
(UNSPEC_VADDECUQ): Likewise.
(UNSPEC_VSUBCUQ): Likewise.
(UNSPEC_VSUBEUQM): Likewise.
(UNSPEC_VSUBECUQ): Likewise.
(VM): Add V1TImode to vector mode iterators.
(VM2): Likewise.
(VI_unit): Likewise.
(altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
(altivec_vaddcuq): Likewise.
(altivec_vsubuqm): Likewise.
(altivec_vsubcuq): Likewise.
(altivec_vaddeuqm): Likewise.
(altivec_vaddecuq): Likewise.
(altivec_vsubeuqm): Likewise.
(altivec_vsubecuq): Likewise.

* config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
mode iterators.
(BOOL_128): Likewise.
(BOOL_REGS_OUTPUT): Likewise.
(BOOL_REGS_OP1): Likewise.
(BOOL_REGS_OP2): Likewise.
(BOOL_REGS_UNARY): Likewise.
(BOOL_REGS_AND_CR0): Likewise.

* config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
128-bit integer builtin support.
(vec_vadduqm): Likewise.
(vec_vaddecuq): Likewise.
(vec_vaddeuqm): Likewise.
(vec_vsubecuq): Likewise.
(vec_vsubeuqm): Likewise.
(vec_vsubcuq): Likewise.
(vec_vsubuqm): Likewise.

* doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
128-bit integer add/subtract to ISA 2.07.

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

* gcc.target/powerpc/p8vector-int128-1.c: New test to test ISA
2.07 128-bit arithmetic.
* gcc.target/powerpc/p8vector-int128-2.c: Likewise.

* gcc.target/powerpc/timode_off.c: Restrict cpu type to power5,
due to when TImode is allowed in VSX registers, the allowable
address modes for TImode is just a single indirect address in
order for the value to be loaded and store in either GPR or VSX
registers.  This affects the generated code, and it would cause
this test to fail, when such an option is used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208522 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * config/arc/arc.c (arc_predicate_delay_insns):
amylaar [Thu, 13 Mar 2014 00:02:37 +0000 (00:02 +0000)]
    * config/arc/arc.c (arc_predicate_delay_insns):
        Fix third argument passed to conditionalize_nonjump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208521 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoPR libstdc++/59392: Fix ARM EABI uncaught throw from unexpected exception handler
roland [Wed, 12 Mar 2014 22:42:13 +0000 (22:42 +0000)]
PR libstdc++/59392: Fix ARM EABI uncaught throw from unexpected exception handler

libstdc++-v3/
PR libstdc++/59392
* libsupc++/eh_call.cc (__cxa_call_unexpected): Call __do_catch with
the address of a null pointer, not with a null pointer to pointer.
Copy comment for this case from eh_personality.cc:__cxa_call_unexpected.
* testsuite/18_support/bad_exception/59392.cc: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208519 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/
yufeng [Wed, 12 Mar 2014 16:35:53 +0000 (16:35 +0000)]
gcc/

* config/aarch64/aarch64-builtins.c
(aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
* config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
instead of __builtin_lfloor.
(vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208517 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agolibffi/
yufeng [Wed, 12 Mar 2014 16:18:29 +0000 (16:18 +0000)]
libffi/

* src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
main CFA reg; update cfi_rel_offset.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208515 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoEnsure UNSUPPORTED tests in tree-prof do not report absolute paths.
mshawcroft [Wed, 12 Mar 2014 14:55:54 +0000 (14:55 +0000)]
Ensure UNSUPPORTED tests in tree-prof do not report absolute paths.

The test infrastructure for gcc.dg/tree-prof reports relative paths
for all test outcomes except UNSUPPORTED, for which it reports the
absolute path of the test case.  This patch ensure a relative path is
reported consistently reducing noise in regression test comparisons.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208514 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * tree-ssa-ifcombine.c (forwarder_block_to): New function.
jakub [Wed, 12 Mar 2014 12:59:03 +0000 (12:59 +0000)]
* tree-ssa-ifcombine.c (forwarder_block_to): New function.
(tree_ssa_ifcombine_bb_1): New function.
(tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
is an empty forwarder block to then_bb or vice versa and then_bb
and else_bb are effectively swapped.

* gcc.dg/tree-ssa/ssa-ifcombine-12.c: New test.
* gcc.dg/tree-ssa/ssa-ifcombine-13.c: New test.
* gcc.dg/tree-ssa/phi-opt-2.c: Pass -mbranch-cost=1 if
possible, only test for exactly one if if -mbranch-cost=1
has been passed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208512 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-12 Christian Bruel <christian.bruel@st.com>
chrbr [Wed, 12 Mar 2014 11:31:19 +0000 (11:31 +0000)]
2014-03-12  Christian Bruel  <christian.bruel@st.com>

        PR target/60264
        * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a REG_CFA_DEF_CFA
        note.
        (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
        (arm_unwind_emit): Allow REG_CFA_DEF_CFA.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208511 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * include/dwarf2-signal.h: Update copyright year.
uros [Wed, 12 Mar 2014 11:19:05 +0000 (11:19 +0000)]
* include/dwarf2-signal.h: Update copyright year.
(SIGNAL_HANDLER): Remove _sip argument.  Mark _p argument with
__attribute__ ((__unused__)).
(class java::lang::Throwable): Remove declaration.
(MAKE_THROW_FRAME) [!__ia64__]: Define as empty definition.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208510 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR tree-optimization/60454
jakub [Wed, 12 Mar 2014 10:15:29 +0000 (10:15 +0000)]
PR tree-optimization/60454
* tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.

* gcc.c-torture/execute/pr60454.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208509 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago[AArch64] Fix selection of default CPU options at configure-time
ktkachov [Wed, 12 Mar 2014 10:13:07 +0000 (10:13 +0000)]
[AArch64] Fix selection of default CPU options at configure-time

* config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
Do not define target_cpu_default2 to generic.
* config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
* config/aarch64/aarch64.c (aarch64_override_options): Update comment.
* config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208508 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR tree-optimization/60502
jakub [Wed, 12 Mar 2014 09:21:59 +0000 (09:21 +0000)]
PR tree-optimization/60502
* tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
instead of build_low_bits_mask.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208507 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR middle-end/60482
jakub [Wed, 12 Mar 2014 09:15:08 +0000 (09:15 +0000)]
PR middle-end/60482
* tree-vrp.c (register_edge_assert_for_1): Don't add assert
if there are multiple uses, but op doesn't live on E edge.
* tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
clobber stmts before __builtin_unreachable.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208506 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agolibgo: Build math package with -ffp-contract=off on non-x86.
ian [Wed, 12 Mar 2014 04:38:52 +0000 (04:38 +0000)]
libgo: Build math package with -ffp-contract=off on non-x86.

http://golang.org/issue/7074 shows that not using
-ffp-contract=off produces the wrong result for math.Log2(1)
on arm64.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208505 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoDaily bump.
gccadmin [Wed, 12 Mar 2014 00:17:26 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208504 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/
rsandifo [Tue, 11 Mar 2014 21:35:02 +0000 (21:35 +0000)]
gcc/
* builtins.c (expand_builtin_setjmp_receiver): Use and clobber
hard_frame_pointer_rtx.
* cse.c (cse_insn): Remove volatile check.
* cselib.c (cselib_process_insn): Likewise.
* dse.c (scan_insn): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208498 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago/cp
paolo [Tue, 11 Mar 2014 17:34:32 +0000 (17:34 +0000)]
/cp
2014-03-11  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60389
* method.c (get_inherited_ctor): New.
* cp-tree.h (get_inherited_ctor): Declare it.
* semantics.c (is_valid_constexpr_fn): Use it.

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

PR c++/60389
* g++.dg/cpp0x/inh-ctor19.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208491 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR libstdc++/60499
redi [Tue, 11 Mar 2014 17:16:41 +0000 (17:16 +0000)]
PR libstdc++/60499
* include/debug/forward_list (forward_list::operator=(forward_list&&)):
Uglify name.
* include/debug/map (map::operator=(map&&)): Likewise.
* include/debug/multimap (multimap::operator=(multimap&&)): Likewise.
* include/debug/multiset (multiset::operator=(multiset&&)): Likewise.
* include/debug/set (set::operator=(set&&)): Likewise.
* include/debug/unordered_map
(unordered_map::operator=(unordered_map&&)): Likewise.
(unordered_multimap::operator=(unordered_multimap&&)): Likewise.
* include/debug/unordered_set
(unordered_set::operator=(unordered_set&&)): Likewise.
(unordered_multiset::operator=(unordered_multiset&&)): Likewise.
* include/debug/vector (vector::operator=(vector&&)): Likewise.
* testsuite/23_containers/forward_list/debug/60499.cc: New
* testsuite/23_containers/map/debug/60499.cc: New
* testsuite/23_containers/multimap/debug/60499.cc: New
* testsuite/23_containers/multiset/debug/60499.cc: New
* testsuite/23_containers/set/debug/60499.cc: New
* testsuite/23_containers/unordered_map/debug/60499.cc: New
* testsuite/23_containers/unordered_multimap/debug/60499.cc: New
* testsuite/23_containers/unordered_multiset/debug/60499.cc: New
* testsuite/23_containers/unordered_set/debug/60499.cc: New
* testsuite/23_containers/vector/debug/60499.cc: New

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208490 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * java/lang/natObject.cc (_Jv_MonitorEnter): Add missing parenthesis
uros [Tue, 11 Mar 2014 16:41:07 +0000 (16:41 +0000)]
* java/lang/natObject.cc (_Jv_MonitorEnter): Add missing parenthesis
around comparison with (address | LOCKED) in JvAssert.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208489 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoFix arc_predicate_delay_insns ICE suring qt build:
amylaar [Tue, 11 Mar 2014 16:21:33 +0000 (16:21 +0000)]
Fix arc_predicate_delay_insns ICE suring qt build:
        * config/arc/arc.c (conditionalize_nonjump): New function, broken
        out of:
        (arc_ifcvt) .
        (arc_predicate_delay_insns): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208488 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoFix post-reload predicate mismatch ICE during qt build:
amylaar [Tue, 11 Mar 2014 16:09:59 +0000 (16:09 +0000)]
Fix post-reload predicate mismatch ICE during qt build:
        * config/arc/predicates.md (extend_operand): During/after reload,
        allow const_int_operand.
        * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
        (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
        (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
        to "i".
        (umulsi3_highpart_i): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208487 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * c.opt: Add -std=gnu++14.
jason [Tue, 11 Mar 2014 15:37:12 +0000 (15:37 +0000)]
* c.opt: Add -std=gnu++14.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208486 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-11 Richard Biener <rguenther@suse.de>
rguenth [Tue, 11 Mar 2014 15:32:27 +0000 (15:32 +0000)]
2014-03-11  Richard Biener  <rguenther@suse.de>

* tree-ssa-structalias.c (get_constraint_for_ptr_offset):
Add asserts to guard possible wrong-code bugs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208485 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-11 Richard Biener <rguenther@suse.de>
rguenth [Tue, 11 Mar 2014 12:42:18 +0000 (12:42 +0000)]
2014-03-11  Richard Biener  <rguenther@suse.de>

PR tree-optimization/60429
PR tree-optimization/60485
* tree-ssa-structalias.c (set_union_with_increment): Properly
take into account all fields that overlap the shifted vars.
(do_sd_constraint): Likewise.
(do_ds_constraint): Likewise.
(get_constraint_for_ptr_offset): Likewise.

* gcc.dg/pr60485-1.c: New testcase.
* gcc.dg/pr60485-2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208479 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoDon't override -ffp-contract=fast if -funsafe-math-optimizations
ibolton [Tue, 11 Mar 2014 09:41:20 +0000 (09:41 +0000)]
Don't override -ffp-contract=fast if -funsafe-math-optimizations

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208474 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
cltang [Tue, 11 Mar 2014 09:04:54 +0000 (09:04 +0000)]
2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>

* config/nios2/nios2.c (machine_function): Add fp_save_offset field.
(nios2_compute_frame_layout):
Add calculation of cfun->machine->fp_save_offset.
(nios2_expand_prologue): Correct setting of frame pointer register
in prologue.
(nios2_expand_epilogue): Update recovery of stack pointer from
frame pointer accordingly.
(nios2_initial_elimination_offset): Update calculation of offset
for eliminating to HARD_FRAME_POINTER_REGNUM.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208472 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * sv.po: Update.
jsm28 [Tue, 11 Mar 2014 00:24:22 +0000 (00:24 +0000)]
* sv.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208470 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoDaily bump.
gccadmin [Tue, 11 Mar 2014 00:17:28 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208469 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * gcc-interface/Make-lang.in (ADA_DEPFILES): Fix typo.
ebotcazou [Mon, 10 Mar 2014 23:58:30 +0000 (23:58 +0000)]
* gcc-interface/Make-lang.in (ADA_DEPFILES): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208466 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR c++/60367
jason [Mon, 10 Mar 2014 21:06:59 +0000 (21:06 +0000)]
PR c++/60367
* call.c (convert_default_arg): Remove special handling for
CONSTRUCTOR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208465 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * MAINTAINERS (Write After Approval): Add myself.
aesok [Mon, 10 Mar 2014 19:44:14 +0000 (19:44 +0000)]
* MAINTAINERS (Write After Approval): Add myself.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208461 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agomove dg-do before dg-require
jason [Mon, 10 Mar 2014 19:31:50 +0000 (19:31 +0000)]
move dg-do before dg-require

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208460 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR libgcc/60472
uros [Mon, 10 Mar 2014 18:31:20 +0000 (18:31 +0000)]
PR libgcc/60472
* crtstuff.c (frame_dummy): Use void **jcr_list temporary
variable to avoid array subscript is above array bounds warnings.
Use __builtin_expect when checking *jcr_list for NULL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208457 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR c++/53492
jason [Mon, 10 Mar 2014 15:44:50 +0000 (15:44 +0000)]
PR c++/53492
* parser.c (cp_parser_class_head): Also check PRIMARY_TEMPLATE_P
when deciding whether to call push_template_decl for a member class.
* pt.c (push_template_decl_real): Return after wrong levels error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208455 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR ipa/60457
jakub [Mon, 10 Mar 2014 14:55:20 +0000 (14:55 +0000)]
PR ipa/60457
* ipa.c (symtab_remove_unreachable_nodes): Don't call
cgraph_get_create_node on VAR_DECLs.

* g++.dg/ipa/pr60457.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208454 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-10 Richard Biener <rguenther@suse.de>
rguenth [Mon, 10 Mar 2014 13:27:16 +0000 (13:27 +0000)]
2014-03-10  Richard Biener  <rguenther@suse.de>

PR middle-end/60474
* tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.

* g++.dg/torture/pr60474.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208451 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoDaily bump.
gccadmin [Mon, 10 Mar 2014 00:16:26 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208447 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago* g++.dg/cpp0x/alias-decl-debug-0.C: Move dg-skip after dg-do.
schwab [Sun, 9 Mar 2014 07:52:48 +0000 (07:52 +0000)]
* g++.dg/cpp0x/alias-decl-debug-0.C: Move dg-skip after dg-do.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208441 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-09 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 9 Mar 2014 07:48:48 +0000 (07:48 +0000)]
2014-03-09  Tobias Burnus  <burnus@net-b.de>

        * Makefile.am: Install cilk.h.
        * Makefile.in: Regenerate.
        * aclocal.m4: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208440 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-08 Jerry DeLisle <jvdelisle@gcc.gnu>
jvdelisle [Sun, 9 Mar 2014 05:34:34 +0000 (05:34 +0000)]
2014-03-08  Jerry DeLisle  <jvdelisle@gcc.gnu>

PR libfortran/38199
* io/list_read.c (next_char): Mark unlikely error checks.
(eat_spaces): For character array reading, skip ahead over
spaces rather than call next_char multiple times.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208439 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-08 Jerry DeLisle <jvdelisle@gcc.gnu>
jvdelisle [Sun, 9 Mar 2014 03:17:16 +0000 (03:17 +0000)]
2014-03-08  Jerry DeLisle  <jvdelisle@gcc.gnu>

PR libfortran/38199
* io/list_read.c (next_char): Delete unuseful error checks.
(eat_spaces): For character array reading, skip ahead over
spaces rather than call next_char multiple times.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208438 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoDaily bump.
gccadmin [Sun, 9 Mar 2014 00:17:01 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208437 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-08 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 8 Mar 2014 22:13:26 +0000 (22:13 +0000)]
2014-03-08  Tobias Burnus  <burnus@net-b.de>

        * libgfortran.h (unlikely, likely): Add usage comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208434 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoFixes reported build failure.
rupp [Sat, 8 Mar 2014 20:57:29 +0000 (20:57 +0000)]
Fixes reported build failure.
Tested by cross compiler target ia64-hp-openvms

* config/vms/vms.opt (vms_float_format): New variable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208433 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-08 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 8 Mar 2014 20:42:34 +0000 (20:42 +0000)]
2014-03-08  Tobias Burnus  <burnus@net-b.de>

        * doc/invoke.texi (-fcilkplus): Update implementation
        status.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208432 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-08 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 8 Mar 2014 18:53:18 +0000 (18:53 +0000)]
2014-03-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/60447
        * f95-lang.c (gfc_init): Return false when only
        preprocessing.
        * options.c (gfc_post_options): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208431 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-08 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 8 Mar 2014 11:06:48 +0000 (11:06 +0000)]
2014-03-08  Tobias Burnus  <burnus@net-b.de>

        * gfortran.texi (Fortran 2003 Status): Mention finalization,
        deferred-length character support and input rounding.
        (Fortran 2008 Status): Mention that at termination
        signalling exceptions are shown.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208429 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-08 Paulo Matos <paulo@matos-sorge.com>
pmatos [Sat, 8 Mar 2014 10:54:05 +0000 (10:54 +0000)]
2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
    Richard Biener  <rguenther@suse.de>

* lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
consistently accross all TUs.
(run_gcc): Enable -fshort-double automatically at link at link-time
and disallow override.

2014-03-08  Paulo Matos  <paulo@matos-sorge.com>

    * c.opt: Enable LTO FE for fshort-double.

2014-03-08  Paulo Matos  <paulo@matos-sorge.com>

    * gcc.dg/lto/pr55113_0.c: New testcase.

2014-03-08  Paulo Matos  <paulo@matos-sorge.com>

    * lto-lang.c (lto_init): Pass flag_short_double to
    build_common_tree_nodes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208428 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoFix PR c++/60033
abutcher [Sat, 8 Mar 2014 09:33:12 +0000 (09:33 +0000)]
Fix PR c++/60033

PR c++/60033
* pt.c (tsubst_copy): When retrieving a capture pack from a generic
lambda, remove the lambda's own template argument list prior to fetching
the specialization.

PR c++/60033
* g++.dg/cpp1y/pr60033.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208427 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoFix PR c++/60393
abutcher [Sat, 8 Mar 2014 09:33:03 +0000 (09:33 +0000)]
Fix PR c++/60393

PR c++/60393
* parser.c (cp_parser_parameter_declaration_clause): Move generic
function template unwinding on error into a more general location, ...
(cp_parser_skip_to_end_of_statement): ... here.

PR c++/60393
* g++.dg/cpp1y/pr60393.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208426 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/
rsandifo [Sat, 8 Mar 2014 09:27:23 +0000 (09:27 +0000)]
gcc/
PR target/58271
* config/mips/mips.c (mips_option_override): Promote -mpaired-single
warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
if they can't be used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208425 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-08 Dominique d'Humieres <dominiq@lps.ens.fr>
jvdelisle [Sat, 8 Mar 2014 06:04:34 +0000 (06:04 +0000)]
2014-03-08  Dominique d'Humieres  <dominiq@lps.ens.fr>

PR libgfortran/60128
* io/write_float.def (output_float): Remove unused variable
nzero_real. Replace a double space with a single one.
(determine_en_precision): Fix wrong handling of the EN format.

PR libfortran/60128
* gfortran.dg/fmt_en.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208423 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoDaily bump.
gccadmin [Sat, 8 Mar 2014 00:16:29 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208422 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-07 Doug Rupp <rupp@adacore.com>
charlet [Fri, 7 Mar 2014 20:35:33 +0000 (20:35 +0000)]
2014-03-07  Doug Rupp  <rupp@adacore.com>

PR ada/60411
* system-linux-armel.ads (Backend_Overflow_Checks): Set to True.
(Support_64_Bit_Divides): Removed, no longer used.
(ZCX_By_Default): Enabled.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208419 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * Make-lang.in (check_g++_parallelize): Split dg.exp.
jason [Fri, 7 Mar 2014 20:01:27 +0000 (20:01 +0000)]
* Make-lang.in (check_g++_parallelize): Split dg.exp.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208417 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * lib/g++-dg.exp (g++-dg-runtest): Run tests in C++1y mode, too.
jason [Fri, 7 Mar 2014 20:01:12 +0000 (20:01 +0000)]
* lib/g++-dg.exp (g++-dg-runtest): Run tests in C++1y mode, too.
* lib/target-supports.exp (check_effective_target_c++11): Now
means C++11 and up.
(check_effective_target_c++11_only): New.
(check_effective_target_c++11_down): New.
(check_effective_target_c++1y): New.
(check_effective_target_c++1y_only): New.
(check_effective_target_c++98_only): Rename from
check_effective_target_c++98.
* g++.dg/*: Use { target c++11 } instead of -std=c++11.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208416 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * parser.c (cp_parser_type_id_1): Only allow 'auto' in C++1y if
jason [Fri, 7 Mar 2014 20:00:36 +0000 (20:00 +0000)]
* parser.c (cp_parser_type_id_1): Only allow 'auto' in C++1y if
we're in a trailing return type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208415 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * typeck.c (comp_template_parms_position): 'auto' and
jason [Fri, 7 Mar 2014 20:00:31 +0000 (20:00 +0000)]
* typeck.c (comp_template_parms_position): 'auto' and
'decltype(auto)' are different from real template parms.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208414 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * parser.c (cp_parser_using_declaration): Consume the semicolon
jason [Fri, 7 Mar 2014 20:00:25 +0000 (20:00 +0000)]
* parser.c (cp_parser_using_declaration): Consume the semicolon
after bare parameter pack error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208413 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * cp-tree.h (REF_PARENTHESIZED_P): New.
jason [Fri, 7 Mar 2014 20:00:20 +0000 (20:00 +0000)]
* cp-tree.h (REF_PARENTHESIZED_P): New.
* semantics.c (force_paren_expr): Set it.
* pt.c (do_auto_deduction): Check it.
(tsubst) [COMPONENT_REF]: Copy it.
* typeck.c (maybe_warn_about_useless_cast): Don't strip dereference.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208412 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * decl.c (create_array_type_for_decl): Only warn about invalid
jason [Fri, 7 Mar 2014 20:00:14 +0000 (20:00 +0000)]
* decl.c (create_array_type_for_decl): Only warn about invalid
C++1y VLA if flag_iso or warn_vla>0.
(grokdeclarator): Likewise.
* pt.c (tsubst): Likewise.
* semantics.c (finish_decltype_type): Likewise.
* typeck.c (cxx_sizeof_or_alignof_type): Likewise.
(cp_build_addr_expr_1): Likewise.
* init.c (build_new_1): Improve diagnostics.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208411 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago/cp
paolo [Fri, 7 Mar 2014 18:33:38 +0000 (18:33 +0000)]
/cp
2014-03-07  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58609
* decl.c (check_initializer): Return NULL_TREE after error;
consistently use inform.

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

PR c++/58609
* g++.dg/cpp0x/constexpr-ice12.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208410 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * MAINTAINERS: Remove avr maintainers: Anatoly Sokolov and Eric Weddington
denisc [Fri, 7 Mar 2014 16:55:43 +0000 (16:55 +0000)]
* MAINTAINERS: Remove avr maintainers: Anatoly Sokolov and Eric Weddington

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208406 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * c.opt: Add -std=c++14.
jason [Fri, 7 Mar 2014 16:23:57 +0000 (16:23 +0000)]
* c.opt: Add -std=c++14.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208404 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * sort.c (backtrace_qsort): Use middle element as pivot.
ian [Fri, 7 Mar 2014 15:52:48 +0000 (15:52 +0000)]
* sort.c (backtrace_qsort): Use middle element as pivot.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208403 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-07 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 7 Mar 2014 14:19:53 +0000 (14:19 +0000)]
2014-03-07  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (check_initializer): Remove dead code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208402 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoHandle backtrace_qsort
ro [Fri, 7 Mar 2014 13:55:54 +0000 (13:55 +0000)]
Handle backtrace_qsort

* libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
Add ../../libbacktrace/sort.c.
* libbacktrace/Makefile.in: Regenerate.
* libbacktrace/backtrace-rename.h (backtrace_qsort): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208401 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR bootstrap/58572
jakub [Fri, 7 Mar 2014 12:58:27 +0000 (12:58 +0000)]
PR bootstrap/58572
* Makefile.tpl (POSTSTAGE1_CXX_EXPORT): Use -isystem instead of
-I for libstdc++-v3 includes if $(LEAN).
* Makefile.in: Regenerated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208400 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoImprove @tlsldmplt test on Solaris 11/x86
ro [Fri, 7 Mar 2014 11:33:39 +0000 (11:33 +0000)]
Improve @tlsldmplt test on Solaris 11/x86

* configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test for Solaris
11/x86 ld.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208399 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoDisable local dynamic TLS model on Solaris/x86 if as/ld cannot handle it
ro [Fri, 7 Mar 2014 11:30:40 +0000 (11:30 +0000)]
Disable local dynamic TLS model on Solaris/x86 if as/ld cannot handle it

* configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
(LIB_TLS_SPEC): Save as ld_tls_libs.
(HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
(HAVE_AS_IX86_TLSLDM): New test.
* configure, config.in: Regenerate.
* config/i386/i386.c (legitimize_tls_address): Fall back to
TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
cannot support TLS_MODEL_LOCAL_DYNAMIC.
* config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208398 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-07 Paulo Matos <paulo@matos-sorge.com>
pmatos [Fri, 7 Mar 2014 09:34:18 +0000 (09:34 +0000)]
2014-03-07  Paulo Matos  <paulo@matos-sorge.com>

* common.opt (fira-loop-pressure): Mark as optimization.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208395 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoThe error_mark_node is not an OpenMP mappable type.
tschwinge [Fri, 7 Mar 2014 08:46:13 +0000 (08:46 +0000)]
The error_mark_node is not an OpenMP mappable type.

gcc/
* langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
an OpenMP mappable type.
gcc/c/
* c-decl.c (c_decl_attributes): Use
lang_hooks.types.omp_mappable_type.
* c-typeck.c (c_finish_omp_clauses): Likewise.
gcc/testsuite/
* c-c++-common/gomp/map-1.c: Extend.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208394 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago * sort.c: New file.
ian [Fri, 7 Mar 2014 05:07:56 +0000 (05:07 +0000)]
* sort.c: New file.
* stest.c: New file.
* internal.h (backtrace_qsort): Declare.
* dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
(read_line_info, read_function_entry): Likewise.
(read_function_info, build_dwarf_data): Likewise.
* elf.c (elf_initialize_syminfo): Likewise.
* Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
(stest_SOURCES, stest_LDADD): Define.
(check_PROGRAMS): Add stest.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208392 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoruntime: Fix GC bug caused by Entersyscall modifying reg.
ian [Fri, 7 Mar 2014 05:04:37 +0000 (05:04 +0000)]
runtime: Fix GC bug caused by Entersyscall modifying reg.

This patch fixes a rare but serious bug.  The Go garbage
collector only examines Go stacks.  When Go code calls a
function that is not written in Go, it first calls
syscall.Entersyscall.  Entersyscall records the position of
the Go stack pointer and saves a copy of all the registers.
If the garbage collector runs while the thread is executing
the non-Go code, the garbage collector fetches the stack
pointer and registers from the saved location.

Entersyscall saves the registers using the getcontext
function.  Unfortunately I didn't consider the possibility
that Entersyscall might itself change a register before
calling getcontext.  This only matters for callee-saved
registers, as caller-saved registers would be visible on the
saved stack.  And it only matters if Entersyscall is compiled
to save and modify a callee-saved register before it calls
getcontext.  And it only matters if a garbage collection
occurs while the non-Go code is executing.  And it only
matters if the only copy of a valid Go pointer happens to be
in the callee-saved register when Entersyscall is called.
When all those conditions are true, the Go pointer might get
collected incorrectly, leading to memory corruption.

This patch tries to avoid the problem by splitting
Entersyscall into two functions.  The first is a simple
function that just calls getcontext and then calls the rest of
Entersyscall.  This should fix the problem, provided the
simple Entersyscall function does not itself modify any
callee-saved registers before calling getcontext.  That seems
to be true on the systems I checked.  But since the argument
to getcontext is an offset from a TLS variable, it won't be
true on a system which needs to save callee-saved registers in
order to get the address of a TLS variable.  I don't know why
any system would work that way, but I don't know how to rule
it out.  I think that on any such system this will have to be
implemented in assembler.  I can't put the ucontext_t
structure on the stack, because this function can not split
stacks, and the ucontext_t structure is large enough that it
could cause a stack overflow.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208390 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoDaily bump.
gccadmin [Fri, 7 Mar 2014 00:16:53 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208389 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-06 Paul Thomas <pault@gcc.gnu.org>
janus [Thu, 6 Mar 2014 21:45:31 +0000 (21:45 +0000)]
2014-03-06  Paul Thomas  <pault@gcc.gnu.org>
    Janus Weil  <janus@gcc.gnu.org>

PR fortran/51976
* gfortran.h (symbol_attribute): Add deferred_parameter attribute.
* primary.c (build_actual_constructor): It is not an error if
a missing component has the deferred_parameter attribute;
equally, if one is given a value, it is an error.
* resolve.c (resolve_fl_derived0): Remove error for deferred
character length components.  Add the hidden string length
field to the structure. Give it the deferred_parameter
attribute.
* trans-array.c (duplicate_allocatable): Add a strlen field
which is used as the element size if it is non-null.
(gfc_duplicate_allocatable, gfc_copy_allocatable_data): Pass a
NULL to the new argument in duplicate_allocatable.
(structure_alloc_comps): Set the hidden string length as
appropriate. Use it in calls to duplicate_allocatable.
(gfc_alloc_allocatable_for_assignment): When a deferred length
backend declaration is variable, use that; otherwise use the
string length from the expression evaluation.
* trans-expr.c (gfc_conv_component_ref): If this is a deferred
character length component, the string length should have the
value of the hidden string length field.
(gfc_trans_subcomponent_assign): Set the hidden string length
field for deferred character length components.  Allocate the
necessary memory for the string.
(alloc_scalar_allocatable_for_assignment): Same change as in
gfc_alloc_allocatable_for_assignment above.
* trans-stmt.c (gfc_trans_allocate): Likewise.
* trans-intrinsic (size_of_string_in_bytes): Make non-static.
* trans-types.c (gfc_get_derived_type): Set the tree type for
a deferred character length component.
* trans.c (gfc_deferred_strlen): New function.
* trans.h (size_of_string_in_bytes,gfc_deferred_strlen): New prototypes.

2014-03-06  Paul Thomas  <pault@gcc.gnu.org>
    Janus Weil  <janus@gcc.gnu.org>

PR fortran/51976
* gfortran.dg/deferred_type_component_1.f90 : New test.
* gfortran.dg/deferred_type_component_2.f90 : New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208386 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-06 Matthias Klose <doko@ubuntu.com>
doko [Thu, 6 Mar 2014 14:16:49 +0000 (14:16 +0000)]
2014-03-06  Matthias Klose  <doko@ubuntu.com>

        * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
        MULTILIB_OSDIRNAMES is not defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208383 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR c/60197
mpolacek [Thu, 6 Mar 2014 13:41:46 +0000 (13:41 +0000)]
PR c/60197
c-family/
* cilk.c (contains_cilk_spawn_stmt): New function.
(contains_cilk_spawn_stmt_walker): Likewise.
(recognize_spawn): Give error on invalid use of _Cilk_spawn.
* c-common.h (contains_cilk_spawn_stmt): Add declaration.
c/
* c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
of checking tree code.
cp/
* typeck.c (check_return_expr): Call contains_cilk_spawn_stmt instead
of checking tree code.
testsuite/
* c-c++-common/cilk-plus/CK/pr60197.c: New test.
* c-c++-common/cilk-plus/CK/pr60197-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208382 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agoDon't install vtv_*.o unless --enable-vtable-verify (PR libgcc/59339)
ro [Thu, 6 Mar 2014 12:24:11 +0000 (12:24 +0000)]
Don't install vtv_*.o unless --enable-vtable-verify (PR libgcc/59339)

PR libgcc/59339
* config.host (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu)
(*-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Only add
vtv_*.o to extra_parts if enable_vtable_verify.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208381 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago PR target/58595
jakub [Thu, 6 Mar 2014 12:07:07 +0000 (12:07 +0000)]
PR target/58595
* config/arm/arm.c (arm_tls_symbol_p): Remove.
(arm_legitimize_address): Call legitimize_tls_address for any
arm_tls_referenced_p expression, handle constant addend.  Call it
before testing for !TARGET_ARM.
(thumb_legitimize_address): Don't handle arm_tls_symbol_p here.

* gcc.dg/tls/pr58595.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208380 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-06 Richard Biener <rguenther@suse.de>
rguenth [Thu, 6 Mar 2014 11:19:13 +0000 (11:19 +0000)]
2014-03-06  Richard Biener  <rguenther@suse.de>

PR middle-end/60445
PR lto/60424
PR lto/60427
Revert
2014-03-04  Paulo Matos  <paulo@matos-sorge.com>

        * tree-streamer.c (record_common_node): Assert we don't record
        nodes with type double.
        (preload_common_node): Skip type double, complex double and
        double pointer since it is now frontend dependent due to
        fshort-double option.

        * gcc.dg/lto/pr55113_0.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208379 138bc75d-0d04-0410-961f-82ee72b054a4

10 years ago2014-03-06 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 6 Mar 2014 09:40:06 +0000 (09:40 +0000)]
2014-03-06  Paolo Carlini  <paolo.carlini@oracle.com>

* parser.c (cp_lexer_set_source_position): New.
(cp_parser_mem_initializer): Use it.
     (cp_parser_postfix_open_square_expression): Likewise.
     (cp_parser_parenthesized_expression_list): Likewise.
     (cp_parser_new_initializer): Likewise.
     (cp_parser_jump_statement): Likewise.
     (cp_parser_initializer): Likewise.
     (cp_parser_functional_cast): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208378 138bc75d-0d04-0410-961f-82ee72b054a4