]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
7 years agobackport: re PR libstdc++/80506 (Wrong magic number in std::gamma_distribution)
Edward Smith-Rowland [Mon, 7 May 2018 16:23:29 +0000 (16:23 +0000)] 
backport: re PR libstdc++/80506 (Wrong magic number in std::gamma_distribution)

2018-05-07  Edward Smith-Rowland  <3dw4rd@verizon.net>
    Jonathan Wakely  <jwakely@redhat.com>

Backport from mainline
2018-05-07  Edward Smith-Rowland  <3dw4rd@verizon.net>

PR libstdc++/80506
* include/bits/random.tcc (gamma_distribution::operator()): Fix magic
number used in loop condition.
(gamma_distribution::__generate_impl()): Ditto.

Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
From-SVN: r260006

7 years agoDaily bump.
GCC Administrator [Mon, 7 May 2018 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259984

7 years agore PR fortran/85507 (ICE in gfc_dep_resolver, at fortran/dependency.c:2258)
Andre Vehreschild [Sun, 6 May 2018 11:52:46 +0000 (13:52 +0200)] 
re PR fortran/85507 (ICE in gfc_dep_resolver, at fortran/dependency.c:2258)

gcc/fortran/ChangeLog:

2018-05-06  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/85507
Backport from trunk.
* dependency.c (gfc_dep_resolver): Revert looking at coarray dimension
introduced by r259385.
* trans-intrinsic.c (conv_caf_send): Always report a dependency for
same variables in coarray assignments.

gcc/testsuite/ChangeLog:

2018-05-06  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/85507
Backport from trunk
* gfortran.dg/coarray_dependency_1.f90: New test.
* gfortran.dg/coarray_lib_comm_1.f90: Fix counting caf-expressions.

From-SVN: r259977

7 years agoDaily bump.
GCC Administrator [Sun, 6 May 2018 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259971

7 years agoDaily bump.
GCC Administrator [Sat, 5 May 2018 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259963

7 years agoDaily bump.
GCC Administrator [Fri, 4 May 2018 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259915

7 years agoPR libstdc++/84769 qualify call to std::get<0>
Jonathan Wakely [Thu, 3 May 2018 20:16:34 +0000 (21:16 +0100)] 
PR libstdc++/84769 qualify call to std::get<0>

PR libstdc++/84769
* include/std/variant (visit): Qualify std::get call.

From-SVN: r259910

7 years agoPR libstdc++/85632 fix wraparound in filesystem::space
Jonathan Wakely [Thu, 3 May 2018 20:16:29 +0000 (21:16 +0100)] 
PR libstdc++/85632 fix wraparound in filesystem::space

On 32-bit targets any values over 4GB would wrap and produce the wrong
result.

PR libstdc++/85632 use uintmax_t for arithmetic
* src/filesystem/ops.cc (experimental::filesystem::space): Perform
arithmetic in result type.
* testsuite/experimental/filesystem/operations/space.cc: New.

From-SVN: r259909

7 years agoDaily bump.
GCC Administrator [Thu, 3 May 2018 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259872

7 years agoDaily bump.
GCC Administrator [Wed, 2 May 2018 00:16:24 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259816

7 years agobackport "[openacc] Fix ICE when compiling tile loop containing infinite loop"
Tom de Vries [Tue, 1 May 2018 13:21:19 +0000 (13:21 +0000)] 
backport "[openacc] Fix ICE when compiling tile loop containing infinite loop"

2018-05-01  Tom de Vries  <tom@codesourcery.com>

backport from trunk:
2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
    Tom de Vries  <tom@codesourcery.com>

PR middle-end/84955
* omp-expand.c (expand_oacc_for): Add dummy false branch for
tiled basic blocks without omp continue statements.

* testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
* testsuite/libgomp.oacc-fortran/pr84955.f90: New test.

From-SVN: r259795

7 years ago[arm] PR target/82518: Return false in ARRAY_MODE_SUPPORTED_P for BYTES_BIG_ENDIAN pt2
Kyrylo Tkachov [Tue, 1 May 2018 09:00:39 +0000 (09:00 +0000)] 
[arm] PR target/82518: Return false in ARRAY_MODE_SUPPORTED_P for BYTES_BIG_ENDIAN pt2

Backport from trunk
2018-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

PR target/82518
* lib/target-supports.exp (check_effective_target_vect_load_lanes):
Use check_effective_target_arm_little_endian.

From-SVN: r259790

7 years agoDaily bump.
GCC Administrator [Tue, 1 May 2018 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259785

7 years agoPR libstdc++/pr66689 - comp_ellint_3 and ellint_3 return garbage values
Edward Smith-Rowland [Mon, 30 Apr 2018 19:51:13 +0000 (19:51 +0000)] 
PR libstdc++/pr66689 - comp_ellint_3 and ellint_3 return garbage values

2018-04-30  Edward Smith-Rowland  <3dw4rd@verizon.net>

PR libstdc++/pr66689 - comp_ellint_3 and ellint_3 return garbage values
* include/tr1/ell_integral.tcc: Correct the nu sign convention
in ellint_3 and comp_ellint_3.
* testsuite/tr1/5_numerical_facilities/special_functions/
06_comp_ellint_3/check_value.cc: Regen with correct values.
* testsuite/tr1/5_numerical_facilities/special_functions/
14_ellint_3/check_value.cc: Ditto.
* testsuite/special_functions/06_comp_ellint_3/check_value.cc: Ditto.
* testsuite/special_functions/13_ellint_3/check_value.cc: Ditto.
* testsuite/special_functions/06_comp_ellint_3/pr66689.cc: New.
* testsuite/special_functions/13_ellint_3/pr66689.cc: New.
* testsuite/tr1/5_numerical_facilities/special_functions/
06_comp_ellint_3/pr66689.cc: New.
* testsuite/tr1/5_numerical_facilities/special_functions/
14_ellint_3/pr66689.cc: New.

2018-04-30  Edward Smith-Rowland  <3dw4rd@verizon.net>

PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
* include/tr1/exp_integral.tcc: Increase iteration limits.
* testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
pr68397.cc: New test.
* testsuite/special_functions/14_expint/pr68397.cc: New test.

svn commit \ --This line, and those below, will be ignored--
  ChangeLog \ M ChangeLog M include/tr1/ell_integral.tcc A testsuite/special_functions/06_comp_ellint_3/pr66689.cc A
testsuite/special_functions/13_ellint_3/pr66689.cc A testsuite/tr1/5_numerical_facilities/special_functions/06_comp_ellint_3/pr66689.cc A
testsuite/tr1/5_numerical_facilities/special_functions/14_ellint_3/pr66689.cc M testsuite/special_functions/06_comp_ellint_3/check_value.cc M
testsuite/special_functions/13_ellint_3/check_value.cc M testsuite/tr1/5_numerical_facilities/special_functions/06_comp_ellint_3/check_value.cc M
testsuite/tr1/5_numerical_facilities/special_functions/14_ellint_3/check_value.cc M include/tr1/exp_integral.tcc A
testsuite/special_functions/14_expint/pr68397.cc A testsuite/tr1/5_numerical_facilities/special_functions/15_expint/pr68397.cc
  include/tr1/ell_integral.tcc \
  testsuite/special_functions/06_comp_ellint_3/pr66689.cc \
  testsuite/special_functions/13_ellint_3/pr66689.cc \
  testsuite/tr1/5_numerical_facilities/special_functions/06_comp_ellint_3/pr66689.cc \
  testsuite/tr1/5_numerical_facilities/special_functions/14_ellint_3/pr66689.cc \
  testsuite/special_functions/06_comp_ellint_3/check_value.cc \
  testsuite/special_functions/13_ellint_3/check_value.cc \
  testsuite/tr1/5_numerical_facilities/special_functions/06_comp_ellint_3/check_value.cc \
  testsuite/tr1/5_numerical_facilities/special_functio

From-SVN: r259777

7 years agoDaily bump.
GCC Administrator [Mon, 30 Apr 2018 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259751

7 years agoDaily bump.
GCC Administrator [Sun, 29 Apr 2018 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259745

7 years agore PR fortran/81773 ([Coarray] Get with vector index on lhs leads to incorrect caf_ge...
Andre Vehreschild [Sat, 28 Apr 2018 14:54:20 +0000 (16:54 +0200)] 
re PR fortran/81773 ([Coarray] Get with vector index on lhs leads to incorrect caf_get_by_ref() call.)

gcc/fortran/ChangeLog:

2018-04-28  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/81773
PR fortran/83606
Backport from trunk
* dependency.c (gfc_dep_resolver): Coarray indexes are to be ignored
during dependency computation.  They define no data dependency.
* trans-array.c (conv_array_index_offset): The stride can not be set
here, prevent fail.
* trans-intrinsic.c (conv_caf_send): Add creation of temporary array
for caf_get's result and copying to the array with vectorial
indexing.

gcc/testsuite/ChangeLog:

2018-04-28  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/81773
PR fortran/83606
Backport from trunk
* gfortran.dg/coarray/get_to_indexed_array_1.f90: New test.
* gfortran.dg/coarray/get_to_indirect_array.f90: New test.

From-SVN: r259742

7 years agoDaily bump.
GCC Administrator [Sat, 28 Apr 2018 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259735

7 years agoDaily bump.
GCC Administrator [Fri, 27 Apr 2018 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259693

7 years agoBackport PRs 84873, 85168, 85244, 85284
Richard Biener [Thu, 26 Apr 2018 10:00:24 +0000 (10:00 +0000)] 
Backport PRs 84873, 85168, 85244, 85284

2018-04-26  Richard Biener  <rguenther@suse.de>

Backport from mainline
2018-04-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/85284
* tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
Only use the niter constraining form of simple_iv when the exit
is always executed.

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

2018-04-06  Richard Biener  <rguenther@suse.de>

PR middle-end/85244
* tree-dfa.c (get_ref_base_and_extent): Reset seen_variable_array_ref
after seeing a component reference with an adjacent field.  Treat
refs to arrays at struct end of external decls similar to
refs to unconstrained commons.

* gcc.dg/torture/pr85244-1.c: New testcase.
* gcc.dg/torture/pr85244-2.c: Likewise.

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

PR tree-optimization/85168
* tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Avoid
propagating abnormals.

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

2018-03-16  Richard Biener  <rguenther@suse.de>

PR c/84873
* c-gimplify.c (c_gimplify_expr): Revert previous change.  Instead
unshare the possibly folded expression.

2018-03-15  Richard Biener  <rguenther@suse.de>

PR c/84873
* c-gimplify.c (c_gimplify_expr): Do not fold expressions.

* c-c++-common/pr84873.c: New testcase.

From-SVN: r259670

7 years agoDaily bump.
GCC Administrator [Thu, 26 Apr 2018 00:16:26 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259660

7 years agoDaily bump.
GCC Administrator [Wed, 25 Apr 2018 00:16:30 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259627

7 years agore PR fortran/85520 (Out of memory when declaring a character with len << 0)
Steven G. Kargl [Wed, 25 Apr 2018 00:00:47 +0000 (00:00 +0000)] 
re PR fortran/85520 (Out of memory when declaring a character with len << 0)

2018-04-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/85520
* decl.c (gfc_match_char_spec): Check for negative length and set to 0.

2018-04-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/85520
* gfortran.dg/pr85520.f90: New test.

From-SVN: r259624

7 years agoBackport r259490
Martin Liska [Tue, 24 Apr 2018 15:19:46 +0000 (17:19 +0200)] 
Backport r259490

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

Backport from mainline
2018-04-19  Martin Liska  <mliska@suse.cz>

* lto-symtab.c (lto_symtab_resolve_symbols): Do not bail out
for multiple PREVAILING_DEF_IRONLY for common symbols.

From-SVN: r259605

7 years agoBackport r259459
Martin Liska [Tue, 24 Apr 2018 15:19:32 +0000 (17:19 +0200)] 
Backport r259459

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

Backport from mainline
2018-04-18  Bill Seurer  <seurer@linux.vnet.ibm.com>

PR sanitizer/85389
* asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change
from 0xa0000000000ULL to ~(uptr)0.

From-SVN: r259604

7 years agoBackport r259431
Martin Liska [Tue, 24 Apr 2018 15:19:11 +0000 (17:19 +0200)] 
Backport r259431

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

Backport from mainline
2018-04-17  Martin Liska  <mliska@suse.cz>

PR lto/85405
* ipa-devirt.c (odr_types_equivalent_p): Remove trailing
in message, remote space in between '_G' and '('.

From-SVN: r259603

7 years agoBackport r259429
Martin Liska [Tue, 24 Apr 2018 15:18:57 +0000 (17:18 +0200)] 
Backport r259429

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

Backport from mainline
2018-04-17  Jan Hubicka  <jh@suse.cz>

PR lto/85405
* ipa-devirt.c (odr_types_equivalent_p): Handle bit fields.

From-SVN: r259602

7 years agoBackport r259274
Martin Liska [Tue, 24 Apr 2018 15:18:42 +0000 (17:18 +0200)] 
Backport r259274

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

Backport from mainline
2018-04-10  Martin Liska  <mliska@suse.cz>

PR lto/85248
* lto-symtab.c (lto_symtab_merge_p): Do not check for
TREE_VALUES of error attributes.

From-SVN: r259601

7 years agoBackport r259265
Martin Liska [Tue, 24 Apr 2018 15:18:25 +0000 (17:18 +0200)] 
Backport r259265

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

Backport from mainline
2018-04-10  Richard Biener  <rguenther@suse.de>
    Martin Liska  <mliska@suse.cz>

PR lto/85248
* lto-symtab.c (lto_symtab_merge_p): Handle noreturn attribute.
2018-04-24  Martin Liska  <mliska@suse.cz>

Backport from mainline
2018-04-10  Jakub Jelinek  <jakub@redhat.com>

PR lto/85248
* gcc.dg/lto/pr85248_0.c: New test.
* gcc.dg/lto/pr85248_1.c: New test.

From-SVN: r259600

7 years agoBackport r258924
Martin Liska [Tue, 24 Apr 2018 15:17:48 +0000 (17:17 +0200)] 
Backport r258924

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

Backport from mainline
2018-03-28  Jakub Jelinek  <jakub@redhat.com>
    Martin Liska  <mliska@suse.cz>

PR sanitizer/85081
* gimplify.c (asan_poison_variable): Don't do the check for
gimplify_omp_ctxp here.
(gimplify_decl_expr): Do it here.
(gimplify_target_expr): Likewise.
2018-04-24  Martin Liska  <mliska@suse.cz>

Backport from mainline
2018-03-28  Jakub Jelinek  <jakub@redhat.com>
    Martin Liska  <mliska@suse.cz>

PR sanitizer/85081
* g++.dg/asan/pr85081.C: New test.

From-SVN: r259599

7 years agoBackport r258705
Martin Liska [Tue, 24 Apr 2018 15:17:19 +0000 (17:17 +0200)] 
Backport r258705

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

Backport from mainline
2018-03-21  Martin Liska  <mliska@suse.cz>

PR ipa/84963
* ipa-icf.c (sem_item_optimizer::fixup_points_to_sets): Remove
not intended return statement.
2018-04-24  Martin Liska  <mliska@suse.cz>

Backport from mainline
2018-03-21  Martin Liska  <mliska@suse.cz>

PR ipa/84963
* gfortran.dg/goacc/pr84963.f90: New test.

From-SVN: r259598

7 years agoBackport r258480
Martin Liska [Tue, 24 Apr 2018 15:17:00 +0000 (17:17 +0200)] 
Backport r258480

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

Backport from mainline
2018-03-13  Martin Liska  <mliska@suse.cz>

PR ipa/84658.
* (sem_item_optimizer::sem_item_optimizer): Initialize new
vector.
(sem_item_optimizer::~sem_item_optimizer): Release it.
(sem_item_optimizer::merge_classes): Register variable aliases.
(sem_item_optimizer::fixup_pt_set): New function.
(sem_item_optimizer::fixup_points_to_sets): Likewise.
* ipa-icf.h: Declare new variables and functions.
2018-04-24  Martin Liska  <mliska@suse.cz>

Backport from mainline
2018-03-13  Martin Liska  <mliska@suse.cz>

PR ipa/84658.
* g++.dg/ipa/pr84658.C: New test.

From-SVN: r259597

7 years agobackport: re PR target/83660 (ICE with vec_extract inside expression statement)
Aaron Sawdey [Tue, 24 Apr 2018 00:19:43 +0000 (00:19 +0000)] 
backport: re PR target/83660 (ICE with vec_extract inside expression statement)

2018-04-23  Aaron Sawdey  <acsawdey@linux.ibm.com>

Backport from mainline
2018-04-16  Aaron Sawdey  <acsawdey@linux.ibm.com>

PR target/83660
* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Mark
vec_extract expression as having side effects to make sure it gets
a cleanup point.

2018-04-23  Aaron Sawdey  <acsawdey@linux.ibm.com>

Backport from mainline
2018-04-16  Aaron Sawdey  <acsawdey@linux.ibm.com>

PR target/83660
* gcc.target/powerpc/pr83660.C: New test.

From-SVN: r259590

7 years agoDaily bump.
GCC Administrator [Tue, 24 Apr 2018 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259588

7 years agoImplement P0969
Ville Voutilainen [Mon, 23 Apr 2018 20:52:47 +0000 (23:52 +0300)] 
Implement P0969

Backport from mainline

2018-04-05  Ville Voutilainen  <ville.voutilainen@gmail.com>

Implement P0969
* decl.c (find_decomp_class_base): Check accessibility instead
of declared access, adjust diagnostic.

From-SVN: r259579

7 years agore PR middle-end/85496 (internal compiler error: in emit_move_insn, at expr.c:3722)
Eric Botcazou [Mon, 23 Apr 2018 20:29:22 +0000 (20:29 +0000)] 
re PR middle-end/85496 (internal compiler error: in emit_move_insn, at expr.c:3722)

PR middle-end/85496
* expr.c (store_field): In the bitfield case, if the value comes from
a function call and is returned in registers by means of a PARALLEL,
do not change the mode of the temporary unless BLKmode and VOIDmode.

From-SVN: r259576

7 years agoPR c++/85470 - wrong error with static data member.
Jakub Jelinek [Mon, 23 Apr 2018 19:58:57 +0000 (21:58 +0200)] 
PR c++/85470 - wrong error with static data member.

* decl.c (check_initializer): Check DECL_INITIALIZED_IN_CLASS_P.
* typeck2.c (store_init_value): Likewise.

Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r259572

7 years agoImplement P0961
Ville Voutilainen [Mon, 23 Apr 2018 14:22:58 +0000 (17:22 +0300)] 
Implement P0961

Backport from mainline

2018-04-05  Ville Voutilainen  <ville.voutilainen@gmail.com>

Implement P0961
* decl.c (get_tuple_decomp_init): Check the templatedness
of a member get.

From-SVN: r259561

7 years agoDaily bump.
GCC Administrator [Mon, 23 Apr 2018 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259555

7 years agoDaily bump.
GCC Administrator [Sun, 22 Apr 2018 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259543

7 years agoDaily bump.
GCC Administrator [Sat, 21 Apr 2018 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259538

7 years agobackport: re PR target/83969 (ICE in final_scan_insn, at final.c:2997 (error: could...
Peter Bergner [Fri, 20 Apr 2018 12:19:10 +0000 (07:19 -0500)] 
backport: re PR target/83969 (ICE in final_scan_insn, at final.c:2997 (error: could not split insn) for powerpc targets)

gcc/
Backport from mainline
2018-03-09  Peter Bergner  <bergner@vnet.ibm.com>

PR target/83969
* config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New prototype.
Add strict argument and use it.
(rs6000_split_multireg_move): Update for new strict argument.
(mem_operand_gpr): Disallow all non-offsettable addresses.
* config/rs6000/rs6000.md (*movdi_internal64): Use YZ constraint.

gcc/testsuite/
PR target/85436
* go.dg/pr85436.go: New test.

Backport from mainline
2018-03-09  Peter Bergner  <bergner@vnet.ibm.com>

PR target/83969
* gcc.target/powerpc/pr83969.c: New test.

From-SVN: r259520

7 years agoDaily bump.
GCC Administrator [Fri, 20 Apr 2018 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259514

7 years agoPR c++/85464 - missing location for -Wignored-qualifiers diagnostic
Jonathan Wakely [Thu, 19 Apr 2018 15:29:03 +0000 (16:29 +0100)] 
PR c++/85464 - missing location for -Wignored-qualifiers diagnostic

The fix for PR c++/69733 caused a regression for conversion operators
with redundant cv-qualifiers, changing an incorrect location to an
unknown location. This restores it to the incorrect location (as was
already done on trunk by the fix for PR c++/65775).

gcc/cp:

PR c++/85464 - missing location for -Wignored-qualifiers diagnostic
* decl.c (grokdeclarator): If declspecs->locations[ds_type_spec]
is UNKNOWN_LOCATION fall back to input_location.

gcc/testsuite:

PR c++/85464 - missing location for -Wignored-qualifiers diagnostic
* g++.dg/diagnostic/pr85464.C: New.

From-SVN: r259499

7 years agoDaily bump.
GCC Administrator [Thu, 19 Apr 2018 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259482

7 years agoPR libstdc++/85442 fix duplicate debuginfo for cxx11-ios_failure.cc
Jonathan Wakely [Wed, 18 Apr 2018 13:13:29 +0000 (14:13 +0100)] 
PR libstdc++/85442 fix duplicate debuginfo for cxx11-ios_failure.cc

2018-04-18  Jonathan Wakely  <jwakely@redhat.com>
    Jakub Jelinek  <jakub@redhat.com>

PR libstdc++/85442
* src/c++11/Makefile.am: Don't generate debuginfo again for
cxx11-ios_failure-lt.s and cxx11-ios_failure.s files.
* src/c++11/Makefile.in: Regenerate.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r259468

7 years ago[ARM] Fix PR85261: ICE with FPSCR setter builtin
Thomas Preud'homme [Wed, 18 Apr 2018 11:42:10 +0000 (11:42 +0000)] 
[ARM] Fix PR85261: ICE with FPSCR setter builtin

Instruction pattern for setting the FPSCR expects the input value to be
in a register. However, __builtin_arm_set_fpscr expander does not ensure
that this is the case and as a result GCC ICEs when the builtin is
called with a constant literal.

This commit fixes the builtin to force the input value into a register.
It also remove the unneeded volatile in the existing fpscr test and
fixes the function prototype.

2018-04-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    Backport from mainline
    2018-04-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    PR target/85261
    * config/arm/arm-builtins.c (arm_expand_builtin): Force input operand
    into register.

    gcc/testsuite/
    PR target/85261
    * gcc.target/arm/fpscr.c: Add call to __builtin_arm_set_fpscr with
    literal value.  Expect 2 MCR instruction.  Fix function prototype.
    Remove volatile keyword.

From-SVN: r259465

7 years agoDaily bump.
GCC Administrator [Wed, 18 Apr 2018 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259454

7 years agoDaily bump.
GCC Administrator [Tue, 17 Apr 2018 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259425

7 years agoDaily bump.
GCC Administrator [Mon, 16 Apr 2018 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259391

7 years agoDaily bump.
GCC Administrator [Sun, 15 Apr 2018 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259388

7 years agoDaily bump.
GCC Administrator [Sat, 14 Apr 2018 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259382

7 years agoFix broken sed command from previous commit
Jonathan Wakely [Fri, 13 Apr 2018 10:55:37 +0000 (11:55 +0100)] 
Fix broken sed command from previous commit

* src/c++11/Makefile.am: Fix sed command.
* src/c++11/Makefile.in: Regenerate.

From-SVN: r259375

7 years agoFix __iosfail_type_info hack to work on darwin
Jonathan Wakely [Fri, 13 Apr 2018 10:19:30 +0000 (11:19 +0100)] 
Fix __iosfail_type_info hack to work on darwin

* src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to
handle mangled names starting with double underscores on darwin.
* src/c++11/Makefile.in: Regenerate.

From-SVN: r259372

7 years agoDaily bump.
GCC Administrator [Fri, 13 Apr 2018 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259362

7 years agoFix comments that misspell names of files and classes
Jonathan Wakely [Thu, 12 Apr 2018 20:55:25 +0000 (21:55 +0100)] 
Fix comments that misspell names of files and classes

* src/c++11/Makefile.am: Fix comment.
* src/c++11/Makefile.in: Regenerate.
* src/c++11/cxx11-ios_failure.cc: Fix comment.
* src/c++98/ios_failure.cc: Likewise.

From-SVN: r259358

7 years agoPR libstdc++/85222 allow catching iostream errors as gcc4-compatible ios::failure
Jonathan Wakely [Thu, 12 Apr 2018 19:06:50 +0000 (20:06 +0100)] 
PR libstdc++/85222 allow catching iostream errors as gcc4-compatible ios::failure

Define a new exception type derived from std::ios::failure[abi:cxx11]
which also aggregates an object of the gcc4-compatible ios::failure
type. Make __throw_ios_failure throw this new type for iostream errors
that raise exceptions. Provide custom type info for the new type so that
it can be caught by handlers for the gcc4-compatible ios::failure type
as well as handlers for ios::failure[abi:cxx11] and its bases.

Backport from mainline
2018-04-10  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/85222
* src/c++11/Makefile.am [ENABLE_DUAL_ABI]: Add special rules for
cxx11-ios_failure.cc to rewrite type info for __ios_failure.
* src/c++11/Makefile.in: Regenerate.
* src/c++11/cxx11-ios_failure.cc (__ios_failure, __iosfail_type_info):
New types.
[_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
* src/c++11/ios.cc (__throw_ios_failure): Remove definition.
(_GLIBCXX_USE_CXX11_ABI): Don't define here.
* src/c++98/ios_failure.cc (__construct_ios_failure)
(__destroy_ios_failure, is_ios_failure_handler): New functions.
[!_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
* testsuite/27_io/ios_base/failure/dual_abi.cc: New.
* testsuite/27_io/basic_ios/copyfmt/char/1.cc: Revert changes to
handler types, to always catch std::ios_base::failure.
* testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/
exceptions_failbit.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
exceptions_failbit.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_other/char/
exceptions_null.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_other/wchar_t/
exceptions_null.cc: Likewise.
* testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
* testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_other/char/
exceptions_null.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_other/wchar_t/
exceptions_null.cc: Likewise.
* testsuite/27_io/ios_base/storage/2.cc: Likewise.

From-SVN: r259352

7 years agoAda: Fix s-oscons.ads generation
Sebastian Huber [Thu, 12 Apr 2018 11:08:35 +0000 (11:08 +0000)] 
Ada: Fix s-oscons.ads generation

The $(GNATLIBCFLAGS) are already included in $(GNATLIBCFLAGS_FOR_C).

We must call the C compiler with the right machine flags.  So, add
$(GNATLIBCFLAGS_FOR_C) to $(OSCONS_EXTRACT).  For example, on a bi-arch
compiler supporting 32-bit and 64-bit instruction sets we pick otherwise
only one variant due to a missing -m32 or -m64 flag.

gcc/ada
* gcc-interface/Makefile.in (OSCONS_CPP): Remove redundant
$(GNATLIBCFLAGS).
(OSCONS_EXTRACT): Add $(GNATLIBCFLAGS_FOR_C).

From-SVN: r259343

7 years agoIBM Z: Spectre: Prevent thunk cfi to be emitted with -fno-dwarf2-cfi-asm
Andreas Krebbel [Thu, 12 Apr 2018 10:20:11 +0000 (10:20 +0000)] 
IBM Z: Spectre: Prevent thunk cfi to be emitted with -fno-dwarf2-cfi-asm

The CFI magic we emit as part of the indirect branch thunks in order to
have somewhat sane unwind information must not be emitted with
-fno-dwarf2-cfi-asm.

gcc/ChangeLog:

2018-04-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

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

* config/s390/s390.c (s390_output_indirect_thunk_function): Check
also for flag_dwarf2_cfi_asm.

gcc/testsuite/ChangeLog:

2018-04-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

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

* gcc.target/s390/nobp-no-dwarf2-cfi.c: New test.

From-SVN: r259341

7 years agoDaily bump.
GCC Administrator [Thu, 12 Apr 2018 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259335

7 years agoalpha.md (stack_probe_internal): Rename from "probe_stack".
Uros Bizjak [Wed, 11 Apr 2018 18:36:37 +0000 (20:36 +0200)] 
alpha.md (stack_probe_internal): Rename from "probe_stack".

* config/alpha/alpha.md (stack_probe_internal): Rename
from "probe_stack".  Update all callers.

From-SVN: r259329

7 years ago[ARM] Fix PR85203: cmse_nonsecure_caller returns wrong result
Thomas Preud'homme [Wed, 11 Apr 2018 09:47:21 +0000 (09:47 +0000)] 
[ARM] Fix PR85203: cmse_nonsecure_caller returns wrong result

__builtin_cmse_nonsecure_caller implementation returns true in almost
all cases due to 2 separate bugs:

* gen_addsi is used instead of gen_andsi to retrieve the lsb
* the lsb boolean value is not negated but the specification [1] says
  the intrinsic should return true for a nonsecure caller and a
  nonsecure caller is characterized with LR's lsb being 0

This was not caught due to (1) lack of runtime test and (2) the existing
RTL scan not taking into account that '.' matches newline in Tcl regular
expressions.

This commit fixes the implementation issues and improves testing of
cmse_nonsecure_caller by (1) adding a runtime test for the secure caller
case and (2) looking for an SET insn of an AND expression in the right
function. This leaves the nonsecure caller case only partly tested
since the exact value being AND and the negation are not covered by the
scan and the existing test infrastructure does not allow 2 separate
compilation and link to be performed. It is enough though to catch the
current incorrect behavior.

The commit also reorganize the scan directives in cmse-1.c to more
easily identify what function they are intended to test in the file.

2018-04-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    Backport from mainline
    2018-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    PR target/85203
    * config/arm/arm-builtins.c (arm_expand_builtin): Change
    expansion to perform a bitwise AND of the argument followed by a
    boolean negation of the result.

    gcc/testsuite/
    PR target/85203
    * gcc.target/arm/cmse/cmse-1.c: Tighten cmse_nonsecure_caller RTL scan
    to match a single insn of the baz function.  Move scan directives at
    the end of the file below the functions they are trying to test for
    better readability.
    * gcc.target/arm/cmse/cmse-16.c: New testcase.

From-SVN: r259309

7 years agoDaily bump.
GCC Administrator [Wed, 11 Apr 2018 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259306

7 years ago[PR target/85056] Address -Wmaybe-uninitialized diagnostic
Thomas Schwinge [Tue, 10 Apr 2018 16:55:43 +0000 (18:55 +0200)] 
[PR target/85056] Address -Wmaybe-uninitialized diagnostic

gcc/testsuite/
* gcc.target/nvptx/pr85056.c (main): Initialize "sum".

trunk r259288

From-SVN: r259289

7 years agoPR c++/85279 - dump_expr doesn't understand decltype.
Jason Merrill [Tue, 10 Apr 2018 14:29:52 +0000 (10:29 -0400)] 
PR c++/85279 - dump_expr doesn't understand decltype.

* error.c (dump_expr): Handle DECLTYPE_TYPE.

From-SVN: r259280

7 years ago[AArch64] PR target/84748: Mark *compare_cstore<mode>_insn as clobbering CC reg
Kyrylo Tkachov [Tue, 10 Apr 2018 12:59:08 +0000 (12:59 +0000)] 
[AArch64] PR target/84748: Mark *compare_cstore<mode>_insn as clobbering CC reg

Backport from mainline
2018-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

PR target/84748
* config/aarch64/aarch64.md (*compare_cstore<mode>_insn): Mark pattern
as clobbering CC_REGNUM.

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

From-SVN: r259270

7 years agoDaily bump.
GCC Administrator [Tue, 10 Apr 2018 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259262

7 years agoDaily bump.
GCC Administrator [Mon, 9 Apr 2018 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259226

7 years agoDaily bump.
GCC Administrator [Sun, 8 Apr 2018 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259214

7 years agoDaily bump.
GCC Administrator [Sat, 7 Apr 2018 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259199

7 years agore PR middle-end/85196 (ICE in extract_insn, at recog.c:2311: unrecognizable insn)
Eric Botcazou [Fri, 6 Apr 2018 22:32:39 +0000 (22:32 +0000)] 
re PR middle-end/85196 (ICE in extract_insn, at recog.c:2311: unrecognizable insn)

PR target/85196
* config/sparc/sparc.c (sparc_expand_move): Deal with symbolic operands
based on LABEL_REF.  Remove useless assertion.
(pic_address_needs_scratch): Fix formatting.
(sparc_legitimize_pic_address): Minor tweaks.
(sparc_delegitimize_address): Adjust assertion accordingly.
* config/sparc/sparc.md (movsi_pic_label_ref): Change label_ref_operand
into symbolic_operand.
(movsi_high_pic_label_ref): Likewise.
(movsi_lo_sum_pic_label_ref): Likewise.
(movdi_pic_label_ref): Likewise.
(movdi_high_pic_label_ref): Likewise.
(movdi_lo_sum_pic_label_ref): Likewise.

From-SVN: r259195

7 years agoconfig.gcc (x86_64-*-rtems*): Add rtems.h to tm_file for custom LIB_SPEC setup.
Amaan Cheval [Fri, 6 Apr 2018 20:59:51 +0000 (20:59 +0000)] 
config.gcc (x86_64-*-rtems*): Add rtems.h to tm_file for custom LIB_SPEC setup.

2018-04-06  Amaan Cheval  <amaan.cheval@gmail.com>

* config.gcc (x86_64-*-rtems*): Add rtems.h to tm_file for
custom LIB_SPEC setup.

From-SVN: r259191

7 years agoDaily bump.
GCC Administrator [Fri, 6 Apr 2018 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259158

7 years agore PR target/85193 (ICE: SIGSEGV in memory_operand at recog.c:1361 with -O2 -fno...
Uros Bizjak [Thu, 5 Apr 2018 18:43:26 +0000 (20:43 +0200)] 
re PR target/85193 (ICE: SIGSEGV in memory_operand at recog.c:1361 with -O2 -fno-tree-ccp -fno-tree-fre -mno-sse)

PR target/85193
* config/i386/i386.md (define_attr "memory"): Handle rotate1 type.

testsuite/ChangeLog:

PR target/85193
* gcc.target/i386/pr85193.c: New test.

From-SVN: r259150

7 years agoPR c++/82152 - ICE with class deduction and inherited ctor.
Jason Merrill [Thu, 5 Apr 2018 18:27:49 +0000 (14:27 -0400)] 
PR c++/82152 - ICE with class deduction and inherited ctor.

* pt.c (do_class_deduction): Ignore inherited ctors.

From-SVN: r259147

7 years agoPR c++/84665 - ICE with array of empty class.
Jason Merrill [Thu, 5 Apr 2018 18:27:43 +0000 (14:27 -0400)] 
PR c++/84665 - ICE with array of empty class.

* decl2.c (cp_check_const_attributes): Use fold_non_dependent_expr.

From-SVN: r259146

7 years agoPR c++/85006 - -fconcepts ICE with A<auto...> return type
Jason Merrill [Thu, 5 Apr 2018 18:27:37 +0000 (14:27 -0400)] 
PR c++/85006 - -fconcepts ICE with A<auto...> return type

* pt.c (tsubst_pack_expansion): Allow unsubstituted auto pack.

From-SVN: r259145

7 years agoDaily bump.
GCC Administrator [Thu, 5 Apr 2018 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259110

7 years agobackport: re PR rtl-optimization/84878 (ICE: Segmentation fault (in add_cross_iterati...
Peter Bergner [Wed, 4 Apr 2018 19:51:32 +0000 (14:51 -0500)] 
backport: re PR rtl-optimization/84878 (ICE: Segmentation fault (in add_cross_iteration_register_deps))

gcc/
Backport from mainline
2018-04-04  Peter Bergner  <bergner@vnet.ibm.com>

PR rtl-optimization/84878
* ddg.c (add_cross_iteration_register_deps): Use DF_REF_BB to determine
the basic block.  Assert the use reference is not artificial and that
it has an associated insn.

gcc/testsuite/
Backport from mainline
2018-04-04  Peter Bergner  <bergner@vnet.ibm.com>

PR rtl-optimization/84878
* gcc.target/powerpc/pr84878.c: New test.

From-SVN: r259103

7 years agoPR c++/85118 - wrong error with generic lambda and std::bind.
Jason Merrill [Wed, 4 Apr 2018 16:46:00 +0000 (12:46 -0400)] 
PR c++/85118 - wrong error with generic lambda and std::bind.

* call.c (add_template_conv_candidate): Disable if there are any
call operators.

From-SVN: r259094

7 years agoPR c++/85148 - ICE with 'this' in array NSDMI.
Jason Merrill [Wed, 4 Apr 2018 16:45:53 +0000 (12:45 -0400)] 
PR c++/85148 - ICE with 'this' in array NSDMI.

* tree.c (replace_placeholders_r): Use handled_component_p.

From-SVN: r259093

7 years agoDaily bump.
GCC Administrator [Wed, 4 Apr 2018 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259063

7 years agoi386.c (emit_i387_cw_initialization): Always use logic instructions when changing...
Uros Bizjak [Tue, 3 Apr 2018 20:41:37 +0000 (22:41 +0200)] 
i386.c (emit_i387_cw_initialization): Always use logic instructions when changing rounding bits to preserve precision...

* config/i386/i386.c (emit_i387_cw_initialization): Always use logic
instructions when changing rounding bits to preserve precision bits
in the x87 control word.

From-SVN: r259055

7 years agoPR c++/85113 - ICE with constexpr and __builtin_constant_p.
Jason Merrill [Tue, 3 Apr 2018 19:14:03 +0000 (15:14 -0400)] 
PR c++/85113 - ICE with constexpr and __builtin_constant_p.

* constexpr.c (cxx_eval_builtin_function_call): Only defer
__builtin_constant_p if ctx->quiet.

From-SVN: r259053

7 years agoFix noexcept merging with system headers.
Jason Merrill [Tue, 3 Apr 2018 17:46:41 +0000 (13:46 -0400)] 
Fix noexcept merging with system headers.

* typeck.c (merge_types): Limit matching attribute shortcut to
the default case.

From-SVN: r259048

7 years agoPR c++/64095 - auto... parameter pack.
Jason Merrill [Tue, 3 Apr 2018 17:46:35 +0000 (13:46 -0400)] 
PR c++/64095 - auto... parameter pack.

* parser.c (cp_parser_parameter_declaration): Handle turning autos
into packs here.
(cp_parser_parameter_declaration_list): Not here.

From-SVN: r259047

7 years agoPR c++/85060 - wrong-code with call to base member in template.
Jason Merrill [Tue, 3 Apr 2018 17:46:30 +0000 (13:46 -0400)] 
PR c++/85060 - wrong-code with call to base member in template.

* search.c (any_dependent_bases_p): Check uses_template_parms
rather than processing_template_decl.

From-SVN: r259046

7 years agore PR target/85056 ([nvptx] wrong declaration of external arrays)
Cesar Philippidis [Tue, 3 Apr 2018 14:04:22 +0000 (07:04 -0700)] 
re PR target/85056 ([nvptx] wrong declaration of external arrays)

PR target/85056

Backport from mainline
2018-03-27  Cesar Philippidis  <cesar@codesourcery.com>

PR target/85056

gcc/
* config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Add '[]' to
extern array declarations.

gcc/testsuite/
* testsuite/gcc.target/nvptx/pr85056.c: New test.
* testsuite/gcc.target/nvptx/pr85056a.c: New test.

From-SVN: r259032

7 years agoDaily bump.
GCC Administrator [Tue, 3 Apr 2018 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259023

7 years agobackport: re PR target/84912 (__builtin_divde* produce Internal Compiler Error when...
Peter Bergner [Mon, 2 Apr 2018 19:19:37 +0000 (14:19 -0500)] 
backport: re PR target/84912 (__builtin_divde* produce Internal Compiler Error when compiled -m32)

gcc/
Backport from mainline
2018-03-28  Peter Bergner  <bergner@vnet.ibm.com>

PR target/84912
* config/rs6000/rs6000.h: Update copyright date.
(RS6000_BTM_POWERPC64): New define.
(RS6000_BTM_COMMON): Add RS6000_BTM_POWERPC64.
* config/rs6000/rs6000.c: Update copyright date.
(rs6000_builtin_mask_calculate): Add support for RS6000_BTM_POWERPC64.
(rs6000_invalid_builtin): Add handling for RS6000_BTM_POWERPC64
(rs6000_builtin_mask_names): Add RS6000_BTM_POWERPC64.
* config/rs6000/rs6000-builtin.def: Update copyright date.
(BU_P7_POWERPC64_MISC_2): New macro definition.
(DIVDE): Use it.
(DIVDEU): Likewise.

Backport from mainline
2018-03-28  Peter Bergner  <bergner@vnet.ibm.com>

PR target/84912
* config/rs6000/rs6000-builtin.def (DIVWEO): Delete macro expansion.
(DIVWEUO): Likewise.
(DIVDEO): Likewise.
(DIVDEUO): Likewise.
* config/rs6000/rs6000.c (builtin_function_type): Remove support for
DIVWEUO and DIVDEUO.
* config/rs6000/rs6000.md: Update copyright date.
(UNSPEC_DIVEO, UNSPEC_DIVEUO): Delete unspecs.
(UNSPEC_DIV_EXTEND): Remove deleted unspecs.
(div_extend): Likewise.
* doc/extend.texi: Update copyright date.
(__builtin_divweo): Remove documentation for deleted builtin function.
(__builtin_divweuo): Likewise.
(__builtin_divdeo): Likewise.
(__builtin_divdeuo): Likewise.

gcc/testsuite/
Backport from mainline
2018-03-28  Peter Bergner  <bergner@vnet.ibm.com>

PR target/84912
* gcc.target/powerpc/extend-divide-1.c (div_weo): Remove test for
deleted builtin function.
(div_weuo): Likewise.
* gcc.target/powerpc/extend-divide-2.c (div_deo): Likewise.
(div_deuo): Likewise.

From-SVN: r259016

7 years agobackport: re PR target/81143 (New test case gcc.target/powerpc/pr79799-2.c fails...
Peter Bergner [Mon, 2 Apr 2018 15:24:01 +0000 (10:24 -0500)] 
backport: re PR target/81143 (New test case gcc.target/powerpc/pr79799-2.c fails on powerpc BE)

Backport from mainline
2018-02-08  Peter Bergner  <bergner@vnet.ibm.com>

PR target/81143
* gcc.target/powerpc/pr79799-2.c: Use __LITTLE_ENDIAN__.

From-SVN: r259011

7 years agobackport: re PR testsuite/80546 (FAIL: gcc.target/powerpc/bool3-p[78].c scan-assemble...
Peter Bergner [Mon, 2 Apr 2018 14:35:07 +0000 (09:35 -0500)] 
backport: re PR testsuite/80546 (FAIL: gcc.target/powerpc/bool3-p[78].c scan-assembler-not)

Backport from mainline
2018-03-30  Peter Bergner  <bergner@vnet.ibm.com>

PR target/80546
* config/rs6000/vsx.md (??r): New mode attribute.
(*vsx_mov<mode>_64bit): Use it.
(*vsx_mov<mode>_32bit): Likewise.

From-SVN: r259009

7 years agoi386: Enable AVX/AVX512 features only if supported by OSXSAVE
H.J. Lu [Mon, 2 Apr 2018 12:03:16 +0000 (12:03 +0000)] 
i386: Enable AVX/AVX512 features only if supported by OSXSAVE

Enable AVX and AVX512 features only if their states are supported by
OSXSAVE.

Backport from mainline
PR target/85100
* config/i386/cpuinfo.c (XCR_XFEATURE_ENABLED_MASK): New.
(XSTATE_FP): Likewise.
(XSTATE_SSE): Likewise.
(XSTATE_YMM): Likewise.
(XSTATE_OPMASK): Likewise.
(XSTATE_ZMM): Likewise.
(XSTATE_HI_ZMM): Likewise.
(XCR_AVX_ENABLED_MASK): Likewise.
(XCR_AVX512F_ENABLED_MASK): Likewise.
(get_available_features): Enable AVX and AVX512 features only
if their states are supported by OSXSAVE.

From-SVN: r259006

7 years agoDaily bump.
GCC Administrator [Mon, 2 Apr 2018 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r259001

7 years agoDaily bump.
GCC Administrator [Sun, 1 Apr 2018 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r258992

7 years agoDaily bump.
GCC Administrator [Sat, 31 Mar 2018 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r258985

7 years agoDaily bump.
GCC Administrator [Fri, 30 Mar 2018 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r258969

7 years agore PR c++/84783 (Missing _mm256_permutexvar_epi64() intrinsic for AVX512VL)
Sebastian Peryt [Thu, 29 Mar 2018 14:51:03 +0000 (16:51 +0200)] 
re PR c++/84783 (Missing _mm256_permutexvar_epi64() intrinsic for AVX512VL)

2018-03-29  Sebastian Peryt  <sebastian.peryt@intel.com>

gcc/ChangeLog:
PR c++/84783
* config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
(_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.

gcc/testsuite/ChangeLog:
PR c++/84783

* gcc.target/i386/avx512vl-vpermd-1.c (_mm256_permutexvar_epi32):
Test new intrinsic.
* gcc.target/i386/avx512vl-vpermq-imm-1.c (_mm256_permutex_epi64):
Ditto.
* gcc.target/i386/avx512vl-vpermq-var-1.c (_mm256_permutexvar_epi64):
Ditto.
* gcc.target/i386/avx512f-vpermd-2.c: Do not check for AVX512F_LEN.
* gcc.target/i386/avx512f-vpermq-imm-2.c: Ditto.
* gcc.target/i386/avx512f-vpermq-var-2.c: Ditto.

From-SVN: r258958

7 years agoImplement P0962
Ville Voutilainen [Thu, 29 Mar 2018 14:07:42 +0000 (17:07 +0300)] 
Implement P0962

Backport from mainline
2018-03-23  Ville Voutilainen  <ville.voutilainen@gmail.com>

Implement P0962
* parser.c (cp_parser_perform_range_for_lookup): Change
the condition for deciding whether to use members.

From-SVN: r258955

7 years ago[ARM][PR target/84826] Fix ICE in extract_insn, at recog.c:2304 on
Sudakshina Das [Thu, 29 Mar 2018 09:19:45 +0000 (09:19 +0000)] 
[ARM][PR target/84826] Fix ICE in extract_insn, at recog.c:2304 on
arm-linux-gnueabihf

This patch backports r258777 and r258805 to gcc-7-branch
and gcc-6-branch. The same ICE occurs in both the branches with
-fstack-check. Thus the test case directive has been changed.

The discussion on the patch that went into trunk is:
https://gcc.gnu.org/ml/gcc-patches/2018-03/msg01120.html

ChangeLog entries:

*** gcc/ChangeLog ***

2018-03-29  Sudakshina Das  <sudi.das@arm.com>

Backport from mainline
2018-03-22  Sudakshina Das  <sudi.das@arm.com>

PR target/84826
* config/arm/arm.h (machine_function): Add static_chain_stack_bytes.
* config/arm/arm.c (arm_compute_static_chain_stack_bytes): Avoid
re-computing once computed.
(arm_expand_prologue): Compute machine->static_chain_stack_bytes.
(arm_init_machine_status): Initialize
machine->static_chain_stack_bytes.

*** gcc/testsuite/ChangeLog ***

2018-03-29  Sudakshina Das  <sudi.das@arm.com>

* gcc.target/arm/pr84826.c: Change dg-option to -fstack-check.

Backport from mainline
2018-03-23  Sudakshina Das  <sudi.das@arm.com>

PR target/84826
* gcc.target/arm/pr84826.c: Add dg directive.

Backport from mainline
2018-03-22  Sudakshina Das  <sudi.das@arm.com>

PR target/84826
* gcc.target/arm/pr84826.c: New test.

From-SVN: r258948