155520 Commits

Author SHA1 Message Date
Wilco Dijkstra
560c38ab99 [ARM] Fix PR89222
The GCC optimizer can generate symbols with non-zero offset from simple
if-statements. Bit zero is used for the Arm/Thumb state bit, so relocations
with offsets fail if it changes bit zero and the relocation forces bit zero
to true.  The fix is to disable offsets on function pointer symbols.  

    gcc/
	PR target/89222
	* config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
	to decide when to split off a non-zero offset from a symbol.
	* config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
	in function symbols.

    testsuite/
	PR target/89222
	* gcc.target/arm/pr89222.c: Add new test.

From-SVN: r273527
2019-07-16 13:13:26 +00:00
GCC Administrator
4884a22c7d Daily bump.
From-SVN: r273502
2019-07-16 00:16:29 +00:00
Andreas Krebbel
5f4019044f S/390: Fix vector shift count operand
We currently use subst definitions to handle the different variants of shift
count operands. Unfortunately, in the vector shift pattern the shift count
operand is used directly. Without it being adjusted for the 'subst' variants the
displacement value is omitted resulting in a wrong shift count being applied.

This patch needs to be applied to older branches as well.

gcc/ChangeLog:

2019-07-15  Andreas Krebbel  <krebbel@linux.ibm.com>

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

	* config/s390/vector.md: Fix shift count operand printing.

gcc/testsuite/ChangeLog:

2019-07-15  Andreas Krebbel  <krebbel@linux.ibm.com>

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

	* gcc.target/s390/vector/vec-shift-2.c: New test.

From-SVN: r273494
2019-07-15 14:31:37 +00:00
GCC Administrator
4e0c1fdbe6 Daily bump.
From-SVN: r273485
2019-07-15 00:16:05 +00:00
GCC Administrator
92f56fec1a Daily bump.
From-SVN: r273471
2019-07-14 00:16:06 +00:00
GCC Administrator
62100726fe Daily bump.
From-SVN: r273460
2019-07-13 00:16:06 +00:00
Wilco Dijkstra
bac7047654 Turn off ipa-ra in builtins test (PR91059)
The gcc.c-torture/execute/builtins/lib directory contains a reimplementation
of many C library string functions, which causes non-trivial register allocation
bugs with LTO and static linked libraries.  To fix this long-standing test issue,
turn off ipa-ra which avoids the register corruption across calls.  All builtin
torture tests now pass on aarch64-none-elf.  Committed as obvious.
See PR78529 for more details.

    testsuite/
	PR testsuite/78529
	* gcc.c-torture/execute/builtins/builtins.exp: Add -fno-ipa-ra.

From-SVN: r273453
2019-07-12 17:15:13 +00:00
Eric Botcazou
e26d4208a9 re PR rtl-optimization/91136 (incorrect move of instruction to delay slot causes application crash in exception handling)
PR rtl-optimization/91136
	* df-core.c (ACCESSING REFS): Fix typos in comment.
	* resource.c (mark_target_live_reg): Add artificial defs that occur at
	the beginning of the block to the initial set of live registers.

From-SVN: r273439
2019-07-12 10:17:42 +00:00
GCC Administrator
c12809273f Daily bump.
From-SVN: r273426
2019-07-12 00:16:05 +00:00
GCC Administrator
d7f9f42f84 Daily bump.
From-SVN: r273372
2019-07-11 00:16:05 +00:00
GCC Administrator
6be224935c Daily bump.
From-SVN: r273318
2019-07-10 00:16:05 +00:00
GCC Administrator
29ac74f037 Daily bump.
From-SVN: r273257
2019-07-09 00:16:05 +00:00
GCC Administrator
4b22431c76 Daily bump.
From-SVN: r273187
2019-07-08 00:16:11 +00:00
GCC Administrator
c49dfb05b9 Daily bump.
From-SVN: r273170
2019-07-07 00:16:10 +00:00
GCC Administrator
937a7eef0e Daily bump.
From-SVN: r273151
2019-07-06 00:16:10 +00:00
GCC Administrator
fe5bcbc234 Daily bump.
From-SVN: r273097
2019-07-05 00:16:05 +00:00
GCC Administrator
d4cafe05ad Daily bump.
From-SVN: r273028
2019-07-04 00:16:09 +00:00
GCC Administrator
7befb8b98a Daily bump.
From-SVN: r272950
2019-07-03 00:16:05 +00:00
GCC Administrator
6011c6b0ad Daily bump.
From-SVN: r272913
2019-07-02 00:16:04 +00:00
GCC Administrator
1dcdb4400d Daily bump.
From-SVN: r272836
2019-07-01 00:16:05 +00:00
GCC Administrator
13e710e45c Daily bump.
From-SVN: r272828
2019-06-30 00:16:07 +00:00
Eric Botcazou
a5374f3737 trans.c (mark_visited_r): Set TYPE_SIZES_GIMPLIFIED on the main variant of a type, if any.
* gcc-interface/trans.c (mark_visited_r): Set TYPE_SIZES_GIMPLIFIED on
	the main variant of a type, if any.

From-SVN: r272818
2019-06-29 07:39:11 +00:00
Eric Botcazou
1fb5a6163d decl.c (set_nonaliased_component_on_array_type): Add missing guard for the presence of TYPE_CANONICAL.
* gcc-interface/decl.c (set_nonaliased_component_on_array_type): Add
	missing guard for the presence of TYPE_CANONICAL.
	(set_reverse_storage_order_on_array_type): Likewise.

From-SVN: r272814
2019-06-29 07:32:09 +00:00
GCC Administrator
ead7354efa Daily bump.
From-SVN: r272805
2019-06-29 00:16:05 +00:00
Jeff Law
cebf79e0ba re PR tree-optimization/90949 (null pointer check removed)
PR tree-optimization/90949
	* tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
	* tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.

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

From-SVN: r272798
2019-06-28 15:01:56 -06:00
GCC Administrator
1e646edab2 Daily bump.
From-SVN: r272771
2019-06-28 00:16:04 +00:00
Martin Jambor
4c6899741d [PR 90939] Remove outdated assert in ipcp_bits_lattice::meet_with
2019-06-27  Martin Jambor  <mjambor@suse.cz>

	PR ipa/90939
	* ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.

From-SVN: r272747
2019-06-27 13:26:52 +02:00
GCC Administrator
d992cef5e1 Daily bump.
From-SVN: r272720
2019-06-27 00:16:04 +00:00
Jonathan Wakely
3e63f32924 PR libstdc++/90634 reduce allocations in filesystem::path construction
Backport from mainline
2019-05-28  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/90634
	* include/experimental/bits/fs_path.h (path::path(path&&)): Only call
	_M_split_cmpts() for a path with multiple components.
	(path::_S_is_dir_sep()): Add missing 'static' keyword to function.
	* src/filesystem/path.cc (path::_M_split_cmpts()): Count number of
	components and reserve space in vector. Return early when there is
	only one component.
	* testsuite/experimental/filesystem/path/construct/90634.cc: New test.

From-SVN: r272697
2019-06-26 16:12:15 +01:00
GCC Administrator
263426472e Daily bump.
From-SVN: r272662
2019-06-26 00:16:04 +00:00
GCC Administrator
ef07709144 Daily bump.
From-SVN: r272629
2019-06-25 00:16:05 +00:00
GCC Administrator
3acb30e029 Daily bump.
From-SVN: r272610
2019-06-24 00:16:04 +00:00
GCC Administrator
3b8210f0d4 Daily bump.
From-SVN: r272596
2019-06-23 00:16:04 +00:00
GCC Administrator
a0592209d6 Daily bump.
From-SVN: r272580
2019-06-22 00:16:06 +00:00
Thomas Koenig
0cce86841f backport: re PR fortran/90937 (ICE: in gfc_get_symbol_decl, at fortran/trans-decl.c:1538)
2019-06-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

	Backport from trunk
	PR fortran/90937
	* trans-types.c (get_formal_from_actual_arglist): Get symbol from
	current namespace so it will be freed later.  If symbol is of type
	character, get an empty character length.

2019-06-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

	Backport from trunk
	PR fortran/90937
	* gfortran.dg/external_procedure_4.f90: New test.

From-SVN: r272566
2019-06-21 19:32:23 +00:00
GCC Administrator
a3b18472c2 Daily bump.
From-SVN: r272535
2019-06-21 00:16:09 +00:00
GCC Administrator
06b785235b Daily bump.
From-SVN: r272492
2019-06-20 00:16:04 +00:00
GCC Administrator
03f85f689f Daily bump.
From-SVN: r272461
2019-06-19 00:16:19 +00:00
GCC Administrator
cce1ac97c4 Daily bump.
From-SVN: r272401
2019-06-18 00:16:04 +00:00
GCC Administrator
849613c014 Daily bump.
From-SVN: r272367
2019-06-17 00:16:05 +00:00
John David Anglin
af2bd0c725 re PR middle-end/64242 (Longjmp expansion incorrect)
PR middle-end/64242
	* config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
	frame clobbers and schedule block.
	(builtin_longjmp): Likewise.

From-SVN: r272364
2019-06-16 21:49:19 +00:00
GCC Administrator
3c6af0e3c9 Daily bump.
From-SVN: r272334
2019-06-16 00:16:04 +00:00
GCC Administrator
736ed20d52 Daily bump.
From-SVN: r272315
2019-06-15 00:16:05 +00:00
GCC Administrator
0faf4d1427 Daily bump.
From-SVN: r272277
2019-06-14 00:16:05 +00:00
Thomas Koenig
14a98949af re PR fortran/90870 (new test case gfortran.dg/deferred_character_33.f90 fails)
2019-06-13  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/90870
    * gfortran.dg/deferred_character_33.f90: Remove failing test.
    * gfortran.dg/deferred_character_33a.f90: Likewise.

From-SVN: r272249
2019-06-13 17:00:22 +00:00
GCC Administrator
a13ee38e9e Daily bump.
From-SVN: r272225
2019-06-13 00:16:04 +00:00
Thomas Koenig
07f8a70834 backport: re PR fortran/90744 (Bogus length for character temporaries passed to external procedures since r268992)
2019-06-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
    Tomáš Trnka  <trnka@scm.com>

    Backport from trunk
    PR fortran/90744
    * trans-types.c (get_formal_from_actual_arglist): Unset typespec
    flags which make no sense for procedures without explicit
    interface.

2019-06-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
    Tomáš Trnka  <trnka@scm.com>

    Backport from trunk
    PR fortran/90744
    * gfortran.dg/deferred_character_33.f90: New test.
    * gfortran.dg/deferred_character_33a.f90: New test.


Co-Authored-By: Tomáš Trnka <trnka@scm.com>

From-SVN: r272214
2019-06-12 20:08:38 +00:00
GCC Administrator
f9425a119b Daily bump.
From-SVN: r272174
2019-06-12 00:16:05 +00:00
GCC Administrator
0ae25b52be Daily bump.
From-SVN: r272138
2019-06-11 00:16:05 +00:00
GCC Administrator
57e1d005c9 Daily bump.
From-SVN: r272099
2019-06-10 00:16:04 +00:00