aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.h
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2017-04-15 03:28:31 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2017-04-15 03:28:31 +0000
commite072b0c410818178beda7e3da622d7ff29d0c3be (patch)
tree4d33781a146f21c9564a837fd95a447a96ac847c /gcc/cp/decl.h
parent51477ac2b9eeaf48c330942e281518d8b6b5c230 (diff)
downloadgcc-e072b0c410818178beda7e3da622d7ff29d0c3be.zip
gcc-e072b0c410818178beda7e3da622d7ff29d0c3be.tar.gz
gcc-e072b0c410818178beda7e3da622d7ff29d0c3be.tar.bz2
[libcp1] handle anon aggregates linkage-named by typedefs
Arrange for the first typedef to an anonymous type in the same context to be used as the linkage name for the type. for gcc/cp/ChangeLog * decl.c (name_unnamed_type): Split out of... (grokdeclarator): ... this. * decl.h (name_unnamed_type): Declare. for libcc1/ChangeLog * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type. From-SVN: r246938
Diffstat (limited to 'gcc/cp/decl.h')
-rw-r--r--gcc/cp/decl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/decl.h b/gcc/cp/decl.h
index 3e1d91f..d84d90c 100644
--- a/gcc/cp/decl.h
+++ b/gcc/cp/decl.h
@@ -35,6 +35,7 @@ enum decl_context
extern tree grokdeclarator (const cp_declarator *,
cp_decl_specifier_seq *,
enum decl_context, int, tree*);
+extern void name_unnamed_type (tree, tree);
/* States indicating how grokdeclarator() should handle declspecs marked
with __attribute__((deprecated)). An object declared as