]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
11 years agoDaily bump.
GCC Administrator [Mon, 10 Mar 2014 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r208446

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

From-SVN: r208436

11 years agore PR fortran/60450 (ICE with SHAPE intrinsic)
Janus Weil [Sat, 8 Mar 2014 13:59:00 +0000 (14:59 +0100)] 
re PR fortran/60450 (ICE with SHAPE intrinsic)

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

PR fortran/60450
* simplify.c (gfc_simplify_shape): Only clear shape if it was really
created successfully.

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

PR fortran/60450
* gfortran.dg/shape_8.f90: New.

From-SVN: r208430

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

From-SVN: r208421

11 years agoruntime: Fix GC bug caused by Entersyscall modifying reg.
Ian Lance Taylor [Fri, 7 Mar 2014 05:04:59 +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.

From-SVN: r208391

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

From-SVN: r208388

11 years agoMakefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if MULTILIB_OSDIRNAMES is not defined.
Matthias Klose [Thu, 6 Mar 2014 14:18:55 +0000 (14:18 +0000)] 
Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if MULTILIB_OSDIRNAMES is not defined.

2014-03-06  Matthias Klose  <doko@ubuntu.com>

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

From-SVN: r208384

11 years agore PR tree-optimization/60276 (-O3 autovectorizer breaks on a particular loop)
Jakub Jelinek [Thu, 6 Mar 2014 08:23:36 +0000 (09:23 +0100)] 
re PR tree-optimization/60276 (-O3 autovectorizer breaks on a particular loop)

PR tree-optimization/60276
* tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Avoid
a -Wsign-compare warning.

From-SVN: r208373

11 years agore PR tree-optimization/56490 (-Wall triggering infinite loop)
Jakub Jelinek [Thu, 6 Mar 2014 08:12:02 +0000 (09:12 +0100)] 
re PR tree-optimization/56490 (-Wall triggering infinite loop)

* Makefile.in (tree-ssa-uninit.o): Depend on $(PARAMS_H).

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

PR tree-optimization/56490
* params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
* tree-ssa-uninit.c: Include params.h.
(compute_control_dep_chain): Add num_calls argument, return false
if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
num_calls to recursive call.
(find_predicates): Change dep_chain into normal array, add num_calls
variable and adjust compute_control_dep_chain caller.
(find_def_preds): Likewise.

From-SVN: r208372

11 years agobackport: re PR c/37743 (Bogus printf format warning with __builtin_bswap32.)
Jakub Jelinek [Thu, 6 Mar 2014 08:11:20 +0000 (09:11 +0100)] 
backport: re PR c/37743 (Bogus printf format warning with __builtin_bswap32.)

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

PR c/37743
* c-common.c (c_common_nodes_and_builtins): When initializing
c_uint{16,32,64}_type_node, also set corresponding
uint{16,32,64}_type_node to the same value.

* g++.dg/ext/builtin-bswap1.C: New test.
* c-c++-common/pr37743.c: New test.

From-SVN: r208371

11 years agobackport: re PR preprocessor/58844 (ICE with invalid use of ##)
Jakub Jelinek [Thu, 6 Mar 2014 08:10:08 +0000 (09:10 +0100)] 
backport: re PR preprocessor/58844 (ICE with invalid use of ##)

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

PR preprocessor/58844
* macro.c (enter_macro_context): Only push
macro_real_token_count (macro) tokens rather than
macro->count tokens, regardless of
CPP_OPTION (pfile, track-macro-expansion).

* c-c++-common/cpp/pr58844-1.c: New test.
* c-c++-common/cpp/pr58844-2.c: New test.

From-SVN: r208370

11 years agobackport: re PR target/43546 (ICE: in assign_stack_local_1, at function.c:353 with...
Jakub Jelinek [Thu, 6 Mar 2014 08:02:46 +0000 (09:02 +0100)] 
backport: re PR target/43546 (ICE: in assign_stack_local_1, at function.c:353 with -mpreferred-stack-boundary=2 -msseregparm)

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

PR target/43546
* expr.c (compress_float_constant): If x is a hard register,
extend into a pseudo and then move to x.

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

From-SVN: r208369

11 years agobackport: re PR c/60101 (Long compile times when mixed complex floating point datatyp...
Jakub Jelinek [Thu, 6 Mar 2014 08:01:57 +0000 (09:01 +0100)] 
backport: re PR c/60101 (Long compile times when mixed complex floating point datatypes are used in lengthy expressions)

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

PR c/60101
* c-common.c (merge_tlist): If copy is true, call new_tlist,
if false, add ADD itself, rather than vice versa.
(verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
copy.  For SAVE_EXPR, only call merge_tlist once.

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

From-SVN: r208368

11 years agobackport: re PR fortran/52370 (Spurious "may be used uninitialized" warning for check...
Jakub Jelinek [Thu, 6 Mar 2014 08:00:49 +0000 (09:00 +0100)] 
backport: re PR fortran/52370 (Spurious "may be used uninitialized" warning for check of optional argument)

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

PR fortran/52370
* trans-decl.c (gfc_build_dummy_array_decl): Set TREE_NO_WARNING
on decl if sym->attr.optional.

* gfortran.dg/pr52370.f90: New test.

From-SVN: r208367

11 years agobackport: re PR middle-end/59776 (gcc -g -O1 ICE in expand_debug_locations, at cfgexp...
Jakub Jelinek [Thu, 6 Mar 2014 07:59:29 +0000 (08:59 +0100)] 
backport: re PR middle-end/59776 (gcc -g -O1 ICE in expand_debug_locations, at cfgexpand.c:3865)

Backport from mainline
2014-02-11  Richard Henderson  <rth@redhat.com>
    Jakub Jelinek  <jakub@redhat.com>

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

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

From-SVN: r208366

11 years agobackport: re PR preprocessor/56824 (pragma GCC diagnostic push/pop fail with GCC...
Jakub Jelinek [Thu, 6 Mar 2014 07:58:16 +0000 (08:58 +0100)] 
backport: re PR preprocessor/56824 (pragma GCC diagnostic push/pop fail with GCC diagnostic ignored "-Waggregate-return")

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

PR preprocessor/56824
* line-map.c (linemap_compare_locations): Look through adhoc locations
for both l0 and l1.

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

From-SVN: r208365

11 years agobackport: re PR ipa/60026 (ICE at -O3 on valid code (with the optimize pragma) on...
Jakub Jelinek [Thu, 6 Mar 2014 07:57:12 +0000 (08:57 +0100)] 
backport: re PR ipa/60026 (ICE at -O3 on valid code (with the optimize pragma) on x86_64-linux-gnu)

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

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

2014-02-06  Jakub Jelinek  <jakub@redhat.com>

PR target/60062
* tree.h (opts_for_fn): New inline function.
(opt_for_fn): Define.
* config/i386/i386.c (ix86_function_regparm): Use
opt_for_fn (decl, optimize) instead of optimize.

* gcc.c-torture/execute/pr60062.c: New test.
* gcc.c-torture/execute/pr60072.c: New test.

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

PR ipa/60026
* c-c++-common/torture/pr60026.c: New test.

From-SVN: r208364

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