public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/14980] New: complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE
@ 2004-04-16 18:51 danglin at gcc dot gnu dot org
  2004-04-16 19:25 ` [Bug optimization/14980] [unit-at-a-time] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: danglin at gcc dot gnu dot org @ 2004-04-16 18:51 UTC (permalink / raw)
  To: gcc-bugs

Sigh, another bootstrap problem on hppa64-hp-hpux11:

/xxx/gnu/gcc-3.3/objdir/gcc/xgcc -shared-libgcc -B/xxx/gnu/gcc-3.3/objdir/gcc/ -
nostdinc++ -L/xxx/gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src -L/xxx
/gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src/.libs -B/opt/gnu64/gcc/
gcc-3.5.0-gnu-ld/hppa64-hp-hpux11.11/bin/ -B/opt/gnu64/gcc/gcc-3.5.0-gnu-ld/hppa
64-hp-hpux11.11/lib/ -isystem /opt/gnu64/gcc/gcc-3.5.0-gnu-ld/hppa64-hp-hpux11.1
1/include -isystem /opt/gnu64/gcc/gcc-3.5.0-gnu-ld/hppa64-hp-hpux11.11/sys-inclu
de -I/xxx/gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/hppa64-hp-
hpux11.11 -I/xxx/gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include -I/
xxx/gnu/gcc-3.3/gcc/libstdc++-v3/libsupc++ -O2 -g -O2 -g -O2 -fno-implicit-templ
ates -Wall -W -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffun
ction-sections -fdata-sections -c ../../../../gcc/libstdc++-v3/src/complex_io.cc
  -fPIC -DPIC -o .libs/complex_io.o
../../../../gcc/libstdc++-v3/src/complex_io.cc:69: error: Inlined_to pointer is 
set but no predecesors found
std::allocator<_Alloc>::allocator(conststd::allocator<_Alloc>&) [with _Tp = char
]/530: (inline copy in std::basic_ostringstream<_CharT, _Traits, _Alloc>::basic_
ostringstream(std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_trait
s<char>, _Alloc = std::allocator<char>]/467) 24 insns (7 after inlining) needed 
inlinable
  called by: 
  calls: 
../../../../gcc/libstdc++-v3/src/complex_io.cc:69: internal compiler error: veri
fy_cgraph_node failed.

-- 
           Summary: complex_io.cc:69: error: Inlined_to pointer is set but
                    no predecesors found--causes ICE
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: hppa64-hp-hpux11.11
  GCC host triplet: hppa64-hp-hpux11.11
GCC target triplet: hppa64-hp-hpux11.11


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug optimization/14980] [unit-at-a-time] complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE
  2004-04-16 18:51 [Bug libstdc++/14980] New: complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE danglin at gcc dot gnu dot org
@ 2004-04-16 19:25 ` pinskia at gcc dot gnu dot org
  2004-04-16 19:59 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-16 19:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-16 19:10 -------
Jan this is definitely a cgraph failure, would you mind looking into it?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org
          Component|libstdc++                   |optimization
           Keywords|                            |build, ice-on-valid-code
            Summary|complex_io.cc:69: error:    |[unit-at-a-time]
                   |Inlined_to pointer is set   |complex_io.cc:69: error:
                   |but no predecesors found--  |Inlined_to pointer is set
                   |causes ICE                  |but no predecesors found--
                   |                            |causes ICE
   Target Milestone|---                         |3.5.0


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug optimization/14980] [unit-at-a-time] complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE
  2004-04-16 18:51 [Bug libstdc++/14980] New: complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE danglin at gcc dot gnu dot org
  2004-04-16 19:25 ` [Bug optimization/14980] [unit-at-a-time] " pinskia at gcc dot gnu dot org
@ 2004-04-16 19:59 ` dave at hiauly1 dot hia dot nrc dot ca
  2004-04-17 15:06 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-04-16 19:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-04-16 19:24 -------
Subject: Re:  [unit-at-a-time] complex_io.cc:69: error : Inlined_to pointer is set but no predecesors found--causes ICE

> Jan this is definitely a cgraph failure, would you mind looking into it?

I've attached two patches that are needed to correct previous bootstrap
problems.  The fix for PR 14671 was submitted to gcc-patches today for
review.  The fix for PR 14829 hasn't submitted yet but I did have a
successful build and check with it.  The cvs source for this build was
3/24/04 00:00:00 UTC.

Dave

------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-04-16 19:24 -------
Created an attachment (id=6098)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6098&action=view)

------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-04-16 19:24 -------
Created an attachment (id=6099)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6099&action=view)


-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug optimization/14980] [unit-at-a-time] complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE
  2004-04-16 18:51 [Bug libstdc++/14980] New: complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE danglin at gcc dot gnu dot org
  2004-04-16 19:25 ` [Bug optimization/14980] [unit-at-a-time] " pinskia at gcc dot gnu dot org
  2004-04-16 19:59 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2004-04-17 15:06 ` dave at hiauly1 dot hia dot nrc dot ca
  2004-04-17 15:14 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-04-17 15:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-04-17 14:46 -------
Subject: Re:  [unit-at-a-time] complex_io.cc:69: error

> ------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-16
> 19:10 -------
> Jan this is definitely a cgraph failure, would you mind looking into it?

FWIW, this patch was introduced by the following change:

2004-04-02  Jan Hubicka  <jh@suse.cz>

	* cgraph.c: Add overall comment.
	(cgraph_inline_hash): New global variable.
	...

Dave


-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug optimization/14980] [unit-at-a-time] complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE
  2004-04-16 18:51 [Bug libstdc++/14980] New: complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-04-17 15:06 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2004-04-17 15:14 ` pinskia at gcc dot gnu dot org
  2004-04-22  4:06 ` [Bug optimization/14980] [3.5 Regression] " danglin at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-17 15:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-17 15:06 -------
Jan, this is caused by your merge from the tree-ssa, could you please look into it?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-17 15:06:48
               date|                            |


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug optimization/14980] [3.5 Regression] [unit-at-a-time] complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE
  2004-04-16 18:51 [Bug libstdc++/14980] New: complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-04-17 15:14 ` pinskia at gcc dot gnu dot org
@ 2004-04-22  4:06 ` danglin at gcc dot gnu dot org
  2004-04-30  3:38 ` danglin at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: danglin at gcc dot gnu dot org @ 2004-04-22  4:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From danglin at gcc dot gnu dot org  2004-04-22 03:05 -------
Add hppa2.0w-hp-hpux11.11 to the list of affected targets:

/xxx/gnu/gcc-3.3/objdir/gcc/xgcc -shared-libgcc -B/xxx/gnu/gcc-3.3/objdir/gcc/ -
nostdinc++ -L/xxx/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src -L/x
xx/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src/.libs -B/opt/gnu/gc
c/gcc-3.5.0/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-3.5.0/hppa2.0w-hp-hpux
11.11/lib/ -isystem /opt/gnu/gcc/gcc-3.5.0/hppa2.0w-hp-hpux11.11/include -isyste
m /opt/gnu/gcc/gcc-3.5.0/hppa2.0w-hp-hpux11.11/sys-include -I/xxx/gnu/gcc-3.3/ob
jdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11 -I/xxx/gnu
/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include -I/xxx/gnu/gcc-3.3/gc
c/libstdc++-v3/libsupc++ -O2 -g -O2 -g -O2 -fno-implicit-templates -Wall -W -Wwr
ite-strings -Wcast-qual -fdiagnostics-show-location=once -c ../../../../gcc/libs
tdc++-v3/src/complex_io.cc  -fPIC -DPIC -o .libs/complex_io.o
../../../../gcc/libstdc++-v3/src/complex_io.cc:69: error: Inlined_to pointer is
set but no predecesors found
std::allocator<_Alloc>::allocator(conststd::allocator<_Alloc>&) [with _Tp = char
]/530: (inline copy in std::basic_ostringstream<_CharT, _Traits, _Alloc>::basic_
ostringstream(std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_trait
s<char>, _Alloc = std::allocator<char>]/467) 24 insns (7 after inlining) needed
inlinable
  called by:
  calls:
../../../../gcc/libstdc++-v3/src/complex_io.cc:69: internal compiler error: veri
fy_cgraph_node failed.


-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug optimization/14980] [3.5 Regression] [unit-at-a-time] complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE
  2004-04-16 18:51 [Bug libstdc++/14980] New: complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-04-22  4:06 ` [Bug optimization/14980] [3.5 Regression] " danglin at gcc dot gnu dot org
@ 2004-04-30  3:38 ` danglin at gcc dot gnu dot org
  2004-05-05 17:57 ` jbuck at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: danglin at gcc dot gnu dot org @ 2004-04-30  3:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From danglin at gcc dot gnu dot org  2004-04-30 02:13 -------
This definitely appears to be a cgraph problem.  The ICE occurs because
cgraph_remove_edge an edge in which e->callee has callers and inlined_to
set.

Here is the backtrace where this occurs:

(gdb) bt
#0  0x002db42c in cgraph_remove_edge (e=0x7a50d9c0)
    at ../../gcc/gcc/cgraph.c:293
#1  0x002db578 in cgraph_remove_node (node=0x7a52ae00)
    at ../../gcc/gcc/cgraph.c:332
#2  0x002df360 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:965
#3  0x000b82a8 in finish_file () at ../../gcc/gcc/cp/decl2.c:2854
#4  0x00176ddc in c_common_parse_file (set_yydebug=2052118976)
    at ../../gcc/gcc/c-opts.c:1239
#5  0x00297048 in toplev_main (argc=2130641538, argv=0x400104b0)
    at ../../gcc/gcc/toplev.c:1596
#6  0x0017b0cc in main (argc=2052118976, argv=0x64) at ../../gcc/gcc/main.c:35

(gdb) p *e->callee
$16 = {decl = 0x7aac1700, callees = 0x7a50da20, callers = 0x7a50d9c0,
  next = 0x7a5745b0, previous = 0x7a55bf50, origin = 0x0, nested = 0x0,
  next_nested = 0x0, next_needed = 0x0, next_clone = 0x0, aux = 0x0, local = {
    self_insns = 24, local = false, finalized = true, inlinable = true,
    disregard_inline_limits = false, redefined_extern_inline = false},
  global = {inlined_to = 0x7a676e70, insns = 7, inlined = true}, rtl = {
    const_function = false, pure_function = false,
    preferred_incoming_stack_boundary = 0}, uid = 530, needed = true,
  reachable = true, analyzed = true, output = false}

This is the code that zeros the callers field in e->callee:

  for (edge = &e->callee->callers; *edge && *edge != e;
       edge = &((*edge)->next_caller))
    continue;
  if (!*edge)
    abort ();
  *edge = (*edge)->next_caller;

So, where should the check be?  Jan would you please take a look?


-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug optimization/14980] [3.5 Regression] [unit-at-a-time] complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE
  2004-04-16 18:51 [Bug libstdc++/14980] New: complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE danglin at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-04-30  3:38 ` danglin at gcc dot gnu dot org
@ 2004-05-05 17:57 ` jbuck at gcc dot gnu dot org
  2004-05-05 18:27 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jbuck at gcc dot gnu dot org @ 2004-05-05 17:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jbuck at gcc dot gnu dot org  2004-05-05 17:57 -------
ping?

bootstrap on a primary platform has been broken for two weeks now.  Any progress
on a fix?



-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug optimization/14980] [3.5 Regression] [unit-at-a-time] complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE
  2004-04-16 18:51 [Bug libstdc++/14980] New: complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE danglin at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-05-05 17:57 ` jbuck at gcc dot gnu dot org
@ 2004-05-05 18:27 ` dave at hiauly1 dot hia dot nrc dot ca
  2004-05-05 20:54 ` hubicka at gcc dot gnu dot org
  2004-05-05 20:55 ` cvs-commit at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2004-05-05 18:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2004-05-05 18:27 -------
Subject: Re:  [3.5 Regression] [unit-at-a-time] comple

> ------- Additional Comments From jbuck at gcc dot gnu dot org  2004-05-05
> 17:57 -------
> ping?
> 
> bootstrap on a primary platform has been broken for two weeks now.  Any
> progress
> on a fix?

I was going to try looking at it a bit more today.  JH hasn't responded.

Dave


-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug optimization/14980] [3.5 Regression] [unit-at-a-time] complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE
  2004-04-16 18:51 [Bug libstdc++/14980] New: complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE danglin at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2004-05-05 18:27 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2004-05-05 20:54 ` hubicka at gcc dot gnu dot org
  2004-05-05 20:55 ` cvs-commit at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2004-05-05 20:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hubicka at gcc dot gnu dot org  2004-05-05 20:54 -------
Shall be fixed by my patch. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug optimization/14980] [3.5 Regression] [unit-at-a-time] complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE
  2004-04-16 18:51 [Bug libstdc++/14980] New: complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE danglin at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2004-05-05 20:54 ` hubicka at gcc dot gnu dot org
@ 2004-05-05 20:55 ` cvs-commit at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-05 20:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-05-05 20:55 -------
Subject: Bug 14980

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	hubicka@gcc.gnu.org	2004-05-05 20:55:04

Modified files:
	gcc            : ChangeLog cgraphunit.c 

Log message:
	PR opt/14980
	* cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with
	inline clones.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3581&r2=2.3582
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cgraphunit.c.diff?cvsroot=gcc&r1=1.58&r2=1.59



-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-05-05 20:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-16 18:51 [Bug libstdc++/14980] New: complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE danglin at gcc dot gnu dot org
2004-04-16 19:25 ` [Bug optimization/14980] [unit-at-a-time] " pinskia at gcc dot gnu dot org
2004-04-16 19:59 ` dave at hiauly1 dot hia dot nrc dot ca
2004-04-17 15:06 ` dave at hiauly1 dot hia dot nrc dot ca
2004-04-17 15:14 ` pinskia at gcc dot gnu dot org
2004-04-22  4:06 ` [Bug optimization/14980] [3.5 Regression] " danglin at gcc dot gnu dot org
2004-04-30  3:38 ` danglin at gcc dot gnu dot org
2004-05-05 17:57 ` jbuck at gcc dot gnu dot org
2004-05-05 18:27 ` dave at hiauly1 dot hia dot nrc dot ca
2004-05-05 20:54 ` hubicka at gcc dot gnu dot org
2004-05-05 20:55 ` cvs-commit 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).