]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
5 years ago[arm] PR target/89400 fix thumb1 unaligned access expansion
Richard Earnshaw [Thu, 17 Oct 2019 16:48:39 +0000 (16:48 +0000)] 
[arm]  PR target/89400 fix thumb1 unaligned access expansion

Armv6 has support for unaligned accesses to memory.  However, the
thumb1 code patterns were trying to use the 32-bit code constraints.
One failure mode from this was that the patterns are designed to be
compatible with conditional execution and this was then causing an
assert in the compiler.

The unaligned_loadhis pattern is only used for expanding extv, which
in turn is only enabled for systems supporting thumb2.  Given that
there is no simple expansion for a thumb1 sign-extending load (the
instruction has no immediate offset form and requires two registers in
the address) it seems simpler to just disable this for thumb1.

Fixed thusly:

        Backport from trunk:
2019-05-03  Richard Earnshaw  <rearnsha@arm.com>

PR target/89400
* config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
Restrict 'all' variant to 32-bit configurations.
(unaligned_loadhiu): Likewise.
(unaligned_storehi): Likewise.
(unaligned_storesi): Likewise.
(unaligned_loadhis): Disable when compiling for thumb1.

From-SVN: r277125

5 years agobackport: re PR testsuite/92093 (New test case gcc.target/powerpc/pr91275.c from...
Bill Schmidt [Thu, 17 Oct 2019 15:35:28 +0000 (15:35 +0000)] 
backport: re PR testsuite/92093 (New test case gcc.target/powerpc/pr91275.c from r276410 fails on BE)

2019-10-17  Bill Schmidt  <wschmidt@linux.ibm.com>

Backport from mainline
2019-10-15  Bill Schmidt  <wschmidt@linux.ibm.com>

PR target/92093
* gcc.target/powerpc/pr91275.c: Fix type and endian issues.

From-SVN: r277119

5 years agoDaily bump.
GCC Administrator [Thu, 17 Oct 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r277085

5 years agobackport: config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and LINK_OS_EXTRA_SPEC6...
Peter Bergner [Wed, 16 Oct 2019 15:19:46 +0000 (15:19 +0000)] 
backport: config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and LINK_OS_EXTRA_SPEC64 to...

Backport from mainline
2019-10-08  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>

* config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.

From-SVN: r277072

5 years agoDaily bump.
GCC Administrator [Wed, 16 Oct 2019 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r277030

5 years agoDaily bump.
GCC Administrator [Tue, 15 Oct 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276979

5 years agoDaily bump.
GCC Administrator [Mon, 14 Oct 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276944

5 years agoDaily bump.
GCC Administrator [Sun, 13 Oct 2019 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276930

5 years agore PR ada/91995 (gnat miscompilation and bootstrap failure on m68k-linux)
Eric Botcazou [Sat, 12 Oct 2019 14:51:26 +0000 (14:51 +0000)] 
re PR ada/91995 (gnat miscompilation and bootstrap failure on m68k-linux)

PR ada/91995
* sem_util.ads (Defining_Entity): Remove 2nd and 3th parameters.
* sem_util.adb (Defining_Entity): Remove 2nd and 3th parameters,
and adjust accordingly.

From-SVN: r276919

5 years agoDaily bump.
GCC Administrator [Sat, 12 Oct 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276909

5 years agobackport: re PR target/88630 (Incorrect float negating together with convertion to...
Oleg Endo [Fri, 11 Oct 2019 11:12:28 +0000 (11:12 +0000)] 
backport: re PR target/88630 (Incorrect float negating together with convertion to int on ST-40)

gcc/
Backport from mainline
2019-10-10  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/88630
* config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
* config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
also for TARGET_FPU_SH4_300.
(sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
TARGET_SH4_300.
* config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
(negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
(*negsf2_i): Split into ...
(negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
(abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
(**abssf2_i): Split into ...
(abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
(negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
(*negdf2_i): Split into ...
(negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
(absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
(**abssf2_i): Split into ...
(absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.

From-SVN: r276877

5 years agodecl.c (annotate_value): Really test the sign of the value when deciding to build...
Eric Botcazou [Fri, 11 Oct 2019 08:57:58 +0000 (08:57 +0000)] 
decl.c (annotate_value): Really test the sign of the value when deciding to build a NEGATE_EXPR.

* gcc-interface/decl.c (annotate_value) <INTEGER_CST>: Really test the
sign of the value when deciding to build a NEGATE_EXPR.
<PLUS_EXPR>: Remove redundant line.
<BIT_AND_EXPR>: Do the negation here.

From-SVN: r276869

5 years agoDaily bump.
GCC Administrator [Fri, 11 Oct 2019 00:16:27 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276855

5 years agoDaily bump.
GCC Administrator [Thu, 10 Oct 2019 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276783

5 years agoDaily bump.
GCC Administrator [Wed, 9 Oct 2019 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276747

5 years agoDaily bump.
GCC Administrator [Tue, 8 Oct 2019 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276682

5 years agobackport: re PR target/91275 (__builtin_crypto_vpmsumd gives different results -O...
Bill Schmidt [Mon, 7 Oct 2019 20:50:05 +0000 (20:50 +0000)] 
backport: re PR target/91275 (__builtin_crypto_vpmsumd gives different results -O[123] vs -O0)

[gcc]

2019-10-07  Bill Schmidt  <wschmidt@linux.ibm.com>

Backport from mainline
2019-10-01  Bill Schmidt  <wschmidt@linux.ibm.com>

PR target/91275
* config/rs6000/rs6000.c (rtx_is_swappable_p): Don't swap
vpmsumd.

[gcc/testsuite]

2019-10-07  Bill Schmidt  <wschmidt@linux.ibm.com>

Backport from mainline
2019-10-01  Bill Schmidt  <wschmdit@linux.ibm.com>

PR target/91275
* gcc.target/powerpc/pr91275.c: New.

From-SVN: r276678

5 years agoDaily bump.
GCC Administrator [Mon, 7 Oct 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276641

5 years agoDaily bump.
GCC Administrator [Sun, 6 Oct 2019 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276631

5 years agoDaily bump.
GCC Administrator [Sat, 5 Oct 2019 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276615

5 years agoDaily bump.
GCC Administrator [Fri, 4 Oct 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276557

5 years agoDaily bump.
GCC Administrator [Thu, 3 Oct 2019 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276499

5 years agoDaily bump.
GCC Administrator [Wed, 2 Oct 2019 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276435

5 years agobackport: re PR c++/88562 (Incorrect pointer incrementing on SH4)
Oleg Endo [Tue, 1 Oct 2019 15:02:25 +0000 (15:02 +0000)] 
backport: re PR c++/88562 (Incorrect pointer incrementing on SH4)

gcc/
2019-10-01  Oleg Endo  <olegendo@gcc.gnu.org>

Backport from mainline

2019-10-01  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/88562
* config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
sh_check_add_incdec_notes to preserve REG_INC notes when replacing
a memory access insn.

From-SVN: r276414

5 years agoDaily bump.
GCC Administrator [Tue, 1 Oct 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276383

5 years agoDaily bump.
GCC Administrator [Mon, 30 Sep 2019 00:16:26 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276273

5 years agoDaily bump.
GCC Administrator [Sun, 29 Sep 2019 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276261

5 years ago[X86, Darwin] Backport fix for pr82920 (part 4).
Iain Sandoe [Sat, 28 Sep 2019 20:05:38 +0000 (20:05 +0000)] 
[X86, Darwin] Backport fix for pr82920 (part 4).

As part of the backport for pr82920, the following three testcases
that are only present on the 7 and 8 branch, also needed amendment.

2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>

PR target/82920
* gcc.target/i386/indirect-thunk-bnd-1.c: Adjust scan-asms for Darwin,
do not use -fno-pic on Darwin.
* gcc.target/i386/indirect-thunk-bnd-2.c: Likewise.
* gcc.target/i386/ret-thunk-25.c: Skip for Darwin, which has a
different ABI for returning this category of complex value.

From-SVN: r276259

5 years ago[X86, Darwin] Backport fix for pr82920 (part 2).
Iain Sandoe [Sat, 28 Sep 2019 20:00:22 +0000 (20:00 +0000)] 
[X86, Darwin] Backport fix for pr82920 (part 2).

Darwin doesn't support mx32, and some tests were
failing because it was trying to do them.  When we
disable this it turns out that quite a few tests
requiring mx32 support were not guarded.

gcc/

2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>

PR target/82920
* config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
Darwin.

gcc/testsuite/

2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-14  Iain Sandoe  <iain@sandoe.co.uk>

PR target/82920
* gcc.target/i386/pr52146.c: Require effective target x32.
* gcc.target/i386/pr52698.c: Likewise.
* gcc.target/i386/pr52857-1.c: Likewise.
* gcc.target/i386/pr52857-2.c: Likewise.
* gcc.target/i386/pr52876.c: Likewise.
* gcc.target/i386/pr53698.c: Likewise.
* gcc.target/i386/pr54157.c: Likewise.
* gcc.target/i386/pr55049-1.c: Likewise.
* gcc.target/i386/pr55093.c: Likewise.
* gcc.target/i386/pr55116-1.c: Likewise.
* gcc.target/i386/pr55116-2.c: Likewise.
* gcc.target/i386/pr55597.c: Likewise.
* gcc.target/i386/pr59929.c: Likewise.
* gcc.target/i386/pr66470.c: Likewise.

From-SVN: r276258

5 years ago[X86, Darwin] Backport fix for pr82920 (part 1).
Iain Sandoe [Sat, 28 Sep 2019 19:54:00 +0000 (19:54 +0000)] 
[X86, Darwin] Backport fix for pr82920 (part 1).

The various thunks output codes have inconsistent output
mechanisms. The patch factors out some common code that
writes out the jumps and uses the regular output scheme
that accounts for __USER_LABEL_PREFIX__.

The testsuite changes are largely mechanical compensation
for the revised output (and the fact that Darwin doesn't
use non-PIC by default).

gcc/

2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>

PR target/82920
* config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
(ix86_output_indirect_branch_via_reg): Use output mechanism
accounting for __USER_LABEL_PREFIX__.
(ix86_output_indirect_branch_via_push): Likewise.
(ix86_output_function_return): Likewise.
(ix86_output_indirect_function_return): Likewise.

gcc/testsuite/

2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
    Dominique d'Humieres  <dominiq@gcc.gnu.org>

PR target/82920
* gcc.target/i386/indirect-thunk-1.c: Adjust scan-asms for Darwin,
do not use -fno-pic on Darwin.
* gcc.target/i386/indirect-thunk-2.c: Likewise.
* gcc.target/i386/indirect-thunk-3.c: Likewise.
* gcc.target/i386/indirect-thunk-4.c: Likewise.
* gcc.target/i386/indirect-thunk-7.c: Likewise.
* gcc.target/i386/indirect-thunk-attr-1.c: Likewise.
* gcc.target/i386/indirect-thunk-attr-2.c: Likewise.
* gcc.target/i386/indirect-thunk-attr-3.c: Likewise.
* gcc.target/i386/indirect-thunk-attr-4.c: Likewise.
* gcc.target/i386/indirect-thunk-attr-5.c: Likewise.
* gcc.target/i386/indirect-thunk-attr-6.c: Likewise.
* gcc.target/i386/indirect-thunk-attr-7.c: Likewise.
* gcc.target/i386/indirect-thunk-attr-8.c: Likewise.
* gcc.target/i386/indirect-thunk-extern-1.c: Likewise.
* gcc.target/i386/indirect-thunk-extern-2.c: Likewise.
* gcc.target/i386/indirect-thunk-extern-3.c: Likewise.
* gcc.target/i386/indirect-thunk-extern-4.c: Likewise.
* gcc.target/i386/indirect-thunk-extern-7.c: Likewise.
* gcc.target/i386/indirect-thunk-inline-1.c: Likewise.
* gcc.target/i386/indirect-thunk-inline-2.c: Likewise.
* gcc.target/i386/indirect-thunk-inline-3.c: Likewise.
* gcc.target/i386/indirect-thunk-inline-4.c: Likewise.
* gcc.target/i386/indirect-thunk-inline-7.c: Likewise.
* gcc.target/i386/indirect-thunk-register-1.c: Likewise.
* gcc.target/i386/indirect-thunk-register-2.c: Likewise.
* gcc.target/i386/indirect-thunk-register-3.c: Likewise.
* gcc.target/i386/indirect-thunk-register-4.c: Likewise.
* gcc.target/i386/ret-thunk-1.c: Likewise.
* gcc.target/i386/ret-thunk-10.c: Likewise.
* gcc.target/i386/ret-thunk-11.c: Likewise.
* gcc.target/i386/ret-thunk-12.c: Likewise.
* gcc.target/i386/ret-thunk-13.c: Likewise.
* gcc.target/i386/ret-thunk-14.c: Likewise.
* gcc.target/i386/ret-thunk-15.c: Likewise.
* gcc.target/i386/ret-thunk-16.c: Likewise.
* gcc.target/i386/ret-thunk-2.c: Likewise.
* gcc.target/i386/ret-thunk-22.c: Likewise.
* gcc.target/i386/ret-thunk-23.c: Likewise.
* gcc.target/i386/ret-thunk-24.c: Likewise.
* gcc.target/i386/ret-thunk-3.c: Likewise.
* gcc.target/i386/ret-thunk-4.c: Likewise.
* gcc.target/i386/ret-thunk-5.c: Likewise.
* gcc.target/i386/ret-thunk-6.c: Likewise.
* gcc.target/i386/ret-thunk-7.c: Likewise.
* gcc.target/i386/ret-thunk-8.c: Likewise.
* gcc.target/i386/ret-thunk-9.c: Likewise.

From-SVN: r276257

5 years agobackport: re PR libitm/86712 (libitm produces libitm.so with TEXTREL on SuperH (sh4...
Oleg Endo [Sat, 28 Sep 2019 09:12:34 +0000 (09:12 +0000)] 
backport: re PR libitm/86712 (libitm produces libitm.so with TEXTREL on SuperH (sh4) in _ITM_beginTransaction)

libitm/
2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>

Backport from mainline
2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>

PR target/86712
* config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
absolute relocation in a shared library.

From-SVN: r276247

5 years agobackport: re PR target/80672 (gcc/config/sh/sh.c:716: prefer compare to find.)
Oleg Endo [Sat, 28 Sep 2019 08:41:09 +0000 (08:41 +0000)] 
backport: re PR target/80672 (gcc/config/sh/sh.c:716: prefer compare to find.)

gcc/
2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>

Backport from mainline
2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/80672
* config/sh/sh.c (parse_validate_atomic_model_option): Use
std::string::compare instead of std::string::find.

From-SVN: r276243

5 years agobackport: re PR target/85993 (config/sh/sh.c:10878: suspicious if .. else chain)
Oleg Endo [Sat, 28 Sep 2019 07:29:06 +0000 (07:29 +0000)] 
backport: re PR target/85993 (config/sh/sh.c:10878: suspicious if .. else chain)

gcc/
2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>

Backport from mainline
2018-07-15  Jeff Law  <law@redhat.com>

PR target/85993
* config/sh/sh.c (output_mi_thunk): Remove dead conditional
block.

From-SVN: r276239

5 years agoDaily bump.
GCC Administrator [Sat, 28 Sep 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276224

5 years ago[Darwin, opts processing] Fix missing RejectNegative etc.
Iain Sandoe [Fri, 27 Sep 2019 18:44:16 +0000 (18:44 +0000)] 
[Darwin, opts processing] Fix missing RejectNegative etc.

This adds RejectNegative in a number of places it was needed,
reorders the opts into two groups (one general and one driver-only).
We also add a minimal description to each opt, and note some that
are now obsolete. The only functional change is to permit
-mtarget-linker= as an alias of -mtarget-linker.

This fixes the Darwin part of PR89327

2019-09-27  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>

* config/darwin.opt (prebind, noprebind, seglinkedit,
noseglinkedit): Add RejectNegative.

Backport from mainline
2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>

* config/darwin.opt: Add RejectNegative where needed, reorder
and add minimal functional descriptions.

From-SVN: r276195

5 years agoDaily bump.
GCC Administrator [Fri, 27 Sep 2019 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276169

5 years agoDaily bump.
GCC Administrator [Thu, 26 Sep 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276136

5 years agoDaily bump.
GCC Administrator [Wed, 25 Sep 2019 00:16:24 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276108

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

From-SVN: r276086

5 years agotrans.c (Attribute_to_gnu): Test Can_Use_Internal_Rep on the underlying type of the...
Eric Botcazou [Mon, 23 Sep 2019 08:10:03 +0000 (08:10 +0000)] 
trans.c (Attribute_to_gnu): Test Can_Use_Internal_Rep on the underlying type of the node.

* gcc-interface/trans.c (Attribute_to_gnu): Test Can_Use_Internal_Rep
on the underlying type of the node.
(Call_to_gnu): Likewise with the type of the prefix.

From-SVN: r276044

5 years agoxtensa: backport fix for PR target/90922
Max Filippov [Mon, 23 Sep 2019 07:50:40 +0000 (07:50 +0000)] 
xtensa: backport fix for PR target/90922

Stack pointer adjustment code in prologue missed a case of no
callee-saved registers and a stack frame size bigger than 128 bytes.
Handle that case.

This fixes the following gcc tests with call0 ABI:
  gcc.c-torture/execute/stdarg-2.c
  gcc.dg/torture/pr55882.c
  gcc.dg/torture/pr57569.c

gcc/
2019-09-23  Max Filippov  <jcmvbkbc@gmail.com>

Backport from mainline
2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
pointer adjustment for the case of no callee-saved registers and
stack frame bigger than 128 bytes.

From-SVN: r276039

5 years agoDaily bump.
GCC Administrator [Mon, 23 Sep 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276032

5 years agoDaily bump.
GCC Administrator [Sun, 22 Sep 2019 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276023

5 years agoDaily bump.
GCC Administrator [Sat, 21 Sep 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276012

5 years agopa.c (pa_trampoline_init): Remove spurious extended characters.
John David Anglin [Fri, 20 Sep 2019 22:03:40 +0000 (22:03 +0000)] 
pa.c (pa_trampoline_init): Remove spurious extended characters.

* config/pa/pa.c (pa_trampoline_init): Remove spurious extended
characters.

From-SVN: r276010

5 years agore PR rtl-optimization/88751 (Performance regression reload vs lra)
Andreas Krebbel [Fri, 20 Sep 2019 09:23:50 +0000 (09:23 +0000)] 
re PR rtl-optimization/88751 (Performance regression reload vs lra)

Fix PR88751

This patch implements a small improvement for the heuristic in lra
which decides when it has to activate the simpler register allocation
algorithm.

gcc/ChangeLog:

2019-09-20  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>

PR rtl-optimization/88751
* ira.c (ira): Use the number of the actually referenced registers
when calculating the threshold.

From-SVN: r275993

5 years agoDaily bump.
GCC Administrator [Fri, 20 Sep 2019 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275983

5 years agoDaily bump.
GCC Administrator [Thu, 19 Sep 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275921

5 years agoDaily bump.
GCC Administrator [Wed, 18 Sep 2019 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275830

5 years ago[Darwin, testsuite] Fix pr71694 fail for m32.
Iain Sandoe [Tue, 17 Sep 2019 11:48:24 +0000 (11:48 +0000)] 
[Darwin, testsuite] Fix pr71694 fail for m32.

This test fails for Darwin m32 because it's scanning for absence
of an instruction that's validly used in PIC code. Fixed, in this
case, by using non-PIC codegen.

2019-09-17  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>

* g++.dg/pr71694.C: Use non-PIC codegen for Darwin m32.

From-SVN: r275801

5 years agoDaily bump.
GCC Administrator [Tue, 17 Sep 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275760

5 years ago[Darwin, testsuite] Fix isysroot-1.c.
Iain Sandoe [Mon, 16 Sep 2019 00:30:59 +0000 (00:30 +0000)] 
[Darwin, testsuite] Fix isysroot-1.c.

For the test to succeed there needs to be some header that is to be found in
the 'expected' place i.e. <sysroot>/usr/include/. It's important that it is
not the name of a header for which fixincludes have been applied, since such
headers will be found in the gcc include-fixed dir and, in general, reference
additional headers. The dummy sysroot will prevent the additional headers
from being found, resulting in a failed test. The fix is to use a header name
that isn't expected to be present in a real sysroot.

2019-09-16  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-24  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.dg/cpp/isysroot-1.c: Use <example.h> as the test header.
* gcc.dg/cpp/usr/include/stdio.h: Rename...
* gcc.dg/cpp/usr/include/example.h: ... to this.

From-SVN: r275742

5 years agoDaily bump.
GCC Administrator [Mon, 16 Sep 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275738

5 years agobackport: re PR fortran/91557 (Bogus warning about unused dummy argument _formal_*)
Thomas Koenig [Sun, 15 Sep 2019 22:35:40 +0000 (22:35 +0000)] 
backport: re PR fortran/91557 (Bogus warning about unused dummy argument _formal_*)

2019-09-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/91557
* trans-decl.c (generate_local_decl): Do not warn if the symbol
is artificial.
* trans-types.c (get_formal_from_actual_arglist): Set artificial
attribute on dummy arguments.

2019-09-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/91557
* gfortran.dg/warn_unused_dummy_argument_5.f90: New test.

From-SVN: r275737

5 years ago[objective-c++, testsuite] Fix test line number.
Iain Sandoe [Sun, 15 Sep 2019 02:48:44 +0000 (02:48 +0000)] 
[objective-c++, testsuite] Fix test line number.

The syntax-1.mm test line numbering is differnent on 7 (and earlier)
branches, so the test needs a minor update for the PR90709 workaround.

2019-09-15  Iain Sandoe  <iain@sandoe.co.uk>

* obj-c++.dg/syntax-error-1.mm: Adjust line number in dg-error.

From-SVN: r275725

5 years ago[objective-c/c++, testsuite] Workaround for PR90709.
Iain Sandoe [Sun, 15 Sep 2019 02:38:25 +0000 (02:38 +0000)] 
[objective-c/c++, testsuite] Workaround for PR90709.

Since we cannot parse the current NeXT headers, because of PR90709 and its
dependents, we have a large amount of testsuite noise for Darwin platforms.
In order to restore the usefulness of the testsuite, we are going add headers
without the modern syntax elements that trigger the bug, and use these for
test runs on newer Darwin.

The headers are imported from GNUStep, with some local modifications to make
sure that __BLOCKS__ is honoured as a gate for Apple-style blocks closures.

CF-CFString.h, F-NS*.h are proxy headers that use the installed CoreFoundation
or Foundation headers on systems <= Darwin12 and the GNUStep headers for newer.

Use the CF-CFString.h, F-NS*.h proxy headers where needed in the objective-c
testsuite. Make minor adjustments to tests as required, providing that those
do not alter the test intent.

2019-09-15  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-15  Iain Sandoe  <iain@sandoe.co.uk>

PR objc/90709
* obj-c++.dg/proto-lossage-7.mm: Use proxy headers.
* obj-c++.dg/strings/const-cfstring-2.mm: Likewise.
* obj-c++.dg/strings/const-cfstring-5.mm: Likewise
* obj-c++.dg/strings/const-str-12.mm: Likewise.
* obj-c++.dg/syntax-error-1.mm: Likewise.
* obj-c++.dg/torture/strings/const-cfstring-1.mm: Likewise.
* obj-c++.dg/torture/strings/const-str-10.mm: Likewise.
* obj-c++.dg/torture/strings/const-str-11.mm: Likewise.
* obj-c++.dg/torture/strings/const-str-9.mm: Likewise.
* obj-c++.dg/cxx-ivars-3.mm: Skip on later Darwin, where the 10.4 API
in no longer supported, also on m64 where there's no meaning to it.
* obj-c++.dg/isa-field-1.mm: Suppress unwanted warning, add comment why.
* obj-c++.dg/objc-gc-3.mm: Skip for Darwin > 16, the API use is an error
there.
* obj-c++.dg/qual-types-1.mm: Prune a spurious l64 warning.
* obj-c++.dg/stubify-1.mm: Tidy up after better compiler warnings.
* obj-c++.dg/stubify-2.mm: Likewise.
* obj-c++.dg/try-catch-1.mm: Likewise.
* obj-c++.dg/try-catch-3.mm: Likewise.

Backport from mainline.
2019-06-15  Iain Sandoe  <iain@sandoe.co.uk>

PR objc/90709
* objc.dg/encode-7-next-64bit.m: Use proxy headers.
* objc.dg/image-info.m: Likewise.
* objc.dg/method-6.m: Likewise.
* objc.dg/no-extra-load.m: Likewise.
* objc.dg/objc-foreach-4.m: Likewise.
* objc.dg/objc-foreach-5.m: Likewise.
* objc.dg/proto-lossage-7.m: Likewise.
* objc.dg/strings/const-cfstring-2.m: Likewise.
* objc.dg/strings/const-cfstring-5.m: Likewise.
* objc.dg/strings/const-str-12b.m: Likewise.
* objc.dg/symtab-1.m: Likewise.
* objc.dg/torture/strings/const-cfstring-1.m: Likewise.
* objc.dg/torture/strings/const-str-10.m: Likewise.
* objc.dg/torture/strings/const-str-11.m: Likewise.
* objc.dg/torture/strings/const-str-9.m: Likewise.
* objc.dg/zero-link-1.m: Likewise.
* objc.dg/zero-link-2.m: Likewise.
* objc.dg/zero-link-3.m: Likewise.
* objc.dg/isa-field-1.m: Suppress unwanted warning, add comment why.
* objc.dg/headers.m: XFAIL for Darwin14-19.
* objc.dg/objc-gc-4.m: Skip for Darwin > 16, the API use is an error
there.

Backport from mainline.
2019-06-15  Iain Sandoe  <iain@sandoe.co.uk>

PR objc/90709
* objc-obj-c++-shared/CF-CFString.h: New.
* objc-obj-c++-shared/F-NSArray.h: New.
* objc-obj-c++-shared/F-NSAutoreleasePool.h: New.
* objc-obj-c++-shared/F-NSObject.h: New.
* objc-obj-c++-shared/F-NSString.h: New.
* objc-obj-c++-shared/F-NSValue.h: New.
* objc-obj-c++-shared/GNUStep/CoreFoundation/CFArray.h: New.
* objc-obj-c++-shared/GNUStep/CoreFoundation/CFAvailability.h: New.
* objc-obj-c++-shared/GNUStep/CoreFoundation/CFBase.h: New.
* objc-obj-c++-shared/GNUStep/CoreFoundation/CFCharacterSet.h: New.
* objc-obj-c++-shared/GNUStep/CoreFoundation/CFData.h: New.
* objc-obj-c++-shared/GNUStep/CoreFoundation/CFDictionary.h: New.
* objc-obj-c++-shared/GNUStep/CoreFoundation/CFLocale.h: New.
* objc-obj-c++-shared/GNUStep/CoreFoundation/CFString.h: New.
* objc-obj-c++-shared/GNUStep/Foundation/NSArray.h: New.
* objc-obj-c++-shared/GNUStep/Foundation/NSAutoreleasePool.h: New.
* objc-obj-c++-shared/GNUStep/Foundation/NSDate.h: New.
* objc-obj-c++-shared/GNUStep/Foundation/NSEnumerator.h: New.
* objc-obj-c++-shared/GNUStep/Foundation/NSGeometry.h: New.
* objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h: New.
* objc-obj-c++-shared/GNUStep/Foundation/NSObject.h: New.
* objc-obj-c++-shared/GNUStep/Foundation/NSRange.h: New.
* objc-obj-c++-shared/GNUStep/Foundation/NSString.h: New.
* objc-obj-c++-shared/GNUStep/Foundation/NSValue.h: New.
* objc-obj-c++-shared/GNUStep/Foundation/NSZone.h: New.
* objc-obj-c++-shared/GNUStep/GNUstepBase/GNUstep.h: New.
* objc-obj-c++-shared/GNUStep/GNUstepBase/GSBlocks.h: New.
* objc-obj-c++-shared/GNUStep/GNUstepBase/GSConfig.h: New.
* objc-obj-c++-shared/GNUStep/GNUstepBase/GSObjCRuntime.h: New.
* objc-obj-c++-shared/GNUStep/GNUstepBase/GSVersionMacros.h: New.
* objc-obj-c++-shared/GNUStep/GNUstepBase/NSArray+GNUstepBase.h: New.
* objc-obj-c++-shared/GNUStep/GNUstepBase/NSMutableString+GNUstepBase.h:
New.
* objc-obj-c++-shared/GNUStep/GNUstepBase/NSNumber+GNUstepBase.h: New.
* objc-obj-c++-shared/GNUStep/GNUstepBase/NSObject+GNUstepBase.h: New.
* objc-obj-c++-shared/GNUStep/GNUstepBase/NSString+GNUstepBase.h: New.

From-SVN: r275724

5 years agoDaily bump.
GCC Administrator [Sun, 15 Sep 2019 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275720

5 years agoDaily bump.
GCC Administrator [Sat, 14 Sep 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275706

5 years ago[Darwin, testsuite] Adjust two tests that fail on newer OS versions.
Iain Sandoe [Fri, 13 Sep 2019 21:45:28 +0000 (21:45 +0000)] 
[Darwin, testsuite] Adjust two tests that fail on newer OS versions.

Newer OS versions (10.14+) do not provide some of the CRTs that are used
for older ones (e.g. 10.5), and thus link tests that specify targeting
such a revision fail. We retain the testing of the correct defined OS
version number but switch to compile-only testing for these two tests.

2019-09-13  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.dg/darwin-minversion-1.c: Use compile rather than link/run.

From-SVN: r275705

5 years agoDaily bump.
GCC Administrator [Fri, 13 Sep 2019 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275692

5 years ago[Darwin, X86, testsuite] Adjust test for Darwin's align syntax.
Iain Sandoe [Thu, 12 Sep 2019 19:26:49 +0000 (19:26 +0000)] 
[Darwin, X86, testsuite] Adjust test for Darwin's align syntax.

Darwin has a .align taking a power of 2 by default, so that some
tests expecting a byte count are failing, fixed by adjusting the
scan-asms.  We also avoid the ABI-mandated indirection for common
and PIC extras for m32 (by adjusting compile options).

2019-09-12  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-27  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/i386/pr22076.c: Adjust options to
match codegen expected by the scan-asms.

From-SVN: r275690

5 years agore PR fortran/91686 (ICE in gimplify:2554)
Paul Thomas [Thu, 12 Sep 2019 09:05:14 +0000 (09:05 +0000)] 
re PR fortran/91686 (ICE in gimplify:2554)

2019-09-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/91686
Backport from mainline
* trans-expr.c (gfc_trans_assignment_1): Copy and paste section
handling the rse.pre block from mainline.

2019-09-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/91686
* gfortran.dg/pr91686.f90 : New test.

From-SVN: r275681

5 years agoDaily bump.
GCC Administrator [Thu, 12 Sep 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275677

5 years agoFix Xmethod for shared_ptr::use_count()
Jonathan Wakely [Wed, 11 Sep 2019 11:41:36 +0000 (12:41 +0100)] 
Fix Xmethod for shared_ptr::use_count()

This was reported in https://bugzilla.redhat.com/show_bug.cgi?id=1749578

* python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker.__call__):
Fix syntax error.

From-SVN: r275647

5 years agore PR rtl-optimization/89795 (wrong code with -O2 -fno-dce -fno-forward-propagate...
Eric Botcazou [Wed, 11 Sep 2019 10:44:06 +0000 (10:44 +0000)] 
re PR rtl-optimization/89795 (wrong code with -O2 -fno-dce -fno-forward-propagate -fno-sched-pressure)

PR rtl-optimization/89795
* rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.

From-SVN: r275638

5 years agoDaily bump.
GCC Administrator [Wed, 11 Sep 2019 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275619

5 years ago[Darwin, X86, testsuite] Fixes for three PIE tests.
Iain Sandoe [Tue, 10 Sep 2019 20:43:34 +0000 (20:43 +0000)] 
[Darwin, X86, testsuite] Fixes for three PIE tests.

Darwin requires PIC code in order to support PIE; amend the test scan-asms
to match this.

2019-09-10  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-26  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/i386/pr39013-1.c: Adjust scan-asms for PIE to
account for PIC code on Darwin.
* gcc.target/i386/pr39013-2.c: Likewise.
* gcc.target/i386/pr64317.c: Likewise.

From-SVN: r275612

5 years ago[Darwin, X86, testsuite] Amend popcnt spelling for Darwin.
Iain Sandoe [Tue, 10 Sep 2019 20:39:23 +0000 (20:39 +0000)] 
[Darwin, X86, testsuite] Amend popcnt spelling for Darwin.

Darwin uses a different spelling for popcnt (popcnt instead of popcntw).
Check for this in the test.

2019-09-10  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-25  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/i386/pr59874-3.c: Use the spelling of popcnt
expected for Darwin.

From-SVN: r275610

5 years agoDaily bump.
GCC Administrator [Tue, 10 Sep 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275552

5 years ago[Darwin, testsuite] Address PR91087 - XFAIL parts of pr16855.C.
Iain Sandoe [Mon, 9 Sep 2019 20:27:05 +0000 (20:27 +0000)] 
[Darwin, testsuite] Address PR91087 - XFAIL parts of pr16855.C.

The testcase is failing to instrument part of the source because of a bug
in the ordering of static DTORs. It seems unlikely that this is generically
fixable in the toolchain (and given that it's likely to be a dynamic loader
change would not be expected to be applied retrospectively to OS versions
that are out of support). To avoid the testsuite noise, xfail the count lines
that don't match (we can adjust the xfails as/when the upstream bug is fixed).

dejagnu xfails do not seem to work when embedded in a line like:
~Test (void) { .... /* count(1) { xfail ... } */ }
the closing brace seems to confuse the parser. The solution is to exapnd the
text onto three lines.

2019-09-09  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-07-25  Iain Sandoe  <iain@sandoe.co.uk>

PR gcov-profile/91087
* g++.dg/gcov/pr16855.C: Xfail the count lines for the DTORs and the
"final" line for the failure summaries.  Adjust source layout so that
dejagnu xfail expressions work.

From-SVN: r275547

5 years ago[Darwin, testsuite] Fix PR 65364 (uninit-19.c).
Iain Sandoe [Mon, 9 Sep 2019 20:21:30 +0000 (20:21 +0000)] 
[Darwin, testsuite] Fix PR 65364 (uninit-19.c).

This test currently fails on Darwin, because the port inlines fn2 for
both PIC (and non-pic for m32). Fixed by adjusting the target condition.

2019-09-09  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-11  Iain Sandoe  <iain@sandoe.co.uk>

PR testsuite/65364
* gcc.dg/uninit-19.c (fn1): Adjust target condition for Darwin.
(fn2): Likewise.

From-SVN: r275546

5 years ago[Darwin, X86, testsuite] Adjust match strings.
Iain Sandoe [Mon, 9 Sep 2019 20:13:24 +0000 (20:13 +0000)] 
[Darwin, X86, testsuite] Adjust match strings.

Some of the i386.exp tests fail on Darwin  because their scan-asm
match strings are too general.  In some cases the strings also match
instances in the .file and size directives or in comment output. This
makes the match strings more specific.

2019-09-09  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-24  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/i386/pr66819-3.c: Specifically, check that there is no
call to "bar".
* gcc.target/i386/pr66819-4.c: Likewise.

From-SVN: r275545

5 years ago[Darwin, X86, testsuite] Adjust labels for USER_LABEL_PREFIX.
Iain Sandoe [Mon, 9 Sep 2019 20:07:18 +0000 (20:07 +0000)] 
[Darwin, X86, testsuite] Adjust labels for USER_LABEL_PREFIX.

A couple of the i386.exp tests fail because the label spelling
used is different between ELF and Mach-O targets. Adjusted here.

2019-09-09  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-24  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/i386/pr67985-2.c: Adjust label checks for
Darwin.
* gcc.target/i386/pr77881.c: Likewise.

From-SVN: r275543

5 years ago[Darwin, X86, testsuite] Disable tests that cannot pass.
Iain Sandoe [Mon, 9 Sep 2019 19:58:23 +0000 (19:58 +0000)] 
[Darwin, X86, testsuite] Disable tests that cannot pass.

Some of the i386.exp target tests cannot pass on Darwin because
either the port doesn't support a feature, or the ABI demands
sufficiently different codegen that matching the output with
scan-asms would require a different test.  Skip these.

2019-09-09  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-24  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/i386/pr70738-7.c: Skip for Darwin.
* gcc.target/i386/pr24414.c: Likewise.

From-SVN: r275542

5 years agore PR target/87853 (_mm_cmpgt_epi8 broken with -funsigned-char)
Jakub Jelinek [Mon, 9 Sep 2019 11:44:17 +0000 (13:44 +0200)] 
re PR target/87853 (_mm_cmpgt_epi8 broken with -funsigned-char)

PR target/87853
* config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
instead of __v16qs.

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

From-SVN: r275516

5 years agore PR target/91704 ([X86] Codegen for _mm256_cmpgt_epi8 is affected by -funsigned...
Jakub Jelinek [Mon, 9 Sep 2019 11:43:08 +0000 (13:43 +0200)] 
re PR target/91704 ([X86] Codegen for _mm256_cmpgt_epi8 is affected by -funsigned-char)

PR target/91704
* config/i386/avxintrin.h (__v32qs): New typedef.
* config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
instead of __v32qi.

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

From-SVN: r275515

5 years agoDaily bump.
GCC Administrator [Mon, 9 Sep 2019 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275498

5 years ago[Darwin, X86, testsuite] Add xfails for PR90396.
Iain Sandoe [Sun, 8 Sep 2019 19:49:27 +0000 (19:49 +0000)] 
[Darwin, X86, testsuite] Add xfails for PR90396.

We don't have support for -mcmodel={medium, large, kernel} so don't
expect tests for those things to work.

For now mark them as xfail where possible and skip where that isn't.
These changes will be logged onto the PR and therefore can be backed
out when the facility is implemented.

2019-09-08  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-01  Iain Sandoe  <iain@sandoe.co.uk>

PR target/90698
* gcc.target/i386/pr49866.c: XFAIL for Darwin.
* gcc.target/i386/pr63538.c: Likewise.
* gcc.target/i386/pr61599-1.c: Skip for Darwin.

From-SVN: r275496

5 years ago[X86, testsuite] Fix PR rtl-optimisation/64895 XPASSes.
Iain Sandoe [Sun, 8 Sep 2019 19:41:20 +0000 (19:41 +0000)] 
[X86, testsuite] Fix PR rtl-optimisation/64895 XPASSes.

These tests had started to XPASS on pic targets where the codegen
is now as expected.

2019-09-08  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>

PR rtl-optimisation/64895
* gcc.target/i386/fuse-caller-save-rec.c: Remove XFAILs.
* gcc.target/i386/fuse-caller-save.c: Likewise.
* gcc.target/i386/fuse-caller-save-xmm.c: Adjust tests for
PIC cases, remove XFAILs.

From-SVN: r275495

5 years ago[Darwin, X86] Backport fix for .ident tests.
Iain Sandoe [Sun, 8 Sep 2019 19:32:43 +0000 (19:32 +0000)] 
[Darwin, X86] Backport fix for .ident tests.

The c-c++-common tests fail (or XPASS depending on which) on Darwin
because if doesn't emit a.ident marker. For X86 Darwin, this is a
trivial oversight; the assembler supports the directive. We can
therefore use the default target hook there.

2019-09-08  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2018-12-23  Iain Sandoe  <iain@sandoe.co.uk>

* config/i386/darwin.h (TARGET_ASM_OUTPUT_IDENT): New.

From-SVN: r275494

5 years agoDaily bump.
GCC Administrator [Sun, 8 Sep 2019 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275490

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

From-SVN: r275479

5 years ago[Ada, Darwin, PPC] PPC Darwin has stack check probes.
Iain Sandoe [Fri, 6 Sep 2019 16:11:09 +0000 (16:11 +0000)] 
[Ada, Darwin, PPC] PPC Darwin has stack check probes.

On PPC, Darwin uses the same code as other parts of the port

2019-09-06  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-07-02  Iain Sandoe  <iain@sandoe.co.uk>

* system-darwin-ppc.ads: Set Stack_Check_Probes True for
PPC Darwin.

From-SVN: r275471

5 years ago[Ada] Push -shared-libgcc where needed.
Iain Sandoe [Fri, 6 Sep 2019 16:08:08 +0000 (16:08 +0000)] 
[Ada] Push -shared-libgcc where needed.

Gnatlink has code that checks for duplicate '-shared-libgcc’ switches (but not
duplicate ‘static-libgcc’) and also pushes ’static-libgcc' onto the link line for
targets that default to static linking, provided '-shared-libgcc' is not present.

For targets that should use a shared libgcc we need the same process to be
applied (in inverse), in the event that they do not default to providing the
shared flag implicitly.

So this adds the complementary set of tests for the shared case and pushes
the shared flag as needed. As a minor tidy-up there’s no need push duplicates
of the libgcc switch onto the link line when one has already been seen (given by
the user).

The patch does not alter any of the platform defaults for static/shared libgcc,
but it ensures that the intent of the link is explicit.

2019-09-06  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-30  Iain Sandoe  <iain@sandoe.co.uk>

* gnatlink.adb (Link_Step): Push -shared-libgcc explicitly, when it
is the target default (unless overidden by the static flag).
When the user has put an instance of shared/static-libgcc do not push
a duplicate of this.

From-SVN: r275470

5 years ago[Darwin, testsuite] Fix PR27221.
Iain Sandoe [Fri, 6 Sep 2019 16:03:42 +0000 (16:03 +0000)] 
[Darwin, testsuite] Fix PR27221.

The test can't succeed on 32b powerpc Darwin since the
ABI demands a different result to the tested one. (So XFAIL it).

2019-09-06  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-22  Iain Sandoe  <iain@sandoe.co.uk>

PR testsuite/27221
* g++.dg/ext/alignof2.C: XFAIL for 32bit Darwin.

From-SVN: r275469

5 years ago[Darwin, testsuite] Fix PR67958.
Iain Sandoe [Fri, 6 Sep 2019 15:59:54 +0000 (15:59 +0000)] 
[Darwin, testsuite] Fix PR67958.

These tests require specific scan-asms in some cases because
of the different codegen for Dawin.  Added some explanations
too.

2019-09-06  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-21  Iain Sandoe  <iain@sandoe.co.uk>

PR testsuite/67958
* gcc.target/i386/pr32219-1.c: Adjust scan-asms for Darwin, comment
the differences.
* gcc.target/i386/pr32219-2.c: Likewise.
* gcc.target/i386/pr32219-3.c: Likewise.
* gcc.target/i386/pr32219-4.c: Likewise.
* gcc.target/i386/pr32219-5.c: Likewise.
* gcc.target/i386/pr32219-6.c: Likewise.
* gcc.target/i386/pr32219-7.c: Likewise.
* gcc.target/i386/pr32219-8.c: Likewise.

From-SVN: r275468

5 years ago[Darwin, testsuite] Fix PR63891 (darwin-weakimport-3).
Iain Sandoe [Fri, 6 Sep 2019 15:56:18 +0000 (15:56 +0000)] 
[Darwin, testsuite] Fix PR63891 (darwin-weakimport-3).

This is a testcase failing because one part of the codegen is
(correctly) generating the scan-asm-not signature.

Fixed by altering the build options.

2019-09-06  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-21  Iain Sandoe  <iain@sandoe.co.uk>

PR target/63891
* gcc.dg/darwin-weakimport-3.c: Adjust options and explain
the reasons.

From-SVN: r275467

5 years ago[Darwin, testsuite ] Fix for PR58321.
Iain Sandoe [Fri, 6 Sep 2019 15:51:01 +0000 (15:51 +0000)] 
[Darwin, testsuite ] Fix for PR58321.

Darwin doesn't emit a .file directive by default
and one of the scan-asm hits for ELF targets comes from
this directive. Adjust for Darwin and explain.

2019-09-06  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-20  Iain Sandoe  <iain@sandoe.co.uk>

PR testsuite/58321
* gcc.target/i386/memcpy-strategy-3.c: Adjust count for Darwin and
add a comment as to the reason for the difference.
* gcc.target/i386/memset-strategy-1.c: Likewise.

From-SVN: r275466

5 years ago[Darwin, X86] Backport fix for tests using .p2align.
Iain Sandoe [Fri, 6 Sep 2019 15:45:53 +0000 (15:45 +0000)] 
[Darwin, X86] Backport fix for tests using .p2align.

This fixes a number of testcases that expect use of .p2align, which
was somehow omitted from the darwin X86 port (but is available in all
assemblers used with it).

2019-09-06  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>

* config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.

From-SVN: r275465

5 years agoDaily bump.
GCC Administrator [Fri, 6 Sep 2019 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275446

5 years ago[Darwin, PPC, testsuite] Require stabs support for a test.
Iain Sandoe [Thu, 5 Sep 2019 19:55:27 +0000 (19:55 +0000)] 
[Darwin, PPC, testsuite] Require stabs support for a test.

The test fails if the assembler doesn't support stabs.

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-07-13  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/powerpc/stabs-attrib-vect-darwin.c: Require stabs
support.

From-SVN: r275440

5 years ago[Darwin, PPC, testsuite] Skip tests for unimplemented functionality.
Iain Sandoe [Thu, 5 Sep 2019 19:53:12 +0000 (19:53 +0000)] 
[Darwin, PPC, testsuite] Skip tests for unimplemented functionality.

The -mno-speculate-indirect-jumps functionality is not implemented for
Darwin.

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-24  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/powerpc/safe-indirect-jump-1.c: Skip for Darwin.
* gcc.target/powerpc/safe-indirect-jump-7.c: Likewise.

From-SVN: r275439

5 years ago[Darwin, PPC, testsuite] Fix builtins-2 Darwin.
Iain Sandoe [Thu, 5 Sep 2019 19:50:50 +0000 (19:50 +0000)] 
[Darwin, PPC, testsuite] Fix builtins-2 Darwin.

This cannot pass for current Darwin, since it requires VSX and we
don't have any hardware supporting that. Add a dg-requires clause
for this.

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/powerpc/builtins-2.c: Require VSX hardware support.

From-SVN: r275438

5 years ago[Darwin, PPC, testsuite] Fix pr80125 testcase for Darwin.
Iain Sandoe [Thu, 5 Sep 2019 19:47:27 +0000 (19:47 +0000)] 
[Darwin, PPC, testsuite] Fix pr80125 testcase for Darwin.

Darwin (unlike most of the members of the PowerPC port family)
defaults to signed chars, so the test was failing to compile with
a "mismatched parameters" error.

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/powerpc/pr80125.c (foo): Use an unsigned char
vector explicitly for the vec_perm.

From-SVN: r275437

5 years ago[Darwin, PPC, testsuite] Fix pr71785 testcase for Darwin.
Iain Sandoe [Thu, 5 Sep 2019 19:42:59 +0000 (19:42 +0000)] 
[Darwin, PPC, testsuite] Fix pr71785 testcase for Darwin.

Firstly, we adjust the test conditions to use non-PIC code for Darwin.
Secondly, we have to account for out-of-line GPR restores which gives
a false positive on one of the scan-assembler-not. Lastly, we make the
test a bit more specific for Darwin - that it looks for absence of
branches to local labels.

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/powerpc/pr71785.c: For Darwin, make test non-PIC,
expect the out-of-line GPR restore, and test specifically for
absence of branches to local labels.

From-SVN: r275436

5 years ago[Darwin, PPC, testsuite] Add requires for DFP to two tests.
Iain Sandoe [Thu, 5 Sep 2019 19:40:20 +0000 (19:40 +0000)] 
[Darwin, PPC, testsuite] Add requires for DFP to two tests.

The two tests use decimal floating point, add the relevant dg-requires
so that they are unsupported on platforms without DFP.

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-22  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/powerpc/pr64205.c: Require effective target dfp.
* gcc.target/powerpc/pr79909.c: Likewise.

From-SVN: r275435

5 years ago[Darwin, PPC, testsuite] Fix darwin-bool-1.c.
Iain Sandoe [Thu, 5 Sep 2019 19:37:30 +0000 (19:37 +0000)] 
[Darwin, PPC, testsuite] Fix darwin-bool-1.c.

This test is failing because of a pedantic warning that is unrelated to the
purpose of the test. Fixed by suppressing that warning.

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-22  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/powerpc/darwin-bool-1.c: Suppress the pedantic
warning about _Bool.

From-SVN: r275434

5 years ago[Darwin, PPC] Fix fail of cpp/assert4.c
Iain Sandoe [Thu, 5 Sep 2019 19:33:01 +0000 (19:33 +0000)] 
[Darwin, PPC] Fix fail of cpp/assert4.c

This test needs the cpu and machine asserts to be implemented
which hadn't been done for PPC Darwin. We also need to emit
__PPC__ for 32/64b and __PPC64__, __powerpc64__ (64bit) as per
the other members of the PowerPC port.

2019-08-27 Iain Sandoe <iain@sandoe.co.uk>

Backport from mainline
2019-08-18 Iain Sandoe <iain@sandoe.co.uk>

* config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
for cpu and machine. Factor 64/32b builtins.

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2019-08-18  Iain Sandoe  <iain@sandoe.co.uk>

* config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
for cpu and machine.  Factor 64/32b builtins.

Backport from mainline
2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>

* config/rs6000/darwin.h: (__PPC__, __PPC64__): New.

From-SVN: r275433

5 years ago[c-family] Backport fix for PCH / PR61250.
Iain Sandoe [Thu, 5 Sep 2019 19:27:31 +0000 (19:27 +0000)] 
[c-family] Backport fix for PCH / PR61250.

When we are parsing a source file, the very first token might
be a PRAGMA_GCC_PCH_PREPROCESS. This indicates that we are going
read in a PCH file (named as the value of the pragma). If we don't
see this pragma, then we know that it's OK to release any resources
that the host might have set aside for the PCH file.

There is a thinko in the current implementation, in that the decision
to release resources is happening unconditionally right after the first
token is extracted but before it's been checked or acted upon.

This leads to the pch bug on Darwin, because we actually do release
resources - which are subsequently (reasonably) assumed to be available
when reading a PCH file. We then get random crashes or hangs depending
on the interaction between unmmap and malloc.

The bug is present everywhere but doesn't show on (say) Linux, since
the release of PCH resources is a NOP there.

This effects all the c-family front ends, because they all use
c_lex_with_flags () to implement this.

The solution is to check for the PRAGMA_GCC_PCH_PREPROCESS and only call
c_common_no_more_pch () when that is not the first token.

A secondary effect of the collection is that the name of the PCH file
can be collected during the ggc_pch_read() reset of state. Therefore
we should issue any diagnostic that might name the file before the
collections are triggered.

gcc/

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>

PR pch/61250
* ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
and issue any diagnostics needed before collecting the pre-PCH
state.

gcc/c-family/

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>

PR pch/61250
* c-lex.c (c_lex_with_flags):  Don't call
c_common_no_more_pch () from here.

gcc/c

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>

PR pch/61250
* c-parser.c (c_parse_file): Call c_common_no_more_pch ()
after determining that the first token is not
PRAGMA_GCC_PCH_PREPROCESS.

gcc/cp/

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backported from mainline
2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>

PR pch/61250
* parser.c (cp_parser_initial_pragma): Call c_common_no_more_pch ()
after determining that the first token is not
PRAGMA_GCC_PCH_PREPROCESS.

From-SVN: r275431

5 years ago[Darwin, X86, testsuite] Provide an asm shim for AVX512F tests.
Iain Sandoe [Thu, 5 Sep 2019 19:19:46 +0000 (19:19 +0000)] 
[Darwin, X86, testsuite] Provide an asm shim for AVX512F tests.

Without this the tests fail to build.

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-10  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/x86_64/abi/avx512f/abi-avx512f.exp: Darwin is
now tested.
* gcc.target/x86_64/abi/avx512f/asm-support-darwin.s: New.

From-SVN: r275430