public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/17389] New: ICE in dwarf2out_finish, at dwarf2out.c:13566
@ 2004-09-10 4:55 aj at gcc dot gnu dot org
2004-09-10 4:56 ` [Bug debug/17389] " aj at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: aj at gcc dot gnu dot org @ 2004-09-10 4:55 UTC (permalink / raw)
To: gcc-bugs
Compiling glibc on Linux/x86-64 I get the following ICE now:
/opt/gcc/3.5-devel/bin/gcc programs/ld-ctype.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -g
-DLOCALE_PATH='"/usr/src/install-glibc/lib/locale:/usr/src/install-glibc/share/i18n"'
-DLOCALEDIR='"/usr/src/install-glibc/lib/locale"'
-DLOCALE_ALIAS_PATH='"/usr/src/install-glibc/share/locale"'
-DCHARMAP_PATH='"/usr/src/install-glibc/share/i18n/charmaps"'
-DREPERTOIREMAP_PATH='"/usr/src/install-glibc/share/i18n/repertoiremaps"'
-DLOCSRCDIR='"/usr/src/install-glibc/share/i18n/locales"' -DHAVE_CONFIG_H
-Iprograms -I../include -I. -I/builds/glibc/3.5/locale -I.. -I../libio
-I/builds/glibc/3.5 -I../sysdeps/x86_64/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/x86_64
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/x86_64
-I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/fpu -I../sysdeps/x86_64
-I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -D_LIBC_REENTRANT -include
../include/libc-symbols.h -DNOT_IN_libc=1 -o
/builds/glibc/3.5/locale/ld-ctype.o -MD -MP -MF
/builds/glibc/3.5/locale/ld-ctype.o.dt -MT /builds/glibc/3.5/locale/ld-ctype.o
-save-temps -v
Reading specs from /opt/gcc/3.5-devel/lib/gcc/x86_64-suse-linux-gnu/3.5.0/specs
Configured with: /cvs/gcc/configure --prefix=/opt/gcc/3.5-devel --disable-nls
--enable-threads=posix--enable-clocale=gnu --enable-__cxa_atexit --enable-shared
--enable-languages=c,c++,treelang,java,f95,objc --with-system-zlib
x86_64-suse-linux-gnu
Thread model: posix
gcc version 3.5.0 20040909 (experimental)
/opt/gcc/3.5-devel/libexec/gcc/x86_64-suse-linux-gnu/3.5.0/cc1 -E -quiet -v
-Iprograms -I../include-I. -I/builds/glibc/3.5/locale -I.. -I../libio
-I/builds/glibc/3.5 -I../sysdeps/x86_64/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/x86_64
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/x86_64
-I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/fpu -I../sysdeps/x86_64
-I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -MD
/builds/glibc/3.5/locale/ld-ctype.d -MF /builds/glibc/3.5/locale/ld-ctype.o.dt
-MP -MT /builds/glibc/3.5/locale/ld-ctype.o -MQ
/builds/glibc/3.5/locale/ld-ctype.o
-DLOCALE_PATH="/usr/src/install-glibc/lib/locale:/usr/src/install-glibc/share/i18n"
-DLOCALEDIR="/usr/src/install-glibc/lib/locale"
-DLOCALE_ALIAS_PATH="/usr/src/install-glibc/share/locale"
-DCHARMAP_PATH="/usr/src/install-glibc/share/i18n/charmaps"
-DREPERTOIREMAP_PATH="/usr/src/install-glibc/share/i18n/repertoiremaps"
-DLOCSRCDIR="/usr/src/install-glibc/share/i18n/locales" -DHAVE_CONFIG_H
-D_LIBC_REENTRANT -DNOT_IN_libc=1 -include ../include/libc-symbols.h
programs/ld-ctype.c -mtune=k8 -std=gnu99 -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -fworking-directory -O2 -fpch-preprocess -o ld-ctype.i
ignoring nonexistent directory
"/opt/gcc/3.5-devel/lib/gcc/x86_64-suse-linux-gnu/3.5.0/../../../../x86_64-suse-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
programs
../include
.
/builds/glibc/3.5/locale
..
../libio
/builds/glibc/3.5
../sysdeps/x86_64/elf
../linuxthreads/sysdeps/unix/sysv/linux/x86_64
../linuxthreads/sysdeps/unix/sysv/linux
../linuxthreads/sysdeps/pthread
../sysdeps/pthread
../linuxthreads/sysdeps/unix/sysv
../linuxthreads/sysdeps/unix
../linuxthreads/sysdeps/x86_64
../libidn/sysdeps/unix
../sysdeps/unix/sysv/linux/x86_64
../sysdeps/unix/sysv/linux/wordsize-64
../sysdeps/unix/sysv/linux
../sysdeps/gnu
../sysdeps/unix/common
../sysdeps/unix/mman
../sysdeps/unix/inet
../sysdeps/unix/sysv
../sysdeps/unix/x86_64
../sysdeps/unix
../sysdeps/posix
../sysdeps/x86_64/fpu
../sysdeps/x86_64
../sysdeps/wordsize-64
../sysdeps/ieee754/ldbl-96
../sysdeps/ieee754/dbl-64
../sysdeps/ieee754/flt-32
../sysdeps/ieee754
../sysdeps/generic/elf
../sysdeps/generic
/usr/local/include
/opt/gcc/3.5-devel/include
/opt/gcc/3.5-devel/lib/gcc/x86_64-suse-linux-gnu/3.5.0/include
/usr/include
End of search list.
/opt/gcc/3.5-devel/libexec/gcc/x86_64-suse-linux-gnu/3.5.0/cc1 -fpreprocessed
ld-ctype.i -quiet -dumpbase ld-ctype.c -mtune=k8 -auxbase-strip
/builds/glibc/3.5/locale/ld-ctype.o -g -O2 -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -std=gnu99 -version -o ld-ctype.s
GNU C version 3.5.0 20040909 (experimental) (x86_64-suse-linux-gnu)
compiled by GNU C version 3.5.0 20040909 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
programs/ld-ctype.c: In function `ctype_finish':
programs/ld-ctype.c:653: warning: pointer targets in passing arg 2 of
`charmap_find_symbol' differ in signedness
programs/ld-ctype.c:754: warning: pointer targets in passing arg 2 of
`charmap_find_symbol' differ in signedness
programs/ld-ctype.c: In function `set_class_defaults':
programs/ld-ctype.c:3468: warning: pointer targets in passing arg 2 of
`charmap_find_symbol' differ in signedness
programs/ld-ctype.c: In function `allocate_arrays':
programs/ld-ctype.c:4018: warning: pointer targets in passing arg 2 of
`charmap_find_symbol' differ in signedness
programs/ld-ctype.c: At top level:
programs/ld-ctype.c:4223: internal compiler error: in dwarf2out_finish, at
dwarf2out.c:13566
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE in dwarf2out_finish, at dwarf2out.c:13566
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: aj at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,jh at suse dot cz
GCC build triplet: x86_64-linux-gnu
GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17389
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/17389] ICE in dwarf2out_finish, at dwarf2out.c:13566
2004-09-10 4:55 [Bug debug/17389] New: ICE in dwarf2out_finish, at dwarf2out.c:13566 aj at gcc dot gnu dot org
@ 2004-09-10 4:56 ` aj at gcc dot gnu dot org
2004-09-10 7:49 ` [Bug debug/17389] [4.0 Regression] " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: aj at gcc dot gnu dot org @ 2004-09-10 4:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aj at gcc dot gnu dot org 2004-09-10 04:56 -------
Created an attachment (id=7085)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7085&action=view)
Preprocessed source file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17389
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/17389] [4.0 Regression] ICE in dwarf2out_finish, at dwarf2out.c:13566
2004-09-10 4:55 [Bug debug/17389] New: ICE in dwarf2out_finish, at dwarf2out.c:13566 aj at gcc dot gnu dot org
2004-09-10 4:56 ` [Bug debug/17389] " aj at gcc dot gnu dot org
@ 2004-09-10 7:49 ` pinskia at gcc dot gnu dot org
2004-09-10 8:19 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-10 7:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-10 07:49 -------
I don't know if this is wrong or not but I have been dinking so:
@@ -13632,25 +13544,28 @@ dwarf2out_finish (const char *filename)
else if (errorcount > 0 || sorrycount > 0)
/* It's OK to be confused by errors in the input. */
add_child_die (comp_unit_die, die);
- else if (node->created_for
- && ((DECL_P (node->created_for)
- && (context = DECL_CONTEXT (node->created_for)))
- || (TYPE_P (node->created_for)
- && (context = TYPE_CONTEXT (node->created_for))))
- && TREE_CODE (context) == FUNCTION_DECL)
+ else
{
/* In certain situations, the lexical block containing a
nested function can be optimized away, which results
in the nested function die being orphaned. Likewise
with the return type of that nested function. Force
this to be a child of the containing function. */
+ tree context = NULL_TREE;
+
+ gcc_assert (node->created_for);
+
+ if (DECL_P (node->created_for))
+ context = DECL_CONTEXT (node->created_for);
+ else if (TYPE_P (node->created_for))
+ context = TYPE_CONTEXT (node->created_for);
+
+ gcc_assert (context && TREE_CODE (context) == FUNCTION_DECL); <-- this
+
origin = lookup_decl_die (context);
- if (! origin)
- abort ();
+ gcc_assert (origin);
add_child_die (origin, die);
}
- else
- abort ();
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Keywords| |ice-on-valid-code
Summary|ICE in dwarf2out_finish, at |[4.0 Regression] ICE in
|dwarf2out.c:13566 |dwarf2out_finish, at
| |dwarf2out.c:13566
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17389
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/17389] [4.0 Regression] ICE in dwarf2out_finish, at dwarf2out.c:13566
2004-09-10 4:55 [Bug debug/17389] New: ICE in dwarf2out_finish, at dwarf2out.c:13566 aj at gcc dot gnu dot org
2004-09-10 4:56 ` [Bug debug/17389] " aj at gcc dot gnu dot org
2004-09-10 7:49 ` [Bug debug/17389] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-09-10 8:19 ` pinskia at gcc dot gnu dot org
2004-09-23 0:51 ` cvs-commit at gcc dot gnu dot org
2004-09-23 1:13 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-10 8:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-10 08:19 -------
I should note this does not hapen at below -O2 but that might be because we do more inlining at -O2.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17389
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/17389] [4.0 Regression] ICE in dwarf2out_finish, at dwarf2out.c:13566
2004-09-10 4:55 [Bug debug/17389] New: ICE in dwarf2out_finish, at dwarf2out.c:13566 aj at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-09-10 8:19 ` pinskia at gcc dot gnu dot org
@ 2004-09-23 0:51 ` cvs-commit at gcc dot gnu dot org
2004-09-23 1:13 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-23 0:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-09-23 00:51 -------
Subject: Bug 17389
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: hubicka@gcc.gnu.org 2004-09-23 00:51:41
Modified files:
gcc : ChangeLog dwarf2out.c tree-inline.c
Log message:
PR debug/17389
* dwarf2out.c (dwarf2out_finish): Deal with nested functions
of fully inlined functions.
* tree-inline.c (inline_forbidden_p_1): Nested functions can be
inlined.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5576&r2=2.5577
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dwarf2out.c.diff?cvsroot=gcc&r1=1.547&r2=1.548
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-inline.c.diff?cvsroot=gcc&r1=1.142&r2=1.143
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17389
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/17389] [4.0 Regression] ICE in dwarf2out_finish, at dwarf2out.c:13566
2004-09-10 4:55 [Bug debug/17389] New: ICE in dwarf2out_finish, at dwarf2out.c:13566 aj at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-09-23 0:51 ` cvs-commit at gcc dot gnu dot org
@ 2004-09-23 1:13 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-23 1:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-23 01:13 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17389
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-09-23 1:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-10 4:55 [Bug debug/17389] New: ICE in dwarf2out_finish, at dwarf2out.c:13566 aj at gcc dot gnu dot org
2004-09-10 4:56 ` [Bug debug/17389] " aj at gcc dot gnu dot org
2004-09-10 7:49 ` [Bug debug/17389] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-09-10 8:19 ` pinskia at gcc dot gnu dot org
2004-09-23 0:51 ` cvs-commit at gcc dot gnu dot org
2004-09-23 1:13 ` pinskia 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).