* gimple.c (recalculate_side_effects) <tcc_constant>: New case.

From-SVN: r142541
This commit is contained in:
Eric Botcazou 2008-12-07 23:27:14 +00:00 committed by Eric Botcazou
parent e61451e843
commit 13f95bdb92
4 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-12-07 Eric Botcazou <ebotcazou@adacore.com>
* gimple.c (recalculate_side_effects) <tcc_constant>: New case.
2008-12-07 Richard Guenther <rguenther@suse.de>
PR tree-optimization/38405

View File

@ -3108,8 +3108,11 @@ recalculate_side_effects (tree t)
}
break;
case tcc_constant:
/* No side-effects. */
return;
default:
/* Can never be used with non-expressions. */
gcc_unreachable ();
}
}

View File

@ -1,3 +1,7 @@
2008-12-07 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/string_comparison.adb: New test.
2008-12-07 H.J. Lu <hongjiu.lu@intel.com>
PR tree-optimization/38405

View File

@ -0,0 +1,10 @@
-- { dg-do compile }
with Ada.Text_IO; use Ada.Text_IO;
procedure String_Comparison is
package Bool_IO is new Enumeration_IO (Boolean);
use Bool_IO;
begin
Put (Boolean'Image (True) = "True");
end;