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:
parent
5502f40be2
commit
fc4f394b22
@ -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>
|
||||
|
21
gcc/testsuite/gcc.c-torture/execute/pr59413.c
Normal file
21
gcc/testsuite/gcc.c-torture/execute/pr59413.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user