public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/44197] New: varpool SEGV
@ 2010-05-19 16:42 ams at gcc dot gnu dot org
2010-05-19 16:46 ` [Bug middle-end/44197] " ams at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: ams at gcc dot gnu dot org @ 2010-05-19 16:42 UTC (permalink / raw)
To: gcc-bugs
assemble_alias in varasm.c sets varpool->alias to 1, but fails to set
varpool->extra_name to anything.
This leads to trouble further down the line. In my case, varpool_remove_node
fails with a NULL-pointer exception.
This appears to be target/host independent. So far, the only work around I have
is to disable optimization.
Test case to follow ...
--
Summary: varpool SEGV
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: critical
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ams at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44197
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/44197] varpool SEGV
2010-05-19 16:42 [Bug middle-end/44197] New: varpool SEGV ams at gcc dot gnu dot org
@ 2010-05-19 16:46 ` ams at gcc dot gnu dot org
2010-05-19 16:47 ` ams at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ams at gcc dot gnu dot org @ 2010-05-19 16:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from ams at gcc dot gnu dot org 2010-05-19 16:46 -------
Created an attachment (id=20703)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20703&action=view)
test case
This test case is reduced from uClibc sources.
To reproduce the bug:
cc1 -fpreprocessed __C_ctype_b_10.i -O1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44197
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/44197] varpool SEGV
2010-05-19 16:42 [Bug middle-end/44197] New: varpool SEGV ams at gcc dot gnu dot org
2010-05-19 16:46 ` [Bug middle-end/44197] " ams at gcc dot gnu dot org
@ 2010-05-19 16:47 ` ams at gcc dot gnu dot org
2010-05-19 21:57 ` [Bug middle-end/44197] [4.6 Regresssion] " hjl dot tools at gmail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ams at gcc dot gnu dot org @ 2010-05-19 16:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from ams at gcc dot gnu dot org 2010-05-19 16:46 -------
Jeff, it was recommended that I add you as CC. Apologies if that was not
appropriate.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44197
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/44197] [4.6 Regresssion] varpool SEGV
2010-05-19 16:42 [Bug middle-end/44197] New: varpool SEGV ams at gcc dot gnu dot org
2010-05-19 16:46 ` [Bug middle-end/44197] " ams at gcc dot gnu dot org
2010-05-19 16:47 ` ams at gcc dot gnu dot org
@ 2010-05-19 21:57 ` hjl dot tools at gmail dot com
2010-05-20 14:58 ` hubicka at gcc dot gnu dot org
2010-06-24 11:26 ` jakub at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-05-19 21:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from hjl dot tools at gmail dot com 2010-05-19 21:57 -------
It is caused by revision 159321:
http://gcc.gnu.org/ml/gcc-cvs/2010-05/msg00373.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
Summary|varpool SEGV |[4.6 Regresssion] varpool
| |SEGV
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44197
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/44197] [4.6 Regresssion] varpool SEGV
2010-05-19 16:42 [Bug middle-end/44197] New: varpool SEGV ams at gcc dot gnu dot org
` (2 preceding siblings ...)
2010-05-19 21:57 ` [Bug middle-end/44197] [4.6 Regresssion] " hjl dot tools at gmail dot com
@ 2010-05-20 14:58 ` hubicka at gcc dot gnu dot org
2010-06-24 11:26 ` jakub at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2010-05-20 14:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from hubicka at gcc dot gnu dot org 2010-05-20 14:57 -------
Subject: Bug 44197
Author: hubicka
Date: Thu May 20 14:57:27 2010
New Revision: 159629
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159629
Log:
PR middle-end/44197
* varpool.c (varpool_remove_node): Handle in-varpool aliases.
* gcc.c-torture/compile/pr44197.c: New file.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr44197.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/varpool.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44197
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/44197] [4.6 Regresssion] varpool SEGV
2010-05-19 16:42 [Bug middle-end/44197] New: varpool SEGV ams at gcc dot gnu dot org
` (3 preceding siblings ...)
2010-05-20 14:58 ` hubicka at gcc dot gnu dot org
@ 2010-06-24 11:26 ` jakub at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-06-24 11:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2010-06-24 11:25 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44197
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-06-24 11:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-19 16:42 [Bug middle-end/44197] New: varpool SEGV ams at gcc dot gnu dot org
2010-05-19 16:46 ` [Bug middle-end/44197] " ams at gcc dot gnu dot org
2010-05-19 16:47 ` ams at gcc dot gnu dot org
2010-05-19 21:57 ` [Bug middle-end/44197] [4.6 Regresssion] " hjl dot tools at gmail dot com
2010-05-20 14:58 ` hubicka at gcc dot gnu dot org
2010-06-24 11:26 ` jakub 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).