OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* gcc.dg/lto/ipacp_0.c: New test.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
lto
/
20100423-2_0.c
1
/* { dg-lto-do link } */
2
/* { dg-lto-options {{-O2 -flto} {-O2 -fwhopr} {-O3 -flto} {-O3 -fwhopr}} } */
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