[Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr

2010-05-16 Thread rguenth at gcc dot gnu dot org


--- 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



[Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr

2010-04-23 Thread rguenth at gcc dot gnu dot org


--- 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



[Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr

2010-04-23 Thread rguenth at gcc dot gnu dot org


--- 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=gccview=revrev=158670
Log:
2010-04-23  Richard Guenther  rguent...@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



[Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr

2009-12-13 Thread rguenth at gcc dot gnu dot org


--- 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



[Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr

2009-10-19 Thread rguenth at gcc dot gnu dot org


--- 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



[Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr

2009-10-17 Thread rguenth at gcc dot gnu dot org


--- 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



[Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr

2009-10-16 Thread rguenth at gcc dot gnu dot org


--- 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



[Bug middle-end/41734] ICE in cgraph_mark_functions_to_output, at cgraphunit.c:1137 with -fwhopr

2009-10-16 Thread rguenth at gcc dot gnu dot org


--- 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|-00-00 00:00:00 |2009-10-16 23:02:04
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41734