Commit bed191cd by Richard Biener Committed by Richard Biener

re PR c/61741 (wrong code with -fno-strict-overflow)

2014-07-10  Richard Biener  <rguenther@suse.de>

	PR c-family/61741
	* c-c++-common/torture/pr61741.c: Use signed char.

From-SVN: r212430
parent f9abc06c
2014-07-10 Richard Biener <rguenther@suse.de>
PR c-family/61741
* c-c++-common/torture/pr61741.c: Use signed char.
2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/opt39.adb: New test.
......
......@@ -5,7 +5,7 @@ int a = 1, b;
void
foo (void)
{
char c = 0;
signed char c = 0;
for (; a; a--)
for (; c >= 0; c++);
if (!c)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment