]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
7 years agobackport: i386.c (ix86_split_idivmod): Use mode instead of always SImode for DIV...
Jakub Jelinek [Mon, 2 Oct 2017 18:42:08 +0000 (20:42 +0200)] 
backport: i386.c (ix86_split_idivmod): Use mode instead of always SImode for DIV and MOD in REG_EQUAL notes.

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

* config/i386/i386.c (ix86_split_idivmod): Use mode instead of
always SImode for DIV and MOD in REG_EQUAL notes.

From-SVN: r253363

7 years agobackport: re PR tree-optimization/82337 (ICE: SSA corruption at tree-ssa-coalesce...
Bill Schmidt [Mon, 2 Oct 2017 18:09:20 +0000 (18:09 +0000)] 
backport: re PR tree-optimization/82337 (ICE: SSA corruption at tree-ssa-coalesce.c:1010)

[gcc]

2017-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

PR tree-optimization/82337
* gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
phi definition if the PHI result appears in an abnormal PHI.
(find_basis_for_base_expr): Don't record a basis if the LHS of the
basis appears in an abnormal PHI.

[gcc]

2017-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

PR tree-optimization/82337
* gcc.c-torture/compile/pr82337.c: New file.

From-SVN: r253360

7 years agoopt55.ad[sb]: Move to...
Eric Botcazou [Mon, 2 Oct 2017 14:04:33 +0000 (14:04 +0000)] 
opt55.ad[sb]: Move to...

* opt55.ad[sb]: Move to...
* gnat.dg/opt55.ad[sb]: ...here.

From-SVN: r253352

7 years agoHandle libbacktrace in contrib/gcc_update
Thomas Schwinge [Mon, 2 Oct 2017 11:58:32 +0000 (13:58 +0200)] 
Handle libbacktrace in contrib/gcc_update

contrib/
* gcc_update (files_and_dependencies): Handle libbacktrace.

trunk r253346

From-SVN: r253348

7 years agoDaily bump.
GCC Administrator [Mon, 2 Oct 2017 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253332

7 years agoDaily bump.
GCC Administrator [Sun, 1 Oct 2017 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253325

7 years agoDaily bump.
GCC Administrator [Sat, 30 Sep 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253313

7 years agoDaily bump.
GCC Administrator [Fri, 29 Sep 2017 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253272

7 years agoDaily bump.
GCC Administrator [Thu, 28 Sep 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253246

7 years agoDaily bump.
GCC Administrator [Wed, 27 Sep 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253220

7 years agoDaily bump.
GCC Administrator [Tue, 26 Sep 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253183

7 years agoDaily bump.
GCC Administrator [Mon, 25 Sep 2017 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253129

7 years agoDaily bump.
GCC Administrator [Sun, 24 Sep 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253120

7 years agoDaily bump.
GCC Administrator [Sat, 23 Sep 2017 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253112

7 years agoDaily bump.
GCC Administrator [Fri, 22 Sep 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253086

7 years agoPR81996, __builtin_return_address(0) fails
Alan Modra [Thu, 21 Sep 2017 12:57:24 +0000 (22:27 +0930)] 
PR81996, __builtin_return_address(0) fails

rs6000_return_addr assumes that the stack link is at frame+0, which is
true for count>0.  For count==0, rs6000_return_addr is called with
frame==frame_pointer_rtx and the stack link is *not* at frame+0 if
-fstack-protector-all or -fsanitize=address because rs6000.h sets
FRAME_GROWS_DOWNWARD for those options.

PR target/81996
* gcc/config/rs6000/rs6000.c (rs6000_return_addr): Use
stack_pointer_rtx for count 0.  Update comments.  Break up
large rtl expression.

From-SVN: r253068

7 years agoPR71951: Fix unwinding with -fomit-frame-pointer
Wilco Dijkstra [Thu, 21 Sep 2017 12:21:18 +0000 (12:21 +0000)] 
PR71951: Fix unwinding with -fomit-frame-pointer

As described in PR71951, if libgcc is built with -fomit-frame-pointer,
unwinding crashes, for example while doing a backtrace.  The underlying
reason is the Dwarf unwinder does not setup the frame pointer register
in the initialization code.  When later unwinding a function that uses
the frame pointer, it tries to read FP using _Unwind_GetGR, and this
crashes if has never restored FP.  To unwind correctly the first frame
must save and restore FP (it is unwound in a special way so that it
uses SP instead of FP).  This is done by adding -fno-omit-frame-pointer.

    gcc/
PR target/71951
* config/aarch64/aarch64.h (LIBGCC2_UNWIND_ATTRIBUTE): Define.

From-SVN: r253064

7 years agoDaily bump.
GCC Administrator [Thu, 21 Sep 2017 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253044

7 years agoPR libstdc++/60936 fix length calculation
Jonathan Wakely [Wed, 20 Sep 2017 12:01:44 +0000 (13:01 +0100)] 
PR libstdc++/60936 fix length calculation

Backport from mainline
2017-02-16  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/60936
* src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
written to buffer, not length remaining in buffer.

Backport from mainline
2017-02-08  Gerald Pfeifer  <gerald@pfeifer.com>

* src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.

From-SVN: r253007

7 years agoDaily bump.
GCC Administrator [Wed, 20 Sep 2017 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r252988

7 years agoi386.c (fold_builtin_cpu): Add M_AMDFAM17H to processor_model and "amdfam17h" to...
Uros Bizjak [Tue, 19 Sep 2017 16:21:03 +0000 (18:21 +0200)] 
i386.c (fold_builtin_cpu): Add M_AMDFAM17H to processor_model and "amdfam17h" to arch_names_table.

* config/i386/i386.c (fold_builtin_cpu): Add M_AMDFAM17H
to processor_model and "amdfam17h" to arch_names_table.
* doc/extend.texi (__builtin_cpu_is): Document amdfam17h CPU name.

From-SVN: r252980

7 years agoIgnore empty string in target attribute (PR c++/81355).
Martin Liska [Tue, 19 Sep 2017 08:18:02 +0000 (10:18 +0200)] 
Ignore empty string in target attribute (PR c++/81355).

2017-09-19  Martin Liska  <mliska@suse.cz>

PR c++/81355
* config/i386/i386.c (sorted_attr_string): Skip empty strings.

From-SVN: r252967

7 years agoRevert backport revision.
Martin Liska [Tue, 19 Sep 2017 08:17:20 +0000 (10:17 +0200)] 
Revert backport revision.

From-SVN: r252966

7 years agoDaily bump.
GCC Administrator [Tue, 19 Sep 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r252959

7 years agoPR libstdc++/60936 reduce coupling between objects in libstdc++.a
Jonathan Wakely [Mon, 18 Sep 2017 12:57:05 +0000 (13:57 +0100)] 
PR libstdc++/60936 reduce coupling between objects in libstdc++.a

Backport from mainline
2017-02-03  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/60936
* src/c++11/Makefile.am: Add new files.
* src/c++11/Makefile.in: Regenerate.
* src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
(operator<<, operator>>, getline): Move explicit instantiations to ...
* src/c++11/cow-string-io-inst.cc: ... new file.
* src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
(operator<<, operator>>, getline): Move explicit instantiations to ...
* src/c++11/cow-wstring-io-inst.cc: ... new file.
* src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
(__throw_future_error, __throw_bad_function_call):
(__throw_regex_error): Move functions for C++11 exceptions to the
files that define the exception types.
* src/c++11/functional.cc (__throw_bad_function_call): Move here.
* src/c++11/future.cc (__throw_future_error): Likewise.
* src/c++11/ios.cc (__throw_ios_failure): Likewise.
* src/c++11/regex.cc (__throw_regex_error): Likewise.
* src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
representation directly instead of calling __int_to_char.
* src/c++11/sso_string.cc (__sso_string): New file for definition
of __sso_string type.
* src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
explicit instantiations of narrow string I/O functions.
* src/c++11/system_error.cc (__throw_system_error): Move here.
(__sso_string): Move to new file.
* src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
explicit instantiations of wide string I/O functions.
* src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
(operator>>, getline): Remove explicit instantiations from here.

From-SVN: r252925

7 years agobackport: [multiple changes]
Richard Biener [Mon, 18 Sep 2017 11:10:06 +0000 (11:10 +0000)] 
backport: [multiple changes]

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

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

PR middle-end/80341
* gcc.dg/torture/pr80341.c: New testcase.

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

PR middle-end/80281
* gcc.dg/torture/pr80281.c: New testcase.

From-SVN: r252920

7 years agobackport: [multiple changes]
Richard Biener [Mon, 18 Sep 2017 11:07:50 +0000 (11:07 +0000)] 
backport: [multiple changes]

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

Backport from mainline
2017-08-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/81977
* tree-ssa-sccvn.c (vn_reference_lookup_3): Fix look through
memcpy.

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

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

PR tree-optimization/82084
* fold-const.h (can_native_encode_string_p): Declare.
* fold-const.c (can_native_encode_string_p): Factor out from ...
(native_encode_string): ... here.
* tree-vect-stmts.c (vectorizable_store): Call it to avoid
vectorizing stores from constants we later cannot handle.

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

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

PR middle-end/81505
* fold-const.c (fold_negate_const): TREE_OVERFLOW should be
sticky.

* gcc.dg/ubsan/pr81505.c: New testcase.

From-SVN: r252919

7 years agoRemove test failing on the branch.
Martin Liska [Mon, 18 Sep 2017 09:08:21 +0000 (11:08 +0200)] 
Remove test failing on the branch.

2017-09-18  Martin Liska  <mliska@suse.cz>

* gcc.dg/asan/pr81224.c: Remove.

From-SVN: r252911

7 years agoDaily bump.
GCC Administrator [Mon, 18 Sep 2017 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r252898

7 years agoDaily bump.
GCC Administrator [Sun, 17 Sep 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r252890

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

From-SVN: r252868

7 years agobackport: re PR c++/81314 (Undefined reference to a function with -fopenmp)
Jakub Jelinek [Fri, 15 Sep 2017 21:42:20 +0000 (23:42 +0200)] 
backport: re PR c++/81314 (Undefined reference to a function with -fopenmp)

Backported from mainline
2017-09-14  Jakub Jelinek  <jakub@redhat.com>

PR c++/81314
* cp-gimplify.c (omp_var_to_track): Look through references.
(omp_cxx_notice_variable): Likewise.

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

From-SVN: r252864

7 years agobackport: re PR target/82112 (internal compiler error: in fold_convert_loc, at fold...
Jakub Jelinek [Fri, 15 Sep 2017 21:41:29 +0000 (23:41 +0200)] 
backport: re PR target/82112 (internal compiler error: in fold_convert_loc, at fold-const.c:2262)

Backported from mainline
2017-09-12  Jakub Jelinek  <jakub@redhat.com>

PR target/82112
* gcc.target/powerpc/pr82112.c: New test.
* g++.dg/ext/altivec-18.C: New test.

From-SVN: r252863

7 years agobackport: re PR target/82112 (internal compiler error: in fold_convert_loc, at fold...
Jakub Jelinek [Fri, 15 Sep 2017 21:40:51 +0000 (23:40 +0200)] 
backport: re PR target/82112 (internal compiler error: in fold_convert_loc, at fold-const.c:2262)

Backported from mainline
2017-09-12  Jakub Jelinek  <jakub@redhat.com>

PR target/82112
* c-common.c (sync_resolve_size): Instead of c_dialect_cxx ()
assertion check that in the condition.
(get_atomic_generic_size): Likewise.  Before testing if parameter
has pointer type, if it has array type, call for C++
default_conversion to perform array-to-pointer conversion.

* c-c++-common/pr82112.c: New test.
* gcc.dg/pr82112.c: New test.

From-SVN: r252862

7 years agobackport: re PR middle-end/81768 (error: control flow in the middle of basic block)
Jakub Jelinek [Fri, 15 Sep 2017 21:39:36 +0000 (23:39 +0200)] 
backport: re PR middle-end/81768 (error: control flow in the middle of basic block)

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

PR middle-end/81768
* omp-low.c (lower_omp_for): Recompute tree invariant if
gimple_omp_for_initial/final is ADDR_EXPR.

* gcc.dg/gomp/pr81768-2.c: New test.

From-SVN: r252861

7 years agobackport: re PR middle-end/81768 (error: control flow in the middle of basic block)
Jakub Jelinek [Fri, 15 Sep 2017 21:38:43 +0000 (23:38 +0200)] 
backport: re PR middle-end/81768 (error: control flow in the middle of basic block)

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

PR middle-end/81768
* omp-low.c (expand_omp_simd): Force second operands of COND_EXPR
into gimple val before gimplification fo the COND_EXPR.

* gcc.dg/gomp/pr81768-1.c: New test.

From-SVN: r252860

7 years agobackport: lra-remat.c (reg_overlap_for_remat_p): Fix a pasto.
Jakub Jelinek [Fri, 15 Sep 2017 21:37:58 +0000 (23:37 +0200)] 
backport: lra-remat.c (reg_overlap_for_remat_p): Fix a pasto.

Backported from mainline
2017-09-04  Jakub Jelinek  <jakub@redhat.com>

* lra-remat.c (reg_overlap_for_remat_p): Fix a pasto.

From-SVN: r252859

7 years agobackport: re PR c/81687 (Compiler drops label in OpenMP region)
Jakub Jelinek [Fri, 15 Sep 2017 21:37:16 +0000 (23:37 +0200)] 
backport: re PR c/81687 (Compiler drops label in OpenMP region)

Backported from mainline
2017-08-09  Jakub Jelinek  <jakub@redhat.com>

PR c/81687
* omp-low.c (omp_copy_decl): Don't remap FORCED_LABEL or DECL_NONLOCAL
LABEL_DECLs.
* tree-cfg.c (move_stmt_op): Don't adjust DECL_CONTEXT of FORCED_LABEL
or DECL_NONLOCAL labels.
(move_stmt_r) <case GIMPLE_LABEL>: Adjust DECL_CONTEXT of FORCED_LABEL
or DECL_NONLOCAL labels here.

* testsuite/libgomp.c/pr81687-1.c: New test.
* testsuite/libgomp.c/pr81687-2.c: New test.

From-SVN: r252858

7 years agobackport: re PR target/81621 (ICE in delete_insn, at cfgrtl.c:167 with s390x cross...
Jakub Jelinek [Fri, 15 Sep 2017 21:35:48 +0000 (23:35 +0200)] 
backport: re PR target/81621 (ICE in delete_insn, at cfgrtl.c:167 with s390x cross compiler)

Backported from mainline
2017-08-03  Jakub Jelinek  <jakub@redhat.com>

PR target/81621
* bb-reorder.c (pass_partition_blocks::execute): Return TODO_df_finish
after setting changeable df flags.

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

From-SVN: r252857

7 years agobackport: re PR middle-end/81052 (ICE in verify_dominators, at dominance.c:1184)
Jakub Jelinek [Fri, 15 Sep 2017 21:34:10 +0000 (23:34 +0200)] 
backport: re PR middle-end/81052 (ICE in verify_dominators, at dominance.c:1184)

Backported from mainline
2017-08-03  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/81052
* omp-low.c (diagnose_sb_0): Handle flag_openmp_simd like flag_openmp.
(pass_diagnose_omp_blocks::gate): Enable also for flag_openmp_simd.

* c-c++-common/pr81052.c: New test.

From-SVN: r252856

7 years agobackport: re PR c/45784 (gcc OpenMP - error: invalid controlling predicate)
Jakub Jelinek [Fri, 15 Sep 2017 21:33:08 +0000 (23:33 +0200)] 
backport: re PR c/45784 (gcc OpenMP - error: invalid controlling predicate)

Backported from mainline
2017-07-27  Jakub Jelinek  <jakub@redhat.com>

PR c/45784
* c-omp.c (c_finish_omp_for): If the condition is wrapped in
rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
new COMPOUND_EXPRs around the rhs of the comparison.

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

From-SVN: r252855

7 years agobackport: re PR target/81766 (ICE in maybe_add_or_update_dep_1, at sched-deps.c:924...
Jakub Jelinek [Fri, 15 Sep 2017 21:32:05 +0000 (23:32 +0200)] 
backport: re PR target/81766 (ICE in maybe_add_or_update_dep_1, at sched-deps.c:924 caused by r250815)

Backported from mainline
2017-08-08  Richard Biener  <rguenther@suse.de>

PR middle-end/81766
* function.c (thread_prologue_and_epilogue_insns): Restore
behavior of always calling find_many_sub_basic_blocks on
the inserted prologue.

* gcc.target/i386/pr81766.c: New testcase.

2017-08-02  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/79499
* function.c (thread_prologue_and_epilogue_insns): Determine blocks
for find_many_sub_basic_blocks bitmap by looking up BLOCK_FOR_INSN
of first NONDEBUG_INSN_P in each of the split_prologue_seq and
prologue_seq sequences - if any.

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

From-SVN: r252854

7 years agore PR libquadmath/65757 (gfortran gives incorrect result for anint with real*16 argument)
Jakub Jelinek [Fri, 15 Sep 2017 21:30:40 +0000 (23:30 +0200)] 
re PR libquadmath/65757 (gfortran gives incorrect result for anint with real*16 argument)

PR libquadmath/65757
* math/roundq.c: Cherry-pick upstream glibc 2015-04-28 change.

From-SVN: r252853

7 years agobackport: re PR target/81225 (ICE with -mavx512ifma -O3 -ffloat-store)
Jakub Jelinek [Fri, 15 Sep 2017 21:30:04 +0000 (23:30 +0200)] 
backport: re PR target/81225 (ICE with -mavx512ifma -O3 -ffloat-store)

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

PR target/81225
* config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For
V8FI, V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
of nonimmediate_operand and <store_mask_constraint> instead of m for
the input operand.  For V8FI iterator, always split if input is a MEM.
For V16FI and V8SF_256 iterators, don't test if both operands are MEM
if <mask_applied>.  For VI4F_256 iterator, use <store_mask_predicate>
instead of register_operand and <store_mask_constraint> instead of v for
the input operand.  Make sure both operands aren't MEMs for if not
<mask_applied>.

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

From-SVN: r252852

7 years agoBackport r251049
Martin Liska [Fri, 15 Sep 2017 14:11:57 +0000 (16:11 +0200)] 
Backport r251049

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-11  Martin Liska  <mliska@suse.cz>

PR tree-opt/79987
* tree-chkp.c (chkp_get_bounds_for_decl_addr): Do not instrument
variables of void type.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-11  Martin Liska  <mliska@suse.cz>

PR tree-opt/79987
* gcc.target/i386/mpx/pr79987.c: New test.

From-SVN: r252820

7 years agoBackport r249728
Martin Liska [Fri, 15 Sep 2017 12:15:52 +0000 (14:15 +0200)] 
Backport r249728

2017-09-15  Martin Liska  <mliska@suse.cz>

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

PR sanitizer/81224
* asan.c (instrument_derefs): Bail out inner references
that are hard register variables.
2017-09-15  Martin Liska  <mliska@suse.cz>

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

PR sanitizer/81224
* gcc.dg/asan/pr81224.c: New test.

From-SVN: r252814

7 years agoBackport r251530
Martin Liska [Fri, 15 Sep 2017 09:21:42 +0000 (11:21 +0200)] 
Backport r251530

2017-09-15  Martin Liska  <mliska@suse.cz>

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

PR inline-asm/82001
* ipa-icf-gimple.c (func_checker::compare_tree_list_operand):
Rename to ...
(func_checker::compare_asm_inputs_outputs): ... this function.
(func_checker::compare_gimple_asm): Use the function to compare
also ASM constrains.
* ipa-icf-gimple.h: Rename the function.
2017-09-15  Martin Liska  <mliska@suse.cz>

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

PR inline-asm/82001
* gcc.dg/ipa/pr82001.c: New test.

From-SVN: r252799

7 years agoBackport r251406
Martin Liska [Fri, 15 Sep 2017 09:20:37 +0000 (11:20 +0200)] 
Backport r251406

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-29  Martin Liska  <mliska@suse.cz>

PR other/39851
* gcc-interface/trans.c (Pragma_to_gnu): Set argument to NULL.

From-SVN: r252798

7 years agoBackport r251400
Martin Liska [Fri, 15 Sep 2017 09:19:36 +0000 (11:19 +0200)] 
Backport r251400

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-29  Martin Liska  <mliska@suse.cz>

PR other/39851
* gcc.c (driver_handle_option): Add new argument.
* opts-common.c (handle_option): Pass
target_option_override_hook.
* opts-global.c (lang_handle_option): Add new option.
(set_default_handlers):  Add new argument.
(decode_options): Likewise.
* opts.c (target_handle_option): Likewise.
(common_handle_option): Call target_option_override_hook.
* opts.h (struct cl_option_handler_func): Add hook for
target option override.
(struct cl_option_handlers): Likewise.
(set_default_handlers): Add new argument.
(decode_options): Likewise.
(common_handle_option): Likewise.
(target_handle_option): Likewise.
* toplev.c (toplev::main): Pass targetm.target_option.override
hook.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-29  Martin Liska  <mliska@suse.cz>

PR other/39851
* c-common.c (parse_optimize_options): Add argument to function
call.
* c-pragma.c (handle_pragma_diagnostic): Likewise.

From-SVN: r252797

7 years agoBackport r251020
Martin Liska [Fri, 15 Sep 2017 09:17:18 +0000 (11:17 +0200)] 
Backport r251020

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-10  Martin Liska  <mliska@suse.cz>

PR c++/81355
* c-attribs.c (handle_target_attribute):
Report warning for an empty string argument of target attribute.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-10  Martin Liska  <mliska@suse.cz>

PR c++/81355
* g++.dg/other/pr81355.C: New test.

From-SVN: r252795

7 years agoBackport r250951
Martin Liska [Fri, 15 Sep 2017 09:15:32 +0000 (11:15 +0200)] 
Backport r250951

2017-09-15  Martin Liska  <mliska@suse.cz>

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

PR tree-opt/81696
* ipa-icf-gimple.c (func_checker::compare_cst_or_decl): Consider
LABEL_DECLs that can be from a different function.
2017-09-15  Martin Liska  <mliska@suse.cz>

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

PR tree-opt/81696
* gcc.dg/ipa/pr81696.c: New test.

From-SVN: r252794

7 years agoBackport r250336
Martin Liska [Fri, 15 Sep 2017 09:13:57 +0000 (11:13 +0200)] 
Backport r250336

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-07-19  Martin Liska  <mliska@suse.cz>

PR sanitizer/63361
* c-c++-common/ubsan/float-cast-overflow-1.c: Add either
-ffloat-store or -mieee for targets that need it.

From-SVN: r252793

7 years agoBackport r249735
Martin Liska [Fri, 15 Sep 2017 09:13:29 +0000 (11:13 +0200)] 
Backport r249735

2017-09-15  Martin Liska  <mliska@suse.cz>

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

PR ipa/81128
* ipa-visibility.c (non_local_p): Handle visibility.
2017-09-15  Martin Liska  <mliska@suse.cz>

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

PR ipa/81128
* c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
to a function declaration.
2017-09-15  Martin Liska  <mliska@suse.cz>

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

PR ipa/81128
* gcc.target/i386/pr81128.c: New test.

From-SVN: r252792

7 years agoDaily bump.
GCC Administrator [Fri, 15 Sep 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r252777

7 years agoDaily bump.
GCC Administrator [Thu, 14 Sep 2017 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r252742

7 years agoPR libstdc++/81468 constrain std::chrono::time_point constructor
Jonathan Wakely [Wed, 13 Sep 2017 15:20:34 +0000 (16:20 +0100)] 
PR libstdc++/81468 constrain std::chrono::time_point constructor

PR libstdc++/81468
* include/std/chrono (time_point(const time_point<_Dur2>&)): Add
missing constraint from LWG DR 1177.
* testsuite/20_util/duration/cons/dr1177.cc: New.
* testsuite/20_util/time_point/cons/81468.cc: New.
* testsuite/20_util/duration/literals/range.cc: Update dg-error line.

From-SVN: r252091

7 years agoFix broken URLs in libstdc++ API docs
Jonathan Wakely [Wed, 13 Sep 2017 10:22:45 +0000 (11:22 +0100)] 
Fix broken URLs in libstdc++ API docs

* doc/doxygen/mainpage.html: Fix broken URLs.

From-SVN: r252072

7 years agoPR libstdc++/81835 fix broken URLs in libstdc++ docs
Jonathan Wakely [Wed, 13 Sep 2017 10:10:04 +0000 (11:10 +0100)] 
PR libstdc++/81835 fix broken URLs in libstdc++ docs

PR libstdc++/81835
* doc/xml/manual/extensions.xml: Replace unstable URL.
* doc/html/manual/ext_demangling.html: Regenerate.
* libsupc++/cxxabi.h (__cxa_demangle): Fix broken URL.

From-SVN: r252068

7 years agoDaily bump.
GCC Administrator [Wed, 13 Sep 2017 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r252049

7 years agobackport: re PR target/81833 (PowerPC: VSX: Miscompiles ffmpeg's scalarproduct_int16_...
Bill Schmidt [Tue, 12 Sep 2017 21:03:42 +0000 (21:03 +0000)] 
backport: re PR target/81833 (PowerPC: VSX: Miscompiles ffmpeg's scalarproduct_int16_vsx at -O1)

[gcc]

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

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

PR target/81833
* config/rs6000/altivec.md (altivec_vsum2sws): Convert from a
define_insn to a define_expand.
(altivec_vsum2sws_direct): New define_insn.
(altivec_vsumsws): Convert from a define_insn to a define_expand.

[gcc/testsuite]

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

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

PR target/81833
* gcc.target/powerpc/pr81833-1.c: New file.
* gcc.target/powerpc/pr81833-2.c: New file.

From-SVN: r252043

7 years agoDaily bump.
GCC Administrator [Tue, 12 Sep 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251994

7 years agoxtensa: fix PR target/82181
Max Filippov [Mon, 11 Sep 2017 21:49:34 +0000 (21:49 +0000)] 
xtensa: fix PR target/82181

2017-09-11  Max Filippov  <jcmvbkbc@gmail.com>
gcc/
Backport from mainline
* config/xtensa/xtensa.c (xtensa_mem_offset): Check that both
words of DImode object are reachable by xtensa_uimm8x4 access.

From-SVN: r251989

7 years agoDaily bump.
GCC Administrator [Mon, 11 Sep 2017 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251954

7 years agoPR c++/81852 define feature-test macro for -fthreadsafe-statics
Jonathan Wakely [Sun, 10 Sep 2017 09:05:31 +0000 (10:05 +0100)] 
PR c++/81852 define feature-test macro for -fthreadsafe-statics

gcc/c-family:

PR c++/81852
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.

gcc/testsuite:

PR c++/81852
* g++.dg/cpp1y/feat-cxx11.C: Check __cpp_threadsafe_static_init.
* g++.dg/cpp1y/feat-cxx14.C: Likewise.
* g++.dg/cpp1y/feat-cxx98.C: Likewise.
* g++.dg/cpp1y/feat-neg.C: Likewise.
* g++.dg/cpp1z/feat-cxx1z.C: Likewise.

From-SVN: r251947

7 years agoDaily bump.
GCC Administrator [Sun, 10 Sep 2017 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251943

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

From-SVN: r251915

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

From-SVN: r251859

7 years agox86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Replace 'struct ucontext' with ucontext_t.
Matthias Klose [Thu, 7 Sep 2017 07:20:51 +0000 (07:20 +0000)] 
x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Replace 'struct ucontext' with ucontext_t.

2017-09-07  Matthias Klose  <doko@ubuntu.com>

        * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Replace
        'struct ucontext' with ucontext_t.
        * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Likewise.
        * include/s390-signal.h (HANDLE_DIVIDE_OVERFLOW): Likewise.

From-SVN: r251831

7 years agobackport: re PR sanitizer/81066 (sanitizer_stoptheworld_linux_libcdep.cc:276:22:...
Matthias Klose [Thu, 7 Sep 2017 07:15:24 +0000 (07:15 +0000)] 
backport: re PR sanitizer/81066 (sanitizer_stoptheworld_linux_libcdep.cc:276:22: error: aggregate ‘sigaltstack handler_stack’ has incomplete type and cannot be defined)

2017-09-07  Matthias Klose  <doko@ubuntu.com>

        Backported from mainline
        2017-07-14  Jakub Jelinek  <jakub@redhat.com>

        PR sanitizer/81066
        * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
        * sanitizer_common/sanitizer_linux.cc: Likewise.
        * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
        * tsan/tsan_platform_linux.cc: Likewise.

From-SVN: r251828

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

From-SVN: r251823

7 years agobackport: re PR tree-optimization/81987 (ICE in verify_ssa with -O3 -march=skylake...
Bill Schmidt [Wed, 6 Sep 2017 18:44:51 +0000 (18:44 +0000)] 
backport: re PR tree-optimization/81987 (ICE in verify_ssa with -O3 -march=skylake-avx512)

[gcc]

2017-09-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

PR tree-optimization/81987
* gimple-ssa-strength-reduction.c (insert_initializers): Don't
insert an initializer in a location not dominated by the stride
definition.

[gcc/testsuite]

2017-09-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

PR tree-optimization/81987
* g++.dg/torture/pr81987.C: New file.

From-SVN: r251816

7 years agoDaily bump.
GCC Administrator [Wed, 6 Sep 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251748

7 years agobackport: re PR tree-optimization/81503 (Wrong code at -O2)
Bill Schmidt [Tue, 5 Sep 2017 21:50:38 +0000 (21:50 +0000)] 
backport: re PR tree-optimization/81503 (Wrong code at -O2)

[gcc]

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

Backport from mainline
2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
    Jakub Jelinek  <jakub@redhat.com>
    Richard Biener  <rguenther@suse.de>

PR tree-optimization/81503
* gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
folded constant fits in the target type; reorder tests for clarity.

[gcc/testsuite]

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

Backport from mainline
2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
    Jakub Jelinek  <jakub@redhat.com>
    Richard Biener  <rguenther@suse.de>

PR tree-optimization/81503
* gcc.c-torture/execute/pr81503.c: New file.

From-SVN: r251744

7 years agoRemove owner_less<void> test that fails on gcc-6-branch
Jonathan Wakely [Tue, 5 Sep 2017 10:30:54 +0000 (11:30 +0100)] 
Remove owner_less<void> test that fails on gcc-6-branch

* testsuite/20_util/owner_less/noexcept.cc: Remove owner_less<void>
tests.

From-SVN: r251708

7 years agoutils.c (unchecked_convert): When the result type is a non-biased integral type with...
Eric Botcazou [Tue, 5 Sep 2017 09:16:52 +0000 (09:16 +0000)] 
utils.c (unchecked_convert): When the result type is a non-biased integral type with size 0...

* gcc-interface/utils.c (unchecked_convert): When the result type is a
non-biased integral type with size 0, set the result to 0 directly.

From-SVN: r251703

7 years agotrans.c (Call_to_gnu): If this is a function call and there is no target...
Eric Botcazou [Tue, 5 Sep 2017 08:31:50 +0000 (08:31 +0000)] 
trans.c (Call_to_gnu): If this is a function call and there is no target...

* gcc-interface/trans.c (Call_to_gnu): If this is a function call and
there is no target, do not create a temporary for the return value for
an allocator either.

From-SVN: r251697

7 years agotrans.c (pos_to_constructor): Skip conversions to an unconstrained array type.
Eric Botcazou [Tue, 5 Sep 2017 08:21:14 +0000 (08:21 +0000)] 
trans.c (pos_to_constructor): Skip conversions to an unconstrained array type.

* gcc-interface/trans.c (pos_to_constructor): Skip conversions to an
unconstrained array type.

From-SVN: r251694

7 years agoDaily bump.
GCC Administrator [Tue, 5 Sep 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251687

7 years agompx-os-support.h: New file.
Uros Bizjak [Mon, 4 Sep 2017 18:48:36 +0000 (20:48 +0200)] 
mpx-os-support.h: New file.

* gcc.target/i386/mpx/mpx-os-support.h: New file.
* gcc.target/i386/mpx/mpx-check.h: Include mpx-os-support.h.
(check_osxsave): New function.
(main): Use __get_cpuid_count and return NORUNRES on failure.
Use check_osxsave.
* gcc.target/i386/mpx/va-arg-pack-1-lbv.c (foo1): Use
__builtin_va_arg_pack instead of __va_arg_pack.
* gcc.target/i386/mpx/va-arg-pack-1-nov.c (foo1): Ditto.
* gcc.target/i386/mpx/va-arg-pack-1-ubv.c (foo1): Ditto.
* gcc.target/i386/mpx/va-arg-pack-2-lbv.c (foo1): Ditto.
* gcc.target/i386/mpx/va-arg-pack-2-nov.c (foo1): Ditto.
* gcc.target/i386/mpx/va-arg-pack-2-ubv.c (foo1): Ditto.

From-SVN: r251685

7 years agoPR libstdc++/81751 don't call fflush(NULL)
Jonathan Wakely [Mon, 4 Sep 2017 16:52:30 +0000 (17:52 +0100)] 
PR libstdc++/81751 don't call fflush(NULL)

Backport from mainline
2017-08-09  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/79820
PR libstdc++/81751
* config/io/basic_file_stdio.cc (sys_open(FILE*, ios_base::openmode)):
Call fflush on the stream instead of calling sync() while _M_cfile is
null. Restore original value of errno.
* testsuite/ext/stdio_filebuf/char/79820.cc: New.
* testsuite/ext/stdio_filebuf/char/81751.cc: New.

From-SVN: r251676

7 years agoPR libstdc++/53984 handle exceptions in basic_istream::sentry
Jonathan Wakely [Mon, 4 Sep 2017 16:52:25 +0000 (17:52 +0100)] 
PR libstdc++/53984 handle exceptions in basic_istream::sentry

Backport from mainline
2017-07-25  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/53984
* include/bits/basic_ios.h (basic_ios::_M_setstate): Adjust comment.
* include/bits/istream.tcc (basic_istream::sentry): Handle exceptions
during construction.
* include/std/istream: Adjust comments for formatted input functions
and unformatted input functions.
* testsuite/27_io/basic_fstream/53984.cc: New.
* testsuite/27_io/basic_istream/sentry/char/53984.cc: New.

From-SVN: r251675

7 years agoPR libstdc++/81017 add noexcept to std::function move operations
Jonathan Wakely [Mon, 4 Sep 2017 16:52:20 +0000 (17:52 +0100)] 
PR libstdc++/81017 add noexcept to std::function move operations

Backport from mainline
2017-06-08  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/81017
* include/std/functional (function::function(function&&))
(function::operator=(function&&)): Add noexcept.
* testsuite/20_util/function/assign/move.cc: Check for noexcept.
* testsuite/20_util/function/cons/move.cc: Likewise.

From-SVN: r251674

7 years agoAdd noexcept to shared_ptr owner comparisons (LWG 2873)
Jonathan Wakely [Mon, 4 Sep 2017 16:52:15 +0000 (17:52 +0100)] 
Add noexcept to shared_ptr owner comparisons (LWG 2873)

Backport from mainline
2017-06-05  Jonathan Wakely  <jwakely@redhat.com>

* include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
(__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
specifiers as per LWG 2873 and LWG 2942.
* testsuite/20_util/owner_less/noexcept.cc: New.
* testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
noexcept guarantees.
* testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.

From-SVN: r251673

7 years agoPR c++/82039 suppress -Wzero-as-null-pointer-constant warning
Jonathan Wakely [Mon, 4 Sep 2017 16:17:11 +0000 (17:17 +0100)] 
PR c++/82039 suppress -Wzero-as-null-pointer-constant warning

Backport from mainline
2017-08-31  Jonathan Wakely  <jwakely@redhat.com>

PR c++/82039
* include/ext/new_allocator.h (__gnu_cxx::new_allocator::allocate):
Adjust null pointer constant to avoid warning.

From-SVN: r251668

7 years agoPR libstdc++/81891 fix double-free in hashtable constructor
Jonathan Wakely [Mon, 4 Sep 2017 16:17:07 +0000 (17:17 +0100)] 
PR libstdc++/81891 fix double-free in hashtable constructor

Backport from mainline
2017-08-18  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/81891
* include/bits/hashtable.h (_Hashtable(_InputIterator, _InputIterator,
size_type, const _H1&, const _H2&, const _Hash&, const _Equal&,
const _ExtractKey&, const allocator_type&)): Let destructor do clean
up if an exception is thrown.
* testsuite/23_containers/unordered_map/cons/81891.cc: New.

From-SVN: r251667

7 years agoPR libstdc++/81599 fix typo in Doxygen comments
Jonathan Wakely [Mon, 4 Sep 2017 16:17:03 +0000 (17:17 +0100)] 
PR libstdc++/81599 fix typo in Doxygen comments

Backport from mainline
2017-07-31  Marek Polacek  <polacek@redhat.com>

PR libstdc++/81599
* include/bits/stl_stack.h: Fix typo.

From-SVN: r251666

7 years agoPR libstdc++/81338 correctly manage string capacity
Jonathan Wakely [Mon, 4 Sep 2017 16:16:58 +0000 (17:16 +0100)] 
PR libstdc++/81338 correctly manage string capacity

Backport from mainline
2017-07-10  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/81338
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
Declare basic_stringbuf to be a friend.
* include/bits/sstream.tcc (basic_stringbuf::overflow)
[_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating.
* include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string
length to buffer length.
* testsuite/27_io/basic_stringstream/assign/81338.cc: New.

From-SVN: r251665

7 years agoDaily bump.
GCC Administrator [Mon, 4 Sep 2017 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251631

7 years agoDaily bump.
GCC Administrator [Sun, 3 Sep 2017 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251622

7 years agobackport: re PR fortran/81770 (Bogus warning: Pointer in pointer assignment might...
Janus Weil [Sat, 2 Sep 2017 19:31:44 +0000 (21:31 +0200)] 
backport: re PR fortran/81770 (Bogus warning: Pointer in pointer assignment might outlive the pointer target)

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

Backport from trunk
PR fortran/81770
* expr.c (gfc_check_pointer_assign): Improve the check whether pointer
may outlive pointer target.

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

Backport from trunk
PR fortran/81770
* gfortran.dg/warn_target_lifetime_3.f90: Fix a typo.
* gfortran.dg/warn_target_lifetime_4.f90: New testcase.

From-SVN: r251619

7 years agoDaily bump.
GCC Administrator [Sat, 2 Sep 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251615

7 years agoDaily bump.
GCC Administrator [Fri, 1 Sep 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251578

7 years agoDaily bump.
GCC Administrator [Thu, 31 Aug 2017 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251551

7 years agobackport: re PR target/81593 (Optimize PowerPC vector set from vector extract)
Michael Meissner [Wed, 30 Aug 2017 13:38:27 +0000 (13:38 +0000)] 
backport: re PR target/81593 (Optimize PowerPC vector set from vector extract)

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

Back port from trunk
2017-08-07  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/81593
* config/rs6000/vsx.md (vsx_concat_<mode>_1): New combiner insns
to recognize inserting into a vector from a double word element
that was extracted from another vector, and eliminate extra
XXPERMDI instructions.
(vsx_concat_<mode>_2): Likewise.
(vsx_concat_<mode>_3): Likewise.
(vsx_set_<mode>, VSX_D): Rewrite vector set in terms of vector
concat to allow optimizing inserts from previous extracts.

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

Back port from trunk
2017-08-07  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/81593
* gcc.target/powerpc/vec-setup.h: New tests to test various
combinations of setting up vectors of 2 double word elements.
* gcc.target/powerpc/vec-setup-long.c: Likewise.
* gcc.target/powerpc/vec-setup-double.c: Likewise.
* gcc.target/powerpc/vec-setup-be-long.c: Likewise.
* gcc.target/powerpc/vec-setup-be-double.c: Likewise.
* gcc.target/powerpc/vsx-extract-6.c: New tests for optimzing
vector inserts from vector extracts.
* gcc.target/powerpc/vsx-extract-7.c: Likewise.

From-SVN: r251532

7 years agoDaily bump.
GCC Administrator [Wed, 30 Aug 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251442

7 years ago<add missing ChangeLogs>
Michael Meissner [Tue, 29 Aug 2017 21:06:21 +0000 (21:06 +0000)] 
<add missing ChangeLogs>

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

Back port from trunk
2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/81193
* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
provides the hardware capability bits, define the macro
__BUILTIN_CPU_SUPPORTS__.
* config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
if GLIBC does not provide the hardware capability bits.  Add a
gcc_unreachable call if the built-in cpu function is neither
__builtin_cpu_is nor __builtin_cpu_supports.
* doc/extend.texi (PowerPC built-in functions): Document that
GLIBC 2.23 or newer is needed by __builtin_cpu_is and
__builtin_cpu_supports.  Document the macros defined by GCC if the
newer GLIBC is available.

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

Back port from trunk
2017-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/81193
* lib/target-supports.exp
(check_ppc_cpu_supports_hw_available): New test to make sure
__builtin_cpu_supports works on power7 and newer.

Back port from trunk
2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/81193
* gcc.target/powerpc/cpu-builtin-1.c: Add guard against using
__builtin_cpu_supports with old GLIBC's.

From-SVN: r251437

7 years ago[RS6000] linux startfile/endfile
Alan Modra [Tue, 29 Aug 2017 08:27:02 +0000 (17:57 +0930)] 
[RS6000] linux startfile/endfile

These need to match the gnu-user.h definitions to support
--enable-default-pie.  Otherwise we end up linking the wrong startup
files when defaulting to PIE.

PR target/81170
PR target/81295
* config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Upgrade to
match gnu-user.h startfile.
(ENDFILE_LINUX_SPEC): Similarly.

From-SVN: r251405

7 years agoPR driver/81523: Make -static override -pie
Alan Modra [Tue, 29 Aug 2017 08:25:17 +0000 (17:55 +0930)] 
PR driver/81523: Make -static override -pie

-static and -pie together behave differently depending on whether GCC is
configured with --enable-default-pie.  On x86, "-static -pie" fails to
create executable when --enable-default-pie isn't used, but creates a
static executable when --enable-default-pie is used.  This patch makes
-static completely override -pie to create a static executable, regardless
if --enable-default-pie is used to configure GCC.

PR target/81170
PR target/81295
PR driver/81523
* gcc.c (NO_PIE_SPEC): Delete.
(PIE_SPEC): Define as !no-pie/pie.  Move static|shared|r
exclusion..
(LINK_PIE_SPEC): ..to here.
(LINK_COMMAND_SPEC): Support -no-pie.
* config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Correct
chain of crtbegin*.o selection, update for PIE_SPEC changes and
format.
(GNU_USER_TARGET_ENDFILE_SPEC): Similarly.
* config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Similarly.
(ENDFILE_CRTEND_SPEC): Similarly.

From-SVN: r251404

7 years agoDaily bump.
GCC Administrator [Tue, 29 Aug 2017 00:16:30 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251393

7 years agoDaily bump.
GCC Administrator [Mon, 28 Aug 2017 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251371