platform/upstream/gcc.git
10 years agore PR c++/44613 (Declaring an array with non-constant length inside a switch corrupts...
Patrick Palka [Fri, 4 Apr 2014 19:36:00 +0000 (02:36 +0700)]
re PR c++/44613 (Declaring an array with non-constant length inside a switch corrupts stack pointer.)

PR c++/44613
* semantics.c (add_stmt): Set STATEMENT_LIST_HAS_LABEL.
* decl.c (cp_finish_decl): Create a new BIND_EXPR before
instantiating a variable-sized type.

From-SVN: r209125

10 years agore PR c++/21113 (Jumps into VLA or VM scope not rejected for C++)
Patrick Palka [Fri, 4 Apr 2014 19:35:54 +0000 (02:35 +0700)]
re PR c++/21113 (Jumps into VLA or VM scope not rejected for C++)

PR c++/21113
* decl.c (decl_jump_unsafe): Consider variably-modified decls.

From-SVN: r209124

10 years agore PR lto/59626 (/usr/include/bits/unistd.h:173:1: error: inlining failed in call...
Jan Hubicka [Fri, 4 Apr 2014 18:02:31 +0000 (20:02 +0200)]
re PR lto/59626 (/usr/include/bits/unistd.h:173:1: error: inlining failed in call to always_inline 'readlinkat': recursive inlining)

PR ipa/59626
* lto-cgraph.c (input_overwrite_node): Check that partitioning
flags are set only during streaming.
* ipa.c (process_references, walk_polymorphic_call_targets,
symtab_remove_unreachable_nodes): Drop bodies of always inline
after early inlining.
(symtab_remove_unreachable_nodes): Remove always_inline attribute.
* gcc.dg/lto/pr59626_0.c: New testcase.
* gcc.dg/lto/pr59626_1.c: New testcase.

From-SVN: r209123

10 years agoFix PR debug/60655 - part 1
Ramana Radhakrishnan [Fri, 4 Apr 2014 16:10:07 +0000 (16:10 +0000)]
Fix PR debug/60655 - part 1

This is a partial fix for PR60655 where dwarf2out.c rejects NOT of a
value in const_ok_for_output_1. There is still a problem with the
testcase on armhf where we get operations of the form, const (minus
(const_int) (symref)) without the -fdata-sections option which is just
weird. I'm not yet sure where this is produced from and will not have
the time to dig further today.

As Jakub said on IRC, const_ok_for_output_1 is called only with
partial rtx's and therefore disabling minus (const_int) (symref) might
not be the best thing to do especially if this were part of plus
(symref) (minus (const int) (symref)) and both symrefs were in the
same section.

Bootstrapped and regtested on armhf

Bootstrap and regression test running on x86_64.

Ok to commit ?

regards
Ramana

gcc/

<DATE>   Jakub Jelinek <jakub@redhat.com>
         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

* dwarf2out.c (const_ok_for_output_1): Reject expressions
containing a NOT.

gcc/testsuite

<DATE>  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

* gcc.c-torture/compile/pr60655-1.c: New test.

From-SVN: r209121

10 years ago[ARM/AArch64] Reduce divider reservation duration in Cortex-A53 pipeline decription
Kyrylo Tkachov [Fri, 4 Apr 2014 15:47:45 +0000 (15:47 +0000)]
[ARM/AArch64] Reduce divider reservation duration in Cortex-A53 pipeline decription

PR bootstrap/60743
* config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
duration.
(cortex_a53_fdivd): Likewise.

From-SVN: r209119

10 years agoclass.c (find_abi_tags_r): Check for the return of warning before emitting a note.
Fabien Chêne [Fri, 4 Apr 2014 15:19:07 +0000 (17:19 +0200)]
class.c (find_abi_tags_r): Check for the return of warning before emitting a note.

2014-04-04  Fabien Chêne  <fabien@gcc.gnu.org>

* class.c (find_abi_tags_r): Check for the return of warning
before emitting a note.
(one_inherited_ctor): Likewise.

From-SVN: r209118

10 years agore PR ipa/60640 (ICE edge points to wrong declaration / verify_cgraph_node failed)
Martin Jambor [Fri, 4 Apr 2014 14:11:06 +0000 (16:11 +0200)]
re PR ipa/60640 (ICE edge points to wrong declaration / verify_cgraph_node failed)

2014-04-04  Martin Jambor  <mjambor@suse.cz>

PR ipa/60640
        * cgraph.h (cgraph_clone_node): New parameter added to declaration.
        Adjust all callers.
* cgraph.c (clone_of_p): Also return true if thunks match.
(verify_edge_corresponds_to_fndecl): Removed extraneous call to
cgraph_function_or_thunk_node and an obsolete comment.
        * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
        file.
        (build_function_decl_skip_args): Likewise.
(set_new_clone_decl_and_node_flags): New function.
        (duplicate_thunk_for_node): Likewise.
        (redirect_edge_duplicating_thunks): Likewise.
        (cgraph_clone_node): New parameter args_to_skip, pass it to
        redirect_edge_duplicating_thunks which is called instead of
        cgraph_redirect_edge_callee.
        (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
moved setting of a lot of flags to set_new_clone_decl_and_node_flags.

testsuite/
        * g++.dg/ipa/pr60640-1.C: New test.
        * g++.dg/ipa/pr60640-2.C: Likewise.
        * g++.dg/ipa/pr60640-3.C: Likewise.
        * g++.dg/ipa/pr60640-4.C: Likewise.

From-SVN: r209097

10 years agore PR fortran/60191 (test case gfortran.dg/dynamic_dispatch_1/3.f03 fail on ARMv7)
Bernd Edlinger [Fri, 4 Apr 2014 13:54:16 +0000 (13:54 +0000)]
re PR fortran/60191 (test case gfortran.dg/dynamic_dispatch_1/3.f03 fail on ARMv7)

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

        PR fortran/60191
        * fortran/trans-types.c (gfc_get_function_type): In case of recursion
        build a variadic function type with empty argument list instead of a
        stdarg-like function type with incomplete argument list.

From-SVN: r209091

10 years agore PR target/60657 (ICE: error: insn does not satisfy its constraints)
Jeff Law [Fri, 4 Apr 2014 13:13:20 +0000 (07:13 -0600)]
re PR target/60657 (ICE: error: insn does not satisfy its constraints)

        PR target/60657
* config/arm/predicates.md (const_int_I_operand): New predicate.
(const_int_M_operand): Similarly.
* config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
const_int_operand.
(insv_t2, extv_reg, extzv_t2): Likewise.
(load_multiple_with_writeback): Similarly for const_int_I_operand.
(pop_multiple_with_writeback_and_return): Likewise.
(vfp_pop_multiple_with_writeback): Likewise

PR target/60657
* gcc.target/arm/pr60657.c: New test.

From-SVN: r209085

10 years agore PR middle-end/60746 (ICE segfault in gimple-expr.c:314)
Richard Biener [Fri, 4 Apr 2014 11:52:35 +0000 (11:52 +0000)]
re PR middle-end/60746 (ICE segfault in gimple-expr.c:314)

2014-04-04  Richard Biener  <rguenther@suse.de>

PR ipa/60746
* tree-ssanames.c (make_ssa_name_fn): Fix assert.
* gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
non-GIMPLE_LABELs.
* gimplify.h (gimple_add_tmp_var_fn): Declare.
* gimplify.c (gimple_add_tmp_var_fn): New function.
* gimple-expr.h (create_tmp_reg_fn): Declare.
* gimple-expr.c (create_tmp_reg_fn): New function.
* gimple-low.c (record_vars_into): Don't change cfun.
* cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
code generation without cfun.

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

From-SVN: r209079

10 years agoFix shell scripting.
Thomas Schwinge [Fri, 4 Apr 2014 08:09:23 +0000 (10:09 +0200)]
Fix shell scripting.

PR bootstrap/60719
* Makefile.in (install-driver): Fix shell scripting.

From-SVN: r209072

10 years agodecl.c (duplicate_decls): Check for the return of permerror before emitting a note.
Fabien Chêne [Fri, 4 Apr 2014 08:03:19 +0000 (10:03 +0200)]
decl.c (duplicate_decls): Check for the return of permerror before emitting a note.

2014-04-04  Fabien Chêne  <fabien@gcc.gnu.org>

* decl.c (duplicate_decls): Check for the return of permerror
before emitting a note.

2014-04-04  Fabien Chêne  <fabien@gcc.gnu.org>

* g++.old-deja/g++.robertl/eb121.C: Adjust.
* g++.old-deja/g++.jason/overload21.C: Likewise.
* g++.old-deja/g++.law/init5.C: Likewise.

From-SVN: r209071

10 years agoDaily bump.
GCC Administrator [Fri, 4 Apr 2014 00:16:35 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r209068

10 years agore PR tree-optimization/60505 (Warning caused by GCC vectorizer.)
Cong Hou [Thu, 3 Apr 2014 23:05:42 +0000 (19:05 -0400)]
re PR tree-optimization/60505 (Warning caused by GCC vectorizer.)

2014-04-03  Cong Hou  <congh@google.com>

PR tree-optimization/60505
    * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
    threshold of number of iterations below which no vectorization will be
    done.
    * tree-vect-loop.c (new_loop_vec_info):
    Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
    * tree-vect-loop.c (vect_analyze_loop_operations):
    Set LOOP_VINFO_COST_MODEL_THRESHOLD.
    * tree-vect-loop.c (vect_transform_loop):
    Use LOOP_VINFO_COST_MODEL_THRESHOLD.
    * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
    of iterations of the loop and see if we should build the epilogue.

2014-04-03  Cong Hou  <congh@google.com>

    PR tree-optimization/60505
    * gcc.dg/vect/pr60505.c: New test.

From-SVN: r209065

10 years agotree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
Richard Biener [Thu, 3 Apr 2014 14:27:02 +0000 (14:27 +0000)]
tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.

2014-04-03  Richard Biener  <rguenther@suse.de>

* tree-streamer.h (struct streamer_tree_cache_d): Add next_idx
member.
(streamer_tree_cache_create): Adjust.
* tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
to allow optional nodes array.
(streamer_tree_cache_insert_1): Use next_idx to assign idx.
(streamer_tree_cache_append): Likewise.
(streamer_tree_cache_create): Create nodes array optionally
as specified by parameter.
* lto-streamer-out.c (create_output_block): Avoid maintaining
the node array in the writer cache.
(DFS_write_tree): Remove assertion.
(produce_asm_for_decls): Free the out decl state hash table
early.
* lto-streamer-in.c (lto_data_in_create): Adjust for
streamer_tree_cache_create prototype change.

From-SVN: r209059

10 years agotree-streamer-out.c (streamer_write_chain): Do not temporarily set TREE_CHAIN to...
Richard Biener [Thu, 3 Apr 2014 14:22:17 +0000 (14:22 +0000)]
tree-streamer-out.c (streamer_write_chain): Do not temporarily set TREE_CHAIN to NULL_TREE.

2014-04-03  Richard Biener  <rguenther@suse.de>

* tree-streamer-out.c (streamer_write_chain): Do not temporarily
set TREE_CHAIN to NULL_TREE.

From-SVN: r209058

10 years agore PR tree-optimization/60740 (ICE in extract_affine w/ -O2 -ftree-loop-linear)
Richard Biener [Thu, 3 Apr 2014 13:43:23 +0000 (13:43 +0000)]
re PR tree-optimization/60740 (ICE in extract_affine w/ -O2 -ftree-loop-linear)

2014-04-03  Richard Biener  <rguenther@suse.de>

PR tree-optimization/60740
* graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
over all GIMPLE_COND operands.

* gcc.dg/graphite/pr60740.c: New testcase.

From-SVN: r209057

10 years agoinvoke.texi (Wnon-virtual-dtor): Adjust documentation.
Nathan Sidwell [Thu, 3 Apr 2014 13:41:55 +0000 (13:41 +0000)]
invoke.texi (Wnon-virtual-dtor): Adjust documentation.

* doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
(Weffc++): Remove Scott's numbering, merge lists and reference
Wnon-virtual-dtor.

c-family/
* c.opt (Wnon-virtual-dtor): Auto set when Weffc++.

cp/
* class.c (accessible_nvdtor_p): New.
(check_bases): Don't check base destructor here ...
(check_bases_and_members): ... check them here.  Trigger on
Wnon-virtual-dtor flag.
(finish_struct_1): Use accessible_nvdtor_p.

testsuite/
* g++.dg/warn/Wnvdtor.C: Add non-polymorphic case.
* g++.dg/warn/Wnvdtor-2.C: New.
* g++.dg/warn/Wnvdtor-3.C: New.
* g++.dg/warn/Wnvdtor-4.C: New.
* g++.dg/warn/Weff1.C: Delete.
* g++.old-deja/g++.benjamin/15309-1.C: Delete.
* g++.old-deja/g++.benjamin/15309-2.C: Delete.

From-SVN: r209056

10 years agorl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF)) properly.
Nick Clifton [Thu, 3 Apr 2014 13:02:27 +0000 (13:02 +0000)]
rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF)) properly.

* config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
properly.

From-SVN: r209055

10 years agoipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and mention gcc_unreachabl...
Martin Jambor [Thu, 3 Apr 2014 09:35:41 +0000 (11:35 +0200)]
ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and mention gcc_unreachable before failing.

2014-04-03  Martin Jambor  <mjambor@suse.cz>

* ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
mention gcc_unreachable before failing.
* ipa.c (symtab_remove_unreachable_nodes): Also print order of
removed symbols.

From-SVN: r209052

10 years agore PR ipa/60659 (ICE in get_polymorphic_call_info, at ipa-devirt.c:1292)
Jan Hubicka [Thu, 3 Apr 2014 03:55:59 +0000 (05:55 +0200)]
re PR ipa/60659 (ICE in get_polymorphic_call_info, at ipa-devirt.c:1292)

PR ipa/60659
* ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type inconsistent
code and instead mark the context inconsistent.
(possible_polymorphic_call_targets): For inconsistent contexts
return empty complete list.
* testsuite/g++.dg/torture/pr60659.C: New testcase.

From-SVN: r209048

10 years agoThis patch does three related things for the moxie port...
Anthony Green [Thu, 3 Apr 2014 02:11:34 +0000 (02:11 +0000)]
This patch does three related things for the moxie port...

1. Changes char to be unsigned by default
2. Changes WCHAR_TYPE from long int to unsigned int
3. Zero- and sign-extends values properly, sometimes using the new
    sign-extension instructions.

From-SVN: r209047

10 years agoDaily bump.
GCC Administrator [Thu, 3 Apr 2014 00:16:28 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r209045

10 years agore PR tree-optimization/60733 (ICE due to SLSR on valid code at -O3 on x86_64-linux...
Bill Schmidt [Wed, 2 Apr 2014 22:07:30 +0000 (22:07 +0000)]
re PR tree-optimization/60733 (ICE due to SLSR on valid code at -O3 on x86_64-linux-gnu)

[gcc]

2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/60733
* gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
insertion point for PHI candidates to be the end of the feeding
block for the PHI argument.

[gcc/testsuite]

2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/60733
* gcc.dg/torture/pr60733.c:  New test.

From-SVN: r209040

10 years agore PR rtl-optimization/60650 ([ARM] LRA ICE in assign_by_spills)
Vladimir Makarov [Wed, 2 Apr 2014 20:55:02 +0000 (20:55 +0000)]
re PR rtl-optimization/60650 ([ARM] LRA ICE in assign_by_spills)

2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/60650
* lra-constraints.c (process_alt_operands): Decrease reject for
earlyclobber matching.

2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/60650
* gcc.target/arm/pr60650-2.c: New.

From-SVN: r209038

10 years agolibgomp: Fix default futex vs errno
Richard Henderson [Wed, 2 Apr 2014 20:27:29 +0000 (13:27 -0700)]
libgomp: Fix default futex vs errno

* config/linux/futex.h (futex_wait): Get error value from errno.
(futex_wake): Likewise.

From-SVN: r209035

10 years agoavx2-vpand-3.c, [...]: Use -mno-prefer-avx128.
Joseph Myers [Wed, 2 Apr 2014 20:14:32 +0000 (21:14 +0100)]
avx2-vpand-3.c, [...]: Use -mno-prefer-avx128.

* gcc.target/i386/avx2-vpand-3.c,
gcc.target/i386/avx256-unaligned-load-2.c: Use -mno-prefer-avx128.

From-SVN: r209034

10 years agofuncspec-2.c, [...]: Skip for -march= options different from those in dg-options.
Joseph Myers [Wed, 2 Apr 2014 20:10:45 +0000 (21:10 +0100)]
funcspec-2.c, [...]: Skip for -march= options different from those in dg-options.

* gcc.target/i386/funcspec-2.c, gcc.target/i386/funcspec-3.c,
gcc.target/i386/funcspec-9.c, gcc.target/i386/isa-1.c,
gcc.target/i386/memcpy-strategy-1.c,
gcc.target/i386/memcpy-strategy-2.c,
gcc.target/i386/memcpy-vector_loop-1.c,
gcc.target/i386/memcpy-vector_loop-2.c,
gcc.target/i386/memset-vector_loop-1.c,
gcc.target/i386/memset-vector_loop-2.c,
gcc.target/i386/sse2-init-v2di-2.c, gcc.target/i386/ssetype-1.c,
gcc.target/i386/ssetype-2.c, gcc.target/i386/ssetype-5.c: Skip for
-march= options different from those in dg-options.

From-SVN: r209033

10 years agos390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
Andreas Krebbel [Wed, 2 Apr 2014 20:08:53 +0000 (20:08 +0000)]
s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.

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

* config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.

From-SVN: r209032

10 years agospu.c (pad_bb): Do not crash when the last insn is CODE_FOR_blockage.
Ulrich Weigand [Wed, 2 Apr 2014 18:54:01 +0000 (18:54 +0000)]
spu.c (pad_bb): Do not crash when the last insn is CODE_FOR_blockage.

* config/spu/spu.c (pad_bb): Do not crash when the last
insn is CODE_FOR_blockage.

From-SVN: r209029

10 years agospu.md ("insv"): Fail if bitoffset+bitsize lies outside the target mode.
Ulrich Weigand [Wed, 2 Apr 2014 18:53:06 +0000 (18:53 +0000)]
spu.md ("insv"): Fail if bitoffset+bitsize lies outside the target mode.

* config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
lies outside the target mode.

From-SVN: r209028

10 years agolibitm: Remove unused PAGE_SIZE macros
Richard Henderson [Wed, 2 Apr 2014 17:49:36 +0000 (10:49 -0700)]
libitm: Remove unused PAGE_SIZE macros

        * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
        * config/arm/target.h, config/sh/target.h: Likewise.
        * config/sparc/target.h, config/x86/target.h: Likewise.

From-SVN: r209027

10 years agore PR target/60735 (GCC targeting E500 with SPE has errors with the _Decimal64 type)
Michael Meissner [Wed, 2 Apr 2014 17:03:49 +0000 (17:03 +0000)]
re PR target/60735 (GCC targeting E500 with SPE has errors with the _Decimal64 type)

2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/60735
* config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
software floating point or no floating point registers, do not
allow any type in the FPRs.  Eliminate a test for SPE SIMD types
in GPRs that occurs after we tested for GPRs that would never be
true.

* config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
specifically allow DDmode, since that does not use the SPE SIMD
instructions.

From-SVN: r209025

10 years agoc-common.h (c_expand_expr): Remove declaration.
Marek Polacek [Wed, 2 Apr 2014 10:53:41 +0000 (10:53 +0000)]
c-common.h (c_expand_expr): Remove declaration.

* c-common.h (c_expand_expr): Remove declaration.

From-SVN: r209020

10 years ago387-3.c, [...]: Use -mtune=generic.
Joseph Myers [Wed, 2 Apr 2014 10:36:30 +0000 (11:36 +0100)]
387-3.c, [...]: Use -mtune=generic.

* gcc.target/i386/387-3.c, gcc.target/i386/387-4.c,
gcc.target/i386/pr30970.c: Use -mtune=generic.
* gcc.target/i386/avx2-vpaddb-3.c,
gcc.target/i386/avx2-vpaddd-3.c, gcc.target/i386/avx2-vpaddq-3.c,
gcc.target/i386/avx2-vpaddw-3.c, gcc.target/i386/avx2-vpmulld-3.c,
gcc.target/i386/avx2-vpmullw-3.c, gcc.target/i386/avx2-vpsrad-3.c,
gcc.target/i386/avx2-vpsraw-3.c, gcc.target/i386/avx2-vpsrld-3.c,
gcc.target/i386/avx2-vpsrlw-3.c, gcc.target/i386/avx2-vpsubb-3.c,
gcc.target/i386/avx2-vpsubd-3.c, gcc.target/i386/avx2-vpsubq-3.c,
gcc.target/i386/avx2-vpsubw-3.c,
gcc.target/i386/avx256-unaligned-load-1.c,
gcc.target/i386/avx256-unaligned-load-4.c,
gcc.target/i386/avx256-unaligned-store-1.c,
gcc.target/i386/avx256-unaligned-store-2.c,
gcc.target/i386/avx256-unaligned-store-4.c: Use
-mno-prefer-avx128.

From-SVN: r209019

10 years agore PR target/54083 (FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*)
Dominique d'Humieres [Wed, 2 Apr 2014 08:58:03 +0000 (10:58 +0200)]
re PR target/54083 (FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*)

2014-03-26  Dominique d'Humieres  <dominiq@lps.ens.fr>
    Iain Sandoe <iain@codesourcery.com>

PR target/54083
* gcc.dg/attr-weakref-1.c: Allow the test on darwin
with the additional options -Wl,-undefined,dynamic_lookup
and -Wl,-flat_namespace.
* gcc.dg/torture/pr53922.c: Additional option
-Wl,-flat_namespace for darwin[89].
* gcc.dg/torture/pr60092.c: Additional options
-Wl,-undefined,dynamic_lookup and -Wl,-flat_namespace
for darwin[89].

Co-Authored-By: Iain Sandoe <iain@codesourcery.com>
From-SVN: r209018

10 years agore PR target/54407 (FAIL: 30_threads/condition_variable/54185.cc execution test ...
Dominique d'Humieres [Wed, 2 Apr 2014 08:44:40 +0000 (10:44 +0200)]
re PR target/54407 (FAIL: 30_threads/condition_variable/54185.cc execution test  program timed out on powerpc-apple-darwin9 and x86_64-apple-darwin10)

2014-04-02  Dominique d'Humieres  <dominiq@lps.ens.fr>
    Jack Howarth <howarth@bromo.med.uc.edu>

PR target/54407
* testsuite/30_threads/condition_variable/54185.cc: Skip for
darwin < 11.

Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu>
From-SVN: r209017

10 years agore PR target/43751 (dsymutil is not called for fortran and, under some circumstances...
Dominique d'Humieres [Wed, 2 Apr 2014 08:34:45 +0000 (10:34 +0200)]
re PR target/43751 (dsymutil is not called for fortran and, under some circumstances not for other FEs.)

2014-04-02  Dominique d'Humieres  <dominiq@lps.ens.fr>

PR target/43751
* lib/prune.exp: Modify the regular express to prune
the new warnings introduced by r205679 on darwin9.

From-SVN: r209016

10 years agore PR middle-end/60729 (Compiler failure for combination of -ftrapv and -O3: compiler...
Richard Biener [Wed, 2 Apr 2014 08:26:57 +0000 (08:26 +0000)]
re PR middle-end/60729 (Compiler failure for combination of -ftrapv and -O3: compiler error: in prepare_cmp_insn)

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

PR middle-end/60729
* optabs.c (expand_abs_nojump): Honor flag_trapv only for
MODE_INTs.  Properly use negv_optab.
(expand_abs): Likewise.

* g++.dg/vect/pr60729.cc: New testcase.

From-SVN: r209012

10 years agolto-plugin.c (onload): Fail to load if -fno-use-linker-plugin is set in COLLECT_GCC_O...
Richard Biener [Wed, 2 Apr 2014 08:25:13 +0000 (08:25 +0000)]
lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin is set in COLLECT_GCC_OPTIONS.

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

* lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
is set in COLLECT_GCC_OPTIONS.

From-SVN: r209011

10 years agore PR bootstrap/60719 (With --program-prefix=$target_alias --program-suffix=-$version...
Richard Biener [Wed, 2 Apr 2014 07:52:36 +0000 (07:52 +0000)]
re PR bootstrap/60719 (With --program-prefix=$target_alias --program-suffix=-$version install-driver breaks)

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

PR bootstrap/60719
* Makefile.in (install-driver): Guard extra installs with special
names properly.

From-SVN: r209010

10 years agoDaily bump.
GCC Administrator [Wed, 2 Apr 2014 00:17:10 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r209007

10 years agobackwards_compatibility.xml (backwards.third.headers): Update link.
Jonathan Wakely [Tue, 1 Apr 2014 21:31:02 +0000 (22:31 +0100)]
backwards_compatibility.xml (backwards.third.headers): Update link.

* doc/xml/manual/backwards_compatibility.xml (backwards.third.headers):
Update link.
* doc/xml/manual/policy_data_structures_biblio.xml (bibliography):
Fix broken links.
* doc/xml/manual/shared_ptr.xml (shared_ptr.impl): Likewise.
* doc/xml/manual/using_exceptions.xml (bibliography): Likewise.
* doc/xml/manual/concurrency_extensions.xml
(manual.ext.concurrency.impl.atomic_fallbacks): Likewise.
* doc/html/*: Regenerate.

From-SVN: r209002

10 years agofix gcc/cp/ChangeLog formatting
Jason Merrill [Tue, 1 Apr 2014 21:27:25 +0000 (17:27 -0400)]
fix gcc/cp/ChangeLog formatting

From-SVN: r209001

10 years agopt.c (process_partial_specialization): Say "not deducible" rather than "not used".
Jason Merrill [Tue, 1 Apr 2014 21:25:42 +0000 (17:25 -0400)]
pt.c (process_partial_specialization): Say "not deducible" rather than "not used".

* pt.c (process_partial_specialization): Say "not deducible"
rather than "not used".  Use inform.

From-SVN: r209000

10 years agore PR c++/60374 ([c++11] ICE with invalid template specialization)
Jason Merrill [Tue, 1 Apr 2014 21:25:20 +0000 (17:25 -0400)]
re PR c++/60374 ([c++11] ICE with invalid template specialization)

PR c++/60374
* pt.c (coerce_template_parms): Check that the pack expansion
pattern works with the first matching parameter.

From-SVN: r208999

10 years agoinit.c (perform_member_init): Homogenize uninitialized diagnostics.
Fabien Chêne [Tue, 1 Apr 2014 21:14:04 +0000 (23:14 +0200)]
init.c (perform_member_init): Homogenize uninitialized diagnostics.

2014-04-01  Fabien Chêne  <fabien@gcc.gnu.org>

* cp/init.c (perform_member_init): Homogenize uninitialized
diagnostics.

2014-04-01  Fabien Chêne  <fabien@gcc.gnu.org>

        * g++.dg/init/ctor4.C: Adjust.
* g++.dg/init/ctor4-1.C: New.
* g++.dg/cpp0x/defaulted2.C: Adjust.

From-SVN: r208998

10 years agore PR c++/60708 (An array temporary causes an ICE in gimplify)
Jason Merrill [Tue, 1 Apr 2014 19:14:00 +0000 (15:14 -0400)]
re PR c++/60708 (An array temporary causes an ICE in gimplify)

PR c++/60708
* call.c (build_array_conv): Call complete_type.

From-SVN: r208996

10 years agore PR c++/60713 (ICE in iterative_hash_expr)
Jason Merrill [Tue, 1 Apr 2014 19:13:50 +0000 (15:13 -0400)]
re PR c++/60713 (ICE in iterative_hash_expr)

PR c++/60713
* typeck2.c (PICFLAG_SIDE_EFFECTS): New.
(picflag_from_initializer): Return it.
(process_init_constructor): Handle it.

From-SVN: r208995

10 years agoextend.texi (PowerPC AltiVec/VSX Built-in Functions): Document vec_vgbbd.
Michael Meissner [Tue, 1 Apr 2014 18:52:01 +0000 (18:52 +0000)]
extend.texi (PowerPC AltiVec/VSX Built-in Functions): Document vec_vgbbd.

2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>

* doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
Document vec_vgbbd.

From-SVN: r208993

10 years agore PR c++/60642 (Unclear diagnostic with invalid use of abi_tag attribute on explicit...
Jason Merrill [Tue, 1 Apr 2014 17:49:38 +0000 (13:49 -0400)]
re PR c++/60642 (Unclear diagnostic with invalid use of abi_tag attribute on explicit instantiation)

PR c++/60642
* decl2.c (is_late_template_attribute): Don't defer abi_tag.
* mangle.c (write_unqualified_name): Fix abi_tag on templates.
* pt.c (get_template_info): Handle NAMESPACE_DECL.
(most_general_template): Handle more kinds of template.
* tree.c (handle_abi_tag_attribute): Ignore abi_tag on template
instantiations and specializations.

From-SVN: r208992

10 years agore PR target/60704 (ICE: in extract_constrain_insn_cached, at recog.c:2156 with ...
Richard Henderson [Tue, 1 Apr 2014 16:39:18 +0000 (09:39 -0700)]
re PR target/60704 (ICE: in extract_constrain_insn_cached, at recog.c:2156 with -flive-range-shrinkage -march=amdfam10)

PR target/60704

        * gcc.dg/pr60704.c: New file.

From-SVN: r208990

10 years agore PR target/60704 (ICE: in extract_constrain_insn_cached, at recog.c:2156 with ...
Richard Henderson [Tue, 1 Apr 2014 14:40:27 +0000 (07:40 -0700)]
re PR target/60704 (ICE: in extract_constrain_insn_cached, at recog.c:2156 with -flive-range-shrinkage -march=amdfam10)

PR target/60704

        * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
        alternative enabled before register allocation.

From-SVN: r208989

10 years agonios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
Chung-Lin Tang [Tue, 1 Apr 2014 12:43:59 +0000 (12:43 +0000)]
nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.

2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>

* config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
* config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
typo.
(nios2_large_got_address): Remove unneeded 'sym' parameter.
(nios2_got_address): Update nios2_large_got_address call site.
(nios2_delegitimize_address): New function.
(TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
* config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
(LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.

From-SVN: r208988

10 years agonetbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32 for -mabi=32.
Martin Husemann [Tue, 1 Apr 2014 10:40:57 +0000 (10:40 +0000)]
netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32 for -mabi=32.

gcc/
2014-04-01  Martin Husemann  <martin@duskware.de>

* config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
for -mabi=32.

From-SVN: r208985

10 years agore PR target/60604 (GCC incorrectly compiles s_csinh function on MIPS32 (32bit fp))
Richard Sandiford [Tue, 1 Apr 2014 10:38:19 +0000 (10:38 +0000)]
re PR target/60604 (GCC incorrectly compiles s_csinh function on MIPS32 (32bit fp))

gcc/
PR rtl-optimization/60604
* recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
check from register_operand.
(register_operand): Redefine in terms of general_operand.
(nonmemory_operand): Use register_operand for the non-constant cases.

From-SVN: r208984

10 years agoFix typo in gcc/testsuite/ChangeLog.
Bin Cheng [Tue, 1 Apr 2014 10:00:26 +0000 (10:00 +0000)]
Fix typo in gcc/testsuite/ChangeLog.

From-SVN: r208981

10 years agore PR tree-optimization/60363 (logical_op_short_circuit, gcc.dg/tree-ssa/ssa-dom...
Bin Cheng [Tue, 1 Apr 2014 09:56:29 +0000 (09:56 +0000)]
re PR tree-optimization/60363 (logical_op_short_circuit, gcc.dg/tree-ssa/ssa-dom-thread-4.c scan-tree-dump-times dom1 "Threaded" 4)

PR target/60363
* gcc.target/tree-ssa/ssa-dom-thread-4.c: Xfail for
logical_op_short_circuit targets.

From-SVN: r208980

10 years agofmt_en.f90: Skip unsupported rounding tests.
Dominique d'Humieres [Tue, 1 Apr 2014 09:21:53 +0000 (11:21 +0200)]
fmt_en.f90: Skip unsupported rounding tests.

libfortran/60128
* gfortran.dg/fmt_en.f90: Skip unsupported rounding tests.
XFAIL for i?86-*-solaris2.9* and hppa*-*-hpux*.

From-SVN: r208979

10 years agogimple.h (struct gimple_statement_base): Align subcode to 16 bits.
Richard Biener [Tue, 1 Apr 2014 08:55:58 +0000 (08:55 +0000)]
gimple.h (struct gimple_statement_base): Align subcode to 16 bits.

2014-04-01  Richard Biener  <rguenther@suse.de>

* gimple.h (struct gimple_statement_base): Align subcode to
16 bits.

From-SVN: r208978

10 years ago* doc/invoke.texi (mapp-regs): Clarify.
Sebastian Huber [Tue, 1 Apr 2014 08:20:42 +0000 (08:20 +0000)]
* doc/invoke.texi (mapp-regs): Clarify.

From-SVN: r208973

10 years agosimple-object.c (simple_object_internal_write): Handle EINTR and short writes.
Richard Biener [Tue, 1 Apr 2014 07:45:48 +0000 (07:45 +0000)]
simple-object.c (simple_object_internal_write): Handle EINTR and short writes.

2014-04-01  Richard Biener  <rguenther@suse.de>

libiberty/
* simple-object.c (simple_object_internal_write): Handle
EINTR and short writes.

From-SVN: r208972

10 years agore PR c++/44859 (missed warning: returning reference to temporary)
Patrick Palka [Tue, 1 Apr 2014 00:48:33 +0000 (20:48 -0400)]
re PR c++/44859 (missed warning: returning reference to temporary)

PR c++/44859
* typeck.c (maybe_warn_about_returning_address_of_local): Unwrap
COMPONENT_REFs and ARRAY_REFs sooner.

From-SVN: r208970

10 years agoDaily bump.
GCC Administrator [Tue, 1 Apr 2014 00:16:34 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r208969

10 years agore PR libstdc++/60270 ([C++1y] std::quoted is too eager to clear the string)
Lars Gullik Bjønnes [Mon, 31 Mar 2014 18:46:23 +0000 (18:46 +0000)]
re PR libstdc++/60270 ([C++1y] std::quoted is too eager to clear the string)

2014-03-31  Lars Gullik Bjønnes  <larsbj@gullik.org>
    Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/60270
* include/std/iomanip (_Quoted_string operator>>): Do not clear
string if input is not quoted.
* testsuite/27_io/manipulators/standard/char/60270.cc: New.

Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
From-SVN: r208966

10 years ago* libsupc++/eh_ptr.cc: Improve static_assert messages.
Jonathan Wakely [Mon, 31 Mar 2014 18:16:14 +0000 (19:16 +0100)]
* libsupc++/eh_ptr.cc: Improve static_assert messages.

From-SVN: r208965

10 years agoAdd a testcase for PR rtl-optimization/60700
H.J. Lu [Mon, 31 Mar 2014 15:24:56 +0000 (15:24 +0000)]
Add a testcase for PR rtl-optimization/60700

PR rtl-optimization/60700
* gcc.target/i386/pr60700.c: New test.

From-SVN: r208962

10 years agoAdjust testcase for softfp cases.
Ramana Radhakrishnan [Mon, 31 Mar 2014 14:21:58 +0000 (14:21 +0000)]
Adjust testcase for softfp cases.

PR target/60650

2014-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

PR target/60650
* gcc.target/arm/pr60650.c: Adjust command line options.

From-SVN: r208961

10 years ago* sv.po: Update.
Joseph Myers [Mon, 31 Mar 2014 14:11:42 +0000 (15:11 +0100)]
* sv.po: Update.

From-SVN: r208960

10 years agoavx512fintrin.h (__v32hi): Define type.
Ulrich Drepper [Mon, 31 Mar 2014 13:24:13 +0000 (13:24 +0000)]
avx512fintrin.h (__v32hi): Define type.

2014-03-27  Ulrich Drepper  <drepper@gmail.com>

        * config/i386/avx512fintrin.h (__v32hi): Define type.
        (__v64qi): Likewise.
        (_mm512_set1_epi8): Define.
        (_mm512_set1_epi16): Define.
        (_mm512_set4_epi32): Define.
        (_mm512_set4_epi64): Define.
        (_mm512_set4_pd): Define.
        (_mm512_set4_ps): Define.
        (_mm512_setr4_epi64): Define.
        (_mm512_setr4_epi32): Define.
        (_mm512_setr4_pd): Define.
        (_mm512_setr4_ps): Define.
        (_mm512_setzero_epi32): Define.
--This line, and those belowi will be ignored--

M    gcc/ChangeLog
M    gcc/config/i386/avx512fintrin.h

From-SVN: r208959

10 years agoFix 18_support/exception_ptr/60612-*.cc on non-C99 targets
Rainer Orth [Mon, 31 Mar 2014 13:14:12 +0000 (13:14 +0000)]
Fix 18_support/exception_ptr/60612-*.cc on non-C99 targets

* testsuite/18_support/exception_ptr/60612-terminate.cc
(terminate, f): Wrap in _GLIBCXX_USE_C99.
* testsuite/18_support/exception_ptr/60612-unexpected.cc: Likewise.

From-SVN: r208958

10 years agore PR middle-end/60647 (ICE in visit_ref_for_mod_analysis, at ipa-prop.c:2112)
Martin Jambor [Mon, 31 Mar 2014 12:28:33 +0000 (14:28 +0200)]
re PR middle-end/60647 (ICE in visit_ref_for_mod_analysis, at ipa-prop.c:2112)

2014-03-31  Martin Jambor  <mjambor@suse.cz>

PR middle-end/60647
* tree-sra.c (callsite_has_enough_arguments_p): Renamed to
callsite_arguments_match_p.  Updated all callers.  Also check types of
corresponding formal parameters and actual arguments.
(not_all_callers_have_enough_arguments_p) Renamed to
some_callers_have_mismatched_arguments_p.

testsuite/
* gcc.dg/pr60647-1.c: New test.
* gcc.dg/pr60647-2.c: Likewise.

From-SVN: r208957

10 years agopr55113_0.c: Skip also for 32bit multilib on x86_64.
Richard Biener [Mon, 31 Mar 2014 10:12:52 +0000 (10:12 +0000)]
pr55113_0.c: Skip also for 32bit multilib on x86_64.

2014-03-31  Richard Biener  <rguenther@suse.de>

* gcc.dg/lto/pr55113_0.c: Skip also for 32bit multilib on x86_64.

From-SVN: r208956

10 years agotree-inline.c (copy_loops): Add missed copy of 'safelen'.
Yuri Rumyantsev [Mon, 31 Mar 2014 08:20:32 +0000 (08:20 +0000)]
tree-inline.c (copy_loops): Add missed copy of 'safelen'.

gcc/
* tree-inline.c (copy_loops): Add missed copy of 'safelen'.

From-SVN: r208955

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

From-SVN: r208953

10 years agore PR target/60034 ("invalid expression as operand" in aarch64 inline asm)
Kugan Vivekanandarajah [Sun, 30 Mar 2014 22:41:59 +0000 (22:41 +0000)]
re PR target/60034 ("invalid expression as operand" in aarch64 inline asm)

PR target/60034
* aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
section anchor.

PR target/60034
* gcc.target/aarch64/pr60034.c: New file.

From-SVN: r208949

10 years agosse.md (FMAMODE_NOVF512): New mode iterator.
Uros Bizjak [Sun, 30 Mar 2014 17:38:57 +0000 (19:38 +0200)]
sse.md (FMAMODE_NOVF512): New mode iterator.

* config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
(<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
Split out
<sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
Use FMAMODE_NOVF512 mode iterator.
(<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
(<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
(<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
(<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
Split out
<sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
Use VF_128_256 mode iterator.
(<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
Ditto.

From-SVN: r208948

10 years agore PR ada/60703 (System.Address not preelaborable on MIPS)
Eric Botcazou [Sun, 30 Mar 2014 15:47:43 +0000 (15:47 +0000)]
re PR ada/60703 (System.Address not preelaborable on MIPS)

PR ada/60703
* system-linux-alpha.ads: Adjust for Ada 2005.
* system-linux-mips.ads: Likewise.
* system-linux-mips64el.ads: Likewise.
* system-linux-mipsel.ads: Likewise.
* system-linux-s390.ads: Likewise.
* system-linux-s390x.ads: Likewise.
* system-linux-sparc.ads: Likewise.
* system-linux-sparcv9.ads: Likewise.
* system-rtems.ads: Likewise.
* system-vxworks-arm.ads: Likewise.

From-SVN: r208945

10 years agoDaily bump.
GCC Administrator [Sun, 30 Mar 2014 00:16:59 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r208944

10 years agore PR c++/60626 ([c++1y] ICE with pointer to function with auto parameter)
Adam Butcher [Sat, 29 Mar 2014 19:23:44 +0000 (19:23 +0000)]
re PR c++/60626 ([c++1y] ICE with pointer to function with auto parameter)

Fix PR c++/60626

PR c++/60626
* parser.c (cp_parser_init_declarator): Handle erroneous generic type
usage in non-functions with pushed scope.

PR c++/60626
* g++.dg/cpp1y/pr60626.C: New testcase.

From-SVN: r208940

10 years agopr45416.c: Allow bextr on x86.
Joseph Myers [Sat, 29 Mar 2014 15:39:34 +0000 (15:39 +0000)]
pr45416.c: Allow bextr on x86.

* gcc.dg/pr45416.c: Allow bextr on x86.
* gcc.target/i386/fma4-builtin.c, gcc.target/i386/fma4-fma-2.c,
gcc.target/i386/fma4-fma.c, gcc.target/i386/fma4-vector-2.c,
gcc.target/i386/fma4-vector.c: Use -mno-fma.
* gcc.target/i386/l_fma_double_1.c,
gcc.target/i386/l_fma_double_2.c,
gcc.target/i386/l_fma_double_3.c,
gcc.target/i386/l_fma_double_4.c,
gcc.target/i386/l_fma_double_5.c,
gcc.target/i386/l_fma_double_6.c, gcc.target/i386/l_fma_float_1.c,
gcc.target/i386/l_fma_float_2.c, gcc.target/i386/l_fma_float_3.c,
gcc.target/i386/l_fma_float_4.c, gcc.target/i386/l_fma_float_5.c,
gcc.target/i386/l_fma_float_6.c: Use -mno-fma4.
* gcc.target/i386/pr27971.c: Use -mno-tbm.
* gcc.target/i386/pr42542-4a.c: Use -mno-avx.
* gcc.target/i386/pr59390.c: Use -mno-fma -mno-fma4.

From-SVN: r208939

10 years agore PR target/60648 (ICE (segmentation fault) in expand_binop)
Jakub Jelinek [Sat, 29 Mar 2014 11:10:25 +0000 (12:10 +0100)]
re PR target/60648 (ICE (segmentation fault) in expand_binop)

PR target/60648
* g++.dg/pr60648.C: Move test to...
* g++.dg/torture/pr60648.C: ... here.  Run on all targets, remove
dg-options, add for fpic targets dg-additional-options -fPIC.

From-SVN: r208933

10 years agoDaily bump.
GCC Administrator [Sat, 29 Mar 2014 00:17:10 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r208930

10 years agocgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear static chain if needed.
Jan Hubicka [Fri, 28 Mar 2014 22:19:27 +0000 (22:19 +0000)]
cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear static chain if needed.

* cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
static chain if needed.
* g++.dg/torture/pr60659.C: New testcase.

From-SVN: r208927

10 years agore PR target/60697 ([aarch64] LRA ICE (Segfault) while building 435.gromacs)
Vladimir Makarov [Fri, 28 Mar 2014 22:14:36 +0000 (22:14 +0000)]
re PR target/60697 ([aarch64] LRA ICE (Segfault) while building 435.gromacs)

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

PR target/60697
* lra-constraints.c (index_part_to_reg): New.
(process_address): Use it.

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

PR target/60697
* gcc.target/aarch64/pr60697.c: New.

From-SVN: r208926

10 years agoFixup ChangeLog formatting.
Jakub Jelinek [Fri, 28 Mar 2014 22:10:12 +0000 (23:10 +0100)]
Fixup ChangeLog formatting.

From-SVN: r208925

10 years agore PR target/60648 (ICE (segmentation fault) in expand_binop)
Jeff Law [Fri, 28 Mar 2014 22:02:32 +0000 (16:02 -0600)]
re PR target/60648 (ICE (segmentation fault) in expand_binop)

PR target/60648
       * expr.c (do_tablejump): Use simplify_gen_binary rather than
       gen_rtx_{PLUS,MULT} to build up the address expression.

       * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
       creating non-canonical RTL.

       PR target/60648
       * g++.dg/pr60648.C: New test.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r208924

10 years agore PR c++/60573 ([c++1y] ICE with defining generic function of nested class in class...
Adam Butcher [Fri, 28 Mar 2014 20:41:45 +0000 (20:41 +0000)]
re PR c++/60573 ([c++1y] ICE with defining generic function of nested class in class scope)

Fix PR c++/60573

PR c++/60573
* name-lookup.h (cp_binding_level): New transient field defining_class_p
to indicate whether a scope is in the process of defining a class.
* semantics.c (begin_class_definition): Set defining_class_p.
* name-lookup.c (leave_scope): Reset defining_class_p.
* parser.c (synthesize_implicit_template_parm): Use cp_binding_level::
defining_class_p rather than TYPE_BEING_DEFINED as the predicate for
unwinding to class-defining scope to handle the erroneous definition of
a generic function of an arbitrarily nested class within an enclosing
class.

PR c++/60573
* g++.dg/cpp1y/pr60573.C: New testcase.

From-SVN: r208921

10 years agoAdd PR60576 to the ChangeLog entry.
Jakub Jelinek [Fri, 28 Mar 2014 20:30:36 +0000 (21:30 +0100)]
Add PR60576 to the ChangeLog entry.

From-SVN: r208920

10 years agore PR fortran/60576 (FAIL: gfortran.dg/assumed_rank_7.f90)
Mikael Morin [Fri, 28 Mar 2014 20:04:01 +0000 (20:04 +0000)]
re PR fortran/60576 (FAIL: gfortran.dg/assumed_rank_7.f90)

2014-03-28  Mikael Morin  <mikael@gcc.gnu.org>
            Tobias Burnus  <burnus@net-b.de>

        PR fortran/60576
        * trans-expr.c (gfc_conv_derived_to_class): Avoid
        generation of out-of-bounds range expr.

Co-Authored-By: Tobias Burnus <burnus@net-b.de>
From-SVN: r208918

10 years agore PR ipa/60243 (IPA is slow on large cgraph tree)
Jan Hubicka [Fri, 28 Mar 2014 19:50:28 +0000 (20:50 +0100)]
re PR ipa/60243 (IPA is slow on large cgraph tree)

PR ipa/60243
* ipa-inline.c (want_inline_small_function_p): Short circuit large
functions; reorganize to make cheap checks first.
(inline_small_functions): Do not estimate growth when dumping;
it is expensive.
* ipa-inline.h (inline_summary): Add min_size.
(growth_likely_positive): New function.
* ipa-inline-analysis.c (dump_inline_summary): Add min_size.
(set_cond_stmt_execution_predicate): Cleanup.
(estimate_edge_size_and_time): Compute min_size.
(estimate_calls_size_and_time): Likewise.
(estimate_node_size_and_time): Likewise.
(inline_update_overall_summary): Update min_size.
(do_estimate_edge_time): Likewise.
(do_estimate_edge_size): Update.
(do_estimate_edge_hints): Update.
(growth_likely_positive): New function.

From-SVN: r208916

10 years agore PR target/60693 (ICE on funny memcpy)
Jakub Jelinek [Fri, 28 Mar 2014 19:31:17 +0000 (20:31 +0100)]
re PR target/60693 (ICE on funny memcpy)

PR target/60693
* config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
also if addr has VOIDmode.

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

From-SVN: r208915

10 years agopr59940.c (si): Use 32-bit SI mode instead of int.
Vishnu K S [Fri, 28 Mar 2014 19:19:03 +0000 (19:19 +0000)]
pr59940.c (si): Use 32-bit SI mode instead of int.

2014-03-28  Vishnu K S  <Vishnu.k_s@atmel.com>

* gcc.dg/pr59940.c (si): Use 32-bit SI mode instead of int.

From-SVN: r208914

10 years agore PR fortran/60677 (FAIL: gfortran.dg/ichar_3.f90 -O (test for excess errors))
Mikael Morin [Fri, 28 Mar 2014 18:58:44 +0000 (18:58 +0000)]
re PR fortran/60677 (FAIL: gfortran.dg/ichar_3.f90  -O  (test for excess errors))

fortran/
        PR fortran/60677
        * trans-intrinsic.c (gfc_conv_intrinsic_ichar): Enlarge argument
        list buffer.

From-SVN: r208913

10 years agore PR c++/60689 (Bogus error with atomic::exchange)
Jakub Jelinek [Fri, 28 Mar 2014 18:16:32 +0000 (19:16 +0100)]
re PR c++/60689 (Bogus error with atomic::exchange)

PR c++/60689
* c-tree.h (c_build_function_call_vec): New prototype.
* c-typeck.c (build_function_call_vec): Don't call
resolve_overloaded_builtin here.
(c_build_function_call_vec): New wrapper function around
build_function_call_vec.  Call resolve_overloaded_builtin here.
(convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
Call c_build_function_call_vec instead of build_function_call_vec.
* c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
* c-decl.c (finish_decl): Likewise.

* c-common.c (add_atomic_size_parameter): When creating new
params vector, push the size argument first.

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

From-SVN: r208912

10 years ago[ARM/AArch64][2/2] Crypto intrinsics tuning for Cortex-A53 - pipeline description
Kyrylo Tkachov [Fri, 28 Mar 2014 17:24:52 +0000 (17:24 +0000)]
[ARM/AArch64][2/2] Crypto intrinsics tuning for Cortex-A53 - pipeline description

* config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
* config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
Declare extern.
* config/arm/cortex-a53.md: Add reservations and bypass for crypto
instructions as well as AdvancedSIMD loads.

From-SVN: r208910

10 years ago[ARM/AArch64][1/2] Crypto intrinsics tuning for Cortex-A53 - "type" Attribute restruc...
Kyrylo Tkachov [Fri, 28 Mar 2014 17:22:47 +0000 (17:22 +0000)]
[ARM/AArch64][1/2] Crypto intrinsics tuning for Cortex-A53 - "type" Attribute restructuring

     * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
     Use crypto_aese type.
     (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
     * config/arm/arm.md (is_neon_type): Replace crypto_aes with
     crypto_aese, crypto_aesmc.  Move to types.md.
     * config/arm/types.md (crypto_aes): Split into crypto_aese,
     crypto_aesmc.
     * config/arm/iterators.md (crypto_type): Likewise.

From-SVN: r208908

10 years agore PR c++/58678 (pykde4-4.11.2 link error (devirtualization too trigger happy))
Jakub Jelinek [Fri, 28 Mar 2014 17:17:56 +0000 (18:17 +0100)]
re PR c++/58678 (pykde4-4.11.2 link error (devirtualization too trigger happy))

PR c++/58678
* g++.dg/abi/thunk6.C: Scan assembler for _ZTv0_n32_N1CD1Ev
only for lp64 targets and scan for _ZTv0_n16_N1CD1Ev for ilp32
targets.

From-SVN: r208907

10 years agocgraph.c: Include expr.h and tree-dfa.h.
Jan Hubicka [Fri, 28 Mar 2014 15:30:58 +0000 (16:30 +0100)]
cgraph.c: Include expr.h and tree-dfa.h.

* cgraph.c: Include expr.h and tree-dfa.h.
(cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn; remove LHS.

From-SVN: r208901

10 years agore PR target/60675 ([aarch64] internal compiler error: Max. number of generated reloa...
Vladimir Makarov [Fri, 28 Mar 2014 15:27:58 +0000 (15:27 +0000)]
re PR target/60675 ([aarch64] internal compiler error: Max. number of generated reload insns per insn is achieved (90))

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

PR target/60675
* lra-assigns.c (find_hard_regno_for): Remove unavailable hard
regs from checking multi-reg pseudos.

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

PR target/60675
* gcc.target/aarch64/pr60675.C: New.

From-SVN: r208900