Re: [C++ PATCH] Move mangling alias out of ::
authorNathan Sidwell <nathan@acm.org>
Thu, 5 Oct 2017 10:16:38 +0000 (10:16 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 5 Oct 2017 10:16:38 +0000 (10:16 +0000)
https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00230.html
* decl2.c (record_mangling): Fix spello and formatting from
previous patch.

From-SVN: r253440

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 277b6469e02ce65dcbdba7e80dacd438bcbe7a37..fcef8efe2abdb7ac945a67fb3bf4672eb02415b2 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-05  Nathan Sidwell  <nathan@acm.org>
+
+       * decl2.c (record_mangling): Fix spello and formatting from
+       previous patch.
+
 2017-10-04  Nathan Sidwell  <nathan@acm.org>
 
        Give builtin types the correct name.
index 354d503da6d5dc1b14beab0aab04b7381bc5ff60..3aa2db5bc541d3c52dab92f371980cf399914460 100644 (file)
@@ -4377,10 +4377,8 @@ record_mangling (tree decl, bool need_warning)
   tree *slot = &mangled_decls->get_or_insert (id, &existed);
 
   /* If this is already an alias, remove the alias, because the real
-     decl takes presidence.  */
-  if (!existed)
-    ;
-  else if (DECL_ARTIFICIAL (*slot) && DECL_IGNORED_P (*slot))
+     decl takes precedence.  */
+  if (existed && DECL_ARTIFICIAL (*slot) && DECL_IGNORED_P (*slot))
     if (symtab_node *n = symtab_node::get (*slot))
       if (n->cpp_implicit_alias)
        {