aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorTamar Christina <tamar.christina@arm.com>2021-08-06 12:21:05 +0100
committerTamar Christina <tamar.christina@arm.com>2021-08-06 12:21:05 +0100
commit6b0bde7eef492843426c3f6b2da229b3c1526eaa (patch)
treef9a4007c56b266703f69fc3a673e0accbdef6362 /gcc/cp
parent3c94db20be9af3cb0376292e2d4672b515558231 (diff)
downloadgcc-6b0bde7eef492843426c3f6b2da229b3c1526eaa.zip
gcc-6b0bde7eef492843426c3f6b2da229b3c1526eaa.tar.gz
gcc-6b0bde7eef492843426c3f6b2da229b3c1526eaa.tar.bz2
middle-end/AArch64: Fix bootstrap after vec changes
The build is broken since a3d3e8c362c2 since it's deleted the ability to pass vec<> by value and now must be past by reference. However some language hooks used by AArch64 were not updated and breaks the build on AArch64. This patch updates these hooks. gcc/c/ChangeLog: * c-decl.c (c_simulate_enum_decl): Pass vec<> by pointer. * c-tree.h (c_simulate_enum_decl): Likewise. gcc/ChangeLog: * config/aarch64/aarch64-sve-builtins.cc (register_svpattern, register_svprfop): Pass vec<> by pointer. * langhooks-def.h (lhd_simulate_enum_decl): Likewise. * langhooks.c (lhd_simulate_enum_decl): Likewise. * langhooks.h (struct lang_hooks_for_types): Likewise. gcc/cp/ChangeLog: * cp-objcp-common.h (cxx_simulate_enum_decl): Pass vec<> by pointer. * decl.c (cxx_simulate_enum_decl): Likewise.
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/cp-objcp-common.h2
-rw-r--r--gcc/cp/decl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/cp-objcp-common.h b/gcc/cp/cp-objcp-common.h
index 53c6e4c..f1704aa 100644
--- a/gcc/cp/cp-objcp-common.h
+++ b/gcc/cp/cp-objcp-common.h
@@ -38,7 +38,7 @@ extern bool cp_handle_option (size_t, const char *, HOST_WIDE_INT, int,
location_t, const struct cl_option_handlers *);
extern tree cxx_make_type_hook (tree_code);
extern tree cxx_simulate_enum_decl (location_t, const char *,
- vec<string_int_pair>);
+ vec<string_int_pair> *);
/* Lang hooks that are shared between C++ and ObjC++ are defined here. Hooks
specific to C++ or ObjC++ go in cp/cp-lang.c and objcp/objcp-lang.c,
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 6fa6b9a..f626f1e 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -16408,7 +16408,7 @@ lookup_enumerator (tree enumtype, tree name)
tree
cxx_simulate_enum_decl (location_t loc, const char *name,
- vec<string_int_pair> values)
+ vec<string_int_pair> *values)
{
location_t saved_loc = input_location;
input_location = loc;