]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
11 years agobackport: re PR middle-end/57499 (ICE when noreturn destructor returns after throw...
Jakub Jelinek [Thu, 6 Mar 2014 07:54:28 +0000 (08:54 +0100)] 
backport: re PR middle-end/57499 (ICE when noreturn destructor returns after throw with -O)

Backport from mainline
2014-02-05  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/57499
* tree-eh.c (cleanup_empty_eh): Bail out on totally empty
bb with no successors.

* g++.dg/torture/pr57499.C: New test.

From-SVN: r208363

11 years agore PR preprocessor/60400 (ICE with trigraphs)
Jakub Jelinek [Thu, 6 Mar 2014 07:53:17 +0000 (08:53 +0100)] 
re PR preprocessor/60400 (ICE with trigraphs)

PR preprocessor/60400
Backport from mainline
2013-06-24  Dehao Chen  <dehao@google.com>

* files.c (_cpp_stack_include): Fix the highest_location when header
file is guarded by #ifndef and is included twice.

2014-03-03  Jakub Jelinek  <jakub@redhat.com>

PR preprocessor/60400
* c-c++-common/cpp/pr60400.c: New test.
* c-c++-common/cpp/pr60400-1.h: New file.
* c-c++-common/cpp/pr60400-2.h: New file.

From-SVN: r208362

11 years agoDaily bump.
GCC Administrator [Thu, 6 Mar 2014 00:16:32 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r208356

11 years agoDaily bump.
GCC Administrator [Wed, 5 Mar 2014 00:16:55 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r208337

11 years agore PR tree-optimization/60382 (ICE on valid code at -O3 on x86_64-linux-gnu (in vect_...
Richard Biener [Tue, 4 Mar 2014 11:02:47 +0000 (11:02 +0000)] 
re PR tree-optimization/60382 (ICE on valid code at -O3 on x86_64-linux-gnu (in vect_create_epilog_for_reduction, at tree-vect-loop.c:4352))

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

PR tree-optimization/60382
* tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
dead PHIs a reduction.

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

From-SVN: r208310

11 years agoDaily bump.
GCC Administrator [Tue, 4 Mar 2014 00:16:32 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r208298

11 years agobackport: re PR libitm/57643 (libitm.c/reentrant.c hangs on POWER8 with HTM)
Peter Bergner [Mon, 3 Mar 2014 22:13:28 +0000 (16:13 -0600)] 
backport: re PR libitm/57643 (libitm.c/reentrant.c hangs on POWER8 with HTM)

Backport from mainline
2013-06-20  Torvald Riegel  <triegel@redhat.com>

* query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
(_ITM_getTransactionId): Same.
* config/x86/target.h (htm_transaction_active): New.

2013-06-20  Torvald Riegel  <triegel@redhat.com>

PR libitm/57643
* beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
the HTM fastpath.

From-SVN: r208295

11 years agoDaily bump.
GCC Administrator [Mon, 3 Mar 2014 00:16:32 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r208264

11 years agore PR fortran/60341 (ICE compiling Nonmem 6.2.0)
Mikael Morin [Sun, 2 Mar 2014 18:36:42 +0000 (18:36 +0000)] 
re PR fortran/60341 (ICE compiling Nonmem 6.2.0)

fortran/
        PR fortran/60341
        * frontend-passes.c (optimize_comparison): Guard two union
        accesses with the corresponding tag checks.

testsuite/
        PR fortran/60341
        * gfortran.dg/str_comp_optimize_1.f90: New test.

From-SVN: r208258

11 years agoDaily bump.
GCC Administrator [Sun, 2 Mar 2014 00:16:38 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r208253

11 years agore PR c++/58845 (Operator || and && broken for vectors)
Jason Merrill [Sat, 1 Mar 2014 18:44:25 +0000 (13:44 -0500)] 
re PR c++/58845 (Operator || and && broken for vectors)

PR c++/58845
* typeck.c (cp_build_binary_op): Sorry on vector&&vector.

From-SVN: r208246

11 years agore PR c++/60182 (g++ segfault within template expansion using "using" aliasing)
Jason Merrill [Sat, 1 Mar 2014 18:43:30 +0000 (13:43 -0500)] 
re PR c++/60182 (g++ segfault within template expansion using "using" aliasing)

PR c++/60182
* pt.c (unify): Ignore alias templates when deducing a template
template parameter.

From-SVN: r208245

11 years agore PR c++/60146 (ICE when compiling this code with -fopenmp)
Jason Merrill [Sat, 1 Mar 2014 18:43:24 +0000 (13:43 -0500)] 
re PR c++/60146 (ICE when compiling this code with -fopenmp)

PR c++/60146
* pt.c (tsubst_omp_for_iterator): Don't let substitution of the
DECL_EXPR initialize a non-class iterator.

Conflicts:
gcc/cp/pt.c

From-SVN: r208244

11 years agoDaily bump.
GCC Administrator [Sat, 1 Mar 2014 00:16:51 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r208239

11 years agobackport: re PR libgcc/60166 (ARM default NAN encoding violates EABI)
Joey Ye [Fri, 28 Feb 2014 22:00:52 +0000 (22:00 +0000)] 
backport: re PR libgcc/60166 (ARM default NAN encoding violates EABI)

2014-02-28  Joey Ye  <joey.ye@arm.com>

Backport from mainline r208229
2014-02-28  Joey Ye  <joey.ye@arm.com>

        PR libgcc/60166
        * config/arm/sfp-machine.h (_FP_NANFRAC_H,
        _FP_NANFRAC_S, _FP_NANFRAC_D, _FP_NANFRAC_Q):
        Set to zero.

From-SVN: r208230

11 years agoDaily bump.
GCC Administrator [Fri, 28 Feb 2014 00:16:29 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r208211

11 years agoDaily bump.
GCC Administrator [Thu, 27 Feb 2014 00:16:52 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r208190

11 years agoDaily bump.
GCC Administrator [Wed, 26 Feb 2014 00:16:27 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r208161

11 years agobackport: re PR tree-optimization/60276 (-O3 autovectorizer breaks on a particular...
Richard Biener [Tue, 25 Feb 2014 12:42:59 +0000 (12:42 +0000)] 
backport: re PR tree-optimization/60276 (-O3 autovectorizer breaks on a particular loop)

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

Backport from mainline
2014-02-21  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/60276
        * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
        (STMT_VINFO_MIN_NEG_DIST): New macro.
        * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
        STMT_VINFO_MIN_NEG_DIST.
        * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
        made for negative dependence distances still hold.

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

From-SVN: r208119

11 years agobackport: [multiple changes]
Richard Biener [Tue, 25 Feb 2014 10:47:21 +0000 (10:47 +0000)] 
backport: [multiple changes]

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

Backport from mainline
2014-02-21  Richard Biener  <rguenther@suse.de>

PR middle-end/60291
* tree-ssa-live.c (mark_all_vars_used_1): Do not walk
DECL_INITIAL for globals not in the current function context.

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

PR middle-end/60221
* tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
regions at -O0.

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

PR tree-optimization/60183
* tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating
loads.
(tree_ssa_phiprop): Calculate and free post-dominators.

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

From-SVN: r208118

11 years agore PR target/55426 (gcc.target/arm/neon-vld1_dupQ.c ICEs on armeb)
Kyrylo Tkachov [Tue, 25 Feb 2014 10:25:26 +0000 (10:25 +0000)] 
re PR target/55426 (gcc.target/arm/neon-vld1_dupQ.c ICEs on armeb)

PR target/55426
* config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
conversions.

From-SVN: r208117

11 years agopa.c (pa_output_move_double): Don't valididate when adjusting offsetable addresses.
John David Anglin [Tue, 25 Feb 2014 00:52:10 +0000 (00:52 +0000)] 
pa.c (pa_output_move_double): Don't valididate when adjusting offsetable addresses.

* config/pa/pa.c (pa_output_move_double): Don't valididate when
adjusting offsetable addresses.

From-SVN: r208102

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

From-SVN: r208099

11 years agore PR c++/37140 (type inherited from base class not recognized)
Fabien ChĂȘne [Mon, 24 Feb 2014 20:27:34 +0000 (21:27 +0100)] 
re PR c++/37140 (type inherited from base class not recognized)

2014-02-24  Fabien Chene  <fabien@gcc.gnu.org>
        PR c++/37140
        * parser.c (cp_parser_nonclass_name): Call strip_using_decl and
    move the code handling dependent USING_DECLs...
        * name-lookup.c (strip_using_decl): ...Here.

2014-02-24  Fabien Chene  <fabien@gcc.gnu.org>

        PR c++/37140
        * g++.dg/template/using27.C: New.
        * g++.dg/template/using28.C: New.
        * g++.dg/template/using29.C: New.

From-SVN: r208093

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

From-SVN: r208064

11 years agomicroblaze.md: Correct ashrsi_reg / lshrsi_reg names
David Holsgrove [Sun, 23 Feb 2014 18:59:26 +0000 (18:59 +0000)] 
microblaze.md: Correct ashrsi_reg / lshrsi_reg names

2014-02-23  David Holsgrove <david.holsgrove@xilinx.com>

* config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg names

From-SVN: r208062

11 years ago[multiple changes]
Michael Eager [Sun, 23 Feb 2014 18:54:17 +0000 (18:54 +0000)] 
[multiple changes]

2014-02-23  Edgar E. Iglesias <edgar.iglesias@xilinx.com>

* config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
definition.

2014-02-23  David Holsgrove <david.holsgrove@xilinx.com>

* gcc/testsuite/gcc.target/microblaze/others/mem_reload.c: New test.

From-SVN: r208060

11 years agomicroblaze.c: Add microblaze_asm_output_mi_thunk and define TARGET_ASM_OUTPUT_MI_THUN...
David Holsgrove [Sun, 23 Feb 2014 18:45:12 +0000 (18:45 +0000)] 
microblaze.c: Add microblaze_asm_output_mi_thunk and define TARGET_ASM_OUTPUT_MI_THUNK and...

2014-02-23  David Holsgrove <david.holsgrove@xilinx.com>

* /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk
and define TARGET_ASM_OUTPUT_MI_THUNK and
TARGET_ASM_CAN_OUTPUT_MI_THUNK.

From-SVN: r208058

11 years agopredicates.md: Add cmp_op predicate.
David Holsgrove [Sun, 23 Feb 2014 18:38:29 +0000 (18:38 +0000)] 
predicates.md: Add cmp_op predicate.

2014-02-23  David Holsgrove <david.holsgrove@xilinx.com>

* config/microblaze/predicates.md: Add cmp_op predicate.
* config/microblaze/microblaze.md: Add branch_compare instruction
which uses cmp_op predicate and emits cmp insn before branch.
* config/microblaze/microblaze.c (microblaze_emit_compare): Rename
to microblaze_expand_conditional_branch and consolidate logic.
(microblaze_expand_conditional_branch): emit branch_compare
insn instead of handling cmp op separate from branch insn.

From-SVN: r208056

11 years agoDaily bump.
GCC Administrator [Sun, 23 Feb 2014 00:16:28 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r208047

11 years agore PR fortran/59599 (Compiler internal error on intrinsic ichar)
Mikael Morin [Sat, 22 Feb 2014 12:22:17 +0000 (12:22 +0000)] 
re PR fortran/59599 (Compiler internal error on intrinsic ichar)

fortran/
        PR fortran/59599
        * trans-intrinsic.c (gfc_conv_intrinsic_ichar): Calculate the
        number of arguments.

testsuite/
        PR fortran/59599
        * gfortran.dg/ichar_3.f90: New test.

From-SVN: r208042

11 years agobackport: re PR fortran/59700 (Misleading/buggy runtime error message: Bad integer...
Steven G. Kargl [Sat, 22 Feb 2014 02:50:39 +0000 (02:50 +0000)] 
backport: re PR fortran/59700 (Misleading/buggy runtime error message: Bad integer for item 0 in list input)

2014-02-21  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from mainline
PR fortran/59700
* gfortran.dg/pr59700.f90: New test.

From-SVN: r208039

11 years agobackport: re PR fortran/59700 (Misleading/buggy runtime error message: Bad integer...
Jerry DeLisle [Sat, 22 Feb 2014 02:11:44 +0000 (02:11 +0000)] 
backport: re PR fortran/59700 (Misleading/buggy runtime error message: Bad integer for item 0 in list input)

2014-02-21  Jerry DeLisle  <jvdelisle@gcc.gnu>
    Dominique d'Humieres  <dominiq@lps.ens.fr>
    Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from mainline
PR libfortran/59700
PR libfortran/59764
* io/io.h (struct st_parameter_dt): Assign expanded_read flag to
unused bit. Define new variable line_buffer_pos.
* io/list_read.c (free_saved, next_char, l_push_char,
read_logical, read_real): Replace use of item_count with
line_buffer_pos for line_buffer look ahead.
(read_logical, read_integer, parse_real, read_real, check_type):
Adjust location of free_line to after generating error messages
to retain the correct item count for the message.

Co-Authored-By: Dominique d'Humieres <dominiq@lps.ens.fr>
Co-Authored-By: Steven G. Kargl <kargl@gcc.gnu.org>
From-SVN: r208038

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

From-SVN: r208036

11 years agore PR c++/60108 ([C++11] ICE in use_thunk, at cp/method.c:340)
Jason Merrill [Fri, 21 Feb 2014 22:15:07 +0000 (17:15 -0500)] 
re PR c++/60108 ([C++11] ICE in use_thunk, at cp/method.c:340)

PR c++/60108
* semantics.c (expand_or_defer_fn_1): Check DECL_DEFAULTED_FN.

From-SVN: r208032

11 years agore PR c++/60187 ([c++11] ICE with parameter pack as underlying type for enum)
Jason Merrill [Fri, 21 Feb 2014 22:15:01 +0000 (17:15 -0500)] 
re PR c++/60187 ([c++11] ICE with parameter pack as underlying type for enum)

PR c++/60187
* parser.c (cp_parser_enum_specifier): Call
check_for_bare_parameter_packs.

From-SVN: r208031

11 years agore PR c++/60216 ([c++11] Trouble with deleted template functions)
Jason Merrill [Fri, 21 Feb 2014 15:29:32 +0000 (10:29 -0500)] 
re PR c++/60216 ([c++11] Trouble with deleted template functions)

PR c++/60216
* pt.c (register_specialization): Copy DECL_DELETED_FN to clones.

From-SVN: r208008

11 years agore PR c++/60219 ([c++11] ICE invalid use of variadic template)
Jason Merrill [Fri, 21 Feb 2014 15:29:25 +0000 (10:29 -0500)] 
re PR c++/60219 ([c++11] ICE invalid use of variadic template)

PR c++/60219
* pt.c (coerce_template_parms): Bail if argument packing fails.

From-SVN: r208007

11 years agore PR c++/60248 ([C++11] ICE specializing variadic template)
Jason Merrill [Fri, 21 Feb 2014 15:29:14 +0000 (10:29 -0500)] 
re PR c++/60248 ([C++11] ICE specializing variadic template)

PR c++/60248
* mangle.c (mangle_decl): Don't make an alias for a TYPE_DECL.

From-SVN: r208006

11 years agore PR tree-optimization/55260 (ICE: in ipa_get_parm_lattices, at ipa-cp.c:263 with...
Martin Jambor [Fri, 21 Feb 2014 13:05:40 +0000 (14:05 +0100)] 
re PR tree-optimization/55260 (ICE: in ipa_get_parm_lattices, at ipa-cp.c:263 with -O2 -fno-inline -fipa-cp-clone)

2014-02-21  Martin Jambor  <mjambor@suse.cz>

PR ipa/55260
* ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
info when checking whether lattices are bottom.

testsuite/
* gcc.dg/ipa/pr55260.c: New test.

From-SVN: r207990

11 years agoi386.c (ix86_expand_vec_perm): Use V8SImode mode for mask of V8SFmode permutation.
Jakub Jelinek [Fri, 21 Feb 2014 07:49:00 +0000 (08:49 +0100)] 
i386.c (ix86_expand_vec_perm): Use V8SImode mode for mask of V8SFmode permutation.

* config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
mode for mask of V8SFmode permutation.

From-SVN: r207982

11 years agore PR c++/60274 (String as template parameter - regression in 4.8.3)
Jason Merrill [Fri, 21 Feb 2014 04:42:59 +0000 (23:42 -0500)] 
re PR c++/60274 (String as template parameter - regression in 4.8.3)

PR c++/60274
Revert:
PR c++/58606
* pt.c (template_parm_to_arg): Call convert_from_reference.
(tsubst_template_arg): Don't strip reference refs.

From-SVN: r207978

11 years agoDaily bump.
GCC Administrator [Fri, 21 Feb 2014 00:16:33 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r207975

11 years agore PR c++/60272 (atomic<>::compare_exchange_weak has spurious store and can cause...
Richard Henderson [Fri, 21 Feb 2014 00:14:05 +0000 (16:14 -0800)] 
re PR c++/60272 (atomic<>::compare_exchange_weak has spurious store and can cause race conditions)

PR c++/60272

gcc/
* builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
on failure the store back into EXPECT.
libatomic/
* cas_n.c (libat_compare_exchange): Conditionalize on failure
the store back to EPTR.

From-SVN: r207973

11 years agore PR target/57896 (ICE in expand_expr_real_2)
Jakub Jelinek [Thu, 20 Feb 2014 20:40:52 +0000 (21:40 +0100)] 
re PR target/57896 (ICE in expand_expr_real_2)

PR target/57896
* config/i386/i386.c (expand_vec_perm_interleave2): Don't call
gen_reg_rtx if d->testing_p.
(expand_vec_perm_pshufb2, expand_vec_perm_even_odd_1,
expand_vec_perm_broadcast_1): Return early if d->testing_p and
we will certainly return true.

From-SVN: r207970

11 years agore PR c++/58873 ([c++11] ICE with __underlying_type for broken enum)
Kai Tietz [Thu, 20 Feb 2014 16:03:38 +0000 (17:03 +0100)] 
re PR c++/58873 ([c++11] ICE with __underlying_type for broken enum)

PR c++/58873
* parser.c (cp_parser_functional_cast): Treat NULL_TREE
valued type argument as error_mark_node.

From-SVN: r207962

11 years agotree-cfg.c (replace_uses_by): Mark altered BBs before doing the substitution.
Richard Biener [Thu, 20 Feb 2014 15:01:31 +0000 (15:01 +0000)] 
tree-cfg.c (replace_uses_by): Mark altered BBs before doing the substitution.

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

* tree-cfg.c (replace_uses_by): Mark altered BBs before
doing the substitution.

From-SVN: r207959

11 years agore PR c++/58835 (ICE with __PRETTY_FUNCTION__ in broken function)
Kai Tietz [Thu, 20 Feb 2014 14:29:55 +0000 (15:29 +0100)] 
re PR c++/58835 (ICE with __PRETTY_FUNCTION__ in broken function)

PR c++/58835
* semantics.c (finish_fname): Handle error_mark_node.

From-SVN: r207956

11 years agoDaily bump.
GCC Administrator [Thu, 20 Feb 2014 00:16:54 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r207929

11 years agore PR fortran/49397 ([F03] ICE with proc pointer assignment)
Tobias Burnus [Wed, 19 Feb 2014 23:32:46 +0000 (00:32 +0100)] 
re PR fortran/49397 ([F03] ICE with proc pointer assignment)

2014-02-19  Tobias Burnus  <burnus@net-b.de>

        PR fortran/49397
        * expr.c (gfc_check_pointer_assign): Add check for
        F2008Cor2, C729.
        * trans-decl.c (gfc_get_symbol_decl): Correctly generate
        external decl in a corner case.

2014-02-19  Tobias Burnus  <burnus@net-b.de>

        PR fortran/49397
        * gfortran.dg/proc_ptr_45.f90: New.
        * gfortran.dg/proc_ptr_46.f90: New.

From-SVN: r207927

11 years agoRemove TFmode check for X86_64_INTEGER_CLASS
H.J. Lu [Wed, 19 Feb 2014 22:43:19 +0000 (22:43 +0000)] 
Remove TFmode check for X86_64_INTEGER_CLASS

Backport from mainline
PR target/60207
* config/i386/i386.c (construct_container): Remove TFmode check
for X86_64_INTEGER_CLASS.

From-SVN: r207925

11 years agore PR c++/60046 (internal compiler error: in nothrow_spec_p, at cp/except.c:1280)
Jason Merrill [Wed, 19 Feb 2014 19:59:07 +0000 (14:59 -0500)] 
re PR c++/60046 (internal compiler error: in nothrow_spec_p, at cp/except.c:1280)

PR c++/60046
* pt.c (maybe_instantiate_noexcept): Don't instantiate exception
spec from template context.

From-SVN: r207921

11 years agobackport: re PR target/59794 (i386 backend fails to detect MMX/SSE/AVX ABI changes)
Uros Bizjak [Wed, 19 Feb 2014 16:50:22 +0000 (17:50 +0100)] 
backport: re PR target/59794 (i386 backend fails to detect MMX/SSE/AVX ABI changes)

Backport from mainline
2014-02-19  Uros Bizjak  <ubizjak@gmail.com>

PR target/59794
* config/i386/i386.c (type_natural_mode): Warn for ABI changes
only when -Wpsabi is enabled.

testsuite/ChangeLog:

Backport from mainline
2014-02-19  Uros Bizjak  <ubizjak@gmail.com>

PR target/59794
* gcc.target/i386/pr39162.c: Add dg-prune-output.
(dg-options): Remove -Wno-psabi.
* gcc.target/i386/pr59794-2.c: Ditto.
* gcc.target/i386/sse-5.c: Ditto.

From-SVN: r207912

11 years agoBackport PRs 55907, 60231
Janus Weil [Wed, 19 Feb 2014 07:38:45 +0000 (08:38 +0100)] 
Backport PRs 55907, 60231

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

Backports from mainline:
2014-02-17  Janus Weil  <janus@gcc.gnu.org>

PR fortran/55907
* resolve.c (build_default_init_expr): Don't initialize character
variable if -fno-automatic is given.

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

PR fortran/60231
* resolve.c (check_generic_tbp_ambiguity): Check for presence of dummy
arguments to prevent ICE.

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

Backports from mainline:
2014-02-17  Janus Weil  <janus@gcc.gnu.org>

PR fortran/55907
* gfortran.dg/init_flag_12.f90: New.

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

PR fortran/60231
* gfortran.dg/typebound_generic_15.f90: New.

From-SVN: r207876

11 years agobackport: invoke.texi: Document ARM -march=armv7e-m.
Terry Guo [Wed, 19 Feb 2014 07:16:53 +0000 (07:16 +0000)] 
backport: invoke.texi: Document ARM -march=armv7e-m.

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

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

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

From-SVN: r207874

11 years agoDaily bump.
GCC Administrator [Wed, 19 Feb 2014 00:16:37 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r207862

11 years agore PR objc/56870 (@catch handler broken with SEH)
Kai Tietz [Tue, 18 Feb 2014 17:04:38 +0000 (18:04 +0100)] 
re PR objc/56870 (@catch handler broken with SEH)

2014-02-18  Kai Tietz  <ktietz@redhat.com>
Jonathan Schleifer  <js@webkeks.org>

PR objc/56870
* unwind-seh.c (_GCC_specific_handler): Pass proper
value to unwind-handler.

Co-Authored-By: Jonathan Schleifer <js@webkeks.org>
From-SVN: r207850

11 years agobackport: re PR target/60193 (ICE on big nested frame)
Kai Tietz [Tue, 18 Feb 2014 12:57:32 +0000 (13:57 +0100)] 
backport: re PR target/60193 (ICE on big nested frame)

2014-02-18  Kai Tietz  <ktietz@redhat.com>

Backport from mainline
PR target/60193
* config/i386/i386.c (ix86_expand_prologue): Use
rax register as displacement for restoring %r10, %rax.
Additional fix wrong offset for restoring both-registers.

2014-02-18  Kai Tietz  <ktietz@redhat.com>

PR target/60193
* gcc.target/i386/nest-1.c: New testcase.

From-SVN: r207845

11 years agoipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous assertion with...
Eric Botcazou [Tue, 18 Feb 2014 11:12:14 +0000 (11:12 +0000)] 
ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous assertion with conditional return.

* ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
assertion with conditional return.

From-SVN: r207839

11 years agore PR driver/60233 (AVX instructions emitted with -march=native on host without AVX...
Jakub Jelinek [Tue, 18 Feb 2014 07:23:51 +0000 (08:23 +0100)] 
re PR driver/60233 (AVX instructions emitted with -march=native on host without AVX support)

PR driver/60233
* config/i386/driver-i386.c (host_detect_local_cpu): If
YMM state is not saved by the OS, also clear has_f16c.  Move
CPUID 0x80000001 handling before YMM state saving checking.

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

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

From-SVN: r207830

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

From-SVN: r207812

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

From-SVN: r207806

11 years agobackport: re PR libfortran/59771 (Cleanup handling of Gw.0 and Gw.0Ee format)
Jerry DeLisle [Sat, 15 Feb 2014 15:57:35 +0000 (15:57 +0000)] 
backport: re PR libfortran/59771 (Cleanup handling of Gw.0 and Gw.0Ee format)

2014-02-15  Jerry DeLisle  <jvdelisle@gcc.gnu>
    Dominique d'Humieres  <dominiq@lps.ens.fr>

Backport from mainline
PR libfortran/59771
PR libfortran/59774
PR libfortran/59836
* gfortran.dg/fmt_g_1.f90: New test.
* gfortran.dg/round_3.f08: New cases added.

Co-Authored-By: Dominique d'Humieres <dominiq@lps.ens.fr>
From-SVN: r207802

11 years agobackport: re PR libfortran/59771 (Cleanup handling of Gw.0 and Gw.0Ee format)
Jerry DeLisle [Sat, 15 Feb 2014 15:48:48 +0000 (15:48 +0000)] 
backport: re PR libfortran/59771 (Cleanup handling of Gw.0 and Gw.0Ee format)

2014-02-15  Jerry DeLisle  <jvdelisle@gcc.gnu>
    Dominique d'Humieres  <dominiq@lps.ens.fr>

Backport from mainline
PR libfortran/59771
PR libfortran/59774
PR libfortran/59836
* io/write_float.def (output_float): Fix wrong handling of the
Fw.0 format.
(output_float_FMT_G_): Fixes rounding issues with -m32.

Co-Authored-By: Dominique d'Humieres <dominiq@lps.ens.fr>
From-SVN: r207801

11 years agoDaily bump.
GCC Administrator [Sat, 15 Feb 2014 00:16:50 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r207795

11 years agoUse ud2 assembly mnemonic when available.
Roland McGrath [Fri, 14 Feb 2014 17:37:50 +0000 (17:37 +0000)] 
Use ud2 assembly mnemonic when available.

gcc/
* configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
* configure: Regenerated.
* config.in: Regenerated.
* config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
instead of ASM_SHORT.

From-SVN: r207790

11 years agoDaily bump.
GCC Administrator [Fri, 14 Feb 2014 00:16:40 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r207772

11 years agobackport: sse.md (xop_vmfrcz<mode>2): Generate const0 in operands[2], not operands[3].
Uros Bizjak [Thu, 13 Feb 2014 22:30:26 +0000 (23:30 +0100)] 
backport: sse.md (xop_vmfrcz<mode>2): Generate const0 in operands[2], not operands[3].

Backport from mainline
2014-02-13  Uros Bizjak  <ubizjak@gmail.com>

* config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
operands[2], not operands[3].

From-SVN: r207768

11 years agos390.c (s390_asm_output_function_label): Fix crash caused by bad second argument...
Dominik Vogt [Thu, 13 Feb 2014 12:34:11 +0000 (12:34 +0000)] 
s390.c (s390_asm_output_function_label): Fix crash caused by bad second argument to warning_at() with -mhotpatch and...

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

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

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

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

From-SVN: r207752

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

From-SVN: r207745

11 years agoPass --32 to GNU assembler for .long foo@GOTOFF check
H.J. Lu [Wed, 12 Feb 2014 16:38:50 +0000 (16:38 +0000)] 
Pass --32 to GNU assembler for .long foo@GOTOFF check

Backport from mainline
PR target/60151
* configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU
assembler.

From-SVN: r207733

11 years agore PR rtl-optimization/60116 (wrong code at -Os on x86_64-linux-gnu in 32-bit mode)
Eric Botcazou [Wed, 12 Feb 2014 10:17:08 +0000 (10:17 +0000)] 
re PR rtl-optimization/60116 (wrong code at -Os on x86_64-linux-gnu in 32-bit mode)

PR rtl-optimization/60116
* combine.c (try_combine): Fix oversight in previous change.

From-SVN: r207717

11 years agore PR rtl-optimization/60116 (wrong code at -Os on x86_64-linux-gnu in 32-bit mode)
Eric Botcazou [Wed, 12 Feb 2014 08:51:57 +0000 (08:51 +0000)] 
re PR rtl-optimization/60116 (wrong code at -Os on x86_64-linux-gnu in 32-bit mode)

PR rtl-optimization/60116
* combine.c (try_combine): Also remove dangling REG_DEAD notes on the
other_insn once the combination has been validated.

From-SVN: r207714

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

From-SVN: r207705

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

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

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

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

From-SVN: r207684

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

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

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

From-SVN: r207681

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

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

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

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

From-SVN: r207679

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

From-SVN: r207675

11 years agobackport: [multiple changes]
Richard Biener [Mon, 10 Feb 2014 15:20:30 +0000 (15:20 +0000)] 
backport: [multiple changes]

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

Backport from mainline
2014-01-30  Richard Biener  <rguenther@suse.de>

PR tree-optimization/59903
* tree-vect-loop.c (vect_transform_loop): Guard multiple-types
check properly.

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

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

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

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

From-SVN: r207659

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

From-SVN: r207648

11 years agobackport: re PR fortran/58803 (Proc-pointer component: free_components deallocates...
Janus Weil [Sun, 9 Feb 2014 17:32:07 +0000 (18:32 +0100)] 
backport: re PR fortran/58803 (Proc-pointer component: free_components deallocates twice pointer p->tb at symbol.c:2068)

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

Backport from mainline
2013-10-21  Tobias Burnus  <burnus@net-b.de>

PR fortran/58803
PR fortran/59395
* decl.c (match_ppc_decl): Prevent later double free.

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

Backport from mainline
2013-10-21  Tobias Burnus  <burnus@net-b.de>

PR fortran/58803
PR fortran/59395
* gfortran.dg/proc_ptr_comp_38.f90: New.

From-SVN: r207644

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

From-SVN: r207640

11 years agore PR fortran/57033 (ICE on extended derived type and default initialization)
Mikael Morin [Sat, 8 Feb 2014 20:37:55 +0000 (20:37 +0000)] 
re PR fortran/57033 (ICE on extended derived type and default initialization)

fortran/
        PR fortran/57033
        * primary.c (gfc_convert_to_structure_constructor): Avoid null pointer
        dereference.

testsuite/
        PR fortran/57033
        * gfortran.dg/default_initialization_7.f90: New test.

From-SVN: r207634

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

From-SVN: r207625

11 years agore PR fortran/59906 (error: size of variable '<anonymous>' is too large)
Paul Thomas [Fri, 7 Feb 2014 21:15:37 +0000 (21:15 +0000)] 
re PR fortran/59906 (error: size of variable '<anonymous>' is too large)

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

PR fortran/59906
* trans-stmt.c (gfc_add_loop_ss_code): In the case of character
SS_REFERENCE, use gfc_conv_string_parameter to ensure that a
pointer to the string is stored.
* trans-expr.c (gfc_conv_expr_reference): Likewise, use
gfc_conv_string_parameter to ensure that a pointer to is passed
to the elemental function.

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

PR fortran/59906
* gfortran.dg/elemental_subroutine_9.f90 : New test

From-SVN: r207613

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

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

From-SVN: r207611

11 years agoDaily bump.
GCC Administrator [Fri, 7 Feb 2014 00:16:45 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r207585

11 years agoDaily bump.
GCC Administrator [Thu, 6 Feb 2014 00:16:32 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r207527

11 years ago[Backport: ARM Documentation] Clarify -mcpu, -mtune, -march
James Greenhalgh [Wed, 5 Feb 2014 14:40:36 +0000 (14:40 +0000)] 
[Backport: ARM Documentation] Clarify -mcpu, -mtune, -march

gcc/

Backport from mainline.
2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>

PR target/59718
* doc/invoke.texi (-march): Clarify documentation for ARM.
(-mtune): Likewise.
(-mcpu): Likewise.

From-SVN: r207505

11 years agore PR target/59777 (Incorrect expansion of TLS arguments in a call)
John David Anglin [Wed, 5 Feb 2014 00:47:25 +0000 (00:47 +0000)] 
re PR target/59777 (Incorrect expansion of TLS arguments in a call)

PR target/59777
* config/pa/pa.c (legitimize_tls_address): Return original address
if not passed a SYMBOL_REF rtx.
(hppa_legitimize_address): Call legitimize_tls_address for all TLS
addresses.
(pa_emit_move_sequence): Simplify TLS source operands.
(pa_legitimate_constant_p): Reject all TLS constants.
* config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
(CONSTANT_ADDRESS_P): Reject TLS CONST addresses.

From-SVN: r207494

11 years agoDaily bump.
GCC Administrator [Wed, 5 Feb 2014 00:16:49 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r207491

11 years agobackport: re PR target/60017 (Struct not returned correctly)
Uros Bizjak [Tue, 4 Feb 2014 16:43:00 +0000 (17:43 +0100)] 
backport: re PR target/60017 (Struct not returned correctly)

Backport from mainline
2014-02-02  Uros Bizjak  <ubizjak@gmail.com>

PR target/60017
* config/i386/i386.c (classify_argument): Fix handling of bit_offset
when calculating size of integer atomic types.

testsuite/ChangeLog:

Backport from mainline
2014-02-02  Uros Bizjak  <ubizjak@gmail.com>

PR target/60017
* gcc.c-torture/execute/pr60017.c: New test.

From-SVN: r207475

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

From-SVN: r207444

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

From-SVN: r207411

11 years agobackport: f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
Uros Bizjak [Sun, 2 Feb 2014 10:21:44 +0000 (11:21 +0100)] 
backport: f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.

Backport from mainline
2014-01-30  Jakub Jelinek  <jakub@redhat.com>

* config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.

From-SVN: r207394

11 years agoDaily bump.
GCC Administrator [Sun, 2 Feb 2014 00:16:43 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r207392

11 years agore PR fortran/59414 ([OOP] ICE in in gfc_conv_expr_descriptor on ALLOCATE inside...
Paul Thomas [Sat, 1 Feb 2014 22:31:53 +0000 (22:31 +0000)] 
re PR fortran/59414 ([OOP] ICE in in gfc_conv_expr_descriptor on ALLOCATE inside SELECT TYPE)

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

PR fortran/59414
* trans-stmt.c (gfc_trans_allocate): Before the pointer
assignment to transfer the source _vptr to a class allocate
expression, the final class reference should be exposed. The
tail that includes the _data and array references is stored.
This reduced expression is transferred to 'lhs' and the _vptr
added. Then the tail is restored to the allocate expression.

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

PR fortran/59414
* gfortran.dg/allocate_class_3.f90 : New test

From-SVN: r207390

11 years agore PR other/56653 (Warning when verifying checksums from MD5SUMS file in tarballs)
Dmitry Gorbachev [Sat, 1 Feb 2014 12:28:18 +0000 (12:28 +0000)] 
re PR other/56653 (Warning when verifying checksums from MD5SUMS file in tarballs)

PR other/56653
* gcc_release: Avoid printing empty line to generated MD5SUMS files.
Bump copyright year.

From-SVN: r207388

11 years agore PR middle-end/60004 (Conditional return within transaction causes ICE)
Richard Henderson [Sat, 1 Feb 2014 05:24:07 +0000 (21:24 -0800)] 
re PR middle-end/60004 (Conditional return within transaction causes ICE)

PR middle-end/60004

  * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
  until after else_eh is processed.

From-SVN: r207381