PR tree-optimization/78482
* gcc.dg/torture/pr78482.c (c, d): Use signed char instead of char.
(bar): New function.
(main): Call bar instead of printf.
From-SVN: r242794
2016-11-23 Jakub Jelinek <jakub@redhat.com>
+ PR tree-optimization/78482
+ * gcc.dg/torture/pr78482.c (c, d): Use signed char instead of char.
+ (bar): New function.
+ (main): Call bar instead of printf.
+
PR middle-end/69183
* gfortran.dg/gomp/pr69183.f90: New test.
+/* PR tree-optimization/78482 */
/* { dg-do run } */
-int printf(const char*, ...);
short a = 65531;
int b = 3, f;
-char c, d;
+signed char c, d;
static void fn1(int p1)
{
short e;
}
}
+__attribute__((noinline, noclone))
+int bar (const char *x, int y)
+{
+ asm volatile ("" : "+g" (x), "+g" (y) : : "memory");
+ if (y == 2)
+ __builtin_abort ();
+ return 0;
+}
+
int main()
{
for (; c >= 0; c--)
{
if (!b)
{
- printf("%d\n", 2);
+ bar("%d\n", 2);
continue;
}
fn1(a);