1. 26 Jan, 2017 16 commits
    • PR c++/79176 - lambda ICE with -flto -Os · effdaefe
      	* decl2.c (vague_linkage_p): Handle decloned 'tors.
      	* tree.c (decl_linkage): Likewise.
      
      From-SVN: r244935
      Jason Merrill committed
    • ldp_vec_64_1.c: Xfail. · e39dd802
      	gcc/testsuite
      	* gcc.target/aarch64/ldp_vec_64_1.c: Xfail.
      
      From-SVN: r244934
      Bin Cheng committed
    • PR libstdc++/79190 add fallback aligned_alloc implementation · bc9efeab
      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.
      
      From-SVN: r244933
      Jonathan Wakely committed
    • avx512fintrin.h (_ktest_mask16_u8, [...]): Move to ... · b5f75f0b
      	* 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.
      
      From-SVN: r244929
      Jakub Jelinek committed
    • re PR c/79199 (ICE with -Wduplicated-branches) · 0a38b341
      	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.
      
      From-SVN: r244928
      Marek Polacek committed
    • declare-simd-4.f90: Add cleanup-modules directive. · 23749904
      	* testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
      	directive.
      
      From-SVN: r244927
      Jakub Jelinek committed
    • re PR middle-end/79236 (Many libgomp tests fail if configured with… · 6e6cf7b0
      re PR middle-end/79236 (Many libgomp tests fail if configured with --enable-offload-targets=nvptx-none but NVidia HW or libcuda.so.1 unavailable)
      
      	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.
      
      From-SVN: r244924
      Jakub Jelinek committed
    • re PR middle-end/79212 (internal compiler error: in… · ebff5c3f
      re PR middle-end/79212 (internal compiler error: in maybe_lookup_decl_in_outer_ctx, at omp-low.c:4134)
      
      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.
      
      From-SVN: r244922
      David Sherwood committed
    • re PR target/70465 (Poor code for x87 asm) · 1a27fab1
      	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.
      
      From-SVN: r244921
      Jakub Jelinek committed
    • update-copyright.py: Add libhsail-rt to self.default_dirs and call self.add_dir on it. · e6d55103
      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.
      
      From-SVN: r244920
      Jakub Jelinek committed
    • update-copyright.py: Add libhsail-rt to self.default_dirs and call self.add_dir on it. · 68edb9ba
      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.
      
      From-SVN: r244919
      Jakub Jelinek committed
    • re PR target/79179 (PowerPC64: -mcpu=power9 creates stxsd with bad offset) · b5aa1281
      [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.
      
      From-SVN: r244917
      Michael Meissner committed
    • vsx-elemrev-4.c: Change expected code generation to accept D-mode memory accesses. · 3b5de3cb
      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.
      
      From-SVN: r244916
      Bill Schmidt committed
    • Daily bump. · f95129c1
      From-SVN: r244915
      GCC Administrator committed
    • decl.c (grokdeclarator): Fix a typo in a comment. · 9f35c953
      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
      
      From-SVN: r244912
      Martin Sebor committed
  2. 25 Jan, 2017 21 commits
    • ChangeLog only update missed in r244910. · dbe81dbe
      From-SVN: r244911
      Martin Sebor committed
    • PR c++/71290 - Flexible array member is not diagnosed with -pedantic · 58feaa5f
      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.
      
      From-SVN: r244910
      Martin Sebor committed
    • re PR c++/78896 ([C++17] Segmentation fault occurs when use variable initialized… · a25608aa
      re PR c++/78896 ([C++17] Segmentation fault occurs when use variable initialized using structured binding with capture-by-ref lambda)
      
      	PR c++/78896
      	* decl.c (cp_finish_decomp): Disallow memberwise decomposition of
      	lambda expressions.
      
      	* g++.dg/cpp1z/decomp24.C: New test.
      
      From-SVN: r244909
      Jakub Jelinek committed
    • re PR c++/77914 (Wrong lambda definition accepted) · 0e343868
      	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.
      
      From-SVN: r244907
      Jakub Jelinek committed
    • vect-24.c: Remove xfail on ARM targets. · 0d098f4b
      	gcc/testsuite
      	* gcc.dg/vect/vect-24.c: Remove xfail on ARM targets.
      
      From-SVN: r244905
      Bin Cheng committed
    • rs6000-c (altivec_overloaded_builtins): Fix order of entries for… · 5332c89e
      rs6000-c (altivec_overloaded_builtins): Fix order of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
      
      
      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
      
      From-SVN: r244904
      Carl Love committed
    • [ARM][testsuite] Force -mcpu=cortex-a57 for vsel* tests. · ed4e59f4
      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.
      
      From-SVN: r244903
      Christophe Lyon committed
    • libhsail-rt: Fix some Autotools issues · 4703b555
      	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.
      
      From-SVN: r244902
      Thomas Schwinge committed
    • Fix "classe" typo in C++ Dialect Options docs · 25b0128e
      	* doc/invoke.texi (C++ Dialect Options): Fix typo.
      
      From-SVN: r244901
      Jonathan Wakely committed
    • PR libstdc++/70607 make proj(T) and conj(T) return complex<T> · 536c221d
      	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.
      
      From-SVN: r244900
      Jonathan Wakely committed
    • re PR testsuite/72850 (FAIL: gcc.dg/tree-ssa/pr69270-3.c scan-tree-dump-times uncprop1 ", 1" 4) · a5d6927f
      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.
      
      From-SVN: r244898
      Richard Biener committed
    • re PR target/69264 (ICE building spidermonkey -mcpu=970 -maltivec -O3:… · c2873892
      re PR target/69264 (ICE building spidermonkey -mcpu=970 -maltivec -O3: rs6000_builtin_vectorization_cost, at config/rs6000/rs6000.c:4350)
      
      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.
      
      From-SVN: r244897
      Richard Biener committed
    • Add svn:executable property. · b3f1c7e9
      From-SVN: r244896
      Jakub Jelinek committed
    • re PR other/79046 (g++ -print-file-name=plugin uses full version number in path) · c48dc2cd
      	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.
      
      From-SVN: r244895
      Jakub Jelinek committed
    • [ARM] PR target/79145 Fix xordi3 expander for immediate operands in iWMMXt · 9aa483a2
      	PR target/79145
      	* config/arm/arm.md (xordi3): Force constant operand into a register
      	for TARGET_IWMMXT.
      
      	* gcc.target/arm/pr79145.c: New test.
      
      From-SVN: r244894
      Kyrylo Tkachov committed
    • [doc] Correct optimisation levels documentation for -fstore-merging · a5a22027
      	* doc/invoke.texi (-fstore-merging): Correct default optimization
      	levels at which it is enabled.
      	(-O): Move -fstore-merging from list to...
      	(-O2): ... Here.
      
      From-SVN: r244893
      Kyrylo Tkachov committed
    • re PR debug/78363 (ICE in in force_type_die, at dwarf2out.c:24864) · 5c628c3e
      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.
      
      From-SVN: r244892
      Richard Biener committed
    • [testsuite] Require shared effective target for some lto.exp tests · 9078cd36
      	* gcc.dg/lto/pr54709_0.c: Require 'shared' effective target.
      	* gcc.dg/lto/pr61526_0.c: Likewise.
      	* gcc.dg/lto/pr64415_0.c: Likewise.
      
      From-SVN: r244891
      Kyrylo Tkachov committed
    • re PR lto/79061 ([LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer:… · e5e391d6
      re PR lto/79061 ([LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initialization-order-fiasco")
      
      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.
      
      From-SVN: r244890
      Maxim Ostapenko committed
    • compiler: improvements for type alias handling · 98e20758
          
          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
      
      From-SVN: r244889
      Ian Lance Taylor committed
    • Daily bump. · 49d4fa43
      From-SVN: r244888
      GCC Administrator committed
  3. 24 Jan, 2017 3 commits