* gimple.c (recalculate_side_effects) <tcc_constant>: New case.
From-SVN: r142541
This commit is contained in:
parent
e61451e843
commit
13f95bdb92
@ -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
|
||||
|
@ -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 ();
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
10
gcc/testsuite/gnat.dg/string_comparison.adb
Normal file
10
gcc/testsuite/gnat.dg/string_comparison.adb
Normal 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;
|
Loading…
Reference in New Issue
Block a user