]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
8 years ago libgo: add "vendor" to pkgpath for vendored standard packages
ian [Wed, 17 May 2017 20:16:42 +0000 (20:16 +0000)] 
libgo: add "vendor" to pkgpath for vendored standard packages

    Ensure that the packages vendored into the standard library do not
    have the same pkgpath as the actual packages.  If we don't, attempts
    to build and test the actual packages will get confused.  The specific
    error I was seeing was import loops, causing some of the packages to
    fail to get initialized, causing an obscure run time crash.

    Reviewed-on: https://go-review.googlesource.com/43610

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248169 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-05-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Wed, 17 May 2017 20:00:53 +0000 (20:00 +0000)] 
2017-05-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from trunk
PR libgfortran/80727
* transfer.c (read_sf_internal): Remove bogus code to detect EOR.
(read_block_form): For internal units, generate EOR if no more
bytes left in unit and we are trying to read with ADVANCE='NO'.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248167 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-05-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Wed, 17 May 2017 18:09:48 +0000 (18:09 +0000)] 
2017-05-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from trunk
PR fortran/78659
* io.c (dtio_procs_present): Add new function to check for DTIO
procedures relative to I/O statement READ or WRITE.
(gfc_resolve_dt): Add namelist checks using the new function.
* resolve.c (dtio_procs_present): Remove function and related
namelist checks. (resolve_fl_namelist): Add check specific to
Fortran 95 restriction on namelist objects.

* gfortran.dg/namelist_91.f90: New test.
* gfortran.dg/namelist_92.f90: New test.
* gfortran.dg/namelist_93.f90: New test.
* gfortran.dg/namelist_94.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248166 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR ada/80784
ebotcazou [Wed, 17 May 2017 12:51:00 +0000 (12:51 +0000)] 
PR ada/80784
Backport from mainline

2017-05-02  Ed Schonberg  <schonberg@adacore.com>

* exp_ch3.adb (Freeze_Type): Do not generate an invariant
procedure body for a local (sub)type declaration within a
predicate function. Invariant checks do not apply to these, and
the expansion of the procedure will happen in the wrong scope,
leading to misplaced freeze nodes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248152 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Wed, 17 May 2017 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248134 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Tue, 16 May 2017 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248085 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-05-15 Steven G. Kargl <kargl@gcc.gnu.org>
kargl [Mon, 15 May 2017 20:43:25 +0000 (20:43 +0000)] 
2017-05-15  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/80752
* expr.c (gfc_generate_initializer):  If type conversion fails,
check for error and return NULL.

2017-05-15  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/80752
gfortran.dg/pr80752.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248076 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * sv.po: Update.
jsm28 [Mon, 15 May 2017 14:20:37 +0000 (14:20 +0000)] 
* sv.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248065 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix order and types of members in C++17 insert_return_type structs
redi [Mon, 15 May 2017 14:01:38 +0000 (14:01 +0000)] 
Fix order and types of members in C++17 insert_return_type structs

PR libstdc++/80761
* include/bits/node_handle.h (_Node_insert_return): Reorder members.
(tuple_size, tuple_element): Remove partial specializations.
* include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
const_iterator for std::set.
* testsuite/23_containers/map/modifiers/extract.cc: New.
* testsuite/23_containers/set/modifiers/extract.cc: New.
* testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
* testsuite/23_containers/unordered_set/modifiers/extract.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248063 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * config/sparc/lb1spc.S [__ELF__ && __linux__]: Emit .note.GNU-stack
ebotcazou [Mon, 15 May 2017 07:36:33 +0000 (07:36 +0000)] 
* config/sparc/lb1spc.S [__ELF__ && __linux__]: Emit .note.GNU-stack
section for a non-executable stack.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248044 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Mon, 15 May 2017 00:16:26 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248040 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * ChangeLog: Fix date.
uros [Sun, 14 May 2017 12:50:54 +0000 (12:50 +0000)] 
* ChangeLog: Fix date.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248033 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago Backport from mainline
uros [Sun, 14 May 2017 12:49:55 +0000 (12:49 +0000)] 
Backport from mainline
2017-05-11  Uros Bizjak  <ubizjak@gmail.com>

PR target/80706
* config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
(UNSPEC_STX_ATOMIC): Ditto.
(loaddi_via_sse): New insn.
(storedi_via_sse): Ditto.
(atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
Update corresponding peephole2 patterns.
(atomic_storedi_fpu): Ditto.

testsuite/ChangeLog:

Backport from mainline
2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
    Jakub Jelinek  <jakub@redhat.com>

PR target/80706
* gcc.target/i386/pr80706.c: New test.

2017-05-11  Uros Bizjak  <ubizjak@gmail.com>

* gcc.target/i386/pr22152.c: Fix undefined testcase.
Remove unnecessary loop.  Run on 32-bit targets only.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248032 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sun, 14 May 2017 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248015 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[gcc]
wschmidt [Sat, 13 May 2017 21:35:44 +0000 (21:35 +0000)] 
[gcc]

2017-05-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
(rs6000_init_cost): Initialize rs6000_vect_nonmem.
(rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
(rs6000_finish_cost): Avoid vectorizing simple copy loops with
VF=2 that require versioning.

[gcc/testsuite]

2017-05-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.target/powerpc/versioned-copy-loop.c: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248010 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sat, 13 May 2017 00:16:29 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@248002 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[gcc]
wschmidt [Fri, 12 May 2017 21:50:51 +0000 (21:50 +0000)] 
[gcc]

2017-05-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
built-ins for vec_xl and vec_xst with short and char pointer
arguments.

[gcc/testsuite]

2017-05-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.target/powerpc/p8-vec-xl-xst.c: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247999 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * sv.po: Update.
jsm28 [Fri, 12 May 2017 20:30:44 +0000 (20:30 +0000)] 
* sv.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247997 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * system-linux-arm.ads (Memory_Size): Use Long_Integer'Size
ebotcazou [Fri, 12 May 2017 15:58:34 +0000 (15:58 +0000)] 
* system-linux-arm.ads (Memory_Size): Use Long_Integer'Size
instead of Word_Size.

Revert
2017-03-28  Andreas Schwab  <schwab@suse.de>

PR ada/80117
* system-linux-aarch64-ilp32.ads: New file.
* gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS_COMMON): Rename
from LIBGNAT_TARGET_PAIRS.
(LIBGNAT_TARGET_PAIRS_32, LIBGNAT_TARGET_PAIRS_64): Define.
(LIBGNAT_TARGET_PAIRS): Use LIBGNAT_TARGET_PAIRS_COMMON, and
LIBGNAT_TARGET_PAIRS_64 or LIBGNAT_TARGET_PAIRS_32 for -mabi=lp64
or -mabi=ilp32, resp.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247980 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR libstdc++/78939 make tuple_size<cv T> depend on tuple_size<T>
redi [Fri, 12 May 2017 15:53:19 +0000 (15:53 +0000)] 
PR libstdc++/78939 make tuple_size<cv T> depend on tuple_size<T>

PR libstdc++/78939
* include/std/utility (tuple_size<cv T>) [__cplusplus > 201402L]:
Only define partial specializations when tuple_size<T>::value is
valid.
* testsuite/20_util/tuple/78939.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247978 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Fri, 12 May 2017 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247944 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR go/64238
ian [Thu, 11 May 2017 23:53:13 +0000 (23:53 +0000)] 
PR go/64238
* go-gcc.cc (Gcc_backend::implicit_variable_reference): Set
DECL_EXTERNAL, clear TREE_STATIC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247938 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Thu, 11 May 2017 00:16:33 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247877 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/80090
danglin [Thu, 11 May 2017 00:13:00 +0000 (00:13 +0000)] 
PR target/80090
* config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
handle calling assemble_external ourself.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247873 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/79027
danglin [Wed, 10 May 2017 23:08:32 +0000 (23:08 +0000)] 
PR target/79027
* config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
modes with zero size.  Enhance comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247870 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-05-10 Andreas Tobler <andreast@gcc.gnu.org>
andreast [Wed, 10 May 2017 20:42:58 +0000 (20:42 +0000)] 
2017-05-10  Andreas Tobler  <andreast@gcc.gnu.org>

    Backport from mainline
    2017-05-09  Andreas Tobler  <andreast@gcc.gnu.org>

    * config.host: Use the generic FreeBSD t-slibgcc-elf-ver for
    arm*-*-freebsd* instead of the t-slibgcc-libgcc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247859 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAda/x32: PR ada/80626: Correct Memory_Size
hjl [Wed, 10 May 2017 17:36:50 +0000 (17:36 +0000)] 
Ada/x32: PR ada/80626: Correct Memory_Size

X32 uses 64 as word size instead of 32.  This must not affect the
Address type definition which is based on Memory_Size.

Back port from mainline
PR ada/80626
* system-linux-x86.ads (Memory_Size): Use Long_Integer'Size
instead of Word_Size.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247850 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Wed, 10 May 2017 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247824 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[gcc]
meissner [Tue, 9 May 2017 23:49:37 +0000 (23:49 +0000)] 
[gcc]
2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from mainline
2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/79038
PR target/79202
PR target/79203
* config/rs6000/rs6000.md (u code attribute): Add FIX and
UNSIGNED_FIX.
(extendsi<mode>2): Add support for doing sign extension via
VUPKHSW and XXPERMDI if the value is in Altivec registers and we
don't have ISA 3.0 instructions.
(extendsi<mode>2 splitter): Likewise.
(fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
generate the normal insns since SImode can now go in vector
registers.  Disallow the special UNSPECs needed for previous
machines to hide SImode being used.  Add new insns
fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
(fix_trunc<mode>si2_stfiwx): Likewise.
(fix_trunc<mode>si2_internal): Likewise.
(fixuns_trunc<mode>si2): Likewise.
(fixuns_trunc<mode>si2_stfiwx): Likewise.
(fctiw<u>z_<mode>_smallint): Likewise.
(fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
of floating point to 32-bit integer from doing a direct move to
the GPR registers to do a store.
(fctiwz_<mode>): Break long line.

[gcc/testsuite]
2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from mainline
2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/79038
PR target/79202
PR target/79203
* gcc.target/powerpc/ppc-round3.c: New test.
* gcc.target/powerpc/ppc-round2.c: Update expected code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247820 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Tue, 9 May 2017 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247775 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * es.po, sv.po: Update.
jsm28 [Mon, 8 May 2017 15:42:51 +0000 (15:42 +0000)] 
* es.po, sv.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247744 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-05-08 Tamar Christina <tamar.christina@arm.com>
tnfchris [Mon, 8 May 2017 09:45:46 +0000 (09:45 +0000)] 
2017-05-08  Tamar Christina  <tamar.christina@arm.com>

        PR middle-end/79665
        * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
        CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247734 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Mon, 8 May 2017 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247732 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sun, 7 May 2017 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247725 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sat, 6 May 2017 00:16:40 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247708 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-05-05 Janus Weil <janus@gcc.gnu.org>
janus [Fri, 5 May 2017 21:00:53 +0000 (21:00 +0000)] 
2017-05-05  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/80121
* trans-expr.c (gfc_conv_procedure_call): Deallocate the components
of allocatable intent(out) arguments.

2017-05-05  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/80121
* gfortran.dg/intent_out_9.f90: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247662 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-05-05 Janus Weil <janus@gcc.gnu.org>
janus [Fri, 5 May 2017 20:09:20 +0000 (20:09 +0000)] 
2017-05-05  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/80392
* trans-types.c (gfc_get_derived_type): Prevent an infinite loop when
building a derived type that includes a procedure pointer component
with a polymorphic result.

2017-05-05  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/80392
* gfortran.dg/proc_ptr_comp_49.f90: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247655 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Fri, 5 May 2017 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247626 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-05-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Thu, 4 May 2017 18:45:50 +0000 (18:45 +0000)] 
2017-05-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from trunk.
PR fortran/80484
* io.c (format_lex): Check for '/' and set token to FMT_SLASH.
(check_format): Move FMT_DT checking code to data_desc section.
* module.c (gfc_match_use): Include the case of INTERFACE_DTIO.
Backport from mainline
PR fortran/80484
* gfortran.dg/dtio_29.f03: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247615 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoUpdate .po files.
jsm28 [Thu, 4 May 2017 15:54:38 +0000 (15:54 +0000)] 
Update .po files.

* be.po, da.po, el.po, fi.po, hr.po, id.po, ja.po, nl.po, ru.po,
sr.po, sv.po, tr.po, uk.po, vi.po, zh_CN.po, zh_TW.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247602 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Thu, 4 May 2017 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247574 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * de.po: Update.
jsm28 [Wed, 3 May 2017 22:25:04 +0000 (22:25 +0000)] 
* de.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247571 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agox86: vpermil2p{s,d} have no commutative operands
jbeulich [Wed, 3 May 2017 15:36:29 +0000 (15:36 +0000)] 
x86: vpermil2p{s,d} have no commutative operands

While either of the last two operands can be in memory, they can't be
swapped.

gcc/
2017-05-03  Jan Beulich  <jbeulich@suse.com>

* config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
swapping, add (x,x,m,x,n) alternative.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247554 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-05-03 Richard Biener <rguenther@suse.de>
rguenth [Wed, 3 May 2017 11:22:34 +0000 (11:22 +0000)] 
2017-05-03  Richard Biener  <rguenther@suse.de>

Backport from mainline
2017-04-20  Richard Biener  <rguenther@suse.de>

PR tree-optimization/80453
* tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
* tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
from the conditions.
(vn_phi_eq): Pass them down.
(vn_phi_lookup): Record them.
(vn_phi_insert): Likewise.

2017-04-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/80492
* alias.c (compare_base_decls): Handle registers with asm
specification conservatively.

* gcc.dg/pr80492.c: New testcase.

2017-04-27  Richard Biener  <rguenther@suse.de>

PR middle-end/80539
* tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
being in loop-closed SSA form conservatively.
(chrec_fold_multiply_poly_poly): Likewise.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247545 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago Backported from mainline
jakub [Wed, 3 May 2017 06:45:29 +0000 (06:45 +0000)] 
Backported from mainline
2017-04-21  Jakub Jelinek  <jakub@redhat.com>

PR c/80468
* c-decl.c (finish_declspecs) <case cts_int_n>: If int_n_idx is not
enabled, set specs->type to integer_type_node.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247534 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Wed, 3 May 2017 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247532 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * es.po: Update.
jsm28 [Tue, 2 May 2017 20:46:37 +0000 (20:46 +0000)] 
* es.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247525 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago Backport from mainline
uros [Tue, 2 May 2017 20:36:26 +0000 (20:36 +0000)] 
Backport from mainline
2017-05-01  Uros Bizjak  <ubizjak@gmail.com>

PR target/68491
* config/i386/cpuid.h (__get_cpuid): Always return 0 when
__get_cpuid_max returns 0.
(__get_cpuid_count): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247523 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * fr.po: Update.
jsm28 [Tue, 2 May 2017 17:27:50 +0000 (17:27 +0000)] 
* fr.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247521 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago Backported from mainline
jakub [Tue, 2 May 2017 16:12:40 +0000 (16:12 +0000)] 
Backported from mainline
2017-04-25 Jakub Jelinek <jakub@redhat.com>

* Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
environment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247513 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * BASE-VER: Set to 7.1.1.
jakub [Tue, 2 May 2017 15:29:37 +0000 (15:29 +0000)] 
* BASE-VER: Set to 7.1.1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247506 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoUpdate ChangeLog and version files for release
gccadmin [Tue, 2 May 2017 12:42:24 +0000 (12:42 +0000)] 
Update ChangeLog and version files for release

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247493 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * gennews (files): Add files for GCC 7.
jakub [Tue, 2 May 2017 12:38:31 +0000 (12:38 +0000)] 
* gennews (files): Add files for GCC 7.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247492 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-05-02 Richard Biener <rguenther@suse.de>
rguenth [Tue, 2 May 2017 11:26:25 +0000 (11:26 +0000)] 
2017-05-02  Richard Biener  <rguenther@suse.de>

PR tree-optimization/80591
Revert
2017-04-10  Richard Biener  <rguenther@suse.de>

* tree-ssa-structalias.c (find_func_aliases): Properly handle
asm inputs.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247487 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Tue, 2 May 2017 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247458 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoRegenerate .pot files.
jsm28 [Mon, 1 May 2017 22:28:48 +0000 (22:28 +0000)] 
Regenerate .pot files.

gcc/po:
* gcc.pot: Regenerate.

libcpp/po:
* cpplib.pot: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247448 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Mon, 1 May 2017 00:16:28 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247424 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * fr.po: Update.
jsm28 [Sun, 30 Apr 2017 23:21:04 +0000 (23:21 +0000)] 
* fr.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247421 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoUpdate .po files.
jsm28 [Sun, 30 Apr 2017 23:16:59 +0000 (23:16 +0000)] 
Update .po files.

* be.po, da.po, de.po, el.po, es.po, fi.po, fr.po, hr.po, id.po,
ja.po, nl.po, ru.po, sr.po, sv.po, tr.po, uk.po, vi.po, zh_CN.po,
zh_TW.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247419 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sun, 30 Apr 2017 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247415 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sat, 29 Apr 2017 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247404 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR bootstrap/80531
jakub [Fri, 28 Apr 2017 11:42:14 +0000 (11:42 +0000)] 
PR bootstrap/80531
* cgraph.h (symtab_node::debug_symtab): No longer inline.
* symtab.c (symtab_node::debug_symtab): Move definition here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247368 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Fri, 28 Apr 2017 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247360 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR bootstrap/80531
jakub [Thu, 27 Apr 2017 20:03:38 +0000 (20:03 +0000)] 
PR bootstrap/80531
* configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
bootstrap compare failures.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247351 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[AArch64] Fix for gcc-7 regression PR 80530
rearnsha [Thu, 27 Apr 2017 14:11:47 +0000 (14:11 +0000)] 
[AArch64] Fix for gcc-7 regression PR 80530

This patch fixes the regression caused by the changes to add square root
estimation when compiling for xgene-1 or exynos-m1 targets.

The issue is that the expand path for the reciprocal estimate square
root pattern assumes that pattern cannot fail once it has been decided
that this expansion path is available, but because the logic deep inside
aarch64_emit_approx_sqrt() differs from use_rsqrt_p() the two disagree
as to what is safe.

This patch refactors the logic to ensure that we cannot unknowingly make
different choices here.

PR target/80530
* config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
that the logic for permitting reciprocal estimates matches that
in use_rsqrt_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247341 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/80534
jakub [Thu, 27 Apr 2017 13:47:54 +0000 (13:47 +0000)] 
PR c++/80534
* tree.c (type_cache_hasher::equal): Only compare
TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
(build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
non-aggregate element types.
* tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
about the flag on ARRAY_TYPEs in the comment, formatting fix.
c-family/
* c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
flag on non-aggregate element types.
testsuite/
* g++.dg/other/pr80534-1.C: New test.
* g++.dg/other/pr80534-2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247337 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/79430
jakub [Thu, 27 Apr 2017 09:58:43 +0000 (09:58 +0000)] 
PR target/79430
* reg-stack.c (emit_swap_insn): If i1src mentions the stack pointer,
punt if tmp contains autoinc of stack pointer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247308 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/77728
jakub [Thu, 27 Apr 2017 07:14:24 +0000 (07:14 +0000)] 
PR target/77728
* config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
(aarch64_function_arg_alignment): Return unsigned int again, but still
ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
(aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
Don't emit -Wpsabi note.
(aarch64_function_arg_boundary): Likewise.
(aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
caller.
testsuite/
* g++.dg/abi/pr77728-2.C: Don't expect -Wpsabi notes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247293 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Thu, 27 Apr 2017 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247290 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Wed, 26 Apr 2017 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247272 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR tree-optimization/80497 - ICE at -O1 and above on valid code on x86_64-linux-gnu...
msebor [Tue, 25 Apr 2017 17:58:32 +0000 (17:58 +0000)] 
PR tree-optimization/80497 - ICE at -O1 and above on valid code on x86_64-linux-gnu in tree_to_uhwi

gcc/ChangeLog:

PR tree-optimization/80497
* gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
constants are representable in HOST_WIDE_INT.
(parse_directive): Ditto.

gcc/testsuite/ChangeLog:

PR tree-optimization/80497
* gcc.dg/tree-ssa/builtin-sprintf-warn-17.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247264 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR sanitizer/80349
mpolacek [Tue, 25 Apr 2017 17:02:27 +0000 (17:02 +0000)] 
PR sanitizer/80349
* fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
first argument to type.

* g++.dg/ubsan/pr80349-2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247260 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/77728
jakub [Tue, 25 Apr 2017 16:47:32 +0000 (16:47 +0000)] 
PR target/77728
* config/arm/arm.c: Include gimple.h.
(aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
returns negative, increment ncrn only if it returned positive.
(arm_needs_doubleword_align): Return int instead of bool,
ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
members, but if there is any such non-FIELD_DECL
> PARM_BOUNDARY aligned decl, return -1 instead of false.
(arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
returns negative, increment nregs only if it returned positive.
(arm_setup_incoming_varargs): Likewise.
(arm_function_arg_boundary): Emit -Wpsabi note if
arm_needs_doubleword_align returns negative, return
DOUBLEWORD_ALIGNMENT only if it returned positive.
testsuite/
* g++.dg/abi/pr77728-1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247259 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[PATCH, rs6000] pr80482 Relax vector builtin parameter checks
seurer [Tue, 25 Apr 2017 16:16:13 +0000 (16:16 +0000)] 
[PATCH, rs6000] pr80482 Relax vector builtin parameter checks

PR target/80482
Backport from mainline

This patch changes the parameter testing for powerpc vector builtins to relax
the existing requirement that the parameters be identical to instead that they
be compatible.  This allows for mixing parameters with differing qualified
(const, volatile, etc.) types.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80482 for more information.

Bootstrapped and tested on powerpc64le-unknown-linux-gnu and
powerpc64be-unknown-linux-gnu with no regressions.  Is this ok for trunk?

[gcc]

2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>

Backport from mainline
PR target/80482
* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
type checks to test for compatibility instead of equality.

[gcc/testsuite]

2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>

Backport from mainline
PR target/80482
* gcc.target/powerpc/vec-constvolatile.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247256 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/77728
jakub [Tue, 25 Apr 2017 13:56:10 +0000 (13:56 +0000)] 
PR target/77728
* config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
type.
(aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
the alignment computation, but return their maximum in warn_alignment.
(aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
is smaller.
(aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
(aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
caller.
testsuite/
* g++.dg/abi/pr77728-2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247241 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoS/390: PR80464: Split MEM->GPR vector moves
krebbel [Tue, 25 Apr 2017 11:18:52 +0000 (11:18 +0000)] 
S/390: PR80464: Split MEM->GPR vector moves

We do this already for TImode values but it was missing for vector
modes.

gcc/ChangeLog:

2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

Backport from mainline
2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

PR target/80464
* config/s390/vector.md: Split MEM->GPR vector moves for
non-s_operand addresses.

gcc/testsuite/ChangeLog:

2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

Backport from mainline
2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

PR target/80464
* gfortran.fortran-torture/compile/pr80464.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247191 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoS/390: PR79895: Fix TImode constant handling
krebbel [Tue, 25 Apr 2017 11:15:44 +0000 (11:15 +0000)] 
S/390: PR79895: Fix TImode constant handling

The P constraint letter is supposed to match every constant which is
acceptable during reload.  However, constraints do not appear to be
able to handle const_wide_int yet.  It works with predicates so the
alternative is modelled with a new predicate now.

gcc/ChangeLog:

2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

Backport from mainline
2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

PR target/79895
* config/s390/predicates.md (reload_const_wide_int_operand): New
predicate.
* config/s390/s390.md ("movti"): Remove d/P alternative.
("movti_bigconst"): New pattern definition.

gcc/testsuite/ChangeLog:

2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

Backport from mainline
2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

PR target/79895
* gcc.target/s390/pr79895.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247190 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoS/390: PR80080: Optimize atomic patterns.
krebbel [Tue, 25 Apr 2017 11:11:48 +0000 (11:11 +0000)] 
S/390: PR80080: Optimize atomic patterns.

The attached patch optimizes the atomic_exchange and atomic_compare
patterns on s390 and s390x (mostly limited to SImode and DImode).
Among general optimizaation, the changes fix most of the problems
reported in PR 80080:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80080

gcc/ChangeLog:

2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>

Backport from mainline
2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>

PR target/80080
* s390-protos.h (s390_expand_cs_hqi): Removed.
(s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
* config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
modes as well as CCZ1mode and CCZmode.
(s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
signature of s390_emit_compare_and_swap.
(s390_expand_cs_hqi): Likewise, make static.
(s390_expand_cs_tdsi): Generate an explicit compare before trying
compare-and-swap, in some cases.
(s390_expand_cs): Wrapper function.
(s390_expand_atomic_exchange_tdsi): New backend specific expander for
atomic_exchange.
(s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
* config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
patterns for small and large integers.  Forbid symref memory operands.
Move expander to s390.c.  Require cc register.
("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
symref memory operands.  Remove CC mode and call s390_match_ccmode
instead.
("atomic_exchange<mode>"): Allow and implement all integer modes.

gcc/testsuite/ChangeLog:

2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>

Backport from mainline
2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>

PR target/80080
* gcc.target/s390/md/atomic_compare_exchange-1.c: New test.
* gcc.target/s390/md/atomic_compare_exchange-1.inc: New test.
* gcc.target/s390/md/atomic_exchange-1.inc: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247189 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoS/390: Load and test peephole.
krebbel [Tue, 25 Apr 2017 11:08:06 +0000 (11:08 +0000)] 
S/390: Load and test peephole.

gcc/ChangeLog:

2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>

Backport from mainline
2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>

        * config/s390/s390.md (define_peephole2): New peephole to help
        combining the load-and-test pattern with volatile memory.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247188 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoS/390: Load and test peephole.
krebbel [Tue, 25 Apr 2017 11:04:42 +0000 (11:04 +0000)] 
S/390: Load and test peephole.

gcc/ChangeLog:

2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>

Backport from mainline
2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>

        * config/s390/s390.md (define_peephole2): New peephole to help
        combining the load-and-test pattern with volatile memory.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247187 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR rtl-optimization/80501
jakub [Tue, 25 Apr 2017 07:29:21 +0000 (07:29 +0000)] 
PR rtl-optimization/80501
* combine.c (make_compound_operation_int): Set subreg_code to SET
even for AND with mask of the sign bit of mode.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247129 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR rtl-optimization/80500
jakub [Tue, 25 Apr 2017 07:27:47 +0000 (07:27 +0000)] 
PR rtl-optimization/80500
* loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
sum's initial value.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247127 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Tue, 25 Apr 2017 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247120 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoRegenerate .pot files.
jsm28 [Mon, 24 Apr 2017 20:40:51 +0000 (20:40 +0000)] 
Regenerate .pot files.

gcc/po:
* gcc.pot: Regenerate.

libcpp/po:
* cpplib.pot: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247114 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoSubject: Backport r247097
marxin [Mon, 24 Apr 2017 14:48:43 +0000 (14:48 +0000)] 
Subject: Backport r247097

2017-04-24  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-04-24  Jan Hubicka  <hubicka@ucw.cz>

PR middle-end/79931
* ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
2017-04-24  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-04-24  Martin Liska  <mliska@suse.cz>

PR middle-end/79931
* g++.dg/ipa/pr79931.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247102 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Mon, 24 Apr 2017 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247087 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sun, 23 Apr 2017 00:16:24 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247080 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sat, 22 Apr 2017 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247074 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * es.po, fr.po: Update.
jsm28 [Fri, 21 Apr 2017 10:38:05 +0000 (10:38 +0000)] 
* es.po, fr.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247060 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR tree-optimization/80426
ebotcazou [Fri, 21 Apr 2017 08:08:03 +0000 (08:08 +0000)] 
PR tree-optimization/80426
* gcc.c-torture/execute/20170429-1.c: Rename into...
* gcc.c-torture/execute/20170419-1.c: ...this.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247047 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Fri, 21 Apr 2017 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247044 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR c++/80473 allow suppressing notes about over-aligned new
redi [Thu, 20 Apr 2017 18:36:27 +0000 (18:36 +0000)] 
PR c++/80473 allow suppressing notes about over-aligned new

Backport from mainline r247033
gcc/cp:

PR c++/80473
* init.c (build_new_1): Suppress notes about over-aligned new when
the warning is suppressed.

gcc/testsuite:

PR c++/80473
* g++.dg/diagnostic/pr80473.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247035 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoomp-low: fix lastprivate/linear lowering for SIMT
amonakov [Thu, 20 Apr 2017 17:59:25 +0000 (17:59 +0000)] 
omp-low: fix lastprivate/linear lowering for SIMT

Backport from mainline r247029
gcc/
* omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
lastprivate clauses in SIMT case.

libgomp/
* testsuite/libgomp.c/target-36.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247032 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoMIPS: Prevent buffer overrun in uninitialised variable fix
mpf [Thu, 20 Apr 2017 13:39:50 +0000 (13:39 +0000)] 
MIPS: Prevent buffer overrun in uninitialised variable fix

Backport from mainline
2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>

gcc/
* config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
uninitialized variable warning to avoid buffer overrun.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247023 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * DEV-PHASE: Set to prerelease.
jakub [Thu, 20 Apr 2017 10:48:41 +0000 (10:48 +0000)] 
* DEV-PHASE: Set to prerelease.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247019 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoCreate gcc-7-branch
jakub [Thu, 20 Apr 2017 09:50:13 +0000 (09:50 +0000)] 
Create gcc-7-branch

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@247016 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[ARM] Fix type for .init_array.* and .fini_array.* sections
thopre01 [Thu, 20 Apr 2017 09:44:18 +0000 (09:44 +0000)] 
[ARM] Fix type for .init_array.* and .fini_array.* sections

2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
    priority .init_array and .fini_array section with SECTION_NOTYPE
    flag.

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

8 years ago PR middle-end/80423
jakub [Thu, 20 Apr 2017 09:18:02 +0000 (09:18 +0000)] 
PR middle-end/80423
* tree.h (build_array_type): Add typeless_storage default argument.
* tree.c (type_cache_hasher::equal): Also compare
TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
(build_array_type): Add typeless_storage argument, set
TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
recursive call.
(build_nonshared_array_type): Adjust build_array_type_1 caller.
(build_array_type): Likewise.  Add typeless_storage argument.
c-family/
* c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
cp/
* tree.c (build_cplus_array_type): Call build_array_type
with the intended TYPE_TYPELESS_STORAGE flag value, instead
of calling build_array_type and modifying later TYPE_TYPELESS_STORAGE
on the shared type.
testsuite/
* g++.dg/other/pr80423.C: New test.

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

8 years agoSkip pr80170.c for non-ptr32plus targets
saaadhu [Thu, 20 Apr 2017 05:46:02 +0000 (05:46 +0000)] 
Skip pr80170.c for non-ptr32plus targets

The testcase uses 32 bit or bigger pointer offsets, and
that triggers an ptrofftype_p assert in tree.c.

gcc/testsuite

2017-04-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

* gcc.dg/pr80170.c: Require ptr32plus.

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

8 years agoDaily bump.
gccadmin [Thu, 20 Apr 2017 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

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