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
This commit is contained in:
Richard Biener 2014-07-10 12:20:32 +00:00 committed by Richard Biener
parent f9abc06c5e
commit bed191cdd1
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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)