http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53359



Alexandre Oliva <aoliva at gcc dot gnu.org> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

             Status|NEW                         |ASSIGNED

         AssignedTo|unassigned at gcc dot       |aoliva at gcc dot gnu.org

                   |gnu.org                     |



--- Comment #8 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2012-12-15 
19:04:00 UTC ---

Jan, does a change like this seem reasonable?



--- a/gcc/tree-mudflap.c

+++ b/gcc/tree-mudflap.c

@@ -1335,6 +1335,10 @@ mudflap_finish_file (void)

           if (! TREE_PUBLIC (obj) && ! TREE_ADDRESSABLE (obj))

             continue;



+      /* If we're not emitting the symbol, don't register it.  */

+      if (!symtab_get_node (obj))

+        continue;

+

           if (! COMPLETE_TYPE_P (TREE_TYPE (obj)))

             {

               warning (OPT_Wmudflap,

Reply via email to