re PR tree-optimization/59413 (wrong code at -Os on x86_64-linux-gnu in both 32-bit and 64-bit modes)

PR tree-optimization/59413
	* gcc.c-torture/execute/pr59413.c: New test.

From-SVN: r206147
This commit is contained in:
Jakub Jelinek 2013-12-20 14:07:10 +01:00 committed by Jakub Jelinek
parent 5502f40be2
commit fc4f394b22
2 changed files with 24 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2013-12-20 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/59413
* gcc.c-torture/execute/pr59413.c: New test.
* c-c++-common/ubsan/load-bool-enum.c: New test.
2013-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>

View File

@ -0,0 +1,21 @@
/* PR tree-optimization/59413 */
typedef unsigned int uint32_t;
uint32_t a;
int b;
int
main ()
{
uint32_t c;
for (a = 7; a <= 1; a++)
{
char d = a;
c = d;
b = a == c;
}
if (a != 7)
__builtin_abort ();
return 0;
}