]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/52430 (firefox miscompilation)
authorMartin Jambor <mjambor@suse.cz>
Mon, 5 Mar 2012 12:50:29 +0000 (13:50 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 5 Mar 2012 12:50:29 +0000 (13:50 +0100)
2012-03-05  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/52430
* ipa-cp.c (ipcp_initialize_node_lattices): Also consider
node->local.externally_visible as needed.

From-SVN: r184928

gcc/ChangeLog
gcc/ipa-cp.c

index 8714596fb323a350c3190d5fa085cd7615dd8262..4d98742c1ac3f65c70b68d8f8d2ecfcc060b01bb 100644 (file)
@@ -1,3 +1,9 @@
+2012-03-05  Martin Jambor  <mjambor@suse.cz>
+
+       PR tree-optimization/52430
+       * ipa-cp.c (ipcp_initialize_node_lattices): Also consider
+       node->local.externally_visible as needed.
+
 2012-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        Backport from mainline
index cf678f221d29b420e48e4e211a5431858ff7c77a..c38e4efda72b43cee00d2fd344f873782c7023f2 100644 (file)
@@ -508,7 +508,7 @@ ipcp_initialize_node_lattices (struct cgraph_node *node)
 
   if (ipa_is_called_with_var_arguments (info))
     type = IPA_BOTTOM;
-  else if (!node->needed)
+  else if (!node->needed && !node->local.externally_visible)
     type = IPA_TOP;
   /* When cloning is allowed, we can assume that externally visible functions
      are not called.  We will compensate this by cloning later.  */