]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
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

7 years agoDaily bump.
GCC Administrator [Sun, 27 Aug 2017 00:16:33 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251365

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

From-SVN: r251360

7 years agoDaily bump.
GCC Administrator [Fri, 25 Aug 2017 00:16:24 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251344

7 years agoPR c++/80287 C++ crash with __attribute((may_alias))
Yvan Roux [Thu, 24 Aug 2017 13:20:22 +0000 (13:20 +0000)] 
PR c++/80287 C++ crash with __attribute((may_alias))

gcc/
2017-08-24  Yvan Roux  <yvan.roux@linaro.org>

Backport from mainline
2017-04-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>

PR c++/80287
* class.c (fixup_may_alias): Fix all type variants.

gcc/testsuite
2017-08-24  Yvan Roux  <yvan.roux@linaro.org>

Backport from mainline
2017-08-22  Yvan Roux  <yvan.roux@linaro.org>

PR c++/80287
* g++.dg/pr8028.C: New test.

From-SVN: r251331

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

From-SVN: r251323

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

From-SVN: r251298

7 years agobackport: re PR target/80210 (ICE in in extract_insn, at recog.c:2311 on ppc64 for...
Peter Bergner [Tue, 22 Aug 2017 20:10:58 +0000 (15:10 -0500)] 
backport: re PR target/80210 (ICE in in extract_insn, at recog.c:2311 on ppc64 for with __builtin_pow)

gcc/
Backport from mainline
2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>

PR target/80210
* config/rs6000/rs6000.c (rs6000_activate_target_options): New function.
(rs6000_set_current_function): Rewrite function to use it.

gcc/testsuite/
Backport from mainline
2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>

PR target/80210
* gcc.target/powerpc/pr80210.c: New test.

From-SVN: r251292

7 years agobackport: re PR target/81910 ([avr] ICE with "address" attribute on type)
Georg-Johann Lay [Tue, 22 Aug 2017 07:57:40 +0000 (07:57 +0000)] 
backport: re PR target/81910 ([avr] ICE with "address" attribute on type)

Backport from 2017-08-22 trunk r251256.
PR target/81910
* config/avr/avr.c (avr_handle_addr_attribute): Early return if
not VAR_P. Filter attribute warnings with OPT_Wattributes.
(avr_attribute_table) <io, io_low, address>: Initialize
.decl_required with true.

From-SVN: r251258

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

From-SVN: r251251

7 years agore PR target/79883 (avr i18n: untranslated "interrupt" or "signal")
Georg-Johann Lay [Mon, 21 Aug 2017 12:44:23 +0000 (12:44 +0000)] 
re PR target/79883 (avr i18n: untranslated "interrupt" or "signal")

PR target/79883
* config/avr/avr.c (avr_set_current_function): Typo in diagnostic.

From-SVN: r251225

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

From-SVN: r251213

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

From-SVN: r251203

7 years agore PR target/81894 (Typo in x86 built-in function list)
Uros Bizjak [Sat, 19 Aug 2017 08:23:56 +0000 (10:23 +0200)] 
re PR target/81894 (Typo in x86 built-in function list)

PR target/81894
* doc/extend.texi (x86 Built-in Functions): Correct the name of
__builtin_ia32_lzcnt_u16.

From-SVN: r251199

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

From-SVN: r251194

7 years agoDaily bump.
GCC Administrator [Fri, 18 Aug 2017 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251176

7 years agobackport: re PR target/81861 (ASan pr64820.c testcase segfaults with LTO and -fstack...
Uros Bizjak [Thu, 17 Aug 2017 19:38:20 +0000 (21:38 +0200)] 
backport: re PR target/81861 (ASan pr64820.c testcase segfaults with LTO and -fstack-protector-strong)

2017-08-17  Uros Bizjak  <ubizjak@gmail.com>

Backport from mainline
2017-08-17  Maxim Ostapenko  <m.ostapenko@samsung.com>

PR target/81861
* config/i386/i386.c (ix86_option_override_internal): Save target
specific options after ix86_stack_protector_guard_reg was changed.

From-SVN: r251163

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

From-SVN: r251137

7 years agobackport: re PR tree-optimization/81354 (Segmentation fault in SSA Strength Reduction...
Bill Schmidt [Wed, 16 Aug 2017 14:11:26 +0000 (14:11 +0000)] 
backport: re PR tree-optimization/81354 (Segmentation fault in SSA Strength Reduction using -O3)

[gcc]

2017-08-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

PR tree-optimization/81354
* gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
Insert on edges rather than explicitly creating landing pads.
(analyze_candidates_and_replace): Commit edge inserts.

[gcc/testsuite]

2017-08-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

PR tree-optimization/81354
* g++.dg/torture/pr81354.C: New file.

From-SVN: r251121

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

From-SVN: r251111

7 years agore PR c++/71570 (ICE on invalid variable capture in cxx_incomplete_type_diagnostic...
Paolo Carlini [Mon, 14 Aug 2017 12:23:03 +0000 (12:23 +0000)] 
re PR c++/71570 (ICE on invalid variable capture in cxx_incomplete_type_diagnostic, at cp/typeck2.c:55)

/cp
2017-08-14  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71570
* lambda.c (add_capture): Early return if we cannot capture by
reference.

/testsuite
2017-08-14  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71570
* g++.dg/cpp0x/lambda/lambda-ice17.C: New.

From-SVN: r251091

7 years agoDaily bump.
GCC Administrator [Mon, 14 Aug 2017 00:17:08 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r251078

8 years agoDaily bump.
GCC Administrator [Sun, 13 Aug 2017 00:16:47 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251070

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

From-SVN: r251062

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

From-SVN: r251043

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

From-SVN: r251015

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

From-SVN: r250981

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

From-SVN: r250938

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

From-SVN: r250906

8 years agoDaily bump.
GCC Administrator [Sun, 6 Aug 2017 00:16:44 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250892

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

From-SVN: r250887

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

From-SVN: r250862

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

From-SVN: r250839

8 years agore PR target/81641 (Assemble failure with named address spaces and -masm=intel)
Uros Bizjak [Wed, 2 Aug 2017 07:37:15 +0000 (09:37 +0200)] 
re PR target/81641 (Assemble failure with named address spaces and -masm=intel)

PR target/81641
* config/i386/i386.c (ix86_print_operand_address_as): For -masm=intel
print "ds:" only for immediates in generic address space.

testsuite/ChangeLog:

PR target/81641
* gcc.target/i386/pr81641.c: New test.

From-SVN: r250817

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

From-SVN: r250808

8 years agoDaily bump.
GCC Administrator [Tue, 1 Aug 2017 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250754

8 years agore PR sanitizer/81604 (Ubsan type reporting can be bogus in some cases)
Jakub Jelinek [Mon, 31 Jul 2017 08:56:03 +0000 (10:56 +0200)] 
re PR sanitizer/81604 (Ubsan type reporting can be bogus in some cases)

PR sanitizer/81604
* ubsan.c (ubsan_type_descriptor): For UBSAN_PRINT_ARRAY don't
change type to the element type, instead add eltype variable and
use it where we are interested in the element type.

* c-c++-common/ubsan/pr81604.c: New test.

From-SVN: r250732

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

From-SVN: r250723

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

From-SVN: r250716

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

From-SVN: r250691

8 years agobackport: ppc-auxv.h (PPC_FEATURE2_DARN): New define.
Peter Bergner [Fri, 28 Jul 2017 22:31:22 +0000 (17:31 -0500)] 
backport: ppc-auxv.h (PPC_FEATURE2_DARN): New define.

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

* config/rs6000/ppc-auxv.h (PPC_FEATURE2_DARN): New define.
(PPC_FEATURE2_SCV): Likewise.
* config/rs6000/rs6000.c (cpu_supports_info): Use them.

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

* gcc.target/powerpc/cpu-builtin-1.c (darn, scv): Add tests.

From-SVN: r250689

8 years agobackport: re PR target/81414 (ICE in fma steering on AArch64/cortex-a57)
Bin Cheng [Fri, 28 Jul 2017 11:25:08 +0000 (11:25 +0000)] 
backport: re PR target/81414 (ICE in fma steering on AArch64/cortex-a57)

Backport from mainline r250496
2017-07-25  Bin Cheng  <bin.cheng@arm.com>

PR target/81414
* config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac
instructions if no du chain is found.

2017-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

PR target/81414
* gcc.target/aarch64/pr81414.C: New.

From-SVN: r250658

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

From-SVN: r250645

8 years agore PR tree-optimization/81555 (Wrong code at -O1)
Jakub Jelinek [Thu, 27 Jul 2017 09:32:33 +0000 (11:32 +0200)] 
re PR tree-optimization/81555 (Wrong code at -O1)

PR tree-optimization/81555
PR tree-optimization/81556
* tree-ssa-reassoc.c (rewrite_expr_tree): Add NEXT_CHANGED argument,
if true, force CHANGED for the recursive invocation.
(reassociate_bb): Remember original length of ops array, pass
len != orig_len as NEXT_CHANGED in rewrite_expr_tree call.

* gcc.c-torture/execute/pr81555.c: New test.
* gcc.c-torture/execute/pr81556.c: New test.

From-SVN: r250612

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

From-SVN: r250599

8 years agobackport: rs6000.c (rs6000_elf_output_toc_section_asm_op): Align .toc.
Bill Schmidt [Wed, 26 Jul 2017 15:54:16 +0000 (15:54 +0000)] 
backport: rs6000.c (rs6000_elf_output_toc_section_asm_op): Align .toc.

2017-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline r235874
2016-05-04  Alan Modra  <amodra@gmail.com>

* config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
Align .toc.

From-SVN: r250579

8 years agobackport: re PR target/79883 (avr i18n: untranslated "interrupt" or "signal")
Georg-Johann Lay [Wed, 26 Jul 2017 14:58:42 +0000 (14:58 +0000)] 
backport: re PR target/79883 (avr i18n: untranslated "interrupt" or "signal")

gcc/
Backport from 2016-06-15 trunk r237486.
Backport from 2017-07-12 trunk r250156.
PR target/79883
PR target/67353
* config/avr/avr.c (avr_set_current_function): Warn misspelled ISR
only if -Wmisspelled-isr is on.  In diagnostic messages: Quote
keywords and (parts of) identifiers.
[WITH_AVRLIBC]: Warn functions named "ISR", "SIGNAL" or "INTERUPT".
* doc/invoke.texi (AVR Options) <-Wmisspelled-isr>: Decument.

From-SVN: r250577

8 years agobackport: re PR target/81305 ([avr] avrtiny uses LDS for SREG in ISR routines which...
Georg-Johann Lay [Wed, 26 Jul 2017 14:22:31 +0000 (14:22 +0000)] 
backport: re PR target/81305 ([avr] avrtiny uses LDS for SREG in ISR routines which is out of range of LDS.)

gcc/
Backport from 2017-07-05 trunk r249995.
PR target/81305
* config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
Don't depend on "optimize > 0".
(out_movhi_r_mr, out_movqi_mr_r): Same.
(out_movhi_mr_r, out_movqi_r_mr): Same.
(avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
io_address_operand on "optimize > 0".
gcc/testsuite/
Backport from 2017-07-05 trunk r249995, r249996.
PR target/81305
* gcc.target/avr/isr-test.h: New file.
* gcc.target/avr/torture/isr-01-simple.c: New test.
* gcc.target/avr/torture/isr-02-call.c: New test.
* gcc.target/avr/torture/isr-03-fixed.c: New test.

From-SVN: r250576

8 years agobackport: re PR target/81407 ([avr] Diagnose if a variable in progmem needs construct...
Georg-Johann Lay [Wed, 26 Jul 2017 14:08:56 +0000 (14:08 +0000)] 
backport: re PR target/81407 ([avr] Diagnose if a variable in progmem needs constructing.)

gcc/
Backport from 2017-07-12 trunk r250151.
PR target/81407
* config/avr/avr.c (avr_encode_section_info)
[progmem && !TREE_READONLY]: Error if progmem object needs
constructing.

From-SVN: r250574

8 years agobackport: re PR lto/81487 ([mingw32] ld.exe: error: asprintf failed)
Georg-Johann Lay [Wed, 26 Jul 2017 13:59:54 +0000 (13:59 +0000)] 
backport: re PR lto/81487 ([mingw32] ld.exe: error: asprintf failed)

lto-plugin/
Backport from 2017-07-26 gcc-7-branch r250562.
PR lto/81487
* lto-plugin.c (claim_file_handler): Use xasprintf instead of
asprintf.
[hi!=0]: Swap hi and lo arguments supplied to xasprintf.
gcc/
Backport from 2017-07-26 gcc-7-branch r250562.
PR 81487
* hsa-brig.c (brig_init): Use xasprintf instead of asprintf.
* tree-ssa-structalias.c (alias_get_name): Same.

From-SVN: r250573

8 years agoDaily bump.
GCC Administrator [Wed, 26 Jul 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250552

8 years agobackport: re PR tree-optimization/81162 (UBSAN switch triggers incorrect optimization...
Bill Schmidt [Tue, 25 Jul 2017 19:42:36 +0000 (19:42 +0000)] 
backport: re PR tree-optimization/81162 (UBSAN switch triggers incorrect optimization in SLSR)

[gcc]

2016-07-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-07-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/81162
* gimple-ssa-strength-reduction.c (replace_mult_candidate): Don't
replace a negate with an add.

[gcc/testsuite]

2016-07-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-07-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/81162
* gcc.dg/ubsan/pr81162.c: New file.

From-SVN: r250543

8 years agobackport: re PR rtl-optimization/75964 (insn combiner removes comparison after ABS)
Georg-Johann Lay [Tue, 25 Jul 2017 11:55:44 +0000 (11:55 +0000)] 
backport: re PR rtl-optimization/75964 (insn combiner removes comparison after ABS)

gcc/
Backport from 2017-05-06 trunk r247719.
PR rtl-optimization/75964
* simplify-rtx.c (simplify_const_relational_operation): Remove
invalid handling of comparisons of integer ABS.
gcc/testsuite/
Backport from 2017-05-06 trunk r247719.
PR rtl-optimization/75964
* gcc.dg/torture/pr75964.c: New test.

From-SVN: r250511

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

From-SVN: r250491

8 years agore PR target/80569 (i686: "shrx" instruction generated in 16-bit mode)
Uros Bizjak [Mon, 24 Jul 2017 18:59:21 +0000 (20:59 +0200)] 
re PR target/80569 (i686: "shrx" instruction generated in 16-bit mode)

PR target/80569
* config/i386/i386.c (ix86_option_override_internal): Disable
BMI, BMI2 and TBM instructions for -m16.

testsuite/ChangeLog:

PR target/80569
* gcc.target/i386/pr80569.c: New test.

From-SVN: r250479

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

From-SVN: r250468

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

From-SVN: r250455

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

From-SVN: r250448

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

From-SVN: r250410

8 years agore PR go/81393 (Bootstrap failure on s390x-linux while building libgo against recent...
Ian Lance Taylor [Thu, 20 Jul 2017 22:03:48 +0000 (22:03 +0000)] 
re PR go/81393 (Bootstrap failure on s390x-linux while building libgo against recent glibc)

PR go/81393
syscall: don't use GETREGS/SETREGS on s390

They were removed in recent glibc.

This is a backport of https://golang.org/cl/48231 to earlier branches.
Define required type and constants in syscall package directly, don't
try to pull them from the system header files.

From-SVN: r250403

8 years agobackport: float128-ifunc.c: Don't include auxv.h.
Peter Bergner [Thu, 20 Jul 2017 14:34:01 +0000 (09:34 -0500)] 
backport: float128-ifunc.c: Don't include auxv.h.

libgcc/
Backport from mainline
2017-07-07  Peter Bergner  <bergner@vnet.ibm.com>

* config/rs6000/float128-ifunc.c: Don't include auxv.h.
(have_ieee_hw_p): Delete function.
(SW_OR_HW) Use __builtin_cpu_supports().

From-SVN: r250392

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

From-SVN: r250374

8 years agobackport: re PR target/81193 (PowerPC GCC __builtin_cpu_is and __builtin_cpu_supports...
Michael Meissner [Wed, 19 Jul 2017 22:05:20 +0000 (22:05 +0000)] 
backport: re PR target/81193 (PowerPC GCC __builtin_cpu_is and __builtin_cpu_supports should warn about old libraries)

[gcc]
2017-07-19  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-19  Michael Meissner  <meissner@linux.vnet.ibm.com>

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

PR target/81193
* gcc.target/powerpc/cpu-builtin-1.c: Change test to use #ifdef
__BUILTIN_CPU_SUPPORTS to see if the GLIBC is new enough that
__builtin_cpu_is and __builtin_cpu_supports are supported.

From-SVN: r250371

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

From-SVN: r250330

8 years agore PR target/81471 (internal compiler error: in curr_insn_transform, at lra-constrain...
Uros Bizjak [Tue, 18 Jul 2017 20:16:47 +0000 (22:16 +0200)] 
re PR target/81471 (internal compiler error: in curr_insn_transform, at lra-constraints.c:3495)

PR target/81471
* config/i386/i386.md (rorx_immediate_operand): New mode attribute.
(*bmi2_rorx<mode>3_1): Use rorx_immediate_operand as
operand 2 predicate.
(*bmi2_rorxsi3_1_zext): Use const_0_to_31_operand as
operand 2 predicate.
(ror,rol -> rorx splitters): Use const_int_operand as
operand 2 predicate.

testsuite/ChangeLog:

PR target/81471
* gcc.target/i386/pr81471.c: New test.

From-SVN: r250319

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

From-SVN: r250292

8 years agobackport: re PR middle-end/80929 (Division with constant no more optimized to mult...
Georg-Johann Lay [Mon, 17 Jul 2017 09:09:42 +0000 (09:09 +0000)] 
backport: re PR middle-end/80929 (Division with constant no more optimized to mult highpart)

Backport from 2017-07-17 trunk r250258.
PR 80929
* config/avr/avr.c (avr_mul_highpart_cost): New static function.
(avr_rtx_costs_1) [TRUNCATE]: Use it to compute mul_highpart cost.
[LSHIFTRT, outer_code = TRUNCATE]: Same.

From-SVN: r250260

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

From-SVN: r250249

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

From-SVN: r250228

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

From-SVN: r250219

8 years agoBackport PRs 66669, 68972, 80101, 80103
Kelvin Nilsen [Fri, 14 Jul 2017 16:58:00 +0000 (16:58 +0000)] 
Backport PRs 66669, 68972, 80101, 80103

gcc/ChangeLog:

2017-07-14  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backports from trunk

2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
* config/rs6000/rs6000.c (rs6000_option_override_internal): Change
handling of certain combinations of target options, including the
combinations -mpower8-vector vs. -mno-vsx, -mpower8-vector vs.
-mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.

2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
PR target/80103
* config/rs6000/rs6000.c (rs6000_option_override_internal): Add
special handling for target option conflicts between dform options
(-mpower9-dform, -mpower9-dform-vector, -mpower9-dform-scalar) and
-mno-direct-move.

2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
PR target/80101
* config/rs6000/power6.md: Replace store_data_bypass_p calls with
rs6000_store_data_bypass_p in seven define_bypass directives and
in several comments.
* config/rs6000/rs6000-protos.h: Add prototype for
rs6000_store_data_bypass_p function.
* config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
function implements slightly different (rs6000-specific) semantics
than store_data_bypass_p, returning false rather than aborting
with assertion error when arguments do not satisfy the
requirements of store data bypass.
(rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
rs6000_store_data_bypass_p.

gcc/testsuite/ChangeLog:

2017-07-14  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backports from trunk:

2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
PR target/66669
* gcc.dg/loop-8.c: Modify dg-skip-if directive to exclude this
test on powerpc targets.

2017-02-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
PR target/68972
* g++.dg/cpp1y/vla-initlist1.C: Add dg-skip-if directive to
disable this test on power architecture.

2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
* gcc.target/powerpc/p9-options-1.c: New test.

2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
PR target/80103
* gcc.target/powerpc/pr80103-1.c: New test.

2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
PR target/80101
* gcc.target/powerpc/pr80101-1.c: New test.

2017-07-05  Kelvin Nilsen  <kelvin@gcc.gnu.org>
PR target/80103
* gcc.target/powerpc/pr80103-1.c (b): Correct spelling of
__attribute__.

From-SVN: r250210

8 years agobackport: re PR target/81375 (unrecognizable insn)
Uros Bizjak [Fri, 14 Jul 2017 05:30:58 +0000 (07:30 +0200)] 
backport: re PR target/81375 (unrecognizable insn)

Backport from mainline
2017-07-10  Uros Bizjak  <ubizjak@gmail.com>

PR target/81375
* config/i386/i386.md (divsf3): Add TARGET_SSE to TARGET_SSE_MATH.
(rcpps): Ditto.
(*rsqrtsf2_sse): Ditto.
(rsqrtsf2): Ditto.
(div<mode>3): Macroize insn from divdf3 and divsf3
using MODEF mode iterator.

Backport from mainline
2017-07-04  Uros Bizjak  <ubizjak@gmail.com>

PR target/81300
* config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
Require dead FLAGS_REG at the beginning of a peephole.

testsuite/ChangeLog:

Backport from mainline
2017-07-10  Uros Bizjak  <ubizjak@gmail.com>

PR target/81375
* gcc.target/i386/pr81375.c: New test.

Backport from mainline
2017-07-04  Uros Bizjak  <ubizjak@gmail.com>

PR target/81300
* gcc.target/i386/pr81300.c: New test.

From-SVN: r250196

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

From-SVN: r250193

8 years agoBackport "Fix sigsegv in find_same_succ_bb"
Tom de Vries [Thu, 13 Jul 2017 05:42:15 +0000 (05:42 +0000)] 
Backport "Fix sigsegv in find_same_succ_bb"

2017-07-13  Tom de Vries  <tom@codesourcery.com>

backport from mainline:
2017-07-03  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/81192
* tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
BB_SAME_SUCC (bb) == NULL.

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

From-SVN: r250175

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

From-SVN: r250171

8 years agoOnly run new test on targets that support std::promise
Jonathan Wakely [Wed, 12 Jul 2017 10:15:53 +0000 (11:15 +0100)] 
Only run new test on targets that support std::promise

* testsuite/30_threads/promise/members/at_thread_exit2.cc: Require
atomic builtins.

From-SVN: r250150

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

From-SVN: r250145

8 years agoPR libstdc++/80316 make promise::set_value throw no_state error
Jonathan Wakely [Tue, 11 Jul 2017 12:38:35 +0000 (13:38 +0100)] 
PR libstdc++/80316 make promise::set_value throw no_state error

Backport from mainline
2017-04-21  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/80316
* include/std/future (_State_baseV2::_Setter::operator()): Remove
_S_check calls that are done after the pointer to the shared state is
already dereferenced.
(_State_baseV2::_Setter<_Res, void>): Define specialization for void
as partial specialization so it can be defined within the definition
of _State_baseV2.
(_State_baseV2::__setter): Call _S_check.
(_State_baseV2::__setter(promise<void>*)): Add overload for use by
promise<void>::set_value and promise<void>::set_value_at_thread_exit.
(promise<T>, promise<T&>, promise<void>): Make _State a friend.
(_State_baseV2::_Setter<void, void>): Remove explicit specialization.
(promise<void>::set_value, promise<void>::set_value_at_thread_exit):
Use new __setter overload.
* testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
* testsuite/30_threads/promise/members/set_exception.cc: Test
promise<T&> and promise<void> specializations.
* testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
Test for no_state error condition.
* testsuite/30_threads/promise/members/set_value2.cc: Likewise.

From-SVN: r250131

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

From-SVN: r250109

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

From-SVN: r250088

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

From-SVN: r250077

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

From-SVN: r250070

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

From-SVN: r250045

8 years agoaarch64.c (aarch64_load_symref_appropriately): Access the lower part of RTX appropria...
Andrew Pinski [Thu, 6 Jul 2017 09:31:25 +0000 (09:31 +0000)] 
aarch64.c (aarch64_load_symref_appropriately): Access the lower part of RTX appropriately.

gcc
* config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
Access the lower part of RTX appropriately.

gcc/testsuite
* gcc.target/aarch64/pr71112.c : New Testcase.

From-SVN: r250014

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

From-SVN: r250010

8 years agoDaily bump.
GCC Administrator [Wed, 5 Jul 2017 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r249980

8 years agoFix ChangeLog format in r249597
Thomas Preud'homme [Tue, 4 Jul 2017 13:45:57 +0000 (13:45 +0000)] 
Fix ChangeLog format in r249597

This patch fixes relative pathnames in gcc/ChangeLog for r249597.

From-SVN: r249968

8 years agoUse ucontext_t not struct ucontext in linux-unwind.h files.
Joseph Myers [Tue, 4 Jul 2017 10:23:57 +0000 (11:23 +0100)] 
Use ucontext_t not struct ucontext in linux-unwind.h files.

Current glibc no longer gives the ucontext_t type the tag struct
ucontext, to conform with POSIX namespace rules.  This requires
various linux-unwind.h files in libgcc, that were previously using
struct ucontext, to be fixed to use ucontext_t instead.  This is
similar to the removal of the struct siginfo tag from siginfo_t some
years ago.

This patch changes those files to use ucontext_t instead.  As the
standard name that should be unconditionally safe, so this is not
restricted to architectures supported by glibc, or conditioned on the
glibc version.

Tested compilation together with current glibc with glibc's
build-many-glibcs.py.

* config/aarch64/linux-unwind.h (aarch64_fallback_frame_state),
config/alpha/linux-unwind.h (alpha_fallback_frame_state),
config/bfin/linux-unwind.h (bfin_fallback_frame_state),
config/i386/linux-unwind.h (x86_64_fallback_frame_state,
x86_fallback_frame_state), config/m68k/linux-unwind.h (struct
uw_ucontext), config/nios2/linux-unwind.h (struct nios2_ucontext),
config/pa/linux-unwind.h (pa32_fallback_frame_state),
config/sh/linux-unwind.h (sh_fallback_frame_state),
config/tilepro/linux-unwind.h (tile_fallback_frame_state),
config/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Use
ucontext_t instead of struct ucontext.

From-SVN: r249957

8 years agoBASE-VER: Bump to 6.4.1.
Richard Biener [Tue, 4 Jul 2017 10:15:56 +0000 (10:15 +0000)] 
BASE-VER: Bump to 6.4.1.

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

* BASE-VER: Bump to 6.4.1.

From-SVN: r249955

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