]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
7 years agoupdate-copyright.py: Retain original file mode
aldot [Mon, 30 Jan 2017 14:31:59 +0000 (14:31 +0000)] 
update-copyright.py: Retain original file mode

2017-01-31  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

* update-copyright.py (Copyright.process_file): Retain original
file mode.

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

7 years ago * mpxrt/mpxrt-utils.h (__mpxrt_stop): New prototype.
jakub [Mon, 30 Jan 2017 14:26:24 +0000 (14:26 +0000)] 
* mpxrt/mpxrt-utils.h (__mpxrt_stop): New prototype.

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

7 years ago2017-01-30 Richard Biener <rguenther@suse.de>
rguenth [Mon, 30 Jan 2017 14:24:37 +0000 (14:24 +0000)] 
2017-01-30  Richard Biener  <rguenther@suse.de>

PR tree-optimization/79276
* tree-vrp.c (process_assert_insertions): Properly adjust common
when removing a duplicate.

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

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

7 years ago2017-01-30 Richard Biener <rguenther@suse.de>
rguenth [Mon, 30 Jan 2017 13:52:44 +0000 (13:52 +0000)] 
2017-01-30  Richard Biener  <rguenther@suse.de>

PR tree-optimization/79256
* targhooks.c (default_builtin_vector_alignment_reachable): Honor
BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
alignment on TYPE.
* tree.c (build_aligned_type): Set TYPE_USER_ALIGN.

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

7 years agoImplement LWG 2825, LWG 2756 breaks class template argument deduction for optional.
ville [Mon, 30 Jan 2017 13:37:16 +0000 (13:37 +0000)] 
Implement LWG 2825, LWG 2756 breaks class template argument deduction for optional.
* include/std/optional: Add a deduction guide.
* testsuite/20_util/optional/cons/deduction_guide.cc: New.

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

7 years ago[ARM][PR target/78945] Fix libatomic on armv7-m
nsz [Mon, 30 Jan 2017 11:34:13 +0000 (11:34 +0000)] 
[ARM][PR target/78945] Fix libatomic on armv7-m

ARM libatomic inline asm uses sel, uadd8, uadd16 instructions
which are only available if __ARM_FEATURE_SIMD32 is defined.

libatomic/
2017-01-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>

PR target/78945
* config/arm/exch_n.c (libat_exchange): Check __ARM_FEATURE_SIMD32.

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

7 years agoS/390: PR target/79240: Fix assertion in s390_extzv_shift_ok.
krebbel [Mon, 30 Jan 2017 09:54:58 +0000 (09:54 +0000)] 
S/390: PR target/79240: Fix assertion in s390_extzv_shift_ok.

2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>

PR target/79240
* config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
("*r<noxa>sbg_<mode>_sll_bitmask")
("*extzv_<mode>_srl<clobbercc_or_nocc>")
("*extzv_<mode>_sll<clobbercc_or_nocc>"):
Use contiguous_bitmask_nowrap_operand.

2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>

PR target/79240
* gcc.target/s390/pr79240.c: New test.

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

7 years ago[gcc]
wschmidt [Mon, 30 Jan 2017 03:32:59 +0000 (03:32 +0000)] 
[gcc]

2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/79268
* config/rs6000/altivec.h (vec_xl): Revise #define.
(vec_xst): Likewise.

[gcc/testsuite]

2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/79268
* gcc.target/powerpc/pr79268.c: New file.
* gcc.target/powerpc/vsx-elemrev-1.c: Delete file.
* gcc.target/powerpc/vsx-elemrev-2.c: Likewise.
* gcc.target/powerpc/vsx-elemrev-3.c: Likewise.
* gcc.target/powerpc/vsx-elemrev-4.c: Likewise.

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

7 years agoDaily bump.
gccadmin [Mon, 30 Jan 2017 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

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

7 years ago * update-copyright.py: Fix the name of this script in examples.
gerald [Sun, 29 Jan 2017 19:29:15 +0000 (19:29 +0000)] 
* update-copyright.py: Fix the name of this script in examples.

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

7 years agoDaily bump.
gccadmin [Sun, 29 Jan 2017 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

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

7 years ago * gnat.dg/trampoline4.adb: Skip on hppa*-*-*.
danglin [Sat, 28 Jan 2017 21:35:54 +0000 (21:35 +0000)] 
* gnat.dg/trampoline4.adb: Skip on hppa*-*-*.

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

7 years ago * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
uros [Sat, 28 Jan 2017 18:43:56 +0000 (18:43 +0000)] 
* config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.

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

7 years ago PR testsuite/70583
danglin [Sat, 28 Jan 2017 18:01:22 +0000 (18:01 +0000)] 
PR testsuite/70583
* g++.old-deja/g++.abi/vtable2.C: Adjust CMP_VPTR define on hppa.

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

7 years ago * gnat.dg/debug7.adb: Skip on hppa*-*-hpux*.
danglin [Sat, 28 Jan 2017 17:30:50 +0000 (17:30 +0000)] 
* gnat.dg/debug7.adb: Skip on hppa*-*-hpux*.
* gnat.dg/debug9.adb: Likewise.

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

7 years ago * gcc.dg/torture/pr78515.c: Add -fno-common option on hppa*-*-hpux*.
danglin [Sat, 28 Jan 2017 17:19:09 +0000 (17:19 +0000)] 
* gcc.dg/torture/pr78515.c: Add -fno-common option on hppa*-*-hpux*.

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

7 years ago * gfortran.dg/coarray_41.f90: Add "-latomic" option if
danglin [Sat, 28 Jan 2017 17:00:33 +0000 (17:00 +0000)] 
* gfortran.dg/coarray_41.f90: Add "-latomic" option if
libatomic_available.
* gfortran.dg/coarray_42.f90: Likewise.
* gfortran.dg/coarray_alloc_comp_3.f08: Likewise.
* gfortran.dg/coarray_alloc_comp_4.f08: Likewise.
* gfortran.dg/coarray_lib_alloc_4.f90: Likewise.

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

7 years agoDaily bump.
gccadmin [Sat, 28 Jan 2017 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

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

7 years agogcc/testsuite/ChangeLog:
msebor [Sat, 28 Jan 2017 00:09:15 +0000 (00:09 +0000)] 
gcc/testsuite/ChangeLog:
* gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Add test cases.

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

7 years ago * sr.po: Update.
jsm28 [Fri, 27 Jan 2017 23:34:48 +0000 (23:34 +0000)] 
* sr.po: Update.

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

7 years ago2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
law [Fri, 27 Jan 2017 19:40:44 +0000 (19:40 +0000)] 
2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>

PR rtl-optimization/79194
* cprop.c (one_cprop_pass): Move deletion of code after unconditional
traps before call to bypass_conditional_jumps.

PR rtl-optimization/79194
* gcc.dg/torture/pr79194.c: New test.

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

7 years ago2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Fri, 27 Jan 2017 18:08:14 +0000 (18:08 +0000)] 
2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>

PR tree-optimization/71374
* lra-constraints.c (check_conflict_input_operands): New.
(match_reload): Use it.

2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>

PR tree-optimization/71374
* testsuite/gcc.target/i386/pr71374.c: New.

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

7 years agoPR c++/71290
msebor [Fri, 27 Jan 2017 16:51:54 +0000 (16:51 +0000)] 
PR c++/71290

gcc/testsuite/ChangeLog:
* obj-c++.dg/property/at-property-23.mm: Remove an escaped newline from
a dg-error directive.

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

7 years ago2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Fri, 27 Jan 2017 16:50:11 +0000 (16:50 +0000)] 
2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>

PR target/79131
* lra-assigns.c (find_hard_regno_for_1): Take endianess for into
account to calculate conflict_set.

2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>

PR target/79131
* gcc.target/arm/pr79131.c: Rename to gcc.target/arm/pr79131-1.c.
* gcc.target/arm/pr79131-2.c: New.

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

7 years ago PR c++/78771 - ICE with inherited constructor.
jason [Fri, 27 Jan 2017 16:48:34 +0000 (16:48 +0000)] 
PR c++/78771 - ICE with inherited constructor.

* call.c (build_over_call): Call deduce_inheriting_ctor here.
* pt.c (tsubst_decl): Not here.
* class.c (add_method): Or here.
* method.c (deduce_inheriting_ctor): Handle clones.
(implicitly_declare_fn): Don't deduce inheriting ctors yet.

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

7 years agoPR libstdc++/79254 fix exception-safety in std::string::operator=
redi [Fri, 27 Jan 2017 16:17:04 +0000 (16:17 +0000)] 
PR libstdc++/79254 fix exception-safety in std::string::operator=

PR libstdc++/79254
* config/abi/pre/gnu.ver: Add new symbols.
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
(basic_string::_M_copy_assign): New overloaded functions to perform
copy assignment.
(basic_string::operator=(const basic_string&)): Dispatch to
_M_copy_assign.
* include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
(basic_string::_M_copy_assign(const basic_string&, true_type)):
Define, performing rollback on exception.
* testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
Test exception-safety guarantee.
* testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
Likewise.
* testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
std::swap visible.

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

7 years ago2017-01-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Fri, 27 Jan 2017 15:59:02 +0000 (15:59 +0000)] 
2017-01-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/65484
* g++.dg/vect/pr36648.cc: Modify to reflect that the loop is not
vectorized on POWER unless hardware misaligned loads are
available.

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

7 years ago compiler: let initializers hold addresses of fields
ian [Fri, 27 Jan 2017 15:08:23 +0000 (15:08 +0000)] 
compiler: let initializers hold addresses of fields

    The runtime.dbgvars initializer looks like

    var dbgvars = []dbgVar{
            {"allocfreetrace", &debug.allocfreetrace},
    }

    Because the field address was not recognized as valid for a static
    initializer, the variable was initialized at runtime.  Normally that
    would be fine, but for the runtime package it meant that dbgvars was
    not initialized when it was read by parsedebugvars.  That meant that
    the GODEBUG environment variable did nothing.

    Fixing that revealed that the static initializer checks had to be more
    careful about interface types, just like the existing is_constant
    methods.

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

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

7 years ago libgo: update to go1.8rc3
ian [Fri, 27 Jan 2017 15:01:57 +0000 (15:01 +0000)] 
libgo: update to go1.8rc3

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

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

7 years ago PR rtl-optimization/78559
amker [Fri, 27 Jan 2017 14:42:23 +0000 (14:42 +0000)] 
PR rtl-optimization/78559
* combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
other_insn in combine.

gcc/testsuite
PR rtl-optimization/78559
* gcc.c-torture/execute/pr78559.c: New test.

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

7 years ago[brigfe] Small fixes
jamborm [Fri, 27 Jan 2017 14:35:07 +0000 (14:35 +0000)] 
[brigfe] Small fixes

2017-01-27  Pekka Jaaskelainen  <pekka.jaaskelainen@parmance.com>

* configure.ac: Moved the white list of enabling BRIG FE to
libhsail-rt/configure.tgt.
* configure: Regenerated.
* MAINTAINERS: Updated maintainers for BRIG FE and libhsail-rt.

gcc/
* builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
uint16_type_node for BT_UINT16.

gcc/brig/
* config-lang.in: Removed stale target-libbrig reference.

libhsail-rt/
* configure.tgt: Moved the white list of supported targets here
from configure.ac.  Added i[3456789]86-*-linux* as a supported env
for the BRIG FE.
* README: Added a proper description of what libhsail-rt is.

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

7 years agodocs: Add __GIMPLE and __RTL to the "Internals" doc
dmalcolm [Fri, 27 Jan 2017 14:25:59 +0000 (14:25 +0000)] 
docs: Add __GIMPLE and __RTL to the "Internals" doc

gcc/ChangeLog:
* doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
"RTL Tests" to menu.
(GIMPLE Tests): New node.
(RTL Tests): New node.

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

7 years ago2017-01-27 Richard Biener <rguenther@suse.de>
rguenth [Fri, 27 Jan 2017 13:56:59 +0000 (13:56 +0000)] 
2017-01-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/79245
* tree-loop-distribution.c (distribute_loop): Apply cost
modeling also to detected patterns.

* gcc.dg/tree-ssa/ldist-23.c: XFAIL.
* gcc.dg/tree-ssa/ldist-25.c: New testcase.

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

7 years ago PR c/79199
jakub [Fri, 27 Jan 2017 13:25:28 +0000 (13:25 +0000)] 
PR c/79199
* c-c++-common/Wduplicated-branches-13.c: Require int32plus effective
target.  Use 4294967293U instead of 4294967293.

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

7 years ago2017-01-27 Richard Biener <rguenther@suse.de>
rguenth [Fri, 27 Jan 2017 12:30:43 +0000 (12:30 +0000)] 
2017-01-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/71433
* tree-vrp.c (register_new_assert_for): Revert earlier changes.
(compare_assert_loc): New function.
(process_assert_insertions): Sort and optimize assert locations
to remove duplicates and push down identical assertions on
edges to their destination block.

* gcc.dg/Warray-bounds-21.c: New testcase.

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

7 years ago2017-01-27 Richard Biener <rguenther@suse.de>
rguenth [Fri, 27 Jan 2017 12:24:54 +0000 (12:24 +0000)] 
2017-01-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/79244
* tree-vrp.c (remove_range_assertions): Forcefully propagate
out SSA names even if abnormal.

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

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

7 years ago * g++.dg/cilk-plus/CK/fib-opr-overload.cc (main): Change
jakub [Fri, 27 Jan 2017 11:34:58 +0000 (11:34 +0000)] 
* g++.dg/cilk-plus/CK/fib-opr-overload.cc (main): Change
all occurrences of 40 to 32.

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

7 years ago * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
jakub [Fri, 27 Jan 2017 11:28:34 +0000 (11:28 +0000)] 
* realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
* gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
instead of MPFR_RNDN.

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

7 years ago[ARM] Fix PR target/79239 - unrecognized insn after pragma gcc pop_options
ramana [Fri, 27 Jan 2017 11:22:30 +0000 (11:22 +0000)] 
[ARM] Fix PR target/79239 - unrecognized insn after pragma gcc pop_options

{committed for rearnsha}

It turns out that because the compiler uses a hash table to save the
cl_target_option structures it is unsafe to modify the result of
build_target_option_node() (doing so will cause the hash lookup to
fail).  This PR was due to not properly understanding this limitation.

The fix is to create temporary copies of the cl_target_option nodes for
use during target option processing and then only creating the tree node
once the options have been suitably modified.

gcc:
        PR target/79239
        * arm.c (arm_option_override): Don't call build_target_option_node
        until after doing all option overrides.
        (arm_valid_target_attribute_tree): Likewise.

gcc/testsuite:
        * gcc.target/arm/pr79239.c: New test.

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

7 years agoEnhance doc for -fprofile-arcs
marxin [Fri, 27 Jan 2017 09:58:34 +0000 (09:58 +0000)] 
Enhance doc for -fprofile-arcs

2017-01-27  Martin Liska  <mliska@suse.cz>

* doc/invoke.texi (-fprofile-arcs): Document profiling support
for {cd}tors and C++ {cd}tors.

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

7 years agoS/390: Fix matching setmem_long_and*.
krebbel [Fri, 27 Jan 2017 08:07:26 +0000 (08:07 +0000)] 
S/390: Fix matching setmem_long_and*.

The attached patch reactivates the setmem_long_and* patterns on S/390
that have not been generated for a while.

gcc/ChangeLog:

2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>

* config/s390/s390.md ("*setmem_long_and")
("*setmem_long_and_31z"): Use zero_extend instead of and.

gcc/testsuite/ChangeLog:

2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>

* gcc.target/s390/md/setmem_long-1.c: Remove xfail, skip with -O0.

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

7 years agoFix PR c++/64382
abutcher [Fri, 27 Jan 2017 07:59:06 +0000 (07:59 +0000)] 
Fix PR c++/64382

PR c++/64382
* cp/parser.c (parsing_default_capturing_generic_lambda_in_template):
New function.
* cp/cp-tree.h: Declare it.
* cp/semantics.c (finish_id_expression): Resolve names within a default
capturing generic lambda defined within a template prior to
instantiation to allow for captures to be added to the closure type.

PR c++/64382
* g++.dg/cpp1y/pr64382.C: New test.

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

7 years agogcc/ChangeLog:
msebor [Fri, 27 Jan 2017 02:45:32 +0000 (02:45 +0000)] 
gcc/ChangeLog:
* gimple-ssa-sprintf.c (format_floating): Simplify the computation
of precision to avoid preprocessor conditional.

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

7 years agoDaily bump.
gccadmin [Fri, 27 Jan 2017 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

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

7 years agogcc/ChangeLog:
msebor [Thu, 26 Jan 2017 23:37:17 +0000 (23:37 +0000)] 
gcc/ChangeLog:
* gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
HAVE_DFmode before using XFmode or DFmode.
(parse_directive): Avoid using the z length modifier to avoid
the ISO C++98 does not support the ‘z’ gnu_printf length modifier.

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

7 years agoPR middle-end/78703 - fprintf-return-value floating point handling incorrect in local...
msebor [Thu, 26 Jan 2017 23:07:02 +0000 (23:07 +0000)] 
PR middle-end/78703 - fprintf-return-value floating point handling incorrect in locales with a mulltibyte decimal point

gcc/ChangeLog:
        PR middle-end/78703
        * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
        to accept adjustment as an array.
        (get_int_range): New function.
        (struct directive): Make width and prec arrays.
        (directive::set_width, directive::set_precision): Call get_int_range.
        (format_integer, format_floating): Handle width and precision ranges.
        (format_string, parse_directive): Same.

gcc/testsuite/ChangeLog:
        PR middle-end/78703
        * gcc.dg/tree-ssa/builtin-snprintf-warn-1.c: Update
        * gcc.dg/tree-ssa/builtin-sprintf-warn-9.c: Rename...
        * gcc.dg/tree-ssa/builtin-sprintf-warn-10.c: ...to this.
        * gcc.dg/tree-ssa/builtin-sprintf-warn-9.c: New test.

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

7 years ago PR debug/79129
jakub [Thu, 26 Jan 2017 21:45:57 +0000 (21:45 +0000)] 
PR debug/79129
* dwarf2out.c (generate_skeleton_bottom_up): For children with
comdat_type_p set, just clone them, but keep the children in the
original DIE.

* g++.dg/debug/dwarf2/pr79129.C: New test.

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

7 years ago PR debug/78835
jakub [Thu, 26 Jan 2017 21:44:49 +0000 (21:44 +0000)] 
PR debug/78835
* dwarf2out.c (prune_unused_types): Mark all functions with DIEs
which have direct callers with -fvar-tracking-assignments enabled
in the current TU.
(resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
inside of type units.

* g++.dg/debug/dwarf2/pr78835.C: New test.

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

7 years agoPR middle-end/78703 -fprintf-return-value floating point handling incorrect in locale...
msebor [Thu, 26 Jan 2017 21:14:18 +0000 (21:14 +0000)] 
PR middle-end/78703 -fprintf-return-value floating point handling incorrect in locales with a mulltibyte decimal point

gcc/ChangeLog:
PR middle-end/78703
* gimple-ssa-sprintf.c (struct result_range): Add likely and
unlikely counters.
(struct format_result): Replace number_chars, number_chars_min,
and number_chars_max with a single member of struct result_range.
Remove bounded.
(format_result::operator+=): Adjust.
(struct fmtresult): Remove bounded.  Handle likely and unlikely
counters.
(fmtresult::adjust_for_width_or_precision): New function.
(fmtresult:type_max_digits): New function.
(bytes_remaining): Handle likely and unlikely counters.
(min_bytes_remaining): Remove.
(format_percent): Simplify.
(format_integer, format_floating): Set likely and unlikely counters.
(get_string_length, format_character, format_string): Same.
(format_plain, should_warn_p): New function.
(maybe_warn): Call should_warn_p.  Update diagnostic messages
and handle those for all directives, including plain strings.
(format_directive): Handle likely and unlikely counters.
Remove unnecessary quoting from diagnostics.  Add an informational
note.
(add_bytes): Remove.
(pass_sprintf_length::compute_format_length): Simplify.
(try_substitute_return_value): Handle likely and unlikely counters.

gcc/testsuite/ChangeLog:

PR middle-end/78703
* gcc.dg/format/pr78569.c: Adjust.
* gcc.dg/tree-ssa/builtin-snprintf-warn-2.c: Same.
* gcc.dg/tree-ssa/builtin-sprintf-2.c: Same.
* gcc.dg/tree-ssa/builtin-sprintf-5.c: Same.
* gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Same.
* gcc.dg/tree-ssa/builtin-sprintf-warn-2.c: Same.
* gcc.dg/tree-ssa/builtin-sprintf-warn-3.c: Same.
* gcc.dg/tree-ssa/builtin-sprintf-warn-4.c: Same.
* gcc.dg/tree-ssa/builtin-sprintf-warn-6.c: Same.
* gcc.dg/tree-ssa/builtin-sprintf-warn-7.c: Same.
* gcc.dg/tree-ssa/builtin-sprintf-warn-9.c: Same.
* gcc.dg/tree-ssa/builtin-sprintf.c: Same.

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

7 years agoPR libstdc++/70607 revert recent changes to <tr1/complex>
redi [Thu, 26 Jan 2017 19:40:02 +0000 (19:40 +0000)] 
PR libstdc++/70607 revert recent changes to <tr1/complex>

PR libstdc++/70607
* include/tr1/complex (conj): Remove using-declaration and restore
overloads, reverting previous change.

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

7 years agoFix libstdc++ testsuite failures in C++98 and C++11 mode
redi [Thu, 26 Jan 2017 19:39:53 +0000 (19:39 +0000)] 
Fix libstdc++ testsuite failures in C++98 and C++11 mode

* testsuite/23_containers/list/operations/78389.cc: Fix for C++11
mode.
* testsuite/23_containers/priority_queue/requirements/constructible.cc:
Mark as unsupported in C++98 mode.
* testsuite/23_containers/queue/requirements/constructible.cc:
Likewise.
* testsuite/23_containers/stack/requirements/constructible.cc:
Likewise.
* testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.

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

7 years ago PR c++/68727
jakub [Thu, 26 Jan 2017 19:39:40 +0000 (19:39 +0000)] 
PR c++/68727
* cp-tree.def (OFFSETOF_EXPR): Bump number of operands to 2.
* cp-tree.h (finish_offsetof): Add OBJECT_PTR argument.
* parser.c (cp_parser_builtin_offsetof): Pass result of
build_static_cast of null_pointer_node to finish_offsetof.
* semantics.c (finish_offsetof): Add OBJECT_PTR argument, use
it for -Winvalid-offsetof pedwarn instead of trying to guess
original offsetof type from EXPR.  Save OBJECT_PTR as a new
second operand to OFFSETOF_EXPR.
* pt.c (tsubst_copy_and_build) <case OFFSETOF_EXPR>: Adjust
finish_offsetof caller, pass the second operand of OFFSETOF_EXPR
as OBJECT_PTR.

* g++.dg/other/offsetof8.C: Add expected error.
* g++.dg/other/offsetof9.C: New test.

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

7 years ago * testsuite/lib/libgomp.exp
jakub [Thu, 26 Jan 2017 19:37:08 +0000 (19:37 +0000)] 
* testsuite/lib/libgomp.exp
(check_effective_target_hsa_offloading_selected_nocache): Fix up
check_compile invocation.  Fix up removal of executable.  Drop
bogus "2>&1" argument.

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

7 years ago runtime: fix setting of isarchive
ian [Thu, 26 Jan 2017 19:07:54 +0000 (19:07 +0000)] 
runtime: fix setting of isarchive

    When I updated to Go 1.8, the initsig function moved from
    signal1_unix.go to signal_unix.go, and lost a gccgo-specific change in
    the move.  Add it back.

    This would have been caught by the misc/cgo/testcarchive tests in the
    gc repository, but we don't run those in the gccgo repository.  We
    should fix that, somehow.

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

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

7 years ago runtime: fix context used by getTraceback
ian [Thu, 26 Jan 2017 19:05:16 +0000 (19:05 +0000)] 
runtime: fix context used by getTraceback

    I typoed the argument passed to getcontext in getTraceback, and the
    error was hidden by ucontext_arg.  This would have been caught by some
    of the runtime package tests, but we don't run most of them because
    they rely on `go build`, and the go tool is not available while
    running the libgo testsuite.  We should fix the libgo testsuite,
    somehow, so that they run.

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

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

7 years agoFix namespace versioning and remove __detail::__identity helpers
redi [Thu, 26 Jan 2017 18:32:55 +0000 (18:32 +0000)] 
Fix namespace versioning and remove __detail::__identity helpers

PR libstdc++/79243
* include/bits/c++config (literals::string_view_literals::__7): Add.
Only declare versioned namespaces for the relevant C++ dialects.
* include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
Add versioning macros.
* include/experimental/bits/lfts_config.h:
(fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
* include/experimental/string_view (fundamentals_v2::__detail):
Add versioning macros.
(fundamentals_v2::__detail::__identity): Remove.
(fundamentals_v2::__detail::__idt): Use common_type instead of
__detail::__identity.
* include/std/string_view (__detail::__identity, __detail::__idt):
Likewise.
(literals::string_view_literals): Fix nesting of versioning macros.

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

7 years ago * g++.dg/opt/declone3.C: Require LTO.
dje [Thu, 26 Jan 2017 18:19:39 +0000 (18:19 +0000)] 
    * g++.dg/opt/declone3.C: Require LTO.

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

7 years agogcc/ChangeLog:
carll [Thu, 26 Jan 2017 17:39:38 +0000 (17:39 +0000)] 
gcc/ChangeLog:

2017-01-26  Carl Love  <cel@us.ibm.com>

        * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
        bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins

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

7 years ago2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Thu, 26 Jan 2017 17:08:12 +0000 (17:08 +0000)] 
2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>

PR target/79131
* lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
endianess for subregs into account.
* lra-constraints.c (lra_constraints): Do risky transformations
always on the first iteration.
* lra-lives.c (check_pseudos_live_through_calls): Add arg
last_call_used_reg_set.
(process_bb_lives): Define and use last_call_used_reg_set.
* lra.c (lra): Always continue after lra_constraints on the first
iteration.

2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>

PR target/79131
* gcc.target/arm/pr79131.c: New.

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

7 years agoAVX-512. Fix constants for 32b variant.
kyukhin [Thu, 26 Jan 2017 16:56:12 +0000 (16:56 +0000)] 
AVX-512. Fix constants for 32b variant.

gcc/testsuite/
* gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
constant.
* gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.

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

7 years ago ChangeLog: Fix relative path in my entry.
uros [Thu, 26 Jan 2017 16:50:50 +0000 (16:50 +0000)] 
ChangeLog: Fix relative path in my entry.

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

7 years ago * ChangeLog: Move my last entry ...
uros [Thu, 26 Jan 2017 16:47:15 +0000 (16:47 +0000)] 
* ChangeLog: Move my last entry ...
* config/ChangeLog: ... here.

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

7 years ago * name-lookup.c (parse_using_directive): Deprecate strong using.
jason [Thu, 26 Jan 2017 15:32:22 +0000 (15:32 +0000)] 
* name-lookup.c (parse_using_directive): Deprecate strong using.

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

7 years ago PR c++/79176 - lambda ICE with -flto -Os
jason [Thu, 26 Jan 2017 15:30:43 +0000 (15:30 +0000)] 
PR c++/79176 - lambda ICE with -flto -Os

* decl2.c (vague_linkage_p): Handle decloned 'tors.
* tree.c (decl_linkage): Likewise.

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

7 years ago gcc/testsuite
amker [Thu, 26 Jan 2017 15:04:27 +0000 (15:04 +0000)] 
gcc/testsuite
* gcc.target/aarch64/ldp_vec_64_1.c: Xfail.

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

7 years agoPR libstdc++/79190 add fallback aligned_alloc implementation
redi [Thu, 26 Jan 2017 14:30:45 +0000 (14:30 +0000)] 
PR libstdc++/79190 add fallback aligned_alloc implementation

libstdc++-v3:

PR libstdc++/79190
* libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
[!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
&& !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
Retrieve original pointer value allocated by malloc.
* libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
&& !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
&& !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
Define, adjusting pointer value allocated by malloc and storing for
retrieval by operator delete.

gcc/testsuite:

PR libstdc++/79190
* g++.dg/cpp1z/aligned-new3.C: Replace operator new so behaviour
matches replaced operator delete.

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

7 years ago * config/i386/avx512fintrin.h (_ktest_mask16_u8,
jakub [Thu, 26 Jan 2017 12:24:58 +0000 (12:24 +0000)] 
* config/i386/avx512fintrin.h (_ktest_mask16_u8,
_ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
* config/i386/avx512dqintrin.h (_ktest_mask16_u8,
_ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
* config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
__builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
* config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
(kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
testsuite/
* gcc.target/i386/avx512f-kaddw-1.c: Renamed to ...
* gcc.target/i386/avx512dq-kaddw-1.c: ... this.  New test.  Replace
avx512f with avx512dq.
* gcc.target/i386/avx512f-ktestw-1.c: Renamed to ...
* gcc.target/i386/avx512dq-ktestw-1.c: ... this.  New test.  Replace
avx512f with avx512dq.
* gcc.target/i386/avx512f-ktestw-2.c: Renamed to ...
* gcc.target/i386/avx512dq-ktestw-2.c: ... this.  New test.  Replace
avx512f with avx512dq.

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

7 years ago PR c/79199
mpolacek [Thu, 26 Jan 2017 11:37:33 +0000 (11:37 +0000)] 
PR c/79199
* fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
for the third operand.

* c-c++-common/Wduplicated-branches-13.c: New test.

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

7 years ago * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
jakub [Thu, 26 Jan 2017 11:20:51 +0000 (11:20 +0000)] 
* testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
directive.

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

7 years ago PR middle-end/79236
jakub [Thu, 26 Jan 2017 11:05:03 +0000 (11:05 +0000)] 
PR middle-end/79236
* omp-low.c (struct omp_context): Add simt_stmt field.
(scan_omp_for): Return omp_context *.
(scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
context to the _simt_ SIMD stmt.
(lower_omp_for): For combined SIMD with sibling _simt_
SIMD, make sure to use the same decls in _looptemp_
clauses as in the sibling.

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

7 years ago2017-01-26 David Sherwood <david.sherwood@arm.com>
davids [Thu, 26 Jan 2017 10:41:35 +0000 (10:41 +0000)] 
2017-01-26  David Sherwood  <david.sherwood@arm.com>

    gcc/
PR middle-end/79212
* gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
all contexts.

    gcc/testsuite/
PR middle-end/79212
* gfortran.dg/gomp/sharing-4.f90: New test.

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

7 years ago PR target/70465
jakub [Thu, 26 Jan 2017 08:46:36 +0000 (08:46 +0000)] 
PR target/70465
* reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
emit fld b; fld a; if possible.

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

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

7 years agocontrib/
jakub [Thu, 26 Jan 2017 08:26:48 +0000 (08:26 +0000)] 
contrib/
* update-copyright.py: Add libhsail-rt to self.default_dirs
and call self.add_dir on it.  Add Intel Corporation to external
authors.
gcc/
* brig-builtins.def: Update copyright years.
* config/arm/arm_acle_builtins.def: Update copyright years.
gcc/brig/
Update copyright years.
gcc/testsuite/
* brig.dg/dg.exp: Update copyright years.
* lib/brig-dg.exp: Update copyright years.
* lib/brig.exp: Update copyright years.
libhsail-rt/
Update copyright years.
libstdc++-v3/
* libsupc++/eh_atomics.h: Update copyright years.
* testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.

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

7 years agocontrib/
jakub [Thu, 26 Jan 2017 08:24:22 +0000 (08:24 +0000)] 
contrib/
* update-copyright.py: Add libhsail-rt to self.default_dirs
and call self.add_dir on it.  Add Intel Corporation to external
authors.
gcc/
* brig-builtins.def: Update copyright years.
* config/arm/arm_acle_builtins.def: Update copyright years.
gcc/brig/
Update copyright years.
gcc/testsuite/
* brig.dg/dg.exp: Update copyright years.
* lib/brig-dg.exp: Update copyright years.
* lib/brig.exp: Update copyright years.
libhsail-rt/
Update copyright years.
libstdc++-v3/
* libsupc++/eh_atomics.h: Update copyright years.
* testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.

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

7 years ago[gcc]
meissner [Thu, 26 Jan 2017 04:16:11 +0000 (04:16 +0000)] 
[gcc]
2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/79179
* config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
constraint instead of o for the stxsd instruction.

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

PR target/79179
* gcc.target/powerpc/pr79179.c: New test.

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

7 years ago2017-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Thu, 26 Jan 2017 03:21:49 +0000 (03:21 +0000)] 
2017-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.target/powerpc/vsx-elemrev-4.c: Change expected code
generation to accept D-mode memory accesses.

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

7 years agoDaily bump.
gccadmin [Thu, 26 Jan 2017 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

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

7 years agogcc/cp/ChangeLog:
msebor [Thu, 26 Jan 2017 00:02:25 +0000 (00:02 +0000)] 
gcc/cp/ChangeLog:
* decl.c (grokdeclarator): Fix a typo in a comment.
This line, and those below, will be ignored--

M    ChangeLog
M    decl.c

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

7 years agoChangeLog only update missed in r244910.
msebor [Wed, 25 Jan 2017 23:19:01 +0000 (23:19 +0000)] 
ChangeLog only update missed in r244910.

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

7 years agoPR c++/71290 - Flexible array member is not diagnosed with -pedantic
msebor [Wed, 25 Jan 2017 23:11:53 +0000 (23:11 +0000)] 
PR c++/71290 - Flexible array member is not diagnosed with -pedantic

gcc/cp/ChangeLog:
PR c++/71290
* decl.c (grokdeclarator): Warn on flexible array members.

gcc/testsuite/ChangeLog:
PR c++/71290
* g++.dg/ext/flexarray-mangle-2.C: Adjust.
* g++.dg/ext/flexarray-mangle.C: Same.
* g++.dg/ext/flexarray-subst.C: Same.
* g++.dg/ext/flexary10.C: Same.
* g++.dg/ext/flexary11.C: Same.
* g++.dg/ext/flexary14.C: Same.
* g++.dg/ext/flexary16.C: Same.
* g++.dg/ext/flexary18.C: Same.
* g++.dg/ext/flexary19.C: Same.
* g++.dg/ext/flexary7.C: Same.
* gcc/testsuite/g++.dg/cpp1z/has-unique-obj-representations1.C: Same.
* gcc/testsuite/g++.dg/ubsan/object-size-1.C: Same.
* gcc/testsuite/obj-c++.dg/property/at-property-23.mm: Same.

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

7 years ago PR c++/78896
jakub [Wed, 25 Jan 2017 22:36:18 +0000 (22:36 +0000)] 
PR c++/78896
* decl.c (cp_finish_decomp): Disallow memberwise decomposition of
lambda expressions.

* g++.dg/cpp1z/decomp24.C: New test.

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

7 years ago PR c++/77914
jakub [Wed, 25 Jan 2017 20:51:10 +0000 (20:51 +0000)] 
PR c++/77914
* parser.c (cp_parser_lambda_declarator_opt): Pedwarn with
OPT_Wpedantic on lambda templates for -std=c++14 and higher.

* g++.dg/cpp1y/lambda-generic-77914.C: New test.
* g++.dg/cpp1y/lambda-generic-dep.C: Add -pedantic to dg-options,
expect a warning.
* g++.dg/cpp1y/lambda-generic-x.C: Add -Wpedantic to dg-options,
expect warnings.
* g++.dg/cpp1y/lambda-generic-mixed.C: Add empty dg-options.
* g++.dg/cpp1y/pr59636.C: Likewise.
* g++.dg/cpp1y/pr60190.C: Likewise.

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

7 years ago gcc/testsuite
amker [Wed, 25 Jan 2017 17:07:30 +0000 (17:07 +0000)] 
gcc/testsuite
* gcc.dg/vect/vect-24.c: Remove xfail on ARM targets.

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

7 years agogcc/ChangeLog:
carll [Wed, 25 Jan 2017 16:23:48 +0000 (16:23 +0000)] 
gcc/ChangeLog:

2017-01-25  Carl Love  <cel@us.ibm.com>

        * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
        of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.

gcc/testsuite/ChangeLog:

2017-01-25  Carl Love  <cel@us.ibm.com>
        * gcc.target/powerpc/builtins-3-p8.c:  Add missing tests for the
        vec_packs built-ins

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

7 years ago[ARM][testsuite] Force -mcpu=cortex-a57 for vsel* tests.
clyon [Wed, 25 Jan 2017 15:41:55 +0000 (15:41 +0000)] 
[ARM][testsuite] Force -mcpu=cortex-a57 for vsel* tests.

2017-01-25  Christophe Lyon  <christophe.lyon@linaro.org>

* gcc.target/arm/vseleqdf.c: Require arm_arch_v8a_ok, add
-mcpu=cortex-a57.
* gcc.target/arm/vseleqsf.c: Likewise.
* gcc.target/arm/vselgedf.c: Likewise.
* gcc.target/arm/vselgesf.c: Likewise.
* gcc.target/arm/vselgtdf.c: Likewise.
* gcc.target/arm/vselgtsf.c: Likewise.
* gcc.target/arm/vselledf.c: Likewise.
* gcc.target/arm/vsellesf.c: Likewise.
* gcc.target/arm/vselltdf.c: Likewise.
* gcc.target/arm/vselltsf.c: Likewise.
* gcc.target/arm/vselnedf.c: Likewise.
* gcc.target/arm/vselnesf.c: Likewise.
* gcc.target/arm/vselvcdf.c: Likewise.
* gcc.target/arm/vselvcsf.c: Likewise.
* gcc.target/arm/vselvsdf.c: Likewise.
* gcc.target/arm/vselvssf.c: Likewise.

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

7 years agolibhsail-rt: Fix some Autotools issues
tschwinge [Wed, 25 Jan 2017 15:38:01 +0000 (15:38 +0000)] 
libhsail-rt: Fix some Autotools issues

contrib/
* gcc_update (files_and_dependencies): Care for "libhsail-rt".

libhsail-rt/
* configure.ac: Don't instantiate AC_CONFIG_MACRO_DIR.
* configure: Regenerate.

libhsail-rt/
* config.h.in: Remove stale file.

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

7 years agoFix "classe" typo in C++ Dialect Options docs
redi [Wed, 25 Jan 2017 15:01:10 +0000 (15:01 +0000)] 
Fix "classe" typo in C++ Dialect Options docs

* doc/invoke.texi (C++ Dialect Options): Fix typo.

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

7 years agoPR libstdc++/70607 make proj(T) and conj(T) return complex<T>
redi [Wed, 25 Jan 2017 15:01:05 +0000 (15:01 +0000)] 
PR libstdc++/70607 make proj(T) and conj(T) return complex<T>

PR libstdc++/61791
PR libstdc++/70607
* include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
(proj(T), conj(T)): Change return types per DR 1522.
* include/tr1/complex (conj): Remove overloads and use std::conj.
* testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
* testsuite/26_numerics/complex/dr781.cc: ... this, and update.
* testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
real(T) and imag(T). Allow testing for C++11 too.

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

7 years ago2017-01-25 Richard Biener <rguenther@suse.de>
rguenth [Wed, 25 Jan 2017 13:14:41 +0000 (13:14 +0000)] 
2017-01-25  Richard Biener  <rguenther@suse.de>

PR testsuite/72850
* gcc.dg/tree-ssa/pr69270-3.c: Change back expected outcome
to what we had before adding the threading passes.

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

7 years ago2017-01-25 Richard Biener <rguenther@suse.de>
rguenth [Wed, 25 Jan 2017 12:30:41 +0000 (12:30 +0000)] 
2017-01-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/69264
* target.def (vector_alignment_reachable): Improve documentation.
* doc/tm.texi: Regenerate.
* targhooks.c (default_builtin_vector_alignment_reachable): Simplify
and add a comment.
* tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
earlier changes with respect to TYPE_USER_ALIGN.
(vector_alignment_reachable_p): Likewise.  Improve dumping.

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

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

7 years agoAdd svn:executable property.
jakub [Wed, 25 Jan 2017 11:57:53 +0000 (11:57 +0000)] 
Add svn:executable property.

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

7 years ago PR other/79046
jakub [Wed, 25 Jan 2017 11:54:36 +0000 (11:54 +0000)] 
PR other/79046
* configure.ac: Add GCC_BASE_VER.
* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
get version from BASE-VER file.
(ACLOCAL_AMFLAGS): Set to -I .. -I ../config .
* aclocal.m4: Regenerated.
* configure: Regenerated.
* Makefile.in: Regenerated.

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

7 years ago[ARM] PR target/79145 Fix xordi3 expander for immediate operands in iWMMXt
ktkachov [Wed, 25 Jan 2017 11:10:30 +0000 (11:10 +0000)] 
[ARM] PR target/79145 Fix xordi3 expander for immediate operands in iWMMXt

PR target/79145
* config/arm/arm.md (xordi3): Force constant operand into a register
for TARGET_IWMMXT.

* gcc.target/arm/pr79145.c: New test.

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

7 years ago[doc] Correct optimisation levels documentation for -fstore-merging
ktkachov [Wed, 25 Jan 2017 10:13:53 +0000 (10:13 +0000)] 
[doc] Correct optimisation levels documentation for -fstore-merging

* doc/invoke.texi (-fstore-merging): Correct default optimization
levels at which it is enabled.
(-O): Move -fstore-merging from list to...
(-O2): ... Here.

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

7 years ago2017-01-25 Richard Biener <rguenther@suse.de>
rguenth [Wed, 25 Jan 2017 09:48:10 +0000 (09:48 +0000)] 
2017-01-25  Richard Biener  <rguenther@suse.de>

PR debug/78363
* omp-expand.c: Include debug.h.
(expand_omp_taskreg): Make sure to generate early debug before
outlining anything from a function.
(expand_omp_target): Likewise.
(grid_expand_target_grid_body): Likewise.

* g++.dg/gomp/pr78363-1.C: New testcase.
* g++.dg/gomp/pr78363-2.C: Likewise.
* g++.dg/gomp/pr78363-3.C: Likewise.

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

7 years ago[testsuite] Require shared effective target for some lto.exp tests
ktkachov [Wed, 25 Jan 2017 09:24:49 +0000 (09:24 +0000)] 
[testsuite] Require shared effective target for some lto.exp tests

* gcc.dg/lto/pr54709_0.c: Require 'shared' effective target.
* gcc.dg/lto/pr61526_0.c: Likewise.
* gcc.dg/lto/pr64415_0.c: Likewise.

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

7 years agoPR lto/79061
chefmax [Wed, 25 Jan 2017 07:45:40 +0000 (07:45 +0000)] 
PR lto/79061

gcc/

* asan.c (get_translation_unit_decl): New function.
(asan_add_global): Extract modules file name from globals
TRANSLATION_UNIT_DECL name.

gcc/fortran/

* f95-lang.c (gfc_create_decls): Include stringpool.h.
Pass main_input_filename to build_translation_unit_decl.

gcc/ada/

* gcc-interface/utils.c (get_global_context): Pass main_input_filename
to build_translation_unit_decl.

gcc/c/

* c-decl.c (pop_scope): Pass main_input_filename to
build_translation_unit_decl.

gcc/cp/

* decl.c (cxx_init_decl_processing): Pass main_input_filename
to build_translation_unit_decl.

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

7 years ago compiler: improvements for type alias handling
ian [Wed, 25 Jan 2017 05:12:26 +0000 (05:12 +0000)] 
compiler: improvements for type alias handling

    Give an error for an attempt to define a method on an imported type.

    Give an error for each attempt to define a method on a builtin type.

    Adjust error messages to be closer to gc error messages.

    With these changes gccgo passes current tests on dev.typealias branch.

    This changes the errors printed for test/fixedbugs/issue5089.go, but
    the change is an improvement:

        Before:
            fixedbugs/issue5089.go:13:1: error: redefinition of ‘bufio.Buffered’: receiver name changed
             func (b *bufio.Reader) Buffered() int { // ERROR "non-local|redefinition"
             ^
            fixedbugs/issue5089.go:11:13: note: previous definition of ‘bufio.Buffered’ was here
             import "bufio" // GCCGO_ERROR "previous"
                         ^

        Now:
            fixedbugs/issue5089.go:13:7: error: may not define methods on non-local type
             func (b *bufio.Reader) Buffered() int { // ERROR "non-local|redefinition"
                   ^

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

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

7 years agoDaily bump.
gccadmin [Wed, 25 Jan 2017 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

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

7 years ago PR c++/79205
jakub [Tue, 24 Jan 2017 22:33:41 +0000 (22:33 +0000)] 
PR c++/79205
* cp-gimplify.c (cp_genericize_r): Add result of
convert_from_reference on invisiref parm to p_set.

* g++.dg/cpp1z/decomp22.C: New test.
* g++.dg/cpp1z/decomp23.C: New test.

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