public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/41734] New: ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr
@ 2009-10-16 22:01 rguenth at gcc dot gnu dot org
2009-10-16 22:04 ` [Bug middle-end/41734] " rguenth at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-16 22:01 UTC (permalink / raw)
To: gcc-bugs
This is number #1 ICE when building SPEC with -fwhopr. I'll attach a sample
testcase once I reduced it.
--
Summary: ICE in cgraph_mark_functions_to_output, at
cgraphunit.c:1137 with -fwhopr
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: lto
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41734
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr
2009-10-16 22:01 [Bug middle-end/41734] New: ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr rguenth at gcc dot gnu dot org
@ 2009-10-16 22:04 ` rguenth at gcc dot gnu dot org
2009-10-16 23:02 ` rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-16 22:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-10-16 22:04 -------
I'm reducing it from 164.gzip with -O3 -ffast-math -fwhopr -fwhole-program.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41734
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr
2009-10-16 22:01 [Bug middle-end/41734] New: ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr rguenth at gcc dot gnu dot org
2009-10-16 22:04 ` [Bug middle-end/41734] " rguenth at gcc dot gnu dot org
@ 2009-10-16 23:02 ` rguenth at gcc dot gnu dot org
2009-10-17 18:02 ` rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-16 23:02 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr
2009-10-16 22:01 [Bug middle-end/41734] New: ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr rguenth at gcc dot gnu dot org
2009-10-16 22:04 ` [Bug middle-end/41734] " rguenth at gcc dot gnu dot org
2009-10-16 23:02 ` rguenth at gcc dot gnu dot org
@ 2009-10-17 18:02 ` rguenth at gcc dot gnu dot org
2009-10-19 16:03 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-17 18:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2009-10-17 18:02 -------
So, why do we complain here:
gcc_assert (node->global.inlined_to
|| !gimple_has_body_p (decl)
|| DECL_EXTERNAL (decl));
for
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:
a clone which is not available (but needed and externally_visible?!).
Full cgraph at this point:
__builtin_fprintf/6(-1) @0xb7d34300 availability:not_available needed
externally_visible
called by: read_error/4 (0.00 per call)
calls:
read_error/5(-1) @0xb7d34200 (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:
read_error/4(-1) @0xb7d34100 (inline copy in get_method/1) availability:local
15 time, 10 benefit 6 size, 1 benefit body local finalized inlinable
called by: fill_inbuf/3 (0.00 per call) (inlined)
calls: __builtin_fprintf/6 (0.00 per call)
fill_inbuf/3(-1) @0xb7d34000 (inline copy in get_method/1) (clone of
fill_inbuf/2) availability:local 4 time, 12 benefit 7 size, 3 benefit (12 after
inlining) body local finalized inlinable
called by: get_method/1 (0.22 per call) (inlined)
calls: read_error/4 (inlined) (0.00 per call)
fill_inbuf/2(-1) @0xb7c98d00 (inline copy in get_method/1) availability:local 4
time, 12 benefit 7 size, 3 benefit body local finalized inlinable
called by: get_method/1 (0.07 per call) (inlined)
calls: read_error/5 (0.00 per call)
get_method/1(-1) @0xb7c98f00 availability:available 14 time, 12 benefit (13
after inlining) 26 size, 3 benefit (39 after inlining) needed reachable body
externally_visible finalized inlinable
called by:
calls: fill_inbuf/3 (inlined) (0.22 per call) fill_inbuf/2 (inlined) (0.07
per call)
main/0(-1) @0xb7c98e00 availability:available needed reachable body
externally_visible finalized inlinable
called by:
calls:
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41734
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr
2009-10-16 22:01 [Bug middle-end/41734] New: ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr rguenth at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-10-17 18:02 ` rguenth at gcc dot gnu dot org
@ 2009-10-19 16:03 ` rguenth at gcc dot gnu dot org
2009-12-13 17:52 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-19 16:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2009-10-19 16:03 -------
Papering over this bug gets us as far as reaching
void
cgraph_mark_needed_node (struct cgraph_node *node)
{
node->needed = 1;
gcc_assert (!node->global.inlined_to);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41734
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr
2009-10-16 22:01 [Bug middle-end/41734] New: ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr rguenth at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-10-19 16:03 ` rguenth at gcc dot gnu dot org
@ 2009-12-13 17:52 ` rguenth at gcc dot gnu dot org
2010-04-23 15:32 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-13 17:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2009-12-13 17:52 -------
Re-confirmed with todays trunk.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2009-10-16 23:02:04 |2009-12-13 17:52:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41734
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr
2009-10-16 22:01 [Bug middle-end/41734] New: ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr rguenth at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-12-13 17:52 ` rguenth at gcc dot gnu dot org
@ 2010-04-23 15:32 ` rguenth at gcc dot gnu dot org
2010-04-23 15:33 ` rguenth at gcc dot gnu dot org
2010-05-16 10:55 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-23 15:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2010-04-23 15:32 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to fail| |4.5.0
Resolution| |FIXED
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41734
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr
2009-10-16 22:01 [Bug middle-end/41734] New: ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr rguenth at gcc dot gnu dot org
` (5 preceding siblings ...)
2010-04-23 15:32 ` rguenth at gcc dot gnu dot org
@ 2010-04-23 15:33 ` rguenth at gcc dot gnu dot org
2010-05-16 10:55 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-23 15:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2010-04-23 15:32 -------
Subject: Bug 41734
Author: rguenth
Date: Fri Apr 23 15:32:22 2010
New Revision: 158670
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158670
Log:
2010-04-23 Richard Guenther <rguenther@suse.de>
PR lto/41734
* gcc.dg/lto/20100423-2_0.c: New testcase.
* gcc.dg/lto/20100423-2_0.c: Likewise.
Added:
trunk/gcc/testsuite/gcc.dg/lto/20100423-2_0.c
trunk/gcc/testsuite/gcc.dg/lto/20100423-2_1.c
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41734
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr
2009-10-16 22:01 [Bug middle-end/41734] New: ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr rguenth at gcc dot gnu dot org
` (6 preceding siblings ...)
2010-04-23 15:33 ` rguenth at gcc dot gnu dot org
@ 2010-05-16 10:55 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-16 10:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rguenth at gcc dot gnu dot org 2010-05-16 10:54 -------
*** Bug 44153 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pluto at agmk dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41734
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-05-16 10:55 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-16 22:01 [Bug middle-end/41734] New: ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr rguenth at gcc dot gnu dot org
2009-10-16 22:04 ` [Bug middle-end/41734] " rguenth at gcc dot gnu dot org
2009-10-16 23:02 ` rguenth at gcc dot gnu dot org
2009-10-17 18:02 ` rguenth at gcc dot gnu dot org
2009-10-19 16:03 ` rguenth at gcc dot gnu dot org
2009-12-13 17:52 ` rguenth at gcc dot gnu dot org
2010-04-23 15:32 ` rguenth at gcc dot gnu dot org
2010-04-23 15:33 ` rguenth at gcc dot gnu dot org
2010-05-16 10:55 ` rguenth at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).