mirror of git://gcc.gnu.org/git/gcc.git
* 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>
|
2008-12-07 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
PR tree-optimization/38405
|
PR tree-optimization/38405
|
||||||
|
|
|
@ -3108,8 +3108,11 @@ recalculate_side_effects (tree t)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case tcc_constant:
|
||||||
|
/* No side-effects. */
|
||||||
|
return;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* Can never be used with non-expressions. */
|
|
||||||
gcc_unreachable ();
|
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>
|
2008-12-07 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR tree-optimization/38405
|
PR tree-optimization/38405
|
||||||
|
|
|
@ -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