public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/58298] New: [4.9 regression] ICE in mentions_vars_p_field_decl, at lto/lto.c:1392
@ 2013-09-02 14:09 schwab@linux-m68k.org
2013-09-02 14:10 ` [Bug lto/58298] " schwab@linux-m68k.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: schwab@linux-m68k.org @ 2013-09-02 14:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58298
Bug ID: 58298
Summary: [4.9 regression] ICE in mentions_vars_p_field_decl, at
lto/lto.c:1392
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: schwab@linux-m68k.org
CC: jh at suse dot cz
Target: m68k-*-*
SVN r202143
Author: hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Sun Sep 1 12:00:35 2013 +0000
* lto.c (tree_with_vars): Turn into vector.
$ gcc/xgcc -B gcc/ ../gcc/gcc/testsuite/gcc.c-torture/execute/20040308-1.c -O2
-flto -fno-use-linker-plugin -flto-partition=none -lm
lto1: internal compiler error: in mentions_vars_p_field_decl, at lto/lto.c:1392
0x4dfcaa mentions_vars_p_field_decl
../../gcc/lto/lto.c:1392
0x4dfcaa mentions_vars_p
../../gcc/lto/lto.c:1499
0x4dfcaa lto_read_decls
../../gcc/lto/lto.c:2513
0x4e06ab lto_file_finalize
../../gcc/lto/lto.c:2783
0x4e06ab lto_create_files_from_ids
../../gcc/lto/lto.c:2793
0x4e06ab lto_file_read
../../gcc/lto/lto.c:2833
0x4e06ab read_cgraph_and_symbols
../../gcc/lto/lto.c:3422
0x4e06ab lto_main()
../../gcc/lto/lto.c:3852
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/58298] [4.9 regression] ICE in mentions_vars_p_field_decl, at lto/lto.c:1392
2013-09-02 14:09 [Bug lto/58298] New: [4.9 regression] ICE in mentions_vars_p_field_decl, at lto/lto.c:1392 schwab@linux-m68k.org
@ 2013-09-02 14:10 ` schwab@linux-m68k.org
2013-09-02 14:32 ` izamyatin at gmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: schwab@linux-m68k.org @ 2013-09-02 14:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58298
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.9.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/58298] [4.9 regression] ICE in mentions_vars_p_field_decl, at lto/lto.c:1392
2013-09-02 14:09 [Bug lto/58298] New: [4.9 regression] ICE in mentions_vars_p_field_decl, at lto/lto.c:1392 schwab@linux-m68k.org
2013-09-02 14:10 ` [Bug lto/58298] " schwab@linux-m68k.org
@ 2013-09-02 14:32 ` izamyatin at gmail dot com
2013-09-03 8:28 ` bernd.edlinger at hotmail dot de
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: izamyatin at gmail dot com @ 2013-09-02 14:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58298
Igor Zamyatin <izamyatin at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |izamyatin at gmail dot com
--- Comment #1 from Igor Zamyatin <izamyatin at gmail dot com> ---
Fails for x86 also
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/58298] [4.9 regression] ICE in mentions_vars_p_field_decl, at lto/lto.c:1392
2013-09-02 14:09 [Bug lto/58298] New: [4.9 regression] ICE in mentions_vars_p_field_decl, at lto/lto.c:1392 schwab@linux-m68k.org
2013-09-02 14:10 ` [Bug lto/58298] " schwab@linux-m68k.org
2013-09-02 14:32 ` izamyatin at gmail dot com
@ 2013-09-03 8:28 ` bernd.edlinger at hotmail dot de
2013-09-06 16:55 ` yufeng at gcc dot gnu.org
2013-10-30 13:36 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2013-09-03 8:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58298
Bernd Edlinger <bernd.edlinger at hotmail dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bernd.edlinger at hotmail dot de
--- Comment #2 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
same error for gcc.c-torture/execute/align-nest.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/58298] [4.9 regression] ICE in mentions_vars_p_field_decl, at lto/lto.c:1392
2013-09-02 14:09 [Bug lto/58298] New: [4.9 regression] ICE in mentions_vars_p_field_decl, at lto/lto.c:1392 schwab@linux-m68k.org
` (2 preceding siblings ...)
2013-09-03 8:28 ` bernd.edlinger at hotmail dot de
@ 2013-09-06 16:55 ` yufeng at gcc dot gnu.org
2013-10-30 13:36 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: yufeng at gcc dot gnu.org @ 2013-09-06 16:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58298
Yufeng Zhang <yufeng at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yufeng at gcc dot gnu.org
--- Comment #3 from Yufeng Zhang <yufeng at gcc dot gnu.org> ---
I briefly saw the issue on aarch64 and arm, but I think it has been fixed by
the following commit:
commit 8d4e699477b53778f0e933cb77d71e28a1e70536
Author: hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon Sep 2 14:45:06 2013 +0000
* lto.c (mentions_vars_p_field_decl, lto_fixup_prevailing_decls):
DECL_FIELD_OFFSET can contain an reference to variable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202174
138bc75d-0d04-0410-961f-82ee72b054a4
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index cf31c21..fe8e463 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,5 +1,10 @@
2013-08-31 Jan Hubicka <jh@suse.cz>
+ * lto.c (mentions_vars_p_field_decl, lto_fixup_prevailing_decls):
+ DECL_FIELD_OFFSET can contain an reference to variable.
+
+2013-08-31 Jan Hubicka <jh@suse.cz>
+
* lto.c (tree_with_vars): Turn into vector.
(MAYBE_REMEMBER_WITH_VARS): Change to...
(CHECK_VAR): ... this one.
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 1d1350b..0cea778 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -1389,7 +1389,7 @@ mentions_vars_p_field_decl (tree t)
{
if (mentions_vars_p_decl_common (t))
return true;
- CHECK_NO_VAR (DECL_FIELD_OFFSET (t));
+ CHECK_VAR (DECL_FIELD_OFFSET (t));
CHECK_NO_VAR (DECL_BIT_FIELD_TYPE (t));
CHECK_NO_VAR (DECL_QUALIFIER (t));
CHECK_NO_VAR (DECL_FIELD_BIT_OFFSET (t));
@@ -3207,7 +3207,7 @@ lto_fixup_prevailing_decls (tree t)
LTO_SET_PREVAIL (DECL_FUNCTION_PERSONALITY (t));
if (CODE_CONTAINS_STRUCT (code, TS_FIELD_DECL))
{
- LTO_NO_PREVAIL (DECL_FIELD_OFFSET (t));
+ LTO_SET_PREVAIL (DECL_FIELD_OFFSET (t));
LTO_NO_PREVAIL (DECL_BIT_FIELD_TYPE (t));
LTO_NO_PREVAIL (DECL_QUALIFIER (t));
LTO_NO_PREVAIL (DECL_FIELD_BIT_OFFSET (t));
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/58298] [4.9 regression] ICE in mentions_vars_p_field_decl, at lto/lto.c:1392
2013-09-02 14:09 [Bug lto/58298] New: [4.9 regression] ICE in mentions_vars_p_field_decl, at lto/lto.c:1392 schwab@linux-m68k.org
` (3 preceding siblings ...)
2013-09-06 16:55 ` yufeng at gcc dot gnu.org
@ 2013-10-30 13:36 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-10-30 13:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58298
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Assuming fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-10-30 13:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-02 14:09 [Bug lto/58298] New: [4.9 regression] ICE in mentions_vars_p_field_decl, at lto/lto.c:1392 schwab@linux-m68k.org
2013-09-02 14:10 ` [Bug lto/58298] " schwab@linux-m68k.org
2013-09-02 14:32 ` izamyatin at gmail dot com
2013-09-03 8:28 ` bernd.edlinger at hotmail dot de
2013-09-06 16:55 ` yufeng at gcc dot gnu.org
2013-10-30 13:36 ` 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).