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

2006-12-13  Richard Guenther  <rguenther@suse.de>

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

From-SVN: r119821
This commit is contained in:
Richard Guenther 2006-12-13 09:56:24 +00:00 committed by Richard Biener
parent 2989d30c12
commit 691eb42f29
2 changed files with 6 additions and 0 deletions

View 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

View 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);