diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2020-01-07 10:21:26 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2020-01-07 10:21:26 +0000 |
commit | ab341f5003f8ad9f5ee30ce566d68d8284a31f00 (patch) | |
tree | 0bf5b28df193c9cc10990bf5bd48d954dbc5afa9 /gcc/go | |
parent | 683e93d1975f676d00096b7c93b942dbd0491800 (diff) | |
download | gcc-ab341f5003f8ad9f5ee30ce566d68d8284a31f00.zip gcc-ab341f5003f8ad9f5ee30ce566d68d8284a31f00.tar.gz gcc-ab341f5003f8ad9f5ee30ce566d68d8284a31f00.tar.bz2 |
Add a generic lhd_simulate_enum_decl
Normally we only create SVE ACLE functions when arm_sve.h is included.
But for LTO we need to do it at start-up, so that the functions are
already defined when streaming in the LTO objects.
One hitch with doing that is that LTO doesn't yet implement the
simulate_enum_decl langhook. This patch adds a simple default
implementation that it can use.
2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* langhooks-def.h (lhd_simulate_enum_decl): Declare.
(LANG_HOOKS_SIMULATE_ENUM_DECL): Use it.
* langhooks.c: Include stor-layout.h.
(lhd_simulate_enum_decl): New function.
* config/aarch64/aarch64-sve-builtins.cc (init_builtins): Call
handle_arm_sve_h for the LTO frontend.
(register_vector_type): Cope with null returns from pushdecl.
gcc/testsuite/
* gcc.target/aarch64/sve/pcs/asm_4.c: New test.
From-SVN: r279954
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions