]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
9 years agors6000: Fix gcc.target/powerpc/ti_math1.c on GCC 5 (PR69019)
Segher Boessenkool [Thu, 7 Jul 2016 17:08:00 +0000 (19:08 +0200)] 
rs6000: Fix gcc.target/powerpc/ti_math1.c on GCC 5 (PR69019)

This testcase currently fails on GCC 5, for LE only.  Since it is fixed
for 6 and later, and backporting the relevant code is rather invasive,
let's just weaken the testcase for GCC 5 instead.

       PR target/69019
       * gcc.target/powerpc/ti_math1.c: Allow addze as well as adde.

From-SVN: r238121

9 years agobackport: re PR c/68062 (ICE when comparing vectors)
Jakub Jelinek [Thu, 7 Jul 2016 12:59:39 +0000 (14:59 +0200)] 
backport: re PR c/68062 (ICE when comparing vectors)

Backported from mainline
2016-03-02  Jakub Jelinek  <jakub@redhat.com>

PR c/68062
* c-c++-common/vector-compare-4.c: Add -Wno-psabi to dg-options.

From-SVN: r238108

9 years agobackport: vector-compare-4.c: Prune "non-standard ABI extension" warning.
Jakub Jelinek [Thu, 7 Jul 2016 12:58:43 +0000 (14:58 +0200)] 
backport: vector-compare-4.c: Prune "non-standard ABI extension" warning.

Backported from mainline
2016-02-02  Segher Boessenkool  <segher@kernel.crashing.org>

* c-c++-common/vector-compare-4.c: Prune "non-standard ABI extension"
warning.

From-SVN: r238105

9 years agobackport: re PR fortran/71717 (A gfortran silent "wrong code" bug in the transition...
Jakub Jelinek [Thu, 7 Jul 2016 12:51:01 +0000 (14:51 +0200)] 
backport: re PR fortran/71717 (A gfortran silent "wrong code" bug in the transition from 4.9.0 -> 4.9.1, using OpenMP.)

Backported from mainline
2016-07-01  Jakub Jelinek  <jakub@redhat.com>

PR fortran/71717
* trans-openmp.c (gfc_omp_privatize_by_reference): Return false
for GFC_DECL_ASSOCIATE_VAR_P with POINTER_TYPE.

* testsuite/libgomp.fortran/associate3.f90: New test.

From-SVN: r238104

9 years agobackport: re PR fortran/71704 (ICE with -fopenmp and some omp constructs)
Jakub Jelinek [Thu, 7 Jul 2016 12:50:01 +0000 (14:50 +0200)] 
backport: re PR fortran/71704 (ICE with -fopenmp and some omp constructs)

Backported from mainline
2016-06-30  Jakub Jelinek  <jakub@redhat.com>

PR fortran/71704
* parse.c (matchs, matcho): Move right before decode_omp_directive.
If spec_only, only gfc_match the keyword and if successful, goto
do_spec_only.
(matchds, matchdo): Define.
(decode_omp_directive): Add spec_only local var and set it.
Use matchds or matchdo macros instead of matchs or matcho
for declare target, declare simd, declare reduction and threadprivate
directives.  Return ST_GET_FCN_CHARACTERISTICS if a non-declarative
directive could be matched.
(next_statement): For ST_GET_FCN_CHARACTERISTICS restore
gfc_current_locus from old_locus even if there is no label.

* gfortran.dg/gomp/pr71704.f90: New test.

From-SVN: r238103

9 years agobackport: re PR fortran/71705 (ICE in lower_omp_target, at omp-low.c:16136)
Jakub Jelinek [Thu, 7 Jul 2016 12:49:04 +0000 (14:49 +0200)] 
backport: re PR fortran/71705 (ICE in lower_omp_target, at omp-low.c:16136)

Backported from mainline
2016-06-30  Jakub Jelinek  <jakub@redhat.com>

PR fortran/71705
* trans-openmp.c (gfc_trans_omp_clauses): Set TREE_ADDRESSABLE on
decls in to/from clauses.

* gfortran.dg/gomp/pr71705.f90: New test.

From-SVN: r238102

9 years agobackport: re PR middle-end/71626 (ICE at -O1 and above on x86_64-linux-gnu (in output...
Jakub Jelinek [Thu, 7 Jul 2016 12:48:16 +0000 (14:48 +0200)] 
backport: re PR middle-end/71626 (ICE at -O1 and above on x86_64-linux-gnu (in output_constant_pool_2, at varasm.c:3837))

Backported from mainline
2016-06-28  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/71626
* config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
a constant, force its SUBREG_REG into memory or register instead
of whole op1.

* gcc.c-torture/execute/pr71626-1.c: New test.
* gcc.c-torture/execute/pr71626-2.c: New test.

From-SVN: r238101

9 years agobackport: re PR tree-optimization/71588 (ICE on valid code at -O2 and -O3 on x86_64...
Jakub Jelinek [Thu, 7 Jul 2016 12:47:20 +0000 (14:47 +0200)] 
backport: re PR tree-optimization/71588 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu: in execute_todo, at passes.c:2009)

Backported from mainline
2016-06-21  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/71588
* tree-ssa-strlen.c (valid_builtin_call): New function.
(adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
it.

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

From-SVN: r238100

9 years agobackport: re PR middle-end/71581 (ICE on valid code on x86_64-linux-gnu with -Wuninit...
Jakub Jelinek [Thu, 7 Jul 2016 12:46:33 +0000 (14:46 +0200)] 
backport: re PR middle-end/71581 (ICE on valid code on x86_64-linux-gnu with -Wuninitialized (Segmentation fault))

Backported from mainline
2016-06-20  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/71581
* tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
for conversion of scalar user var to complex type and use the
underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
punt.

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

From-SVN: r238099

9 years agobackport: re PR c++/71528 (multiple extern reference declarations produce uninitializ...
Jakub Jelinek [Thu, 7 Jul 2016 12:45:44 +0000 (14:45 +0200)] 
backport: re PR c++/71528 (multiple extern reference declarations produce uninitialized access)

Backported from mainline
2016-06-14  Jakub Jelinek  <jakub@redhat.com>

PR c++/71528
* decl.c (duplicate_decls): For DECL_INITIALIZED_P non-external
olddecl vars, preserve their TREE_READONLY bit.

* g++.dg/opt/pr71528.C: New test.

From-SVN: r238098

9 years agobackport: re PR c++/71516 (ICE on invalid C++ code (invalid use of forward declared...
Jakub Jelinek [Thu, 7 Jul 2016 12:44:33 +0000 (14:44 +0200)] 
backport: re PR c++/71516 (ICE on invalid C++ code (invalid use of forward declared type) on x86_64-linux-gnu: Segmentation fault (program cc1plus))

Backported from mainline
2016-06-14  Jakub Jelinek  <jakub@redhat.com>

PR c++/71516
* decl.c (complete_vars): Handle gracefully type == error_mark_node.

* g++.dg/init/pr71516.C: New test.

From-SVN: r238097

9 years agobackport: re PR middle-end/71494 (label as value in nested function)
Jakub Jelinek [Thu, 7 Jul 2016 12:43:50 +0000 (14:43 +0200)] 
backport: re PR middle-end/71494 (label as value in nested function)

Backported from mainline
2016-06-10  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/71494
* tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
without LABEL_DECL, set *handled_ops_p to false instead of true.

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

From-SVN: r238096

9 years agobackport: re PR sanitizer/71498 (ubsan bounds checking influenced by surrounding...
Jakub Jelinek [Thu, 7 Jul 2016 12:42:43 +0000 (14:42 +0200)] 
backport: re PR sanitizer/71498 (ubsan bounds checking influenced by surrounding code)

Backported from mainline
2016-06-13  Jakub Jelinek  <jakub@redhat.com>

PR sanitizer/71498
* c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.

* c-c++-common/ubsan/bounds-13.c: New test.

From-SVN: r238095

9 years agobackport: re PR c++/70641 (ICE on valid code at -O1 and above on x86_64-linux-gnu...
Jakub Jelinek [Thu, 7 Jul 2016 12:41:25 +0000 (14:41 +0200)] 
backport: re PR c++/70641 (ICE on valid code at -O1 and above on x86_64-linux-gnu: verify_gimple failed)

Backported from mainline
2016-04-13  Jakub Jelinek  <jakub@redhat.com>

PR c++/70641
* ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
eh edges have been purged.

* g++.dg/opt/pr70641.C: New test.

From-SVN: r238094

9 years agobackport: re PR target/70633 (ICE on valid code at -Os (in 32-bit mode) on x86_64...
Jakub Jelinek [Thu, 7 Jul 2016 12:40:43 +0000 (14:40 +0200)] 
backport: re PR target/70633 (ICE on valid code at -Os (in 32-bit mode) on x86_64-linux-gnu: output_operand: invalid expression as operand)

Backported from mainline
2016-04-13  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/70633
* gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
gimplification turns some element into non-constant.

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

From-SVN: r238093

9 years agobackport: re PR debug/70628 (ICE in get_reg_rtx, at emit-rtl.c:1025)
Jakub Jelinek [Thu, 7 Jul 2016 12:39:40 +0000 (14:39 +0200)] 
backport: re PR debug/70628 (ICE in get_reg_rtx, at emit-rtl.c:1025)

Backported from mainline
2016-04-13  Jakub Jelinek  <jakub@redhat.com>

PR debug/70628
* explow.c (convert_memory_address_addr_space_1): Formatting fix.

PR debug/70628
* rtl.h (convert_memory_address_addr_space_1): New prototype.
* explow.c (convert_memory_address_addr_space_1): No longer static,
add NO_EMIT argument and don't call convert_modes if true, pass
it down recursively, remove break after return.
(convert_memory_address_addr_space): Adjust caller.
* simplify-rtx.c (simplify_unary_operation_1): Call
convert_memory_address_addr_space_1 instead of convert_memory_address,
if it returns NULL, don't simplify.

* gcc.dg/torture/pr70628.c: New test.

From-SVN: r238092

9 years agobackport: re PR target/70574 (wrong code with -mavx2, read of partially initialised...
Jakub Jelinek [Thu, 7 Jul 2016 12:34:07 +0000 (14:34 +0200)] 
backport: re PR target/70574 (wrong code with -mavx2, read of partially initialised stack variable)

Backported from mainline
2016-04-08  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/70574
* fwprop.c (forward_propagate_and_simplify): Don't add
REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
(try_fwprop_subst): Don't add REG_EQUAL note if there are any
paradoxical subregs within *loc.

* gcc.target/i386/avx2-pr70574.c: New test.

From-SVN: r238091

9 years agobackport: re PR c++/70336 (Incorrect Wconversion warning)
Jakub Jelinek [Thu, 7 Jul 2016 12:33:10 +0000 (14:33 +0200)] 
backport: re PR c++/70336 (Incorrect Wconversion warning)

Backported from mainline
2016-04-05  Jakub Jelinek  <jakub@redhat.com>

PR c++/70336
* match.pd (nested int casts): Limit to GIMPLE.

* c-c++-common/pr70336.c: New test.
* gcc.dg/torture/builtin-isinf_sign-1.c (foo): Guard tests
no longer optimized away at -O0 with #ifndef __OPTIMIZE__.

From-SVN: r238090

9 years agobackport: [multiple changes]
Richard Biener [Thu, 7 Jul 2016 10:33:01 +0000 (10:33 +0000)] 
backport: [multiple changes]

2016-07-07  Richard Biener  <rguenther@suse.de>

Backport from mainline
2016-06-07  Richard Biener  <rguenther@suse.de>

PR middle-end/71423
* match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
for signed ops.

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

2016-06-08  Richard Biener  <rguenther@suse.de>

PR tree-optimization/71452
* tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
type used for the SSA rewrite has enough precision to cover
the dynamic type of the location.

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

2016-06-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/71522
* tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
copying into float copying.

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

From-SVN: r238084

9 years agoDaily bump.
GCC Administrator [Thu, 7 Jul 2016 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238071

9 years agoDaily bump.
GCC Administrator [Wed, 6 Jul 2016 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r238027

9 years agore PR c++/71214 (Typo in feature test macro for rvalue references)
Markus Trippelsdorf [Tue, 5 Jul 2016 17:58:35 +0000 (17:58 +0000)] 
re PR c++/71214 (Typo in feature test macro for rvalue references)

Fix PR c++/71214

 PR c++/71214
* c-cppbuiltin.c (c_cpp_builtins): Define * __cpp_rvalue_references.

From-SVN: r238020

9 years agoDaily bump.
GCC Administrator [Tue, 5 Jul 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237996

9 years agobackport: re PR libstdc++/71313 ([Filesystem TS] remove_all fails to remove directory...
Ville Voutilainen [Mon, 4 Jul 2016 13:52:21 +0000 (16:52 +0300)] 
backport: re PR libstdc++/71313 ([Filesystem TS] remove_all fails to remove directory contents recursively)

Backport from mainline
        2016-07-04  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR libstdc++/71313
* src/filesystem/ops.cc (remove_all(const path&, error_code&)):
Call remove_all for children of a directory.
* testsuite/experimental/filesystem/operations/create_directories.cc:
Adjust.

From-SVN: r237981

9 years agoDaily bump.
GCC Administrator [Mon, 4 Jul 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237952

9 years agoDaily bump.
GCC Administrator [Sun, 3 Jul 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237947

9 years agoDaily bump.
GCC Administrator [Sat, 2 Jul 2016 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237934

9 years agoarm.c (arm_function_ok_for_sibcall): Add another check for NULL decl.
Eric Botcazou [Fri, 1 Jul 2016 07:41:01 +0000 (07:41 +0000)] 
arm.c (arm_function_ok_for_sibcall): Add another check for NULL decl.

* config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
for NULL decl.

From-SVN: r237905

9 years agoDaily bump.
GCC Administrator [Fri, 1 Jul 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237900

9 years agore PR middle-end/71693 (ICE: verify_gimple failed (type mismatch in shift expression...
Jakub Jelinek [Thu, 30 Jun 2016 09:08:32 +0000 (11:08 +0200)] 
re PR middle-end/71693 (ICE: verify_gimple failed (type mismatch in shift expression, -O0, -O1, -O2, -O3))

PR middle-end/71693
* fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
first when permuting bitwise operation with rotate.  Cast
TREE_OPERAND (arg0, 0) to type when cancelling two rotations.

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

From-SVN: r237877

9 years agoDaily bump.
GCC Administrator [Thu, 30 Jun 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237867

9 years agoDaily bump.
GCC Administrator [Wed, 29 Jun 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237834

9 years agoDaily bump.
GCC Administrator [Tue, 28 Jun 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237808

9 years agore PR fortran/70673 (ICE with module containing functions with allocatable character...
Paul Thomas [Mon, 27 Jun 2016 20:57:13 +0000 (20:57 +0000)] 
re PR fortran/70673 (ICE with module containing functions with allocatable character scalars)

2016-06-27  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/70673
* frontend-passes.c (realloc_string_callback): Add a call to
gfc_dep_compare_expr.

2016-06-27  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/70673
* gfortran.dg/pr70673.f90: New test.

From-SVN: r237805

9 years agore PR fortran/70673 (ICE with module containing functions with allocatable character...
Paul Thomas [Mon, 27 Jun 2016 20:54:56 +0000 (20:54 +0000)] 
re PR fortran/70673 (ICE with module containing functions with allocatable character scalars)

2016-06-27  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/70673
* frontend-passes.c (realloc_string_callback): Add a call to
gfc_dep_compare_expr.

2016-06-27  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/70673
* gfortran.dg/pr70673.f90: New test.

From-SVN: r237804

9 years agoDaily bump.
GCC Administrator [Mon, 27 Jun 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237795

9 years agoDaily bump.
GCC Administrator [Sun, 26 Jun 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237786

9 years agoDaily bump.
GCC Administrator [Sat, 25 Jun 2016 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237777

9 years agoDaily bump.
GCC Administrator [Fri, 24 Jun 2016 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237751

9 years agoDaily bump.
GCC Administrator [Thu, 23 Jun 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237724

9 years agoDaily bump.
GCC Administrator [Wed, 22 Jun 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237673

9 years agobackport: re PR target/30417 (Section .data cannot be moved with -mmcu=atmega88)
Georg-Johann Lay [Tue, 21 Jun 2016 10:43:12 +0000 (10:43 +0000)] 
backport: re PR target/30417 (Section .data cannot be moved with -mmcu=atmega88)

Backport from 2016-06-21 trunk r237639.
PR target/30417
* config/avr/gen-avr-mmcu-specs.c (print_mcu):
[*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
[*link_text_start]: Wrap -Ttext into %{!Ttext:...}.

From-SVN: r237641

9 years agore PR target/71103 (avr-gcc crashes with unrecognizable insn error)
Georg-Johann Lay [Tue, 21 Jun 2016 10:18:26 +0000 (10:18 +0000)] 
re PR target/71103 (avr-gcc crashes with unrecognizable insn error)

PR target/71103
* config/avr/avr.md (movqi): Only handle loading subreg:qi of
constant addresses if can_create_pseudo_p.

From-SVN: r237637

9 years agoDaily bump.
GCC Administrator [Tue, 21 Jun 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237624

9 years agobackport: re PR target/71103 (avr-gcc crashes with unrecognizable insn error)
Georg-Johann Lay [Mon, 20 Jun 2016 11:55:11 +0000 (11:55 +0000)] 
backport: re PR target/71103 (avr-gcc crashes with unrecognizable insn error)

gcc/
Backport from 2016-06-20 trunk r237589, r236558.
PR target/71103
* config/avr/avr.md (movqi): Handle loading subreg:qi (const,
symbol_ref,label_ref).

gcc/testsuite/
Backport from 2016-06-20 trunk r237589, r236558.
PR target/71103
* gcc.target/avr/pr71103.c: New test.
* gcc.target/avr/torture/pr71103-2.c: New test.

Co-Authored-By: Pitchumani Sivanupandi <pitchumani.s@atmel.com>
From-SVN: r237593

9 years agoDaily bump.
GCC Administrator [Mon, 20 Jun 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237584

9 years agoDaily bump.
GCC Administrator [Sun, 19 Jun 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237577

9 years agoDaily bump.
GCC Administrator [Sat, 18 Jun 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237568

9 years agoDaily bump.
GCC Administrator [Fri, 17 Jun 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237545

9 years agore PR target/71554 (Miscompilation of __builtin_mul_overflow on i686)
Jakub Jelinek [Thu, 16 Jun 2016 10:38:21 +0000 (12:38 +0200)] 
re PR target/71554 (Miscompilation of __builtin_mul_overflow on i686)

PR target/71554
* config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
(setcc + and peephole2): Likewise.

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

Backported from mainline
2015-04-29  Uros Bizjak  <ubizjak@gmail.com>

* config/i386/i386.md (setcc+movzbl peephole2): Check also clobbered
reg.
(setcc+andl peephole2): Ditto.

From-SVN: r237520

9 years agoDaily bump.
GCC Administrator [Thu, 16 Jun 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237500

9 years agobackport: freebsd.h: Only enable unaligned access for armv6 on FreeBSD 11 and above.
Andreas Tobler [Wed, 15 Jun 2016 19:19:08 +0000 (21:19 +0200)] 
backport: freebsd.h: Only enable unaligned access for armv6 on FreeBSD 11 and above.

2016-06-15  Andreas Tobler  <andreast@gcc.gnu.org>

    Backported from mainline
    2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>

    * config/arm/freebsd.h: Only enable unaligned access for armv6 on
    FreeBSD 11 and above.

From-SVN: r237494

9 years agoDavid Edelsohn <dje.gcc@gmail.com>
David Edelsohn [Wed, 15 Jun 2016 14:43:09 +0000 (14:43 +0000)] 
David Edelsohn  <dje.gcc@gmail.com>

        Backport from mainline
        2016-06-13  David Edelsohn  <dje.gcc@gmail.com>

        * inclhack.def (aix_stdlib_malloc): New fix.
        (aix_stdlib_realloc): New fix.
        (aix_stdlib_calloc): New fix.
        (aix_stdlib_valloc): New fix.
        * fixincl.x: Regenerate.
        * tests/base/stdlib.h [AIX_STDLIB_MALLOC]: New test.
        [AIX_STDLIB_REALLOC]: New test.
        [AIX_STDLIB_CALLOC]: New test.
        [AIX_STDLIB_VALLOC]: New test.

From-SVN: r237479

9 years agoDaily bump.
GCC Administrator [Wed, 15 Jun 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237468

9 years agoDaily bump.
GCC Administrator [Tue, 14 Jun 2016 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237421

9 years agore PR tree-optimization/71505 (-O3 internal compiler error in vect_analyze_data_ref_a...
Richard Biener [Mon, 13 Jun 2016 10:29:35 +0000 (10:29 +0000)] 
re PR tree-optimization/71505 (-O3 internal compiler error in vect_analyze_data_ref_accesses, at tree-vect-data-refs.c:2596)

2016-06-13  Richard Biener  <rguenther@suse.de>

PR tree-optimization/71505
* tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
assert match comment.

From-SVN: r237373

9 years agoS/390: Fix MAX_ARGS value.
Andreas Krebbel [Mon, 13 Jun 2016 08:37:31 +0000 (08:37 +0000)] 
S/390: Fix MAX_ARGS value.

gcc/ChangeLog:

2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

Backport from mainline
2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

PR target/71379
* config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
one.

From-SVN: r237365

9 years agoDaily bump.
GCC Administrator [Mon, 13 Jun 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237347

9 years agore PR fortran/60751 (Extra comma in WRITE statement not diagnosed)
Dominique d'Humieres [Sun, 12 Jun 2016 18:25:25 +0000 (20:25 +0200)] 
re PR fortran/60751 (Extra comma in WRITE statement not diagnosed)

2016-06-12  Dominique d'Humieres  <dominiq@lps.ens.fr>

PR fortran/60751
* io.c (gfc_resolve_dt): Replace GFC_STD_GNU with GFC_STD_LEGACY.

* gfortran.dg/comma_IO_extension_1.f90: New test.
* gfortran.dg/comma_IO_extension_2.f90: Likewise.
* gfortran.dg/array_constructor_49.f90: Remove extra comma in WRITE
statement.
* gfortran.dg/graphite/pr38083.f90: Likewise.
* gfortran.dg/guality/pr41558.f90: Likewise.
* gfortran.dg/integer_exponentiation_6.F90: Likewise and add
missing format.

From-SVN: r237340

9 years agoDaily bump.
GCC Administrator [Sun, 12 Jun 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237334

9 years agoDaily bump.
GCC Administrator [Sat, 11 Jun 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237321

9 years agoDaily bump.
GCC Administrator [Fri, 10 Jun 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237283

9 years agoDaily bump.
GCC Administrator [Thu, 9 Jun 2016 00:16:56 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237246

9 years agore PR c++/71442 (r232569 breaks -Wunused-*)
Jakub Jelinek [Wed, 8 Jun 2016 18:05:38 +0000 (20:05 +0200)] 
re PR c++/71442 (r232569 breaks -Wunused-*)

PR c++/71442
* pt.c (tsubst_copy): Only set TREE_USED on DECLs.

* g++.dg/cpp0x/Wunused-variable-1.C: New test.

From-SVN: r237234

9 years agoDaily bump.
GCC Administrator [Wed, 8 Jun 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237192

9 years agobackport: invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and -mno-htm.
Peter Bergner [Tue, 7 Jun 2016 21:51:33 +0000 (16:51 -0500)] 
backport: invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and -mno-htm.

Backport from mainline
2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>

* doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
-mno-htm.

From-SVN: r237188

9 years agore PR target/71389 (ICE on trunk gcc on ivybridge target (df_refs_verify))
Uros Bizjak [Tue, 7 Jun 2016 15:23:42 +0000 (17:23 +0200)] 
re PR target/71389 (ICE on trunk gcc on ivybridge target (df_refs_verify))

PR target/71389
* config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
Copy op1 RTX to avoid invalid sharing.
(ix86_expand_vector_move_misalign): Ditto.

testsuite/ChangeLog:

PR target/71389
* g++.dg/pr71389.C: New test.

From-SVN: r237178

9 years agoDaily bump.
GCC Administrator [Tue, 7 Jun 2016 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237160

9 years agoDaily bump.
GCC Administrator [Mon, 6 Jun 2016 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237113

9 years agobackport: re PR target/67310 ([PATCH] gcc 4.8.4 fails to compile with -march=native...
Uros Bizjak [Sun, 5 Jun 2016 15:47:50 +0000 (17:47 +0200)] 
backport: re PR target/67310 ([PATCH] gcc 4.8.4 fails to compile with -march=native on VIA nano CPU)

Backport from mainline
2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
    Jocelyn Mayer  <l_indien@magic.fr>

PR target/67310
* config/i386/driver-i386.c (host_detect_local_cpu): Correctly
detect processor family for signature_CENTAUR_ebx.
<case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
signature_CENTAUR_ebx.
<case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
<default>: Pass x86-64 for has_longmode.

From-SVN: r237100

9 years agoDaily bump.
GCC Administrator [Sun, 5 Jun 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237095

9 years agoDaily bump.
GCC Administrator [Sat, 4 Jun 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237085

9 years agobackport: config.gcc: Move hard float support for arm*hf*-*-freebsd* into armv6*...
Andreas Tobler [Fri, 3 Jun 2016 21:14:17 +0000 (23:14 +0200)] 
backport: config.gcc: Move hard float support for arm*hf*-*-freebsd* into armv6*-*-freebsd* for...

2016-06-03  Andreas Tobler  <andreast@gcc.gnu.org>

    Backport from mainline
    2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>

    * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
    armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
    target.

From-SVN: r237081

9 years agoBASE-VER: Set to 5.4.1.
Richard Biener [Fri, 3 Jun 2016 09:36:14 +0000 (09:36 +0000)] 
BASE-VER: Set to 5.4.1.

2016-06-03  Richard Biener  <rguenther@suse.de>

* BASE-VER: Set to 5.4.1.

From-SVN: r237059

9 years agoUpdate ChangeLog and version files for release releases/gcc-5.4.0
Richard Biener [Fri, 3 Jun 2016 08:41:59 +0000 (08:41 +0000)] 
Update ChangeLog and version files for release

From-SVN: r237056

9 years agoDaily bump.
GCC Administrator [Fri, 3 Jun 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237048

9 years agore PR fortran/70350 (ICE with -fcheck=all and array initialization)
Paul Thomas [Thu, 2 Jun 2016 17:44:59 +0000 (17:44 +0000)] 
re PR fortran/70350 (ICE with -fcheck=all and array initialization)

2016-06-02  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/70350
Backport from trunk.
* trans-expr.c (gfc_trans_assignment_1): Exclude initialization
assignments from check on assignment of scalars to unassigned
arrays and correct wrong code within the corresponding block.

From-SVN: r237043

9 years agoDaily bump.
GCC Administrator [Thu, 2 Jun 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r237023

9 years agoDaily bump.
GCC Administrator [Wed, 1 Jun 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236970

9 years agore PR ada/71317 (Compiling gnat for rtems fails at s-taprop.adb)
Eric Botcazou [Tue, 31 May 2016 21:28:26 +0000 (21:28 +0000)] 
re PR ada/71317 (Compiling gnat for rtems fails at s-taprop.adb)

* s-osinte-kfreebsd-gnu.ads (clock_getres): Define.

PR ada/71317
* s-osinte-rtems.ads (clock_getres): Define.

From-SVN: r236949

9 years ago[AArch64] PR target/68696 FAIL: gcc.target/aarch64/vbslq_u64_1.c scan-assembler-times...
Kyrylo Tkachov [Tue, 31 May 2016 11:23:59 +0000 (11:23 +0000)] 
[AArch64] PR target/68696 FAIL: gcc.target/aarch64/vbslq_u64_1.c scan-assembler-times bif\tv 1

PR target/68696
* config/aarch64/aarch64-simd.md (*aarch64_simd_bsl<mode>_alt):
New pattern.
(aarch64_simd_bsl<mode>_internal): Update comment to reflect
the above.

From-SVN: r236918

9 years agoDaily bump.
GCC Administrator [Tue, 31 May 2016 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236904

9 years agobackport: re PR sanitizer/68042 (c-c++-common/asan/(memcmp-1.c|sanity-check-pure...
Dominique d'Humieres [Mon, 30 May 2016 09:26:09 +0000 (11:26 +0200)] 
backport: re PR sanitizer/68042 (c-c++-common/asan/(memcmp-1.c|sanity-check-pure-c-1.c) failures on x86_64-apple-darwin14 after r229111)

2016-05-30  Dominique d'Humieres  <dominiq@lps.ens.fr>

Backport from trunk.
2015-10-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>

PR sanitizer/68042
* c-c++-common/asan/sanity-check-pure-c-1.c: Adjust test
to pass on Darwin.

From-SVN: r236873

9 years agoDaily bump.
GCC Administrator [Mon, 30 May 2016 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236865

9 years agoDaily bump.
GCC Administrator [Sun, 29 May 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236855

9 years agoDaily bump.
GCC Administrator [Sat, 28 May 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236840

9 years agobackport: re PR fortran/66461 (ICE on missing end program in fixed source)
Jerry DeLisle [Fri, 27 May 2016 03:17:03 +0000 (03:17 +0000)] 
backport: re PR fortran/66461 (ICE on missing end program in fixed source)

2016-05-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from trunk.
PR fortran/66461
* scanner.c (gfc_next_char_literal): Clear end_flag when adjusting
current locus back to old_locus.

Backport from trunk.
PR fortran/66461
* gfortran.dg/unexpected_eof.f: New test.

From-SVN: r236807

9 years agoDaily bump.
GCC Administrator [Fri, 27 May 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236802

9 years agolibstdc++/70762 fix fallback implementation of nonexistent_path
Jonathan Wakely [Thu, 26 May 2016 17:33:17 +0000 (18:33 +0100)] 
libstdc++/70762 fix fallback implementation of nonexistent_path

Backport from mainline
2016-04-24  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/70762
* testsuite/util/testsuite_fs.h (__gnu_test::nonexistent_path): Use
static counter to return a different path on every call.

From-SVN: r236788

9 years agoAdd dg-require-filesystem-ts directive to test
Jonathan Wakely [Thu, 26 May 2016 15:26:41 +0000 (16:26 +0100)] 
Add dg-require-filesystem-ts directive to test

* testsuite/experimental/filesystem/path/native/string.cc: Add
dg-require-filesystem-ts directive.

From-SVN: r236778

9 years agoDaily bump.
GCC Administrator [Thu, 26 May 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236759

9 years agolibstdc++/69703 ignore endianness in codecvt_utf8
Jonathan Wakely [Wed, 25 May 2016 16:41:42 +0000 (17:41 +0100)] 
libstdc++/69703 ignore endianness in codecvt_utf8

Backport from mainline
2016-04-20  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/69703
* src/c++11/codecvt.cc (__codecvt_utf8_base<char16_t>::do_in,
__codecvt_utf8_utf16_base<char16_t>::do_in): Fix mask operations.

Backport from mainline
2016-04-19  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/69703
* src/c++11/codecvt.cc (__codecvt_utf8_base<char16_t>::do_in)):
Override endianness bit in mode.
* testsuite/22_locale/codecvt/codecvt_utf8/69703.cc: New test.
* testsuite/22_locale/codecvt/codecvt_utf8_utf16/66855.cc: Test
that little_endian mode is ignored.
* testsuite/experimental/filesystem/path/native/string.cc: New test.

From-SVN: r236734

9 years agoTest begin and end functions for directory iterators
Jonathan Wakely [Wed, 25 May 2016 15:43:17 +0000 (16:43 +0100)] 
Test begin and end functions for directory iterators

Backport from mainline
2016-05-10  Jonathan Wakely  <jwakely@redhat.com>

* include/experimental/bits/fs_dir.h (begin, end): Add noexcept.
* testsuite/experimental/filesystem/iterators/directory_iterator.cc:
Test begin and end functions.
* testsuite/experimental/filesystem/iterators/
recursive_directory_iterator.cc: Likewise.

From-SVN: r236718

9 years agolibstdc++/71038 fix error checks in filesystem::copy_file
Jonathan Wakely [Wed, 25 May 2016 15:43:12 +0000 (16:43 +0100)] 
libstdc++/71038 fix error checks in filesystem::copy_file

Backport from mainline
2016-05-10  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/71038
* src/filesystem/ops.cc (do_copy_file): Fix backwards conditions.
* testsuite/experimental/filesystem/operations/copy_file.cc: New test.

From-SVN: r236717

9 years agoOptimize __directory_iterator_proxy for the common case
Jonathan Wakely [Wed, 25 May 2016 15:43:06 +0000 (16:43 +0100)] 
Optimize __directory_iterator_proxy for the common case

Backport from mainline
2016-05-10  Jonathan Wakely  <jwakely@redhat.com>

* include/experimental/bits/fs_dir.h (__directory_iterator_proxy):
Overload operator* to move from rvalues.

From-SVN: r236716

9 years agolibstdc++/71036 Handle EEXIST in filesystem::create_directory
Jonathan Wakely [Wed, 25 May 2016 15:43:02 +0000 (16:43 +0100)] 
libstdc++/71036 Handle EEXIST in filesystem::create_directory

Backport from mainline
2016-05-10  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/71036
* src/filesystem/ops.cc (create_dir): Handle EEXIST from mkdir.
* testsuite/experimental/filesystem/operations/create_directory.cc:
New test.

From-SVN: r236715

9 years agolibstdc++/71037 Add base path to filesystem::canonical exceptions
Jonathan Wakely [Wed, 25 May 2016 15:42:57 +0000 (16:42 +0100)] 
libstdc++/71037 Add base path to filesystem::canonical exceptions

Backport from mainline
2016-05-10  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/71037
* src/filesystem/ops.cc (canonical(const path&, const path&)): Add
base path to exception.
* testsuite/experimental/filesystem/operations/canonical.cc: Test
paths contained in exception.

From-SVN: r236714

9 years agolibstdc++/71005 fix post-increment for filesystem iterators
Jonathan Wakely [Wed, 25 May 2016 15:42:51 +0000 (16:42 +0100)] 
libstdc++/71005 fix post-increment for filesystem iterators

Backport from mainline
2016-05-10  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/71005
* include/experimental/bits/fs_dir.h (__directory_iterator_proxy):
New type.
(directory_iterator::operator++(int)): Return proxy.
(recursive_directory_iterator::operator++(int)): Likewise.
* testsuite/experimental/filesystem/iterators/directory_iterator.cc:
Test post-increment.
* testsuite/experimental/filesystem/iterators/
recursive_directory_iterator.cc: Likewise.

From-SVN: r236713

9 years agolibstdc++/71004 fix recursive_directory_iterator default constructor
Jonathan Wakely [Wed, 25 May 2016 15:42:45 +0000 (16:42 +0100)] 
libstdc++/71004 fix recursive_directory_iterator default constructor

Backport from mainline
2016-05-09  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/71004
* include/experimental/bits/fs_dir.h (recursive_directory_iterator):
Initialize scalar member variables in default constructor.
* testsuite/experimental/filesystem/iterators/
recursive_directory_iterator.cc: Test default construction.

From-SVN: r236712

9 years agolibstdc++/70609 fix filesystem::copy()
Jonathan Wakely [Wed, 25 May 2016 15:42:40 +0000 (16:42 +0100)] 
libstdc++/70609 fix filesystem::copy()

Backport from mainline
2016-04-19  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/70609
* src/filesystem/ops.cc (close_fd): New function.
(do_copy_file): Set permissions before copying file contents. Check
result of closing file descriptors. Don't copy streambuf when file
is empty.
(copy(const path&, const path&, copy_options, error_code&)): Use
lstat for source file when copy_symlinks is set.
* testsuite/experimental/filesystem/operations/copy.cc: Test copy().

From-SVN: r236711