diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2021-01-25 11:27:29 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2021-01-25 11:30:00 +0100 |
commit | 5d01fc7c11606fa0fa36210309df6b10b6e07775 (patch) | |
tree | 390e5b51d018b3a0f54487789c98ddc0ef682ef7 /gcc/tree-ssa-ccp.c | |
parent | c6b0e33febbf73abfcc2bb0e28f0b62afe3b0f2a (diff) | |
download | gcc-5d01fc7c11606fa0fa36210309df6b10b6e07775.zip gcc-5d01fc7c11606fa0fa36210309df6b10b6e07775.tar.gz gcc-5d01fc7c11606fa0fa36210309df6b10b6e07775.tar.bz2 |
Fix internal error on extension with interface at -O2
This is a regression present on the mainline, 10 and 9 branches, in the
form of an internal error with the Ada compiler when a covariant-only
thunk is inlined into its caller.
gcc/ada/
* gcc-interface/trans.c (make_covariant_thunk): Set the DECL_CONTEXT
of the parameters and do not set TREE_PUBLIC on the thunk.
(maybe_make_gnu_thunk): Pass the alias to the covariant thunk.
* gcc-interface/utils.c (finish_subprog_decl): Set the DECL_CONTEXT
of the parameters here...
(begin_subprog_body): ...instead of here.
gcc/testsuite/
* gnat.dg/thunk2.adb, gnat.dg/thunk2.ads: New test.
* gnat.dg/thunk2_pkg.ads: New helper.
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
0 files changed, 0 insertions, 0 deletions