]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cgraphunit.c
re PR c++/41090 (Using static label reference in c++ class constructor produces wrong...
[thirdparty/gcc.git] / gcc / cgraphunit.c
index 28f51162bba98f9b9862e8a55050b43160806304..679c9eca8184878238cb17d97e09e9c556a61573 100644 (file)
@@ -1244,7 +1244,8 @@ mark_functions_to_output (void)
              for (next = cgraph (node->same_comdat_group);
                   next != node;
                   next = cgraph (next->same_comdat_group))
-               if (!next->thunk.thunk_p && !next->alias)
+               if (!next->thunk.thunk_p && !next->alias
+                   && !symtab_comdat_local_p (next))
                  next->process = 1;
            }
        }