ipa-reference.c (scan_for_static_refs): Also scan tcc_comparison class trees.
authorRichard Guenther <rguenther@suse.de>
Wed, 13 Dec 2006 09:56:24 +0000 (09:56 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 13 Dec 2006 09:56:24 +0000 (09:56 +0000)
2006-12-13  Richard Guenther  <rguenther@suse.de>

* ipa-reference.c (scan_for_static_refs): Also scan
tcc_comparison class trees.

From-SVN: r119821

gcc/ChangeLog
gcc/ipa-reference.c

index 2db866ce8389d49e56247cafff463b3bd453b9c5..6dc18a3bcb5115db1d3292837ff80e6654a48de8 100644 (file)
@@ -1,3 +1,8 @@
+2006-12-13  Richard Guenther  <rguenther@suse.de>
+
+       * ipa-reference.c (scan_for_static_refs): Also scan
+       tcc_comparison class trees.
+
 2006-12-12 David Daney  <ddaney@avtrex.com>
 
        * config/mips/mips.h (ASM_OUTPUT_EXTERNAL): Undefine it before
index 9427fd5db8c6a3ea65e5119531e66151120cf453..521c84c6424ba00affd264d8307e5b63dc968cd9 100644 (file)
@@ -507,6 +507,7 @@ scan_for_static_refs (tree *tp,
        switch (TREE_CODE_CLASS (TREE_CODE (rhs))) 
          {
          case tcc_binary:          
+         case tcc_comparison:      
            {
              tree op0 = TREE_OPERAND (rhs, 0);
              tree op1 = TREE_OPERAND (rhs, 1);