| 1 |
/* { dg-lto-do link } */ |
| 2 |
/* { dg-lto-options {{-O2 -flto -flto-partition=none} {-O2 -flto -flto-partition=1to1} {-O3 -flto -flto-partition=none} {-O3 -flto -flto-partition=1to1}} } */ |
| 3 |
|
| 4 |
#include <stdio.h> |
| 5 |
|
| 6 |
typedef unsigned char uch; |
| 7 |
extern uch inbuf[]; |
| 8 |
unsigned insize; |
| 9 |
char *progname; |
| 10 |
extern void read_error (void); |
| 11 |
int fill_inbuf(int eof_ok) |
| 12 |
{ |
| 13 |
if (insize == 0) |
| 14 |
{ |
| 15 |
if (eof_ok) |
| 16 |
return -1; |
| 17 |
read_error(); |
| 18 |
} |
| 19 |
return inbuf[0]; |
| 20 |
} |
| 21 |
void read_error(void) |
| 22 |
{ |
| 23 |
fprintf(stderr, "\n%s: ", progname); |
| 24 |
} |
| 25 |
|