public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/58285] New: ICE in lto_output_tree, at lto-streamer-out.c:1318
@ 2013-08-30 22:08 jan.smets@alcatel-lucent.com
2013-08-30 22:12 ` [Bug lto/58285] " hubicka at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: jan.smets@alcatel-lucent.com @ 2013-08-30 22:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58285
Bug ID: 58285
Summary: ICE in lto_output_tree, at lto-streamer-out.c:1318
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: jan.smets@alcatel-lucent.com
Compile with -flto , must use mips triplet.
extern "C" {
extern "C" {
typedef int BOOL;
typedef int STATUS;
typedef struct slnode
{
} SL_LIST;
extern "C" {
typedef struct
{
} MEM_HANDLE;
}
}
typedef struct hashtbl
{
} H_NODE_INT;
typedef struct
{
} MODULE;
typedef MODULE *MODULE_ID;
extern "C" {
}
typedef struct symtab
{
} SYMTAB;
typedef SYMTAB *SYMTAB_ID;
extern "C" {
extern "C" {
extern "C" {
extern "C" {
typedef struct BOOT_PARAMS
{
int (*ioctl)
(
);
};
}
}
}
}
typedef struct wdb_info
{
} SPL;
}
BOOL findXtors
(
)
{
}
extern "C" STATUS cplusLoadFixup
(
MODULE_ID module,
SYMTAB_ID symTab
)
{
{
}
}
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug lto/58285] ICE in lto_output_tree, at lto-streamer-out.c:1318
2013-08-30 22:08 [Bug lto/58285] New: ICE in lto_output_tree, at lto-streamer-out.c:1318 jan.smets@alcatel-lucent.com
@ 2013-08-30 22:12 ` hubicka at gcc dot gnu.org
2013-09-02 11:11 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hubicka at gcc dot gnu.org @ 2013-08-30 22:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58285
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org
--- Comment #1 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
It is because following condition:
if (CODE_CONTAINS_STRUCT (code, TS_DECL_MINIMAL))
{
/* Drop names that were created for anonymous entities. */
if (DECL_NAME (expr)
&& TREE_CODE (DECL_NAME (expr)) == IDENTIFIER_NODE
&& ANON_AGGRNAME_P (DECL_NAME (expr)))
;
else
DFS_follow_tree_edge (DECL_NAME (expr));
DFS_follow_tree_edge (DECL_CONTEXT (expr));
}
disaggree with:
static void
write_ts_decl_minimal_tree_pointers (struct output_block *ob, tree expr,
bool ref_p)
{
/* Drop names that were created for anonymous entities. */
if (DECL_NAME (expr)
&& TREE_CODE (DECL_NAME (expr)) == IDENTIFIER_NODE
&& ANON_AGGRNAME_P (DECL_NAME (expr)))
stream_write_tree (ob, NULL_TREE, ref_p);
else
stream_write_tree (ob, DECL_NAME (expr), ref_p);
stream_write_tree (ob, DECL_CONTEXT (expr), ref_p);
}
the name is $_1 that is anon, but once we miss the fact. I ust be blind, but
do not see how.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug lto/58285] ICE in lto_output_tree, at lto-streamer-out.c:1318
2013-08-30 22:08 [Bug lto/58285] New: ICE in lto_output_tree, at lto-streamer-out.c:1318 jan.smets@alcatel-lucent.com
2013-08-30 22:12 ` [Bug lto/58285] " hubicka at gcc dot gnu.org
@ 2013-09-02 11:11 ` rguenth at gcc dot gnu.org
2013-09-03 9:00 ` jan.smets@alcatel-lucent.com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-02 11:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58285
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
For a cross to mips-elf this works for me:
> ./cc1plus -quiet t.i -flto
t.i:36:5: warning: 'typedef' was ignored in this declaration [enabled by
default]
};
^
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug lto/58285] ICE in lto_output_tree, at lto-streamer-out.c:1318
2013-08-30 22:08 [Bug lto/58285] New: ICE in lto_output_tree, at lto-streamer-out.c:1318 jan.smets@alcatel-lucent.com
2013-08-30 22:12 ` [Bug lto/58285] " hubicka at gcc dot gnu.org
2013-09-02 11:11 ` rguenth at gcc dot gnu.org
@ 2013-09-03 9:00 ` jan.smets@alcatel-lucent.com
2013-09-03 9:35 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jan.smets@alcatel-lucent.com @ 2013-09-03 9:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58285
--- Comment #3 from Jan Smets <jan.smets@alcatel-lucent.com> ---
vxworks target : . vs $ in asm names.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug lto/58285] ICE in lto_output_tree, at lto-streamer-out.c:1318
2013-08-30 22:08 [Bug lto/58285] New: ICE in lto_output_tree, at lto-streamer-out.c:1318 jan.smets@alcatel-lucent.com
` (2 preceding siblings ...)
2013-09-03 9:00 ` jan.smets@alcatel-lucent.com
@ 2013-09-03 9:35 ` rguenth at gcc dot gnu.org
2013-09-03 9:48 ` rguenth at gcc dot gnu.org
2013-09-03 9:48 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-03 9:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58285
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |mips-vxworks
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2013-09-03
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. tree-streamer-out.c misses to include tm.h, mine.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug lto/58285] ICE in lto_output_tree, at lto-streamer-out.c:1318
2013-08-30 22:08 [Bug lto/58285] New: ICE in lto_output_tree, at lto-streamer-out.c:1318 jan.smets@alcatel-lucent.com
` (3 preceding siblings ...)
2013-09-03 9:35 ` rguenth at gcc dot gnu.org
@ 2013-09-03 9:48 ` rguenth at gcc dot gnu.org
2013-09-03 9:48 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-03 9:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58285
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Sep 3 09:48:27 2013
New Revision: 202202
URL: http://gcc.gnu.org/viewcvs?rev=202202&root=gcc&view=rev
Log:
2013-09-03 Richard Biener <rguenther@suse.de>
PR lto/58285
* tree-streamer-out.c: Include tm.h.
* Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
Modified:
trunk/gcc/ChangeLog
trunk/gcc/Makefile.in
trunk/gcc/tree-streamer-out.c
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug lto/58285] ICE in lto_output_tree, at lto-streamer-out.c:1318
2013-08-30 22:08 [Bug lto/58285] New: ICE in lto_output_tree, at lto-streamer-out.c:1318 jan.smets@alcatel-lucent.com
` (4 preceding siblings ...)
2013-09-03 9:48 ` rguenth at gcc dot gnu.org
@ 2013-09-03 9:48 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-03 9:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58285
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-09-03 9:48 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-30 22:08 [Bug lto/58285] New: ICE in lto_output_tree, at lto-streamer-out.c:1318 jan.smets@alcatel-lucent.com
2013-08-30 22:12 ` [Bug lto/58285] " hubicka at gcc dot gnu.org
2013-09-02 11:11 ` rguenth at gcc dot gnu.org
2013-09-03 9:00 ` jan.smets@alcatel-lucent.com
2013-09-03 9:35 ` rguenth at gcc dot gnu.org
2013-09-03 9:48 ` rguenth at gcc dot gnu.org
2013-09-03 9:48 ` rguenth at gcc dot gnu.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).