public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/44950] New: dwarf2out ICE with WHOPR build of mozilla
@ 2010-07-15 14:41 hubicka at gcc dot gnu dot org
2010-07-15 15:22 ` [Bug lto/44950] " hubicka at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2010-07-15 14:41 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2568 bytes --]
jh@evans:/abuild/jh/build-mozilla-debug/js/src/shell>
/abuild/jh/trunk-install/bin/g++ -fwhopr=24 -fuse-linker-plugin -fpermissive
-o js.o -c -I../../../dist/system_wrappers_js -include
/abuild/jh/mozilla-central/js/src/config/gcc_hidden.h -DEXPORT_JS_API
-DOSTYPE=\"Linux2.6.32.12-0\" -DOSARCH=Linux
-I/abuild/jh/mozilla-central/js/src -I..
-I/abuild/jh/mozilla-central/js/src/shell -I. -I../../../dist/include
-I../../../dist/include/nsprpub
-I/abuild/jh/build-mozilla-debug/dist/include/nspr -fPIC -fno-rtti
-fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof
-Wno-variadic-macros -pedantic -Wno-long-long -fno-strict-aliasing -pthread
-pipe -DNDEBUG -DTRIMMED -g -Os -freorder-blocks -fno-reorder-functions
-fomit-frame-pointer -DMOZILLA_CLIENT -include ../js-confdefs.h -MD -MF
.deps/js.pp /abuild/jh/mozilla-central/js/src/shell/js.cpp -E >js.ii
jh@evans:/abuild/jh/build-mozilla-debug/js/src/shell>
/abuild/jh/trunk-install/bin/g++ -fwhopr=24 -fuse-linker-plugin -r -nostdlib
js.ii -g
jh@evans:/abuild/jh/build-mozilla-debug/js/src/shell> mv js.o js.ii
jh@evans:/abuild/jh/build-mozilla-debug/js/src/shell>
/abuild/jh/trunk-install/bin/g++ -fwhopr=24 -fuse-linker-plugin -r -nostdlib
js.ii -g
In file included from /abuild/jh/mozilla-central/js/src/shell/js.cpp:61:0:
/abuild/jh/mozilla-central/js/src/jscntxt.h: In function JSContext*
js_ContextFromLinkField(JSCList*):
/abuild/jh/mozilla-central/js/src/jscntxt.h:2704:75: warning: invalid access to
non-static data member JSContext::link of NULL object [-Winvalid-offsetof]
/abuild/jh/mozilla-central/js/src/jscntxt.h:2704:75: warning: (perhaps the
offsetof macro was used incorrectly) [-Winvalid-offsetof]
lto1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:22272
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [/abuild/jh/tmp/ccRqAsbV.ltrans0.ltrans.o] Error 1
lto-wrapper: make returned 2 exit status
--
Summary: dwarf2out ICE with WHOPR build of mozilla
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hubicka at gcc dot gnu dot org
GCC build triplet: x86_64-linux
GCC host triplet: x86_64-linux
GCC target triplet: x86_64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44950
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/44950] dwarf2out ICE with WHOPR build of mozilla
2010-07-15 14:41 [Bug lto/44950] New: dwarf2out ICE with WHOPR build of mozilla hubicka at gcc dot gnu dot org
@ 2010-07-15 15:22 ` hubicka at gcc dot gnu dot org
2010-07-23 10:25 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2010-07-15 15:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from hubicka at gcc dot gnu dot org 2010-07-15 15:22 -------
Created an attachment (id=21212)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21212&action=view)
testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44950
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/44950] dwarf2out ICE with WHOPR build of mozilla
2010-07-15 14:41 [Bug lto/44950] New: dwarf2out ICE with WHOPR build of mozilla hubicka at gcc dot gnu dot org
2010-07-15 15:22 ` [Bug lto/44950] " hubicka at gcc dot gnu dot org
@ 2010-07-23 10:25 ` rguenth at gcc dot gnu dot org
2010-07-23 18:25 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-23 10:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2010-07-23 10:25 -------
Reduced testcase:
struct JSContext;
struct JSObject;
class WorkerHooks {
virtual JSObject *newGlobalObject(JSContext *cx) = 0;
};
int
shell(JSContext *cx, int argc, char **argv, char **envp)
{
class ShellWorkerHooks : public WorkerHooks {
JSObject *newGlobalObject(JSContext *cx) { }
};
ShellWorkerHooks hooks;
}
> ./g++ -B. -flto -r -nostdlib -g js.3.ii
lto1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:22271
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: ./g++ returned 1 exit status
collect2: lto-wrapper returned 1 exit status
#1 0x00000000005d46a8 in dwarf2out_finish (filename=0x1664040 "js.3.o")
at /space/rguenther/src/svn/trunk/gcc/dwarf2out.c:22269
22269 gcc_assert (context
22270 && (TREE_CODE (context) == FUNCTION_DECL
22271 || TREE_CODE (context) ==
NAMESPACE_DECL));
(gdb) p context->base.code
$2 = RECORD_TYPE
(gdb) call debug_generic_expr (node->created_for)
__base_ctor
(for ShellWorkerHooks)
--
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 |2010-07-23 10:25:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44950
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/44950] dwarf2out ICE with WHOPR build of mozilla
2010-07-15 14:41 [Bug lto/44950] New: dwarf2out ICE with WHOPR build of mozilla hubicka at gcc dot gnu dot org
2010-07-15 15:22 ` [Bug lto/44950] " hubicka at gcc dot gnu dot org
2010-07-23 10:25 ` rguenth at gcc dot gnu dot org
@ 2010-07-23 18:25 ` rguenth at gcc dot gnu dot org
2010-07-23 18:52 ` [Bug lto/44950] ICE in dwarf2out_finish, at dwarf2out.c:22271 rguenth at gcc dot gnu dot org
2010-07-23 18:53 ` rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-23 18:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2010-07-23 18:24 -------
Without LTO the limbo DIE has a non-NULL get_AT_ref (die,
DW_AT_abstract_origin),
a DW_TAG_subprogram. For some reason that doesn't get created with LTO
(not easy to follow why).
More reduced testcase:
struct Base { ~Base (); };
void fun(void) { struct Deriv : Base { } x; }
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44950
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/44950] ICE in dwarf2out_finish, at dwarf2out.c:22271
2010-07-15 14:41 [Bug lto/44950] New: dwarf2out ICE with WHOPR build of mozilla hubicka at gcc dot gnu dot org
` (2 preceding siblings ...)
2010-07-23 18:25 ` rguenth at gcc dot gnu dot org
@ 2010-07-23 18:52 ` rguenth at gcc dot gnu dot org
2010-07-23 18:53 ` rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-23 18:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2010-07-23 18:51 -------
*** Bug 43898 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |max at duempel dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44950
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/44950] ICE in dwarf2out_finish, at dwarf2out.c:22271
2010-07-15 14:41 [Bug lto/44950] New: dwarf2out ICE with WHOPR build of mozilla hubicka at gcc dot gnu dot org
` (3 preceding siblings ...)
2010-07-23 18:52 ` [Bug lto/44950] ICE in dwarf2out_finish, at dwarf2out.c:22271 rguenth at gcc dot gnu dot org
@ 2010-07-23 18:53 ` rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-23 18:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2010-07-23 18:53 -------
Similar testcase from PR43898:
void bug() {
struct Class {
Class(int a) {}
virtual void f() {}
};
Class a(0);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44950
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-07-23 18:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-15 14:41 [Bug lto/44950] New: dwarf2out ICE with WHOPR build of mozilla hubicka at gcc dot gnu dot org
2010-07-15 15:22 ` [Bug lto/44950] " hubicka at gcc dot gnu dot org
2010-07-23 10:25 ` rguenth at gcc dot gnu dot org
2010-07-23 18:25 ` rguenth at gcc dot gnu dot org
2010-07-23 18:52 ` [Bug lto/44950] ICE in dwarf2out_finish, at dwarf2out.c:22271 rguenth at gcc dot gnu dot org
2010-07-23 18:53 ` 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).