]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
5 years ago[Darwin, machopic] Preparatory patches.
Iain Sandoe [Tue, 29 Oct 2019 20:13:06 +0000 (20:13 +0000)] 
[Darwin, machopic] Preparatory patches.

This is a combined set of 5 patches that allows us to fix PRs 65342
and 67183.

276924 Make machopic_finish() static.

276767 Set a SYMBOL flag for indirections.

We are able to treat these specially where needed in legitimate address
tests (specifically, they are guaranteed to be pointer-aligned).

276708 Compute and cache indirection rules.

This caches a check for the requirement to indirect a symbol in the Darwin
ABI, and uses it where needed. We also ensure that we place the indirection
pointers into the non-lazy symbol pointers section. Other placements have
occurred with various platform toolchains - but these seem to have been
unintentional so we match current platform toolchains.

276675 Consider visibility in indirections.

For weak, hidden vars the indirection should just be as normal, that
is that the indirections for such symbols should appear in the non-lazy
symbol pointers table, not in the .data section.

276674 Initial tidy of Mach-O symbol handling.

We want to improve the detection and caching of symbol-properties
so that (a) we can make the compiler's output match the platform
norms (b) we can improve efficiency by checking flags instead of
inspecting strings. (c) The fix for PR71767 was a largish hammer
and we want to reduce the number of symbols that are made linker-
visible.

This first patch is largely typographical changes with no functional
difference intended:

- Tries to ensure that there's no overlap between the symbols used in
the Mach-O case and those declared in the i386 or rs6000 port trees.

- Some improvement to comments.

- Makes the naming of the symbol flags consistent with other uses.

- Provides a predicate macro for each use.

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

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

* config/darwin-protos.h (machopic_finish): Delete.
* config/darwin.c (machopic_finish): Make static.

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

* config/darwin.c (machopic_indirect_data_reference): Set flag to
indicate that the new symbol is an indirection.
(machopic_indirect_call_target): Likewise.
* config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
(MACHO_SYMBOL_INDIRECTION_P): New.
(MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.

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

* config/darwin.c (machopic_indirect_data_reference): Check for
required indirections before making direct access to defined
values.
(machopic_output_indirection): Place the indirected pointes for
required indirections into the non-lazy symbol pointers section.
(darwin_encode_section_info):
* config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
(MACHO_SYMBOL_MUST_INDIRECT_P): New.

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

* config/darwin.c (machopic_output_indirection): Don't put
hidden symbol indirections into the .data section, use the
non-lazy symbol pointers section as normal.
(darwin_encode_section_info): Record if a symbol is hidden.
* config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
(MACHO_SYMBOL_HIDDEN_VIS_P): New.

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

* config/darwin.c (machopic_symbol_defined_p): Use symbol flag
predicates instead of accessing bits directly.
(machopic_indirect_call_target): Likewise.
(machopic_output_indirection): Likewise.
(darwin_encode_section_info): Improve description.  Use renamed
symbol flags.  Use predicate macros for variables and functions.
* config/darwin.h:
Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
(MACHO_SYMBOL_VARIABLE_P): New.
(MACHO_SYMBOL_DEFINED_P):New.
(MACHO_SYMBOL_STATIC_P): New.
* config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
(SYMBOL_FLAG_SUBT_DEP): New.
* config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.

From-SVN: r277586

5 years ago[Darwin, testsuite] Skip pr72802.c.
Iain Sandoe [Tue, 29 Oct 2019 20:09:40 +0000 (20:09 +0000)] 
[Darwin, testsuite] Skip pr72802.c.

As fallout from 19315, which is not fixed on this branch, the presence
of an unused static variable causes a 'promotion' of that to extern.
This produces wrong code on Darwin when Mach-O PIC is in use (m32 X86
and all PPC). So skip this unconditionally, as noted in the PR trail,
the usefulness of the test is questionable anyway.

gcc/testsuite/

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

* gcc.c-torture/compile/pr72802.c: Skip for Darwin.

From-SVN: r277585

5 years ago[Darwin] Amend section for constants with relocations.
Iain Sandoe [Tue, 29 Oct 2019 20:05:05 +0000 (20:05 +0000)] 
[Darwin] Amend section for constants with relocations.

Darwin's linker doesn't like text section relocations (they require special
enabling). The Fortran FE, at least, seems to generate cases where the
initialiser for a pointer constant can need a relocation. We can handle
this by special-casing SECCAT_RODATA when the relocation is present by
placing the constant in the .const_data section.

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

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

PR target/59888
* config/darwin.c (darwin_rodata_section): Add relocation flag,
choose const_data section for constants with relocations.
(machopic_select_section): Pass relocation flag to
darwin_rodata_section ().

From-SVN: r277584

5 years ago[Darwin] Update machopic_legitimize_pic_address.
Iain Sandoe [Tue, 29 Oct 2019 20:01:59 +0000 (20:01 +0000)] 
[Darwin] Update machopic_legitimize_pic_address.

Some changes were missed here in the transition to LRA. The Darwin
archs are all using LRA now, testing for reload is not correct.

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

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

* config/darwin.c (machopic_legitimize_pic_address): Check
for lra, rather than reload.

From-SVN: r277583

5 years ago[Darwin] Pick up SDKROOT as the sysroot fallback.
Iain Sandoe [Tue, 29 Oct 2019 19:52:20 +0000 (19:52 +0000)] 
[Darwin] Pick up SDKROOT as the sysroot fallback.

For compatibility with xcrun and the behaviour of the clang driver, make use
of the setting of the SDKROOT environment variable when it is available.
This applies to both finding headers and libraries (i.e. it is also passed to
ld64).

Priority:
1. User's command-line specified --sysroot= or -isysroot.
2. The SDKROOT variable when set, and validated.
3. Any sysroot provided by --with-sysroot= configuration parameter.

SDKROOT is checked thus:
1. Presence.
2. That it starts with / (i.e. 'absolute').
3. That it is not / only (since that's the default).
4. That it is readable by the process executing the driver.

This is pretty much the same rule set as used by the clang driver.

NOTE: (3) might turn out to be overly restrictive in the case that we
have configured with --with-sysroot= and then we want to run on a system
with an installation of the headers/libraries in /. We can revisit this
if that turns out to be an important use-case.

So one can do:

xcrun --sdk macosx /path/to/gcc ....

and that provides the SDK path as the sysroot to GCC as expected.

CAVEAT: An unfortunate effect of the fact that gcc (and g++) are
executables in the Xcode installation, which are found ahead of any such
named in the $PATH

PATH=/path/to/gcc/install:$PATH
xcrun --sdk macosx gcc ....

does *not* work, instead that executes the clang from the xcode/commmand
line tools installation.

PATH=/path/to/gcc/install:$PATH
xcrun --sdk macosx x64_64-apple-darwinXX-gcc ...

does work as expected, however.

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

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

PR target/87243
* config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
(darwin_driver_init): Use the sysroot provided by SDKROOT when that
is available and the user has not set one on the command line.

From-SVN: r277582

5 years ago[Darwin, specs] Fix driver handling of PIE options.
Iain Sandoe [Tue, 29 Oct 2019 19:46:05 +0000 (19:46 +0000)] 
[Darwin, specs] Fix driver handling of PIE options.

pie, no-pie and rdynamic are driver options, we can process them in the
relevant place and drop them once dealt with. There's no need to generate
a new header to process the no_compact_unwind which is applied on the
basis of the target system.

Support for the -pie, -no_pie and -no_compact_unwind options should ideally
be checked at configure time, however the status quo is to assert that linkers
capable of targeting the relevant systems support these options (i.e. we trust
that the user doesn't attempt to configure inappropriately).

TODO: check the availability of the linker opts in configure rather than
trusting to the user.

This will fix the fail of pie-7.c, which is a result of failing to handle the
no-pie driver option.

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

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

* config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
(RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
(DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
clauses.
(LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
DARWIN_NOPIE_SPEC.

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

* config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
and DARWIN_NOPIE_SPEC.
(RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
(DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
(DARWIN_NOPIE_SPEC): Collate from darwin10.h.
(DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
(DARWIN_EXPORT_DYNAMIC): Delete.
* config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
and pie options processing to  darwin.h.
* config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h

From-SVN: r277581

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

From-SVN: r277547

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

From-SVN: r277496

5 years agobackport: re PR fortran/86248 (LEN_TRIM in specification expression causes link failure)
Paul Thomas [Sun, 27 Oct 2019 16:21:36 +0000 (16:21 +0000)] 
backport: re PR fortran/86248 (LEN_TRIM in specification expression causes link failure)

2019-10-27  Paul Thomas  <pault@gcc.gnu.org>

Backport from mainline
PR fortran/86248
* resolve.c (flag_fn_result_spec): Correct a typo before the
function declaration.
* trans-decl.c (gfc_sym_identifier): Boost the length of 'name'
to allow for all variants. Simplify the code by using a pointer
to the symbol's proc_name and taking the return out of each of
the conditional branches. Allow symbols with fn_result_spec set
that do not come from a procedure namespace and have a module
name to go through the non-fn_result_spec branch.

2019-10-27  Paul Thomas  <pault@gcc.gnu.org>

Backport from mainline
PR fortran/86248
* gfortran.dg/char_result_19.f90 : New test.
* gfortran.dg/char_result_mod_19.f90 : Module for the new test.

From-SVN: r277488

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

From-SVN: r277477

5 years ago[Darwin, PPC] Check for out of range asm values.
Iain Sandoe [Sat, 26 Oct 2019 10:43:40 +0000 (10:43 +0000)] 
[Darwin, PPC] Check for out of range asm values.

There are some cases in which the value for the max skip to a p2align
directive can be negative. The older assembler (and GAS) just ignores
these cases but newer tools produce an error. To preserve behaviour,
we avoid emitting out of range values.

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

* config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN):Guard
against out of range max skip or log values.

From-SVN: r277471

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

From-SVN: r277465

5 years ago[arm][PR88167] Fix __builtin_return_address returns invalid address
Richard Earnshaw [Fri, 25 Oct 2019 14:39:06 +0000 (14:39 +0000)] 
[arm][PR88167] Fix __builtin_return_address returns invalid address

This patch fixes a problem with the thumb1 prologue code where the link
register could be unconditionally used as a scratch register even if the
return value was still live at the end of the prologue.

Additionally, the patch improves the code generated when we are not
using many low call-saved registers to make use of any unused call
clobbered registers to help with the saving of high registers that
cannot be pushed directly (quite rare in normal code as the register
allocator correctly prefers low registers).

2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
    Richard Earnshaw  <rearnsha@arm.com>

gcc:

PR target/88167
* config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
function.
(thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
(thumb1_compute_save_core_reg_mask): Don't force a spare work
register if both the epilogue and prologue can use call-clobbered
regs.
(thumb1_unexpanded_epilogue): Use
thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
picking temporaries for restoring high regs to match that of the
prologue where possible.
(thumb1_expand_prologue): Add any usable call-clobbered low registers to
the list of work registers.  Detect if the return address is still live
at the end of the prologue and avoid using it for a work register if so.
If the return address is not live, add LR to the list of pushable regs
after the first pass.

gcc/testsuite:

PR target/88167
* gcc.target/arm/pr88167-1.c: New test.
* gcc.target/arm/pr88167-2.c: New test.

From-SVN: r277454

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

From-SVN: r277430

5 years agoPR libstdc++/92143 adjust for OS X aligned_alloc behaviour
Jonathan Wakely [Thu, 24 Oct 2019 15:31:00 +0000 (16:31 +0100)] 
PR libstdc++/92143 adjust for OS X aligned_alloc behaviour

OS X 10.15 adds aligned_alloc but it has the same restriction as the AIX
version, namely that alignments smaller than sizeof(void*) are not
supported.

Backport from mainline
2019-10-18  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/92143
* libsupc++/new_opa.cc (operator new) [__APPLE__]: Increase alignment
to at least sizeof(void*).

From-SVN: r277414

5 years agoAdd makefile target to update HTML files in source tree
Jonathan Wakely [Thu, 24 Oct 2019 15:30:57 +0000 (16:30 +0100)] 
Add makefile target to update HTML files in source tree

Also remove the creation of the html/ext sub-directory, which has been
unused since revision r245258.

Backport from mainline
2019-10-08  Jonathan Wakely  <jwakely@redhat.com>

* doc/Makefile.am (doc-html-docbook-regenerate): New target.
(${docbook_outdir}/html): Do not create unused 'html/ext' directory.
* doc/Makefile.in: Regenerate.
* doc/xml/manual/documentation_hacking.xml: Document new target.
* doc/html/*: Regenerate.

From-SVN: r277413

5 years agoUpdate URL for CUJ article in libstdc++ docs
Jonathan Wakely [Thu, 24 Oct 2019 15:30:53 +0000 (16:30 +0100)] 
Update URL for CUJ article in libstdc++ docs

* doc/xml/manual/allocator.xml: Use archived copy of CUJ article.

From-SVN: r277412

5 years agoUpdate URL for Hoard in libstdc++ docs
Jonathan Wakely [Thu, 24 Oct 2019 15:30:49 +0000 (16:30 +0100)] 
Update URL for Hoard in libstdc++ docs

Backport from mainline
2019-05-31  Gerald Pfeifer  <gerald@pfeifer.com>

* doc/xml/manual/allocator.xml: Move hoard.org back to http.

From-SVN: r277411

5 years agobackport: [multiple changes]
Richard Biener [Thu, 24 Oct 2019 09:38:56 +0000 (09:38 +0000)] 
backport: [multiple changes]

2019-10-24  Richard Biener  <rguenther@suse.de>

Backport from mainline
2019-10-17  Richard Biener  <rguenther@suse.de>

PR debug/91887
* dwarf2out.c (gen_formal_parameter_die): Also try to match
context_die against a DW_TAG_GNU_formal_parameter_pack parent.

* g++.dg/debug/dwarf2/pr91887.C: New testcase.

2019-09-19  Richard Biener  <rguenther@suse.de>

PR tree-optimization/91812
* tree-ssa-phiprop.c (propagate_with_phi): Do not replace
volatile loads.

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

From-SVN: r277370

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

From-SVN: r277359

5 years agore PR tree-optimization/92131 (incorrect assumption that (ao >= 0) is always false)
Eric Botcazou [Wed, 23 Oct 2019 13:17:34 +0000 (13:17 +0000)] 
re PR tree-optimization/92131 (incorrect assumption that (ao >= 0) is always false)

PR tree-optimization/92131
* tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
range would be symbolic, drop to varying for any explicit overflow
in the constant part or if neither range is a singleton.

From-SVN: r277331

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

From-SVN: r277303

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

From-SVN: r277273

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

From-SVN: r277218

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

From-SVN: r277206

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

From-SVN: r277196

5 years agore PR fortran/69455 ([F08] Assembler error(s) when using intrinsic modules in two...
Steven G. Kargl [Fri, 18 Oct 2019 19:26:22 +0000 (19:26 +0000)] 
re PR fortran/69455 ([F08] Assembler error(s) when using intrinsic modules in two BLOCK)

2019-10-18  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/69455
* trans-decl.c (generate_local_decl): Avoid misconstructed
intrinsic modules in a BLOCK construct.

2019-10-18  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/69455
* gfortran.dg/pr69455_1.f90: New test.
* gfortran.dg/pr69455_2.f90: Ditto.

From-SVN: r277193

5 years agobackport: re PR target/86040 ([avr]: RAMPZ is not always cleared after loading __flas...
Georg-Johann Lay [Fri, 18 Oct 2019 09:16:16 +0000 (09:16 +0000)] 
backport: re PR target/86040 ([avr]: RAMPZ is not always cleared after loading __flashN data)

Backport from 2019-10-18 trunk r277143.
PR target/86040
* config/avr/avr.c (avr_out_lpm): Do not shortcut-return.

From-SVN: r277149

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

From-SVN: r277137

5 years agobackport: re PR rtl-optimization/89721 (__builtin_mffs sometimes optimized away)
Segher Boessenkool [Thu, 17 Oct 2019 19:52:55 +0000 (21:52 +0200)] 
backport: re PR rtl-optimization/89721 (__builtin_mffs sometimes optimized away)

Backport from trunk
2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>

PR rtl-optimization/89721
* lra-constraints (invariant_p): Return false if side_effects_p holds.

From-SVN: r277132

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