]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
5 years agobackport: re PR middle-end/91623 (-msse4.1 -O3 segfault in /usr/lib/gcc/x86_64-pc...
Jakub Jelinek [Mon, 21 Oct 2019 11:38:37 +0000 (13:38 +0200)] 
backport: re PR middle-end/91623 (-msse4.1 -O3 segfault in /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/smmintrin.h:270:10)

Backported from mainline
2019-09-01  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/91623
* optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
zeros or negative elements and use NE_EXPR instead of LT_EXPR against
zero vector.

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

From-SVN: r277246

5 years agobackport: re PR lto/91572 (lto1: error: type variant has different ‘TREE_TYPE’ since...
Jakub Jelinek [Mon, 21 Oct 2019 11:37:41 +0000 (13:37 +0200)] 
backport: re PR lto/91572 (lto1: error: type variant has different ‘TREE_TYPE’ since r269862)

Backported from mainline
2019-09-01  Jakub Jelinek  <jakub@redhat.com>

PR lto/91572
* tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
GIMPLE_ASM TREE_LIST operands.

* g++.dg/lto/pr91572_0.C: New test.

From-SVN: r277245

5 years agobackport: re PR go/91617 (Many go test case failures after r275026)
Jakub Jelinek [Mon, 21 Oct 2019 11:36:36 +0000 (13:36 +0200)] 
backport: re PR go/91617 (Many go test case failures after r275026)

Backported from mainline
2019-09-02  Jakub Jelinek  <jakub@redhat.com>

PR go/91617
* fold-const.c (range_check_type): For enumeral and boolean
type, pass 1 to type_for_size langhook instead of
TYPE_UNSIGNED (etype).  Return unsigned_type_for result whenever
etype isn't TYPE_UNSIGNED INTEGER_TYPE.
(build_range_check): Don't call unsigned_type_for for pointer types.
* match.pd (X / C1 op C2): Don't call unsigned_type_for on
range_check_type result.

2019-08-29  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/91351
* tree-cfg.c (generate_range_test): Use range_check_type instead of
unsigned_type_for.
* tree-cfgcleanup.c (convert_single_case_switch): Punt if
range_check_type returns NULL.
* tree-switch-conversion.c (switch_conversion::build_one_array):
Use range_check_type instead of unsigned_type_for, don't perform
linear opt if it returns NULL.
(bit_test_cluster::find_bit_tests): Formatting fix.
(bit_test_cluster::emit): Use range_check_type instead of
unsigned_type_for.
(switch_decision_tree::try_switch_expansion): Punt if range_check_type
returns NULL.

* g++.dg/opt/pr91351.C: New test.

From-SVN: r277244

5 years agobackport: re PR c/91401 (schedule + dist_schedule clauses rejected on distribute...
Jakub Jelinek [Mon, 21 Oct 2019 11:35:09 +0000 (13:35 +0200)] 
backport: re PR c/91401 (schedule + dist_schedule clauses rejected on distribute parallel for)

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

PR c/91401
* c-parser.c (c_parser_omp_clause_dist_schedule): Fix up typos in the
check_no_duplicate_clause call.  Comment it out, instead emit a
warning for duplicate dist_schedule clauses.

* parser.c (cp_parser_omp_clause_dist_schedule): Comment out the
check_no_duplicate_clause call, instead emit a warning for duplicate
dist_schedule clauses.

* c-c++-common/gomp/pr91401-1.c: New test.
* c-c++-common/gomp/pr91401-2.c: New test.

From-SVN: r277243

5 years agobackport: quadmath.h (M_Eq, [...]): Use two more decimal places.
Jakub Jelinek [Mon, 21 Oct 2019 11:34:04 +0000 (13:34 +0200)] 
backport: quadmath.h (M_Eq, [...]): Use two more decimal places.

Backported from mainline
2019-08-02  Jakub Jelinek  <jakub@redhat.com>

* quadmath.h (M_Eq, M_LOG2Eq, M_LOG10Eq, M_LN2q, M_LN10q, M_PIq,
M_PI_2q, M_PI_4q, M_1_PIq, M_2_PIq, M_2_SQRTPIq, M_SQRT2q,
M_SQRT1_2q): Use two more decimal places.

From-SVN: r277242

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

From-SVN: r277220

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

From-SVN: r277208

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

From-SVN: r277198

5 years agore PR fortran/69455 ([F08] Assembler error(s) when using intrinsic modules in two...
Steven G. Kargl [Fri, 18 Oct 2019 17:59:32 +0000 (17:59 +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: r277160

5 years agoFortran] PR91586 Fix ICE on invalid code with CLASS
Tobias Burnus [Fri, 18 Oct 2019 12:38:26 +0000 (12:38 +0000)] 
Fortran] PR91586 Fix ICE on invalid code with CLASS

        gcc/fortran/
        Backport from mainline
        2019-10-18  Tobias Burnus  <tobias@codesourcery.com>

        PR fortran/91586
        * class.c (gfc_find_derived_vtab): Return NULL
        instead of deref'ing NULL pointer.

        gcc/testsuite/
        Backport from mainline
        2019-10-18  Tobias Burnus  <tobias@codesourcery.com>

        PR fortran/91586
        * gfortran.dg/class_71.f90: New.

From-SVN: r277154

5 years agobackport: re PR target/86040 ([avr]: RAMPZ is not always cleared after loading __flas...
Georg-Johann Lay [Fri, 18 Oct 2019 09:10:20 +0000 (09:10 +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: r277147

5 years agoavr-mmcu.texi: Re-generate because config/avr/avr-devices.c was changed in r269487.
Georg-Johann Lay [Fri, 18 Oct 2019 09:06:40 +0000 (09:06 +0000)] 
avr-mmcu.texi: Re-generate because config/avr/avr-devices.c was changed in r269487.

* doc/avr-mmcu.texi: Re-generate because config/avr/avr-devices.c
was changed in r269487.

From-SVN: r277146

5 years ago[Darwin] Amend section for constants with relocations.
Iain Sandoe [Fri, 18 Oct 2019 08:42:41 +0000 (08:42 +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.

gcc/

2019-10-18  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: r277145

5 years ago[Darwin] Update machopic_legitimize_pic_address.
Iain Sandoe [Fri, 18 Oct 2019 07:54:12 +0000 (07:54 +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: r277144

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

From-SVN: r277139

5 years agopa.c (pa_output_indirect_call): Fix typos in last change.
John David Anglin [Thu, 17 Oct 2019 22:44:24 +0000 (22:44 +0000)] 
pa.c (pa_output_indirect_call): Fix typos in last change.

* config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.

From-SVN: r277136

5 years ago[arm] PR target/89400 fix thumb1 unaligned access expansion
Richard Earnshaw [Thu, 17 Oct 2019 16:45:46 +0000 (16:45 +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: r277123

5 years agore PR fortran/83113 (Bogus "duplicate allocatable attribute" error for submodule...
Steven G. Kargl [Thu, 17 Oct 2019 16:30:25 +0000 (16:30 +0000)] 
re PR fortran/83113 (Bogus "duplicate allocatable attribute" error for submodule character function)

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

PR fortran/83113
PR fortran/89943
decl.c (gfc_match_function_decl): Ignore duplicate BIND(C) for function
declaration in submodule.  Implement at check for F2018 C1550.
(gfc_match_entry): Use temporary for locus, which allows removal of
one gfc_error_now().
(gfc_match_subroutine): Ignore duplicate BIND(C) for subroutine
declaration in submodule.  Implement at check for F2018 C1550.

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

PR fortran/83113
PR fortran/89943
* gfortran.dg/pr89943_1.f90: New test.
* gfortran.dg/pr89943_2.f90: Ditto.
* gfortran.dg/pr89943_3.f90: Ditto.
* gfortran.dg/pr89943_4.f90: Ditto.

From-SVN: r277122

5 years agobackport: re PR testsuite/92093 (New test case gcc.target/powerpc/pr91275.c from...
Bill Schmidt [Thu, 17 Oct 2019 15:32:40 +0000 (15:32 +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: r277117

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

From-SVN: r277087

5 years ago[Darwin] Pick up SDKROOT as the sysroot fallback.
Iain Sandoe [Wed, 16 Oct 2019 19:22:17 +0000 (19:22 +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 /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/usr/local/tools/gcc-2016/bin:

PATH=/path/to/gcc/install:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/usr/local/tools/gcc-2016/bin
xcrun --sdk macosx gcc ....

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

PATH=/path/to/gcc/install:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/usr/local/tools/gcc-2016/bin
xcrun --sdk macosx x64_64-apple-darwinXX-gcc ...

does work as expected, however.

2019-10-16  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: r277079

5 years ago[Darwin, specs] Backport fixes for driver handling of PIE options.
Iain Sandoe [Wed, 16 Oct 2019 19:12:33 +0000 (19:12 +0000)] 
[Darwin, specs] Backport fixes for 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-16  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: r277078

5 years agoBackport PRs 91606, 91772, 91790, 91812, 91968
Richard Biener [Wed, 16 Oct 2019 09:25:34 +0000 (09:25 +0000)] 
Backport PRs 91606, 91772, 91790, 91812, 91968

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

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

PR lto/91968
* tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
BLOCK_VARS.

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

PR c++/91606
* decl.c (build_ptrmemfunc_type): Mark pointer-to-member
fat pointer structure members as DECL_NONADDRESSABLE_P.

* g++.dg/torture/pr91606.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.

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

PR debug/91772
* dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
was missing generate locations only once.

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

PR tree-optimization/91790
* tree-vect-stmts.c (vectorizable_load): For BB vectorization
use the correct DR for setting up realignment.

From-SVN: r277055

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

From-SVN: r277032

5 years agofptr.c (_dl_read_access_allowed): Change argument to unsigned int.
John David Anglin [Tue, 15 Oct 2019 22:20:12 +0000 (22:20 +0000)] 
fptr.c (_dl_read_access_allowed): Change argument to unsigned int.

* config/pa/fptr.c (_dl_read_access_allowed): Change argument to
unsigned int.  Adjust callers.
(__canonicalize_funcptr_for_compare): Change plabel type to volatile
unsigned int *.  Load relocation offset before function pointer.
Add barrier to ensure ordering.

From-SVN: r277016

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

From-SVN: r276981

5 years agobackport: rs6000-builtin.def: (LVSL...
Will Schmidt [Mon, 14 Oct 2019 18:11:47 +0000 (18:11 +0000)] 
backport: rs6000-builtin.def: (LVSL...

Backport from trunk
[gcc]

2019-09-26  Will Schmidt <will_schmidt@vnet.ibm.com>
* config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
LD_ELEMREV_V16QI): Use the PURE attribute.

[testsuite]

2019-09-26  Will Schmidt <will_schmidt@vnet.ibm.com>
* gcc.target/powerpc/pure-builtin-redundant-load.c:  New.

From-SVN: r276966

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

From-SVN: r276946

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

From-SVN: r276932

5 years agopa.c (pa_output_call): Load descriptor address to register %r22.
John David Anglin [Sat, 12 Oct 2019 20:39:41 +0000 (20:39 +0000)] 
pa.c (pa_output_call): Load descriptor address to register %r22.

* config/pa/pa.c (pa_output_call): Load descriptor address to register
%r22.  Load function address before global pointer.
(pa_attr_length_indirect_call): Adjust length of inline versions of
$$dyncall.
(pa_output_indirect_call): Remove fast inline version of $$dyncall
before normal cases.  Update inline $$dyncall sequences to preserve
function descriptor address in register %r22.
(TRAMPOLINE_CODE_SIZE): Adjust.
(pa_asm_trampoline_template): Revise 32-bit trampoline.  Don't assume
register %r22 contains trampoline address.
(pa_trampoline_init): Adjust offsets.
(pa_trampoline_adjust_address): Likewise.
* config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.

From-SVN: r276929

5 years agolib2funcs.S (__gcc_plt_call): Load branch target to %r21.
John David Anglin [Sat, 12 Oct 2019 19:44:29 +0000 (19:44 +0000)] 
lib2funcs.S (__gcc_plt_call): Load branch target to %r21.

* config/pa/lib2funcs.S (__gcc_plt_call): Load branch target to %r21.
Load PIC register after branch target.  Fix white space.
* config/pa/milli64.S ($$dyncall): Separate LINUX and non LINUX
implementations.  Load PIC register after branch target.  Don't
clobber function pointer when it points to function descriptor.
Use nullification instead of branch in LINUX implementation.

From-SVN: r276927

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

PR ada/91995
* sem_ch8.adb (Chain_Use_Clause): Remove second argument in calls
to Defining_Entity.
* sem_elab.adb (Find_Unit_Entity): Likewise.  Deal with N_Subunit
here in lieu of in Defining_Entity.
* sem_spark.adb (Check_Callable_Body): Likewise.
(Check_Package_Body): Likewise.
* sem_util.ads (Defining_Entity): Remove 2nd and 3th parameters.
* sem_util.adb (Defining_Entity): Remove 2nd and 3th parameters,
and adjust accordingly.  Deal with N_Compilation_Unit.

From-SVN: r276917

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

From-SVN: r276911

5 years agore PR fortran/91715 (ICE in resolve_fntype, at fortran/resolve.c:16884)
Steven G. Kargl [Fri, 11 Oct 2019 20:19:28 +0000 (20:19 +0000)] 
re PR fortran/91715 (ICE in resolve_fntype, at fortran/resolve.c:16884)

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

PR fortran/91715
* decl.c (gfc_match_prefix): If matching a type-spec returns an error,
it's an error so re-act correctly.

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

PR fortran/91715
* gfortran.dg/function_kinds_5.f90: Prune run-on error.
* gfortran.dg/pr85543.f90: Ditto.
* gfortran.dg/pr91715.f90: New test.

From-SVN: r276905

5 years agore PR fortran/91649 (ICE in gfc_resolve_findloc, at fortran/iresolve.c:1827)
Steven G. Kargl [Fri, 11 Oct 2019 20:06:15 +0000 (20:06 +0000)] 
re PR fortran/91649 (ICE in gfc_resolve_findloc, at fortran/iresolve.c:1827)

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

PR fortran/91649
check.c (gfc_check_findloc): Additional checking for valid arguments

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

PR fortran/91649
* gfortran.dg/pr91649.f90: New test.

From-SVN: r276904

5 years ago* fi.po: Update.
Joseph Myers [Fri, 11 Oct 2019 17:24:22 +0000 (18:24 +0100)] 
* fi.po: Update.

From-SVN: r276895

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:37 +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: r276867

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

From-SVN: r276857

5 years agore PR fortran/91801 (ICE in gfc_simplify_reshape, at fortran/simplify.c:6733)
Steven G. Kargl [Thu, 10 Oct 2019 21:56:08 +0000 (21:56 +0000)] 
re PR fortran/91801 (ICE in gfc_simplify_reshape, at fortran/simplify.c:6733)

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

PR fortran/91801
* simplify.c (gfc_simplify_reshape): Convert a gcc_assert into a
gfc_error as a user can easily hit the condition.

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

PR fortran/91801
* gfortran.dg/pr91801.f90: New test.

From-SVN: r276853

5 years agore PR target/92022 (ICE in alpha_handle_trap_shadows, at config/alpha/alpha.c:8847)
Uros Bizjak [Thu, 10 Oct 2019 17:45:40 +0000 (19:45 +0200)] 
re PR target/92022 (ICE in alpha_handle_trap_shadows, at config/alpha/alpha.c:8847)

PR target/92022
* config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.

testsuite/ChangeLog:

PR target/92022
* g++.dg/pr92022.C: New test.

From-SVN: r276844

5 years agobackport: re PR target/88630 (Incorrect float negating together with convertion to...
Oleg Endo [Thu, 10 Oct 2019 15:24:05 +0000 (15:24 +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: r276825

5 years agoS/390: Add support for z15 as CPU name.
Andreas Krebbel [Thu, 10 Oct 2019 09:09:42 +0000 (09:09 +0000)] 
S/390: Add support for z15 as CPU name.

So far z15 was identified as arch13. After the machine has been
announced we can now add the real name.

gcc/ChangeLog:

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

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

* common/config/s390/s390-common.c (PF_ARCH13): Rename to...
(PF_Z15): ... this.
* config.gcc: Add z15 as option for --with-arch and --with-tune
configure switches.
* config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
error reporting for unsupported builtins.
* config/s390/s390-opts.h (enum processor_type): Rename
PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
* config/s390/8561.md: Rename arch13 to z15 throughout the file.
* config/s390/driver-native.c (s390_host_detect_local_cpu):
Likewise.
* config/s390/s390-builtins.def: Likewise.
* config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
(s390_expand_builtin): Add missing check for unsupported builtins.
(s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
(s390_rtx_costs): Likewise.
(s390_get_sched_attrmask): Rename arch13 to z15.
(s390_get_unit_mask): Likewise.
(s390_is_fpd): Likewise.
(s390_is_fxd): Likewise.
* config/s390/s390.h (enum processor_flags): Likewise.
* config/s390/s390.md: Likewise.
* config/s390/vector.md: Likewise.
* config/s390/vx-builtins.md: Likewise.
* config/s390/s390.opt: Add z15 to processor_type value.

From-SVN: r276793

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

From-SVN: r276785

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

From-SVN: r276749

5 years agoPR c++/91740 - ICE with constexpr call and ?: in ARRAY_REF.
Marek Polacek [Tue, 8 Oct 2019 13:38:35 +0000 (13:38 +0000)] 
PR c++/91740 - ICE with constexpr call and ?: in ARRAY_REF.

* pt.c (build_non_dependent_expr): Call build_non_dependent_expr for
the first operand.

From-SVN: r276699

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

From-SVN: r276684

5 years agobackport: re PR fortran/84487 (Large rodate section increase in 465.tonto with r254427)
Thomas Koenig [Mon, 7 Oct 2019 20:10:22 +0000 (20:10 +0000)] 
backport: re PR fortran/84487 (Large rodate section increase in 465.tonto with r254427)

2019-10-07  Thomas Koenig <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/84487
* trans-decl.c (gfc_get_symbol_decl): For __def_init, set
DECL_ARTIFICAL and do not set TREE_READONLY.

2019-10-07  Thomas Koenig <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/84487
* gfortran.dg/typebound_call_22.f03: xfail.

From-SVN: r276672

5 years agobackport: re PR target/91275 (__builtin_crypto_vpmsumd gives different results -O...
Bill Schmidt [Mon, 7 Oct 2019 18:23:20 +0000 (18:23 +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-p8swap.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: r276667

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

From-SVN: r276643

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

From-SVN: r276633

5 years agore PR fortran/47054 (Compilation error when cray pointers are declared in both host...
Steven G. Kargl [Sat, 5 Oct 2019 15:42:25 +0000 (15:42 +0000)] 
re PR fortran/47054 (Compilation error when cray pointers are declared in both host and internal subroutines)

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

PR fortran/47054
* decl.c (variable_decl): Do not search parent namespace for symbol.

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

PR fortran/47054
* gfortran.dg/pr47054_1.f90: New test
* gfortran.dg/pr47054_2.f90: Ditto.

From-SVN: r276628

5 years agoBackport fix for PR jit/91928
Andrea Corallo [Sat, 5 Oct 2019 09:02:25 +0000 (09:02 +0000)] 
Backport fix for PR jit/91928

gcc/ChangeLog

2019-10-05  Andrea Corallo  <andrea.corallo@arm.com>

Backport from mainline
2019-10-03  Andrea Corallo  <andrea.corallo@arm.com>
* gcc/ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum
when finished.
* ipa-prop.c (ipcp_free_transformation_sum): New function.
* ipa-prop.h (ipcp_free_transformation_sum): Add declaration.

From-SVN: r276625

5 years agore PR fortran/91942 (ICE in match_vtag, at fortran/io.c:1485)
Steven G. Kargl [Sat, 5 Oct 2019 04:05:05 +0000 (04:05 +0000)] 
re PR fortran/91942 (ICE in match_vtag, at fortran/io.c:1485)

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

PR fortran/91942
* io.c (match_vtag): Check for non-NULL result->symtree.
(match_out_tag): Check for invalid constant due to inquiry parameter.
(match_filepos): Instead of a syntax error, go to cleanup to get better
error messages.

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

PR fortran/91942
* gfortran.dg/pr91587.f90: Update dg-error regex.
* gfortran.dg/pr91942.f90: New test.

From-SVN: r276620

5 years agore PR fortran/91785 (ICE in check_assumed_size_reference, at fortran/resolve.c:1601)
Steven G. Kargl [Sat, 5 Oct 2019 03:55:05 +0000 (03:55 +0000)] 
re PR fortran/91785 (ICE in check_assumed_size_reference, at fortran/resolve.c:1601)

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

PR fortran/91785
* primary.c (gfc_match_varspec): Ensure an inquiry parameter has
it locus set.

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

PR fortran/91785
* gfortran.dg/pr91785.f90: New test.

From-SVN: r276619

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

From-SVN: r276617

5 years agoBackport fix for PR target/91769
Dragan Mladjenovic [Fri, 4 Oct 2019 11:10:01 +0000 (11:10 +0000)] 
Backport fix for PR target/91769

gcc/ChangeLog:

2019-10-04  Dragan Mladjenovic <dmladjenovic@wavecomp.com>

Backport from mainline
2019-10-03  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>

PR target/91769
* config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
instead of REGNO equality check on addr.reg.

gcc/testsuite/ChangeLog:

2019-10-04  Dragan Mladjenovic <dmladjenovic@wavecomp.com>

Backport from mainline
2019-10-03  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>

PR target/91769
* gcc.target/mips/pr91769.c: New test.

From-SVN: r276570

5 years agoBackprot fix for uninitialised use in mips_split_move
Dragan Mladjenovic [Fri, 4 Oct 2019 10:57:48 +0000 (10:57 +0000)] 
Backprot fix for uninitialised use in mips_split_move

Fixes PR target/91474 and PR target/91702.

2019-10-04  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>

Backport from mainline
2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* config/mips/mips.c (mips_split_move): Zero-initialize addr
and check whether addr.reg is nonnull before using it.

From-SVN: r276569

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

From-SVN: r276559

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

From-SVN: r276501

5 years agobackport: re PR fortran/91716 (ICE in output_constant, at varasm.c:5026)
Bernd Edlinger [Wed, 2 Oct 2019 13:22:37 +0000 (13:22 +0000)] 
backport: re PR fortran/91716 (ICE in output_constant, at varasm.c:5026)

2019-10-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        Backport from mainline

        2019-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR fortran/91716
        * trans-array.c (gfc_conv_array_initializer): Always assign the
        array type of the field to the string constant.

        PR fortran/91716
        * gfortran.dg/pr91716.f90: New test.

From-SVN: r276458

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

From-SVN: r276437

5 years ago[multiple changes]
Steven G. Kargl [Tue, 1 Oct 2019 19:21:05 +0000 (19:21 +0000)] 
[multiple changes]

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

PR fortran/91864
* gcc/fortran/io.c (match_io_element): An inquiry parameter cannot be
read into.
* gcc/fortran/match.c (gfc_match_allocate): An inquiry parameter
can be neither an allocate-object nor stat variable.
(gfc_match_deallocate): An inquiry parameter cannot be deallocated.

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

PR fortran/91864
* gcc/testsuite/gfortran.dg/pr91864.f90

From-SVN: r276425

5 years agobackport: re PR fortran/91802 (ICE in mio_name_expr_t, at fortran/module.c:2141)
Steven G. Kargl [Tue, 1 Oct 2019 18:58:01 +0000 (18:58 +0000)] 
backport: re PR fortran/91802 (ICE in mio_name_expr_t, at fortran/module.c:2141)

2019-10-01  Steven G. Kargl  <kargl@gcc.ngu.org>

Backport of r276254+276265
PR fortran/91802
* decl.c (attr_decl1): Check if rank+corank > 15.

2019-10-01  Steven G. Kargl  <kargl@gcc.ngu.org>

PR fortran/91802
* gfortran.dg/pr91802.f90: New test.

From-SVN: r276423

5 years agore PR fortran/91714 (Accepts type statement without delimiter in free form)
Steven G. Kargl [Tue, 1 Oct 2019 18:37:53 +0000 (18:37 +0000)] 
re PR fortran/91714 (Accepts type statement without delimiter in free form)

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

PR fortran/91714
* decl.c (gfc_match_decl_type_spec):  Issue errors for a few
mangled types.

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

PR fortran/91714
* gfortran.dg/dec_type_print_3.f90: Update dg-error regex.
* gfortran.dg/pr91714.f90: New test.

From-SVN: r276421

5 years agore PR fortran/91641 (ICE in gfc_conv_is_contiguous_expr, at fortran/trans-intrinsic...
Steven G. Kargl [Tue, 1 Oct 2019 18:16:36 +0000 (18:16 +0000)] 
re PR fortran/91641 (ICE in gfc_conv_is_contiguous_expr, at fortran/trans-intrinsic.c:2857)

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

PR fortran/91641
* check.c (gfc_check_is_contiguous): null() cannot be an actual
argument to is_contiguous().

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

PR fortran/91641
* gfortran.dg/pr91641.f90: New test.

From-SVN: r276419

5 years agobackport: re PR c++/88562 (Incorrect pointer incrementing on SH4)
Oleg Endo [Tue, 1 Oct 2019 14:58:10 +0000 (14:58 +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: r276412

5 years ago[AArch64] Don't split 64-bit constant stores to volatile location
Kyrylo Tkachov [Tue, 1 Oct 2019 10:33:40 +0000 (10:33 +0000)] 
[AArch64] Don't split 64-bit constant stores to volatile location

2019-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

Backport from mainline
2019-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* config/aarch64/aarch64.md (mov<mode>): Don't call
aarch64_split_dimode_const_store on volatile MEM.

* gcc.target/aarch64/nosplit-di-const-volatile_1.c: New test.

From-SVN: r276398

5 years agodriver: Also prune joined switches with negation
Kyrylo Tkachov [Tue, 1 Oct 2019 10:28:40 +0000 (10:28 +0000)] 
driver: Also prune joined switches with negation

2019-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

Backport from mainline
2019-09-26  Matt Turner  <mattst88@gmail.com>

PR driver/69471
* config/aarch64/aarch64.opt (march=): Add Negative(march=).
(mtune=): Add Negative(mtune=).
(mcpu=): Add Negative(mcpu=).
* config/arm/arm.opt: Likewise.

From-SVN: r276397

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

From-SVN: r276385

5 years ago* es.po: Update.
Joseph Myers [Mon, 30 Sep 2019 21:54:07 +0000 (22:54 +0100)] 
* es.po: Update.

From-SVN: r276381

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

From-SVN: r276275

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

From-SVN: r276263

5 years agoPR c++/91923 - failure-to-SFINAE with class type NTTP in C++17.
Marek Polacek [Sat, 28 Sep 2019 11:50:11 +0000 (11:50 +0000)] 
PR c++/91923 - failure-to-SFINAE with class type NTTP in C++17.

* pt.c (invalid_nontype_parm_type_p): Only emit errors when
tf_error.

* g++.dg/cpp0x/nontype5.C: New test.

From-SVN: r276250

5 years agobackport: re PR target/86805 (sh port needs updating for CVE-2017-5753)
Oleg Endo [Sat, 28 Sep 2019 08:55:03 +0000 (08:55 +0000)] 
backport: re PR target/86805 (sh port needs updating for CVE-2017-5753)

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

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

PR target/86805
* config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.

From-SVN: r276245

5 years agobackport: re PR target/80672 (gcc/config/sh/sh.c:716: prefer compare to find.)
Oleg Endo [Sat, 28 Sep 2019 08:37:23 +0000 (08:37 +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: r276241

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

From-SVN: r276226

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

From-SVN: r276171

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

From-SVN: r276138

5 years ago[arm] Fix use of CRC32 intrinsics with Armv8-a and hard-float
Kyrylo Tkachov [Wed, 25 Sep 2019 13:48:29 +0000 (13:48 +0000)] 
[arm] Fix use of CRC32 intrinsics with Armv8-a and hard-float

Backport from mainline
2019-08-22  Kyrylo Tkachov <kyrylo.tkachov@arm.com>

* config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
intrinsics if __ARM_FP.
Use __ARM_FEATURE_CRC32 ifdef guard.

* gcc.target/arm/acle/crc_hf_1.c: New test.

From-SVN: r276126

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

From-SVN: r276110

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

From-SVN: r276088

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:08:45 +0000 (08:08 +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: r276042

5 years agoxtensa: backport fix for PR target/90922
Max Filippov [Mon, 23 Sep 2019 07:47:14 +0000 (07:47 +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: r276037

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

From-SVN: r276034

5 years ago[Darwin, opts processing] Fix missing RejectNegative etc.
Iain Sandoe [Sun, 22 Sep 2019 19:36:09 +0000 (19:36 +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-22  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: r276031

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

From-SVN: r276025

5 years agobackport: re PR fortran/91588 (ICE in check_inquiry, at fortran/expr.c:2673)
Paul Thomas [Sat, 21 Sep 2019 08:35:17 +0000 (08:35 +0000)] 
backport: re PR fortran/91588 (ICE in check_inquiry, at fortran/expr.c:2673)

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

Backport from mainline
PR fortran/91588
* expr.c (check_inquiry): Remove extended component refs by
using symbol pointers. If a function argument is an associate
variable with a constant target, copy the target expression in
place of the argument expression. Check that the charlen is not
NULL before using the string length.

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

Backport from mainline
PR fortran/91588
* gfortran.dg/associate_49.f90 : New test.

From-SVN: r276016

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

From-SVN: r276014

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

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

From-SVN: r276008

5 years agore PR rtl-optimization/88751 (Performance regression reload vs lra)
Andreas Krebbel [Fri, 20 Sep 2019 12:18:26 +0000 (12:18 +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: r276000

5 years agoRISC-V: Fix more splitters accidentally calling gen_reg_rtx.
Kito Cheng [Fri, 20 Sep 2019 10:41:51 +0000 (10:41 +0000)] 
RISC-V: Fix more splitters accidentally calling gen_reg_rtx.

PR target/91683
* config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
(riscv_move_integer): Likewise.
* config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
riscv_move_integer arg.
(riscv_legitimize_move): Likewise.
(riscv_force_temporary): New parameter in_splitter.  Don't call
force_reg if true.
(riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
arg.
(riscv_add_offset): Likewise.
(riscv_split_symbol): New parameter in_splitter.  Pass to
riscv_force_temporary.
(riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
arg.
(riscv_move_integer): New parameter in_splitter.  New local
can_create_psuedo.  Don't call riscv_split_integer or force_reg when
in_splitter TRUE.
(riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
riscv_split_symbol, and riscv_force_temporary args.
* config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
riscv_move_integer arg.
(low<mode>+2): Pass TRUE for new riscv_split_symbol arg.

From-SVN: r275997

5 years agore PR target/91269 (unaligned floating-point register with -mcpu=niagara4 -fcall...
Eric Botcazou [Fri, 20 Sep 2019 09:45:26 +0000 (09:45 +0000)] 
re PR target/91269 (unaligned floating-point register with -mcpu=niagara4 -fcall-used-g6)

PR target/91269
* config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.

From-SVN: r275995

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

From-SVN: r275985

5 years agore PR fortran/91727 (ICE in conformable_arrays, at fortran/resolve.c:7490)
Steven G. Kargl [Thu, 19 Sep 2019 17:54:53 +0000 (17:54 +0000)] 
re PR fortran/91727 (ICE in conformable_arrays, at fortran/resolve.c:7490)

2019-09-19  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91727
* resolve.c (conformable_arrays):  If array-spec is NULL, then
allocate-object is a scalar.  a conformability check only occurs
for an array source-expr.

2019-09-19  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91727
* gfortran.dg/pr91727.f90: New test.

From-SVN: r275973

5 years agoRISC-V: Fix bad insn splits with paradoxical subregs.
Kito Cheng [Thu, 19 Sep 2019 06:38:23 +0000 (06:38 +0000)] 
RISC-V: Fix bad insn splits with paradoxical subregs.

Shifting by more than the size of a SUBREG_REG doesn't work, so we either
need to disable splits if an input is paradoxical, or else we need to
generate a clean temporary for intermediate results.

Jakub wrote the first version of this patch, so gets primary credit for it.

gcc/
PR target/91635
* config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
extend<SHORT:mode><SUPERQI:mode>2): Don't split if
paradoxical_subreg_p (operands[0]).
(*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
use as intermediate value.

gcc/testsuite/
PR target/91635
* gcc.c-torture/execute/pr91635.c: New test.
* gcc.target/riscv/shift-shift-4.c: New test.
* gcc.target/riscv/shift-shift-5.c: New test.

From-SVN: r275929

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

From-SVN: r275923

5 years agobackport: re PR fortran/91550 (ICE in do_subscript, at fortran/frontend-passes.c...
Thomas Koenig [Wed, 18 Sep 2019 17:32:08 +0000 (17:32 +0000)] 
backport: re PR fortran/91550 (ICE in do_subscript, at fortran/frontend-passes.c:2652)

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

    Backport from trunk
    PR fortran/91550
    * frontend-passes.c (do_subscript): If step equals
    zero, a previuos error has been reported; do nothing
    in this case.
    * resolve.c (gfc_resolve_iterator): Move error checking
    after type conversion.

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

    Backport from trunk
    PR fortran/91550
    * gfortran.dg/do_subscript_6.f90: New test.

From-SVN: r275891

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

From-SVN: r275832

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

From-SVN: r275762

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

From-SVN: r275740