public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/12273] New: libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680
@ 2003-09-14 14:58 olh at suse dot de
  2003-09-14 14:59 ` [Bug bootstrap/12273] " olh at suse dot de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: olh at suse dot de @ 2003-09-14 14:58 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: libstdc++-v3/include/bits/demangle.h:217: internal
                    compiler error: virtual array [0]: element 0 out of
                    bounds in initialize_inlined_parameters, at tree-
                    inline.c:680
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: olh at suse dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc64-linux
  GCC host triplet: powerpc64-linux
GCC target triplet: powerpc64-linux

last successful build for native powerpc64-linux:
Mon Sep  8 14:16:03 UTC 2003

olh@mandarine:~/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/src> /home/olh/obj-gcc/gcc/xgcc -shared-libgcc -B/home/olh/obj-gcc/gcc/ -nostdinc++ -L/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/src -L/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/src/.libs -B/home/olh/install-gcc-head/powerpc64-unknown-linux-gnu/bin/ -B/home/olh/install-gcc-head/powerpc64-unknown-linux-gnu/lib/ -isystem /home/olh/install-gcc-head/powerpc64-unknown-linux-gnu/include -isystem /home/olh/install-gcc-head/powerpc64-unknown-linux-gnu/sys-include -m32 -fPIC -mstrict-align -I/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include -I/home/olh/gcc-head/libstdc++-v3/libsupc++ -O2 -O1 -Wall -fsigned-char -O1 -Wall -fsigned-char -D_GNU_SOURCE -m32 -fPIC -mstrict-align -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -fdiagnostics-show-location=once -fimplicit-templates -c /home/olh/gcc-head/libstdc++-v3/src/demangle.cc  -fPIC -DPIC -o .libs/demangle.o --save-temps
In file included from /home/olh/gcc-head/libstdc++-v3/src/demangle.cc:1468:
/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/bits/demangle.h: In member function `bool __gnu_cxx::demangler::session<Allocator>::decode_type_with_postfix(std::basic_string<char, std::char_traits<char>, Allocator>&, std::basic_string<char, std::char_traits<char>, Allocator>&, __gnu_cxx::demangler::qualifier_list<Allocator>*) [with Allocator = std::allocator<char>]':
/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/bits/demangle.h:217:   instantiated from `void __gnu_cxx::demangler::qualifier_list<Allocator>::add_qualifier_start(__gnu_cxx::demangler::simple_qualifier_nt, int, int) [with Allocator = std::allocator<char>]'
/home/olh/gcc-head/libstdc++-v3/src/demangle.cc:1468:   instantiated from here
/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

olh@mandarine:~/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/src> /home/olh/obj-gcc/gcc/cc1plus -fpreprocessed demangle.ii -quiet -dumpbase demangle.cc -m32 -mstrict-align -m32 -mstrict-align -auxbase-strip .libs/demangle.o -O2 -O1 -O1 -Wall -Wall -Wall -Wno-format -W -Wwrite-strings -version -fPIC -fsigned-char -fsigned-char -fPIC -fno-implicit-templates -fdiagnostics-show-location=once -fimplicit-templates -fPIC -o demangle.s -v -v
ignoring nonexistent directory "/home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/../../../../powerpc64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/../../../../include/c++/3.4
 /home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/../../../../include/c++/3.4/powerpc64-unknown-linux-gnu
 /home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/../../../../include/c++/3.4/backward
 /usr/local/include
 /home/olh/install-gcc-head/include
 /home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/include
 /usr/include
End of search list.
GNU C++ version 3.4 20030914 (experimental) (powerpc64-unknown-linux-gnu)
        compiled by GNU C version 3.4 20030914 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
In file included from /home/olh/gcc-head/libstdc++-v3/src/demangle.cc:1468:
/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/bits/demangle.h: In member function `bool __gnu_cxx::demangler::session<Allocator>::decode_type_with_postfix(std::basic_string<char, std::char_traits<char>, Allocator>&, std::basic_string<char, std::char_traits<char>, Allocator>&, __gnu_cxx::demangler::qualifier_list<Allocator>*) [with Allocator = std::allocator<char>]':
/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/bits/demangle.h:217:   instantiated from `void __gnu_cxx::demangler::qualifier_list<Allocator>::add_qualifier_start(__gnu_cxx::demangler::simple_qualifier_nt, int, int) [with Allocator = std::allocator<char>]'
/home/olh/gcc-head/libstdc++-v3/src/demangle.cc:1468:   instantiated from here
/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

olh@mandarine:~/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/src> cat ~/gcc-head/LAST_UPDATED 
Sun Sep 14 07:13:45 UTC 2003

I used this patch (for PR11640) while getting the above, I will try without it:

Index: gcc/cfgrtl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cfgrtl.c,v
retrieving revision 1.97
diff -u -p -p -u -r1.97 cfgrtl.c
--- gcc/cfgrtl.c        22 Aug 2003 06:45:12 -0000      1.97
+++ gcc/cfgrtl.c        14 Sep 2003 11:05:47 -0000
@@ -790,7 +790,7 @@ try_redirect_by_replacing_jump (edge e, 
       if (tablejump_p (insn, &label, &table))
        delete_insn_chain (label, table);
 
-      barrier = next_nonnote_insn (src->end);
+      barrier = next_insn (src->end);
       if (!barrier || GET_CODE (barrier) != BARRIER)
        emit_barrier_after (src->end);
     }


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

* [Bug bootstrap/12273] libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680
  2003-09-14 14:58 [Bug bootstrap/12273] New: libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680 olh at suse dot de
@ 2003-09-14 14:59 ` olh at suse dot de
  2003-09-14 16:38 ` olh at suse dot de
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: olh at suse dot de @ 2003-09-14 14:59 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From olh at suse dot de  2003-09-14 11:13 -------
Created an attachment (id=4755)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4755&action=view)
PR12273.tar.bz2

preprocessed source


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

* [Bug bootstrap/12273] libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680
  2003-09-14 14:58 [Bug bootstrap/12273] New: libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680 olh at suse dot de
  2003-09-14 14:59 ` [Bug bootstrap/12273] " olh at suse dot de
@ 2003-09-14 16:38 ` olh at suse dot de
  2003-09-14 21:16 ` dannysmith at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: olh at suse dot de @ 2003-09-14 16:38 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From olh at suse dot de  2003-09-14 14:59 -------
removing the patch above doesnt fix it.


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

* [Bug bootstrap/12273] libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680
  2003-09-14 14:58 [Bug bootstrap/12273] New: libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680 olh at suse dot de
  2003-09-14 14:59 ` [Bug bootstrap/12273] " olh at suse dot de
  2003-09-14 16:38 ` olh at suse dot de
@ 2003-09-14 21:16 ` dannysmith at gcc dot gnu dot org
  2003-09-14 22:22 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dannysmith at gcc dot gnu dot org @ 2003-09-14 21:16 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dannysmith at gcc dot gnu dot org  2003-09-14 21:07 -------
Same error occurs with i686-pc-mingw32 on 20030913, configured with:
--with-gcc --with-gnu-ld --with-gnu-as --host=i686-pc-mingw32 --build=i686-pc-
mingw32 --target=i686-pc-mingw32 --prefix=/mingw  --enable-threads --disable-
nls --enable-languages=c,c++,ada,f77,objc --disable-win32-registry --disable-
shared --enable-sjlj-exceptions --disable-libstdcxx-pch.

src/demangle.cc does compile without error if I change CFLAGS to -O0.  -O1 and -
Os fail.

Danny


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

* [Bug bootstrap/12273] libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680
  2003-09-14 14:58 [Bug bootstrap/12273] New: libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680 olh at suse dot de
                   ` (2 preceding siblings ...)
  2003-09-14 21:16 ` dannysmith at gcc dot gnu dot org
@ 2003-09-14 22:22 ` pinskia at gcc dot gnu dot org
  2003-09-15  0:31 ` dannysmith at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-14 22:22 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-14 21:11 -------
I want to say this is another GC problem but I do not know.


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

* [Bug bootstrap/12273] libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680
  2003-09-14 14:58 [Bug bootstrap/12273] New: libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680 olh at suse dot de
                   ` (3 preceding siblings ...)
  2003-09-14 22:22 ` pinskia at gcc dot gnu dot org
@ 2003-09-15  0:31 ` dannysmith at gcc dot gnu dot org
  2003-09-21 11:06 ` olh at suse dot de
  2003-12-09 18:25 ` dhazeghi at yahoo dot com
  6 siblings, 0 replies; 8+ messages in thread
From: dannysmith at gcc dot gnu dot org @ 2003-09-15  0:31 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dannysmith at gcc dot gnu dot org  2003-09-15 00:13 -------
Another data point for i696-pc-mingw32 (20030913)

The error at -O2 only occurs with -fno-unit-at-a-time.  (I had set this in 
CFLAGS because I am building on a low-memory machine (physmem = 64mb, --param 
ggc-min-expand=34 --param ggc-min-heapsize=8118) and bootstrap was taking ages)

Compiling demangle.cc with -O2 -funit-at-a-time succeeds without error.

Danny


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

* [Bug bootstrap/12273] libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680
  2003-09-14 14:58 [Bug bootstrap/12273] New: libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680 olh at suse dot de
                   ` (4 preceding siblings ...)
  2003-09-15  0:31 ` dannysmith at gcc dot gnu dot org
@ 2003-09-21 11:06 ` olh at suse dot de
  2003-12-09 18:25 ` dhazeghi at yahoo dot com
  6 siblings, 0 replies; 8+ messages in thread
From: olh at suse dot de @ 2003-09-21 11:06 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


olh at suse dot de changed:

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


------- Additional Comments From olh at suse dot de  2003-09-21 10:11 -------
fixed in current cvs.  olh@mandarine:/tmp/PR12273> /home/olh/install-gcc-head/libexec/gcc/powerpc64-unknown-linux-gnu/3.4/cc1plus -fpreprocessed demangle.ii -quiet -dumpbase demangle.cc -m32 -mstrict-align -m32 -mstrict-align -auxbase-strip .libs/demangle.o -O2 -O1 -O1 -Wall -Wall -Wall -Wno-format -W -Wwrite-strings -version -fPIC -fsigned-char -fsigned-char -fPIC -fno-implicit-templates -fdiagnostics-show-location=once -fimplicit-templates -fPIC -o demangle.s -v -v ignoring nonexistent directory "/home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/../../../../powerpc64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here:  /home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/../../../../include/c++/3.4  /home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/../../../../include/c++/3.4/powerpc64-unknown-linux-gnu  /home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/../../../../include/c++/3.4/backward  /usr/local/include  /home/olh/install-gcc-head/include  /home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/include  /usr/include End of search list. GNU C++ version 3.4 20030921 (experimental) (powerpc64-unknown-linux-gnu)         compiled by GNU C version 3.4 20030921 (experimental). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 olh@mandarine:/tmp/PR12273>


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

* [Bug bootstrap/12273] libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680
  2003-09-14 14:58 [Bug bootstrap/12273] New: libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680 olh at suse dot de
                   ` (5 preceding siblings ...)
  2003-09-21 11:06 ` olh at suse dot de
@ 2003-12-09 18:25 ` dhazeghi at yahoo dot com
  6 siblings, 0 replies; 8+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-12-09 18:25 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.4


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


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

end of thread, other threads:[~2003-12-09 18:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-14 14:58 [Bug bootstrap/12273] New: libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680 olh at suse dot de
2003-09-14 14:59 ` [Bug bootstrap/12273] " olh at suse dot de
2003-09-14 16:38 ` olh at suse dot de
2003-09-14 21:16 ` dannysmith at gcc dot gnu dot org
2003-09-14 22:22 ` pinskia at gcc dot gnu dot org
2003-09-15  0:31 ` dannysmith at gcc dot gnu dot org
2003-09-21 11:06 ` olh at suse dot de
2003-12-09 18:25 ` dhazeghi at yahoo dot com

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