------- Comment #2 from rguenth at gcc dot gnu dot org 2009-10-16 23:02 ------- util.3.i -------- typedef unsigned int size_t; extern struct _IO_FILE *stderr; typedef unsigned char uch; extern uch inbuf[]; unsigned insize; char *progname; extern void read_error (void); int fill_inbuf(int eof_ok) { if (insize == 0) { if (eof_ok) return -1; read_error(); } return inbuf[0]; } void read_error(void) { __builtin_fprintf(stderr, "\n%s: ", progname); }
gzip.3.i -------- typedef unsigned char uch; uch inbuf[8]; extern unsigned insize; unsigned inptr; int to_stdout = 0; int force = 0; extern int fill_inbuf (int); int get_method(int in) { char magic[2]; if (force && to_stdout) magic[0] = (char)(inptr < insize ? inbuf[inptr++] : fill_inbuf(1)); else magic[1] = (char)(inptr < insize ? inbuf[inptr++] : fill_inbuf(0)); } int main() { return 0; } $ ./xgcc -B. util.3.i gzip.3.i -O3 -fwhopr read_error/5(-1) @0xb7d33200 (clone of read_error/4) availability:not_available (15 after inlining) (6 after inlining) needed reachable body externally_visible finalized called by: fill_inbuf/2 (0.00 per call) calls: lto1: internal compiler error: failed to reclaim unneeded function Please submit a full bug report, with preprocessed source if appropriate. or w/o checking > /space/rguenther/install/lto/bin/gcc -o gzip ~/util.3.i ~/gzip.3.i -O3 > -fwhopr lto1: internal compiler error: in cgraph_mark_functions_to_output, at cgraphunit.c:1137 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-10-16 23:02:04 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41734