aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-reference.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2db866c..6dc18a3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c
index 9427fd5d..521c84c 100644
--- a/gcc/ipa-reference.c
+++ b/gcc/ipa-reference.c
@@ -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);