| 1 |
/* { dg-additional-options "-fcompare-debug" } */ |
| 2 |
/* PR tree-optimization/116156 */ |
| 3 |
|
| 4 |
/* Forwprop used to delete an unused statement |
| 5 |
but only with debug statements around. */ |
| 6 |
|
| 7 |
struct jpeg_compress_struct { |
| 8 |
int X_density; |
| 9 |
}; |
| 10 |
void gg(); |
| 11 |
int h(const char*,const char*) __attribute((pure)); |
| 12 |
int h1(const char*) __attribute((pure)); |
| 13 |
int f1() __attribute__((returns_twice)); |
| 14 |
void real_save_jpeg(char **keys, char *values) { |
| 15 |
struct jpeg_compress_struct cinfo; |
| 16 |
int x_density = 0; |
| 17 |
while (*keys) |
| 18 |
{ |
| 19 |
if (h1(*keys) == 0) |
| 20 |
gg(); |
| 21 |
if (h1(*keys) == 0) { |
| 22 |
if (!*values) |
| 23 |
x_density = -1; |
| 24 |
if (x_density <= 0) |
| 25 |
gg(); |
| 26 |
} |
| 27 |
} |
| 28 |
if (f1()) |
| 29 |
cinfo.X_density = x_density; |
| 30 |
} |