]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
8 years agoUpdate ChangeLog and version files for release releases/gcc-6.4.0
Richard Biener [Tue, 4 Jul 2017 07:22:46 +0000 (07:22 +0000)] 
Update ChangeLog and version files for release

From-SVN: r249945

8 years ago2017-07-04 Richard Biener <rguenther@suse.de>
Richard Biener [Tue, 4 Jul 2017 07:15:57 +0000 (07:15 +0000)] 
2017-07-04  Richard Biener  <rguenther@suse.de>

        Update displayed copyright years to include 2017.

From-SVN: r249944

8 years agoDaily bump.
GCC Administrator [Tue, 4 Jul 2017 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249940

8 years agobackport: rs6000.md (add<mode>3): Use reg_or_subregno instead of REGNO.
Segher Boessenkool [Mon, 3 Jul 2017 12:33:00 +0000 (14:33 +0200)] 
backport: rs6000.md (add<mode>3): Use reg_or_subregno instead of REGNO.

Backport from trunk:

2017-06-15  Segher Boessenkool  <segher@kernel.crashing.org>

* config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
of REGNO.

From-SVN: r249906

8 years agoDaily bump.
GCC Administrator [Mon, 3 Jul 2017 00:16:33 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249890

8 years agoDaily bump.
GCC Administrator [Sun, 2 Jul 2017 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249874

8 years agoDaily bump.
GCC Administrator [Sat, 1 Jul 2017 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249859

8 years agobackport: re PR target/80510 (Optimize Power7/power8 Altivec load/stores)
Michael Meissner [Fri, 30 Jun 2017 12:09:12 +0000 (12:09 +0000)] 
backport: re PR target/80510 (Optimize Power7/power8 Altivec load/stores)

[gcc]
2017-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>

Backport from mainline
2017-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/80510
* config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
32-bit, since indexed is not valid for DImode.
(mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
(define_peephole2 for Altivec d-form load): Add 32-bit support.
(define_peephole2 for Altivec d-form store): Likewise.

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

Backport from mainline
2017-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/80510
* gcc.target/powerpc/pr80510-1.c: Allow test to run on 32-bit.
* gcc.target/powerpc/pr80510-2.c: Likewise.

From-SVN: r249836

8 years agoDaily bump.
GCC Administrator [Fri, 30 Jun 2017 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249824

8 years agobackport: re PR sanitizer/78992 (Incorrect sigaction definition on 32-bit sparc)
Eric Botcazou [Thu, 29 Jun 2017 18:26:45 +0000 (18:26 +0000)] 
backport: re PR sanitizer/78992 (Incorrect sigaction definition on 32-bit sparc)

Backport from mainline
2017-01-10  James Clarke  <jrtc27@jrtc27.com>

PR sanitizer/78992
* sanitizer_common/sanitizer_platform_limits_posix.h
(struct __sanitizer_sigaction): Cherry-pick upstream r291561.

2016-11-30  Maxim Ostapenko  <m.ostapenko@samsung.com>

PR sanitizer/78532
* sanitizer_common/sanitizer_platform_limits_posix.h
(__sanitizer_sigaction): Adjust for sparc targets and various Glibc
versions.

From-SVN: r249807

8 years agoDaily bump.
GCC Administrator [Thu, 29 Jun 2017 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249767

8 years agoDaily bump.
GCC Administrator [Wed, 28 Jun 2017 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249715

8 years agoBackport PRs 60818, 61729, 73650, 77850, 80382, 80429, 80618, 80692, 80902, 80966
Segher Boessenkool [Tue, 27 Jun 2017 17:11:01 +0000 (19:11 +0200)] 
Backport PRs 60818, 61729, 73650, 77850, 80382, 80429, 80618, 80692, 80902, 80966

Backports from trunk:

2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
PR rtl-optimization/73650
* lra-constraints.c (simple_move_p): If the insn is multiple_sets
it is not a simple move.

2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
PR target/61729
PR target/77850
* config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
read from, for big endian.

2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
PR rtl-optimization/60818
* simplify-rtx.c (simplify_binary_operation_1): Do not replace
a compare of comparisons with the thing compared if this results
in a different machine mode.

2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
PR target/80382
* config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
for quad_address_p for TImode, instead of just not indexed_address.

2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
PR rtl-optimization/80429
* ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
are only used in debug insns.

2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
PR middle-end/80692
* real.c (do_compare): Give decimal_do_compare preference over
comparing just the signs.

2017-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
PR target/80618
* config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
splitter result in the canonical way.

2017-06-09  Segher Boessenkool  <segher@kernel.crashing.org>
PR target/80966
* config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
gen_add3_insn did not fail.
* config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
r0, construct that number in a temporary reg and add that reg to r0.
If asked to put the result in r0 as well, fail.

2017-06-23  Segher Boessenkool  <segher@kernel.crashing.org>
PR middle-end/80902
* builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
a call, force the call to not be a tail call.

gcc/testsuite/
Backports from trunk:

2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
PR rtl-optimization/60818
* gcc.c-torture/compile/pr60818.c: New testcase.

2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
PR middle-end/80692
* gcc.c-torture/execute/pr80692.c: New testcase.

2017-06-09  Segher Boessenkool  <segher@kernel.crashing.org>
PR target/80966
* gcc.target/powerpc/stack-limit.c: New testcase.

From-SVN: r249700

8 years agoDaily bump.
GCC Administrator [Tue, 27 Jun 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249671

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

From-SVN: r249635

8 years agoDaily bump.
GCC Administrator [Sun, 25 Jun 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249630

8 years agore PR sanitizer/80348 (UBSAN: compile time crash in ubsan_instrument_division)
Marek Polacek [Sat, 24 Jun 2017 10:59:00 +0000 (10:59 +0000)] 
re PR sanitizer/80348 (UBSAN: compile time crash in ubsan_instrument_division)

PR sanitizer/80348
* typeck.c (cp_build_binary_op): Use NULL_TREE instead of NULL.  Set
ORIG_TYPE earlier and not only when shortening.

* g++.dg/ubsan/div-by-zero-3.C: New test.

From-SVN: r249624

8 years agore PR sanitizer/80348 (UBSAN: compile time crash in ubsan_instrument_division)
Marek Polacek [Sat, 24 Jun 2017 10:57:01 +0000 (10:57 +0000)] 
re PR sanitizer/80348 (UBSAN: compile time crash in ubsan_instrument_division)

PR sanitizer/80348
* typeck.c (cp_build_binary_op): Convert COP[01] to ORIG_TYPE.

* g++.dg/ubsan/div-by-zero-2.C: New test.

From-SVN: r249623

8 years agoPR c++/80244 - ICE with attribute in template alias.
Marek Polacek [Sat, 24 Jun 2017 10:53:48 +0000 (10:53 +0000)] 
PR c++/80244 - ICE with attribute in template alias.

* tree.c (strip_typedefs): Handle UNDERLYING_TYPE.

* g++.dg/cpp0x/alias-decl-59.C: New test.

From-SVN: r249622

8 years agoPR c++/80241 - ICE with alignas pack expansion.
Marek Polacek [Sat, 24 Jun 2017 10:50:08 +0000 (10:50 +0000)] 
PR c++/80241 - ICE with alignas pack expansion.

* error.c (dump_expr): Handle TREE_LIST.
* parser.c (cp_parser_std_attribute_list): Return error_mark if
make_pack_expansion returns an error.

* g++.dg/cpp0x/alignas11.C: New test.

From-SVN: r249621

8 years agoDaily bump.
GCC Administrator [Sat, 24 Jun 2017 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249617

8 years ago[ARM] Rename FPSCR builtins to correct names
Thomas Preud'homme [Fri, 23 Jun 2017 16:13:02 +0000 (16:13 +0000)] 
[ARM] Rename FPSCR builtins to correct names

2017-06-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    Backport from mainline
    2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>

    gcc/
    * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
    __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
    __builtin_arm_stfscr to __builtin_arm_set_fpscr.

    gcc/testsuite/
    * gcc.target/arm/fpscr.c: New file.

From-SVN: r249597

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

From-SVN: r249581

8 years agobackport: [multiple changes]
Richard Biener [Thu, 22 Jun 2017 11:46:45 +0000 (11:46 +0000)] 
backport: [multiple changes]

2017-06-22  Richard Biener  <rguenther@suse.de>

Backport from mainline
2017-02-17  Richard Biener  <rguenther@suse.de>

PR tree-optimization/79552
* tree-ssa-structalias.c (visit_loadstore): Properly verify
default defs.

2016-04-18  Richard Biener  <rguenther@suse.de>

PR tree-optimization/43434
* tree-ssa-structalias.c (struct vls_data): New.
(visit_loadstore): Handle all pointer-based accesses.
(compute_dependence_clique): Compute a bitmap of restrict tags
assigned bases and pass it to visit_loadstore.

* gcc.dg/vect/pr43434.c: New testcase.
* c-c++-common/goacc/kernels-alias-3.c: Adjust.
* c-c++-common/goacc/kernels-alias-4.c: Likewise.
* c-c++-common/goacc/kernels-alias-5.c: Likewise.
* c-c++-common/goacc/kernels-alias-6.c: Likewise.
* c-c++-common/goacc/kernels-alias-7.c: Likewise.
* c-c++-common/goacc/kernels-alias-8.c: Likewise.
* gcc.dg/gomp/pr68640.c: Likewise.
* gfortran.dg/goacc/kernels-alias-3.f95: Likewise.
* gfortran.dg/goacc/kernels-alias-4.f95: Likewise.

From-SVN: r249552

8 years agobackport: re PR c++/81154 (OpenMP with shared variable in a template class crash)
Jakub Jelinek [Thu, 22 Jun 2017 11:34:39 +0000 (13:34 +0200)] 
backport: re PR c++/81154 (OpenMP with shared variable in a template class crash)

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

PR c++/81154
* semantics.c (handle_omp_array_sections_1, finish_omp_clauses):
Complain about t not being a variable if t is OVERLOAD even
when processing_template_decl.

* g++.dg/gomp/pr81154.C: New test.

From-SVN: r249539

8 years agobackport: re PR c++/81130 (ICE OpenMP shared clause in gimplify_var_or_parm_decl...
Jakub Jelinek [Thu, 22 Jun 2017 11:24:43 +0000 (13:24 +0200)] 
backport: re PR c++/81130 (ICE OpenMP shared clause in gimplify_var_or_parm_decl, at gimplify.c:2584)

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

PR c++/81130
* gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
with ctors/dtors if GOVD_SHARED is set.

* testsuite/libgomp.c++/pr81130.C: New test.

From-SVN: r249527

8 years agobackport: re PR c++/81130 (ICE OpenMP shared clause in gimplify_var_or_parm_decl...
Jakub Jelinek [Thu, 22 Jun 2017 11:23:19 +0000 (13:23 +0200)] 
backport: re PR c++/81130 (ICE OpenMP shared clause in gimplify_var_or_parm_decl, at gimplify.c:2584)

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

PR c++/81130
* gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
with ctors/dtors if GOVD_SHARED is set.

* testsuite/libgomp.c++/pr81130.C: New test.

From-SVN: r249526

8 years agoBackport r248729
Martin Liska [Thu, 22 Jun 2017 11:20:29 +0000 (13:20 +0200)] 
Backport r248729

2017-06-22  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-05-31  Martin Liska  <mliska@suse.cz>

PR target/79155
* config/i386/cpuid.h: Fix typo in a comment in cpuid.h.

From-SVN: r249525

8 years agoBackport r248647
Martin Liska [Thu, 22 Jun 2017 11:20:15 +0000 (13:20 +0200)] 
Backport r248647

2017-06-22  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-05-30  Martin Liska  <mliska@suse.cz>

PR other/80909
* auto-profile.c (get_function_decl_from_block): Fix
parenthesis.

From-SVN: r249524

8 years agoBackport r248489
Martin Liska [Thu, 22 Jun 2017 11:19:55 +0000 (13:19 +0200)] 
Backport r248489

2017-06-22  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-05-26  Martin Liska  <mliska@suse.cz>

PR ipa/80663
* params.def: Bound partial-inlining-entry-probability param.
2017-06-22  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-05-26  Martin Liska  <mliska@suse.cz>

PR ipa/80663
* g++.dg/ipa/pr80212.C: Remove the test as it does not longer
split at the problematic spot.
* gcc.dg/ipa/pr48195.c: Change 101 to 100 as 101 is no longer
a valid value of the param.

From-SVN: r249523

8 years agoBackport r248089
Martin Liska [Thu, 22 Jun 2017 11:18:57 +0000 (13:18 +0200)] 
Backport r248089

2017-06-22  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-05-16  Martin Liska  <mliska@suse.cz>

PR ipa/79849.
PR ipa/79850.
* ipa-devirt.c (warn_types_mismatch): Fix typo.
(odr_types_equivalent_p): Likewise.

From-SVN: r249522

8 years agoBackport r248060
Martin Liska [Thu, 22 Jun 2017 11:18:36 +0000 (13:18 +0200)] 
Backport r248060

2017-06-22  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-05-15  Martin Liska  <mliska@suse.cz>

PR driver/31468
* gcc.c (process_command): Do not allow empty argument of -o option.

From-SVN: r249521

8 years agoBackport r247507
Martin Liska [Thu, 22 Jun 2017 11:18:22 +0000 (13:18 +0200)] 
Backport r247507

2017-06-22  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-05-02  Martin Liska  <mliska@suse.cz>

* doc/gcov.texi: Add missing preposition.
* gcov.c (function_info::function_info): Properly fill up
all member variables.

From-SVN: r249520

8 years agoBackport r247485
Martin Liska [Thu, 22 Jun 2017 11:17:56 +0000 (13:17 +0200)] 
Backport r247485

2017-06-22  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-05-02  Martin Liska  <mliska@suse.cz>

PR other/80589
* common.opt: Fix typo.
* doc/invoke.texi: Likewise.

From-SVN: r249519

8 years agoBackport r247377
Martin Liska [Thu, 22 Jun 2017 11:17:38 +0000 (13:17 +0200)] 
Backport r247377

2017-06-22  Martin Liska  <mliska@suse.cz>

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

* doc/gcov.texi: Enhance documentation of gcov.

From-SVN: r249518

8 years agoBackport r247376
Martin Liska [Thu, 22 Jun 2017 11:17:15 +0000 (13:17 +0200)] 
Backport r247376

2017-06-22  Martin Liska  <mliska@suse.cz>

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

* doc/gcov.texi: Sort options in alphabetic order.
* doc/gcov-dump.texi: Likewise.
* doc/gcov-tool.texi: Likewise.
* gcov.c (print_usage): Likewise.
* gcov-dump.c (print_usage): Likewise.
* gcov-tool.c (print_merge_usage_message): Likewise.
(print_rewrite_usage_message): Likewise.
(print_overlap_usage_message): Likewise.

From-SVN: r249517

8 years agoBackport r247375
Martin Liska [Thu, 22 Jun 2017 11:16:56 +0000 (13:16 +0200)] 
Backport r247375

2017-06-22  Martin Liska  <mliska@suse.cz>

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

PR gcov-profile/53915
* gcov.c (format_gcov): Print 'NAN %' when top > bottom.

From-SVN: r249516

8 years agoBackport r247371
Martin Liska [Thu, 22 Jun 2017 11:16:39 +0000 (13:16 +0200)] 
Backport r247371

2017-06-22  Martin Liska  <mliska@suse.cz>

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

PR driver/56469
* coverage.c (coverage_remove_note_file): New function.
* coverage.h: Declare the function.
* toplev.c (finalize): Clean if an error has been seen.

From-SVN: r249515

8 years agoBackport r246899
Martin Liska [Thu, 22 Jun 2017 11:16:16 +0000 (13:16 +0200)] 
Backport r246899

2017-06-22  Martin Liska  <mliska@suse.cz>

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

PR lto/69953
* ipa-visibility.c (non_local_p): Fix typos.
(localize_node): When localizing symbol in same comdat group,
dissolve the group only when we know external symbols are going
to be privatized.
(function_and_variable_visibility): Do not localize DECL_EXTERNAL.

From-SVN: r249514

8 years agoBackport r244529
Martin Liska [Thu, 22 Jun 2017 11:15:42 +0000 (13:15 +0200)] 
Backport r244529

2017-06-22  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-01-17  Nathan Sidwell  <nathan@acm.org>

* ipa-visibility.c (localize_node): New function, broken out of ...
(function_and_variable_visibility): ... here. Call it.

From-SVN: r249513

8 years agoBackport r244156
Martin Liska [Thu, 22 Jun 2017 11:14:49 +0000 (13:14 +0200)] 
Backport r244156

2017-06-22  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-01-06  Nathan Sidwell  <nathan@acm.org>

* ipa-visibility.c (function_and_variable_visibility): Reformat
comments and long lines.  Remove extrneous if.
* symtab.c (symtab_node::make_decl_local): Fix code format.
(symtab_node::set_section_for_node): Fix comment typo.
2017-06-22  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-01-06  Nathan Sidwell  <nathan@acm.org>

* lto-partition.c (lto_balanced_map): Reformat/respell comment.
(may_need_named_section_p): Likewise.
(rename_statics): Likewise.
(lto_promote_cross_file_statics): Likewise.

From-SVN: r249512

8 years agoBackport r241380
Martin Liska [Thu, 22 Jun 2017 11:14:13 +0000 (13:14 +0200)] 
Backport r241380

2017-06-22  Martin Liska  <mliska@suse.cz>

Backport from mainline
2016-10-20  Martin Liska  <mliska@suse.cz>

PR lto/78049
* lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
comparison with STMT_UID_NOT_IN_RANGE.
(fixup_call_stmt_edges): Do not fixup edges of a thunk in
LTRANS.

From-SVN: r249511

8 years agobackport: re PR sanitizer/80973 (ICE with lambda and -fsanitize=undefined)
Jakub Jelinek [Thu, 22 Jun 2017 11:13:29 +0000 (13:13 +0200)] 
backport: re PR sanitizer/80973 (ICE with lambda and -fsanitize=undefined)

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

PR c++/80973
* cp-gimplify.c (cp_genericize_r): Don't instrument MEM_REF second
argument even if it has REFERENCE_TYPE.

* g++.dg/ubsan/pr80973.C: New test.

From-SVN: r249510

8 years agobackport: re PR c++/80984 (ICE with label/variable ambiguity)
Jakub Jelinek [Thu, 22 Jun 2017 11:12:43 +0000 (13:12 +0200)] 
backport: re PR c++/80984 (ICE with label/variable ambiguity)

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

PR c++/80984
* cp-gimplify.c (cp_genericize): Only look for VAR_DECLs in
BLOCK_VARS (outer) chain.
(cxx_omp_const_qual_no_mutable): Likewise.

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

From-SVN: r249509

8 years agobackport: re PR libgomp/80822 (libgomp incorrect affinity when OMP_PLACES=threads)
Jakub Jelinek [Thu, 22 Jun 2017 11:11:43 +0000 (13:11 +0200)] 
backport: re PR libgomp/80822 (libgomp incorrect affinity when OMP_PLACES=threads)

Backported from mainline
2017-05-30  Jakub Jelinek  <jakub@redhat.com>

PR libgomp/80822
* config/linux/affinity.c (gomp_affinity_init_level_1): New function.
(gomp_affinity_init_level): Use it.  Always analyze the core and thread
sibling lists, depending on level just pick up what CPUs to put
together into a place vs. whether add multiple ordered places.

From-SVN: r249508

8 years agobackport: re PR fortran/80918 (Assumed size whole array rejected in depend clause)
Jakub Jelinek [Thu, 22 Jun 2017 11:09:58 +0000 (13:09 +0200)] 
backport: re PR fortran/80918 (Assumed size whole array rejected in depend clause)

Backported from mainline
2017-06-02  Jakub Jelinek  <jakub@redhat.com>

PR fortran/80918
* openmp.c (resolve_omp_clauses): Fix a typo.

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

From-SVN: r249507

8 years agobackport: re PR middle-end/80809 (Multi-free error for variable size array used withi...
Jakub Jelinek [Thu, 22 Jun 2017 11:09:08 +0000 (13:09 +0200)] 
backport: re PR middle-end/80809 (Multi-free error for variable size array used within OpenMP task)

Backported from mainline
2017-05-22  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/80809
* omp-low.c (finish_taskreg_remap): New function.
(finish_taskreg_scan): If unit size of ctx->record_type
is non-constant, unshare the size expression and replace
decls in it with possible outer var refs.

* testsuite/libgomp.c/pr80809-2.c: New test.
* testsuite/libgomp.c/pr80809-3.c: New test.

From-SVN: r249506

8 years agobackport: re PR middle-end/80809 (Multi-free error for variable size array used withi...
Jakub Jelinek [Thu, 22 Jun 2017 11:08:25 +0000 (13:08 +0200)] 
backport: re PR middle-end/80809 (Multi-free error for variable size array used within OpenMP task)

Backported from mainline
2017-05-22  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/80809
* gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
GOVD_SHARED rather than GOVD_PRIVATE with it.
(gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.

* testsuite/libgomp.c/pr80809-1.c: New test.

From-SVN: r249505

8 years agobackport: re PR middle-end/80853 (OpenMP ICE in build_outer_var_ref with array reduction)
Jakub Jelinek [Thu, 22 Jun 2017 11:07:44 +0000 (13:07 +0200)] 
backport: re PR middle-end/80853 (OpenMP ICE in build_outer_var_ref with array reduction)

Backported from mainline
2017-05-22  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/80853
* omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
as last argument to build_outer_var_ref for pointer bases of array
section reductions.

* testsuite/libgomp.c/pr80853.c: New test.

From-SVN: r249504

8 years agobackport: [multiple changes]
Richard Biener [Thu, 22 Jun 2017 07:30:03 +0000 (07:30 +0000)] 
backport: [multiple changes]

2017-06-22  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-07  Richard Biener  <rguenther@suse.de>

PR middle-end/80341
* tree.c (get_unwidened): Also handle ! for_type case for
INTEGER_CSTs.
* convert.c (do_narrow): Split out from ...
(convert_to_integer_1): ... here.  Do not pass final truncation
type to get_unwidened for TRUNC_DIV_EXPR.

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

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

PR middle-end/80281
* match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
arithmetic done for the negate or the plus.  Simplify.
(A - (-B) -> A + B): Likewise.
* fold-const.c (split_tree): Make sure to not negate pointers.

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

From-SVN: r249499

8 years agobackport: [multiple changes]
Richard Biener [Thu, 22 Jun 2017 07:22:13 +0000 (07:22 +0000)] 
backport: [multiple changes]

2017-06-22  Richard Biener  <rguenther@suse.de>

Backport from mainline
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.

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.

2017-02-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/69823
* graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
Properly enumerate all BBs in the region.  Use auto_vec.

* gcc.dg/graphite/pr69823.c: New testcase.

From-SVN: r249498

8 years agobackport: re PR target/80510 (Optimize Power7/power8 Altivec load/stores)
Michael Meissner [Thu, 22 Jun 2017 00:56:55 +0000 (00:56 +0000)] 
backport: re PR target/80510 (Optimize Power7/power8 Altivec load/stores)

2017-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from mainline
PR target/80510
* gcc.target/powerpc/pr80510-1.c: Restrict test to 64-bit until
32-bit support is added.  Change ITYPE size to 64-bit integer.
* gcc.target/powerpc/pr80510-2.c: Likewise.

From-SVN: r249493

8 years agoDaily bump.
GCC Administrator [Thu, 22 Jun 2017 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249490

8 years agobackport: re PR target/80718 (GCC generates slow code for offsettable vec_duplicate)
Michael Meissner [Wed, 21 Jun 2017 18:02:37 +0000 (18:02 +0000)] 
backport: re PR target/80718 (GCC generates slow code for offsettable vec_duplicate)

[gcc]
2017-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>

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

PR target/80718
* config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Prefer
VSX registers over GPRs, particularly on ISA 2.07 which does not
have the MTVSRDD instruction.

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

PR target/80510
* config/rs6000/predicates.md (simple_offsettable_mem_operand):
New predicate.

* config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
(define_peephole2 for Altivec d-form load): Add peepholes to catch
cases where the register allocator uses a move and an offsettable
memory operation to/from a FPR register on ISA 2.06/2.07.
(define_peephole2 for Altivec d-form store): Likewise.

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

PR target/68163
* config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
are now unused after splitting mov{sf,sd}_hardfloat.
(f32_lr2): Likewise.
(f32_lm): Likewise.
(f32_lm2): Likewise.
(f32_li): Likewise.
(f32_li2): Likewise.
(f32_lv): Likewise.
(f32_sr): Likewise.
(f32_sr2): Likewise.
(f32_sm): Likewise.
(f32_sm2): Likewise.
(f32_si): Likewise.
(f32_si2): Likewise.
(f32_sv): Likewise.
(f32_dm): Likewise.
(f32_vsx): Likewise.
(f32_av): Likewise.
(mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
For movsf, order stores so the VSX stores occur before the GPR
store which encourages the register allocator to use a traditional
FPR instead of a GPR.  For movsd, order the stores so that the GPR
store comes before the VSX stores to allow the power6 to work.
This is due to the power6 not having a 32-bit integer store
instruction from a FPR.
(movsf_hardfloat): Likewise.
(movsd_hardfloat): Likewise.

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

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

PR target/80718
* gcc.target/powerpc/pr80718.c: New test.

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

PR target/80510
* gcc.target/powerpc/pr80510-1.c: New test.
* gcc.target/powerpc/pr80510-2.c: Likewise.

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

PR target/68163
* gcc.target/powerpc/pr68163.c: New test.

From-SVN: r249466

8 years agodarwin-driver.c (darwin_driver_init): Const-correctness fixes for first_period and...
Jeff Law [Wed, 21 Jun 2017 16:03:07 +0000 (10:03 -0600)] 
darwin-driver.c (darwin_driver_init): Const-correctness fixes for first_period and second_period variables.

2017-06-21  Jeff Law  <law@redhat.com>

* config/darwin-driver.c (darwin_driver_init): Const-correctness
fixes for first_period and second_period variables.

From-SVN: r249460

8 years agoDaily bump.
GCC Administrator [Wed, 21 Jun 2017 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249430

8 years agoDaily bump.
GCC Administrator [Tue, 20 Jun 2017 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249392

8 years agoBackport: [Patch ARM] Fix PR71778
James Greenhalgh [Mon, 19 Jun 2017 17:12:12 +0000 (17:12 +0000)] 
Backport: [Patch ARM] Fix PR71778

gcc/

PR target/71778
* config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
if given a non-constant argument for an intrinsic which requires a
constant.

gcc/testsuite/

PR target/71778
* gcc.target/arm/pr71778.c: New.

From-SVN: r249380

8 years agoPR c++/70844 - -Wuseless-cast and inheriting constructor.
Jason Merrill [Mon, 19 Jun 2017 16:21:40 +0000 (12:21 -0400)] 
PR c++/70844 - -Wuseless-cast and inheriting constructor.

* method.c (forward_parm): Suppress warn_useless_cast.

From-SVN: r249378

8 years agoDaily bump.
GCC Administrator [Mon, 19 Jun 2017 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249354

8 years agoDaily bump.
GCC Administrator [Sun, 18 Jun 2017 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249341

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

From-SVN: r249314

8 years agoFix std::wbuffer_convert::sync()
Jonathan Wakely [Fri, 16 Jun 2017 14:09:36 +0000 (15:09 +0100)] 
Fix std::wbuffer_convert::sync()

* include/bits/locale_conv.h (wbuffer_convert::sync): Fix condition.
* testsuite/22_locale/conversions/buffer/2.cc: New.

From-SVN: r249257

8 years agoBackport libstdc++ doc improvements from mainline
Jonathan Wakely [Fri, 16 Jun 2017 12:41:51 +0000 (13:41 +0100)] 
Backport libstdc++ doc improvements from mainline

* doc/xml/manual/appendix_contributing.xml: Link to the list of bad
names, and link to the test docs and note higher DejaGnu version
requirement.
* doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
* doc/xml/manual/mt_allocator.xml: Likewise.
* doc/html/*: Regenerate.

From-SVN: r249252

8 years agoFix missing returns in libstdc++ header and tests
Jonathan Wakely [Fri, 16 Jun 2017 12:41:45 +0000 (13:41 +0100)] 
Fix missing returns in libstdc++ header and tests

* include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
return statement.
* testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
missing return statements.
* testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
Likewise.

From-SVN: r249251

8 years agoDaily bump.
GCC Administrator [Fri, 16 Jun 2017 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249231

8 years agore PR rtl-optimization/80474 (ipa-cp wrongly adding LO(symbol) twice)
Eric Botcazou [Thu, 15 Jun 2017 13:25:56 +0000 (13:25 +0000)] 
re PR rtl-optimization/80474 (ipa-cp wrongly adding LO(symbol) twice)

PR rtl-optimization/80474
* reorg.c (update_block): Do not ignore instructions in a delay slot.

From-SVN: r249221

8 years agoDaily bump.
GCC Administrator [Thu, 15 Jun 2017 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249210

8 years ago* config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
Eric Botcazou [Wed, 14 Jun 2017 07:46:03 +0000 (07:46 +0000)] 
* config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.

From-SVN: r249185

8 years agoDaily bump.
GCC Administrator [Wed, 14 Jun 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249177

8 years agoDaily bump.
GCC Administrator [Tue, 13 Jun 2017 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249140

8 years agoDaily bump.
GCC Administrator [Mon, 12 Jun 2017 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249108

8 years agoDaily bump.
GCC Administrator [Sun, 11 Jun 2017 00:16:24 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249100

8 years agoDaily bump.
GCC Administrator [Sat, 10 Jun 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249085

8 years agosparc: Further adjustments for alloca epilogue blockage.
David S. Miller [Fri, 9 Jun 2017 19:24:51 +0000 (19:24 +0000)] 
sparc: Further adjustments for alloca epilogue blockage.

gcc/

PR target/80968
* config/sparc/sparc.c (sparc_flat_expand_epilogue): Don't
        emit frame blockage here.
(sparc_expand_epilogue): Do it here.
* config/sparc/sparc.md (return expander): Emit frame blockage
for alloca here too.

From-SVN: r249074

8 years agobackport: re PR fortran/70601 ([OOP] ICE on procedure pointer component call)
Janus Weil [Fri, 9 Jun 2017 18:10:48 +0000 (20:10 +0200)] 
backport: re PR fortran/70601 ([OOP] ICE on procedure pointer component call)

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

Backport from trunk
PR fortran/70601
* trans-expr.c (gfc_conv_procedure_call): Fix detection of allocatable
function results.

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

Backport from trunk
PR fortran/70601
* gfortran.dg/proc_ptr_comp_50.f90: New test.

From-SVN: r249067

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

From-SVN: r249043

8 years agore PR c/81006 (ICE with zero-size array and #pragma omp task depend)
Jakub Jelinek [Thu, 8 Jun 2017 19:13:51 +0000 (21:13 +0200)] 
re PR c/81006 (ICE with zero-size array and #pragma omp task depend)

PR c/81006
* c-typeck.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE
to sizetype before size_binop.

* semantics.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE
to sizetype before size_binop.

* c-c++-common/gomp/pr81006.c: New test.

From-SVN: r249037

8 years agore PR c++/81011 (ICE with #pragma omp task and inaccessible copy-constructor)
Jakub Jelinek [Thu, 8 Jun 2017 19:04:40 +0000 (21:04 +0200)] 
re PR c++/81011 (ICE with #pragma omp task and inaccessible copy-constructor)

PR c++/81011
* cp-gimplify.c (cxx_omp_finish_clause): When changing clause
to OMP_CLAUSE_SHARED, also clear OMP_CLAUSE_SHARED_FIRSTPRIVATE
and OMP_CLAUSE_SHARED_READONLY flags.

* g++.dg/gomp/pr81011.C: New test.

From-SVN: r249034

8 years agoDaily bump.
GCC Administrator [Thu, 8 Jun 2017 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249001

8 years agoPR libstdc++/81002 fix std::basic_regex range constructor
Jonathan Wakely [Wed, 7 Jun 2017 16:51:00 +0000 (17:51 +0100)] 
PR libstdc++/81002 fix std::basic_regex range constructor

PR libstdc++/81002
* include/bits/regex_compiler.h (__compile_nfa): Add template argument
list to specify traits type.
* testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New.

From-SVN: r248992

8 years agoDaily bump.
GCC Administrator [Wed, 7 Jun 2017 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r248940

8 years agore PR target/80968 (stack frame reference allowed in delay slot of return instruction)
David S. Miller [Tue, 6 Jun 2017 18:52:22 +0000 (18:52 +0000)] 
re PR target/80968 (stack frame reference allowed in delay slot of return instruction)

gcc/

PR target/80968
* config/sparc/sparc.c (sparc_expand_prologue): Emit frame
blockage if function uses alloca.

gcc/testsuite/

* gcc.target/sparc/sparc-ret-3.c: New test.

From-SVN: r248930

8 years agoBackport to gcc-6-branch of r246004.
Toma Tabacu [Tue, 6 Jun 2017 11:50:48 +0000 (11:50 +0000)] 
Backport to gcc-6-branch of r246004.

gcc/

  Backported from mainline
  2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>

  * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
  Document rdynamic.

gcc/testsuite/

  Backported from mainline
  2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>

  * g++.dg/lto/pr69589_0.C: Add dg-require-effective-target for
  rdynamic.
  * lib/target-supports.exp (check_effective_target_rdynamic):
  New proc.

From-SVN: r248916

8 years agoDaily bump.
GCC Administrator [Tue, 6 Jun 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r248906

8 years agoDaily bump.
GCC Administrator [Mon, 5 Jun 2017 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r248865

8 years agoDaily bump.
GCC Administrator [Sun, 4 Jun 2017 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r248857

8 years agore PR fortran/65542 (SPREAD intrinsic incorrectly accepted in initialization expressi...
Thomas Koenig [Sat, 3 Jun 2017 11:26:38 +0000 (11:26 +0000)] 
re PR fortran/65542 (SPREAD intrinsic incorrectly accepted in initialization expressions with -std=f95)

2017-05-03  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/65542
Backport from trunk
* intrinsic.c (gfc_intrinsic_func_interface):  Return an error
for -std=f95 for disallowed transformational functions in
initialization expressions.

2017-05-03  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/65542
Backport from trunk
* gfortran.dg/spread_init_expr_2.f90:  New test case.

From-SVN: r248855

8 years agoDaily bump.
GCC Administrator [Sat, 3 Jun 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r248849

8 years agore PR fortran/80904 (Matmul result allocated to wrong size)
Thomas Koenig [Fri, 2 Jun 2017 19:29:29 +0000 (19:29 +0000)] 
re PR fortran/80904 (Matmul result allocated to wrong size)

2017-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/80904
Backport from trunk
* frontend-passes.c (matmul_lhs_realloc):  Correct
allocation size for case A1B2.

2017-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/80904
Backport from trunk
* gfortran.dg/matmul_bounds_12.f90:  New test.

From-SVN: r248845

8 years agoDaily bump.
GCC Administrator [Fri, 2 Jun 2017 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r248808

8 years agobackport: rdseedintrin.h (_rdseed16_step, [...]): Uglify argument names and/or local...
Jakub Jelinek [Thu, 1 Jun 2017 19:38:29 +0000 (21:38 +0200)] 
backport: rdseedintrin.h (_rdseed16_step, [...]): Uglify argument names and/or local variable names in inline functions.

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

* config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
_rdseed64_step): Uglify argument names and/or local variable names
in inline functions.
* config/i386/rtmintrin.h (_xabort): Likewise.
* config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
_mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
_mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
_mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
_mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
_mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
_mm_maskz_ternarylogic_epi32): Likewise.
* config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
__lwpins32, __lwpins64): Likewise.
* config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
_mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
_mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
_mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
_mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
_mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
_mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
_mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
_mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
_mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
_mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
_mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
_mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
_mm256_mask_i64gather_epi32): Likewise.
* config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
* config/i386/ia32intrin.h (__writeeflags): Likewise.
* config/i386/pkuintrin.h (_wrpkru): Likewise.
* config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
_mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
_mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
_mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
_mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
_mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
_mm512_mask_prefetch_i64scatter_ps): Likewise.
* config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
* config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
_mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
_mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
_mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
_mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
_mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
_mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.

From-SVN: r248799

8 years agore PR ada/80921 (cross compiling fails to build Ada shared libraries)
Eric Botcazou [Thu, 1 Jun 2017 10:52:29 +0000 (10:52 +0000)] 
re PR ada/80921 (cross compiling fails to build Ada shared libraries)

PR ada/80921
* configure.ac (default_gnatlib_target): Remove bogus condition.
(have_getipinfo): Tweak.
* configure: Regenerate.

From-SVN: r248787

8 years agoDaily bump.
GCC Administrator [Thu, 1 Jun 2017 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r248768

8 years agoPR c++/80179 - ICE with initialized flexible array member.
Jason Merrill [Wed, 31 May 2017 18:53:57 +0000 (14:53 -0400)] 
PR c++/80179 - ICE with initialized flexible array member.

* constexpr.c (verify_ctor_sanity): Handle flexible array members.

From-SVN: r248758

8 years agoDaily bump.
GCC Administrator [Wed, 31 May 2017 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r248717

8 years agogcc: xtensa: fix fprintf format specifiers
Max Filippov [Wed, 31 May 2017 00:06:11 +0000 (00:06 +0000)] 
gcc: xtensa: fix fprintf format specifiers

HOST_WIDE_INT may not be long as assumed in print_operand and
xtensa_emit_call. Use HOST_WIDE_INT_PRINT_DEC/HOST_WIDE_INT_PRINT_HEX
format strings instead of %ld/0x%lx. This fixes incorrect assembly code
generation by the compiler running on armhf host.

2017-05-30  Max Filippov  <jcmvbkbc@gmail.com>
gcc/
Backport from mainline
2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/xtensa.c (xtensa_emit_call): Use
HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
(print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
format string.

From-SVN: r248715

8 years agoxtensa: Fix PR target/78603
Max Filippov [Wed, 31 May 2017 00:05:38 +0000 (00:05 +0000)] 
xtensa: Fix PR target/78603

2017-05-30  Max Filippov  <jcmvbkbc@gmail.com>
gcc/
Backport from mainline
2016-11-29  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
overhead loop start between a call and its CALL_ARG_LOCATION
note.

From-SVN: r248714

8 years agoxtensa: Fix PR target/78118
Max Filippov [Wed, 31 May 2017 00:05:01 +0000 (00:05 +0000)] 
xtensa: Fix PR target/78118

It started failing after the following commit: 32e90dc6a0cda45 ("PR
rtl-optimization/61047").

The change that made xtensa backend go ICE looks completely unrelated,
and indeed, the issue is caused by the side effect of
compute_frame_size() function call hidden in the
INITIAL_ELIMINATION_OFFSET macro. This call updates the value of the
xtensa_current_frame_size static variable, used in "return" instruction
predicate. Prior to the change the value of xtensa_current_frame_size was
set to 0 after the end of epilogue generation, which enabled the "return"
instruction for the CALL0 ABI, but after the change the additional
INITIAL_ELIMINATION_OFFSET calls make xtensa_current_frame_size non-zero
and "return" pattern unavailable.

Get rid of the global xtensa_current_frame_size and
xtensa_callee_save_size variables by moving them into the
machine_function structure. Implement predicate for the "return" pattern
as a function. Don't communicate completion of epilogue generation
through zeroing of xtensa_current_frame_size, add explicit epilogue_done
variable to the machine_function structure. Don't update stack frame
layout after the completion of reload.

2017-05-30  Max Filippov  <jcmvbkbc@gmail.com>
gcc/
Backport from mainline
2016-11-01  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/xtensa-protos.h
(xtensa_use_return_instruction_p): New prototype.
* config/xtensa/xtensa.c (xtensa_current_frame_size,
xtensa_callee_save_size): Remove.
(struct machine_function): Add new fields: current_frame_size,
callee_save_size, frame_laid_out and epilogue_done.
(compute_frame_size, xtensa_expand_prologue,
xtensa_expand_epilogue): Replace xtensa_callee_save_size with
cfun->machine->callee_save_size and xtensa_current_frame_size
with cfun->machine->current_frame_size.
(compute_frame_size): Update cfun->machine->frame_laid_out and
don't update frame layout after reload completion.
(xtensa_expand_epilogue): Set cfun->machine->epilogue_done
instead of zeroing xtensa_current_frame_size.
(xtensa_use_return_instruction_p): New function.
* config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
declaration.
(INITIAL_ELIMINATION_OFFSET): Use return value of
compute_frame_size instead of xtensa_current_frame_size value.
* config/xtensa/xtensa.md ("return" pattern): Use new predicate
function xtensa_use_return_instruction_p instead of inline code.

From-SVN: r248713

8 years agoxtensa: don't use unwind-dw2-fde-dip with elf targets
Max Filippov [Wed, 31 May 2017 00:04:08 +0000 (00:04 +0000)] 
xtensa: don't use unwind-dw2-fde-dip with elf targets

Define LIB2ADDEH_XTENSA_UNWIND_DW2_FDE to unwind-dw2-fde.c in
xtensa/t-elf and to unwind-dw2-fde-dip.c in xtensa/t-linux and use
LIB2ADDEH_XTENSA_UNWIND_DW2_FDE in LIB2ADDEH definition.

This fixes build for elf target with windowed xtensa core that currently
breaks with the following error message:

  unwind-dw2-fde-dip.c:36:40: fatal error: elf.h: No such file or directory

2017-05-30  Max Filippov  <jcmvbkbc@gmail.com>
libgcc/
Backport from mainline
2016-10-18  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/t-elf (LIB2ADDEH_XTENSA_UNWIND_DW2_FDE): New
definition.
* config/xtensa/t-linux (LIB2ADDEH_XTENSA_UNWIND_DW2_FDE): New
definition.
* config/xtensa/t-windowed (LIB2ADDEH): Use
LIB2ADDEH_XTENSA_UNWIND_DW2_FDE defined by either xtensa/t-elf
or xtensa/t-linux.

From-SVN: r248712