]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2017-08-03 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Aug 2017 14:08:56 +0000 (14:08 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Aug 2017 14:08:56 +0000 (14:08 +0000)
* lto-symtab.h (lto_symtab_prevail_decl): Do not use
DECL_ABSTRACT_ORIGIN as flag we can end up using that.  Instead
use DECL_LANG_FLAG_0.
(lto_symtab_prevail_decl): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250856 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/lto/ChangeLog
gcc/lto/lto-symtab.h

index cfe8178b8874e993b0dc4e2d7b18d500cd510cc3..9861e98d24f21b2870599233185211c803da8e29 100644 (file)
@@ -1,3 +1,10 @@
+2017-08-03  Richard Biener  <rguenther@suse.de>
+
+       * lto-symtab.h (lto_symtab_prevail_decl): Do not use
+       DECL_ABSTRACT_ORIGIN as flag we can end up using that.  Instead
+       use DECL_LANG_FLAG_0.
+       (lto_symtab_prevail_decl): Likewise.
+
 2017-07-07  Torsten Duwe  <duwe@suse.de>
 
        * lto-lang.c (lto_attribute_table): Add entry for
index c2876c1e02b622f2a72005eb0ca6b955b77e9268..89cd97b6dbda9641b310ff75bdd7ecc1cd963ddd 100644 (file)
@@ -23,7 +23,7 @@ extern tree lto_symtab_prevailing_decl (tree decl);
 extern tree lto_symtab_prevailing_virtual_decl (tree decl);
 
 /* Mark DECL to be previailed by PREVAILING.
-   Use DECL_ABSTRACT_ORIGIN and DECL_CHAIN as special markers; those do not
+   Use DECL_LANG_FLAG_0 and DECL_CHAIN as special markers; those do not
    disturb debug_tree and diagnostics.
    We are safe to modify them as we wish, because the declarations disappear
    from the IL after the merging.  */
@@ -31,10 +31,10 @@ extern tree lto_symtab_prevailing_virtual_decl (tree decl);
 inline void
 lto_symtab_prevail_decl (tree prevailing, tree decl)
 {
-  gcc_checking_assert (DECL_ABSTRACT_ORIGIN (decl) != error_mark_node);
+  gcc_checking_assert (! DECL_LANG_FLAG_0 (decl));
   gcc_assert (TREE_PUBLIC (decl) || DECL_EXTERNAL (decl));
   DECL_CHAIN (decl) = prevailing;
-  DECL_ABSTRACT_ORIGIN (decl) = error_mark_node;
+  DECL_LANG_FLAG_0 (decl) = 1;
 }
 
 /* Given the decl DECL, return the prevailing decl with the same name. */
@@ -42,7 +42,7 @@ lto_symtab_prevail_decl (tree prevailing, tree decl)
 inline tree
 lto_symtab_prevailing_decl (tree decl)
 {
-  if (DECL_ABSTRACT_ORIGIN (decl) == error_mark_node)
+  if (DECL_LANG_FLAG_0 (decl))
     return DECL_CHAIN (decl);
   else
     {