mirror of git://gcc.gnu.org/git/gcc.git
re PR rtl-optimization/78232 (FAIL: gcc.dg/torture/pr48124-4.c)
PR rtl-optimization/78232 PR rtl-optimization/78248 * gcc.dg/ubsan/pr78248.c: New test. From-SVN: r242362
This commit is contained in:
parent
476053121b
commit
a4ba1151df
|
|
@ -1,3 +1,9 @@
|
||||||
|
2016-11-13 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
|
PR rtl-optimization/78232
|
||||||
|
PR rtl-optimization/78248
|
||||||
|
* gcc.dg/ubsan/pr78248.c: New test.
|
||||||
|
|
||||||
2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
|
2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
* gnat.dg/address_conv.adb: New test.
|
* gnat.dg/address_conv.adb: New test.
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
/* PR rtl-optimization/78232 */
|
||||||
|
/* PR rtl-optimization/78248 */
|
||||||
|
/* { dg-do run } */
|
||||||
|
/* { dg-options "-fsanitize=undefined" } */
|
||||||
|
|
||||||
|
static struct S
|
||||||
|
{
|
||||||
|
int f0:15;
|
||||||
|
} a;
|
||||||
|
|
||||||
|
int b[1], c = 2, d, e, f, g;
|
||||||
|
|
||||||
|
int main ()
|
||||||
|
{
|
||||||
|
struct S h = { -2 };
|
||||||
|
for (; e < 640; e++)
|
||||||
|
for (; f < 1; f++)
|
||||||
|
{
|
||||||
|
if (c < 2)
|
||||||
|
{
|
||||||
|
d = b[e];
|
||||||
|
h = a;
|
||||||
|
}
|
||||||
|
g = c;
|
||||||
|
c = 1;
|
||||||
|
if (!h.f0)
|
||||||
|
break;
|
||||||
|
c = g;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue