From 511dcf67322ad87fb32f97d1cf7725c129e83898 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 5 Feb 2016 16:01:42 +0200 Subject: Initial work to make ODB compatible with GCC 6 --- odb/parser.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'odb/parser.cxx') diff --git a/odb/parser.cxx b/odb/parser.cxx index 275da33..842611f 100644 --- a/odb/parser.cxx +++ b/odb/parser.cxx @@ -1070,14 +1070,14 @@ emit_type_decl (tree decl) // says that in typedef struct {} S; S becomes struct's // name. // - if (ANON_AGGRNAME_P (decl_name)) + if (anon_aggrname_p (decl_name)) { tree d (TYPE_NAME (t)); if (d != NULL_TREE && !DECL_ARTIFICIAL (d) && DECL_NAME (d) != NULL_TREE && - !ANON_AGGRNAME_P (DECL_NAME (d))) + !anon_aggrname_p (DECL_NAME (d))) { decl = d; decl_name = DECL_NAME (decl); @@ -1694,7 +1694,7 @@ create_type (tree t, ts << "start anon/stub " << gcc_tree_code_name(tc) << " at " << file << ":" << line << endl; - if (d == NULL_TREE || ANON_AGGRNAME_P (DECL_NAME (d))) + if (d == NULL_TREE || anon_aggrname_p (DECL_NAME (d))) { if (tc == RECORD_TYPE) r = &emit_class (t, file, line, clmn); @@ -1791,7 +1791,7 @@ create_type (tree t, ts << "start anon/stub " << gcc_tree_code_name(tc) << " at " << file << ":" << line << endl; - if (d == NULL_TREE || ANON_AGGRNAME_P (DECL_NAME (d))) + if (d == NULL_TREE || anon_aggrname_p (DECL_NAME (d))) { r = &emit_enum (t, access, file, line, clmn); } -- cgit v1.1