public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11665] New: ICE in struct initializer
@ 2003-07-24 21:31 jwhite at cse dot unl dot edu
2003-07-24 21:38 ` [Bug c/11665] " pinskia at physics dot uc dot edu
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: jwhite at cse dot unl dot edu @ 2003-07-24 21:31 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11665
Summary: ICE in struct initializer
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jwhite at cse dot unl dot edu
CC: gcc-bugs at gcc dot gnu dot org
int x;
struct gdt
{
unsigned a,b,c,d,e,f;
};
void f()
{
/* workaround,
int* z=&x; replace &x with z
*/
struct gdt gdt_table[2]=
{
{
0,
/* the &x seems to be the problem, without it, no ICE */
( (((unsigned)(&x))<<(24))&(-1<<(8)) ),
},
};
}
/* CODE ENDS */
/*
gcc test2.c
test2.c: In function `f':
test2.c:17: internal compiler error: in copy_constant, at varasm.c:2631
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gcc -v
Reading specs from
/usr/local/lib/gcc-lib/i386-unknown-freebsd4.7/3.3/specs
Configured with: ./configure --prefix=/usr/local --enable-languages=java
Thread model: posix
gcc version 3.3
/usr/local/gcc34/bin/gcc test2.c
test2.c: In function `f':
test2.c:17: internal compiler error: in copy_constant, at varasm.c:2532
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
/usr/local/gcc34/bin/gcc -v
Reading specs from /usr/local/gcc34/lib/gcc-lib/i386-unknown-
freebsd4.7/3.4/specs
Configured with: ./configure --prefix=/usr/local/gcc34 : (reconfigured)
./configure --prefix=/usr/local/gcc34
Thread model: posix
gcc version 3.4 20030702 (experimental)
*/
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/11665] ICE in struct initializer
2003-07-24 21:31 [Bug c/11665] New: ICE in struct initializer jwhite at cse dot unl dot edu
@ 2003-07-24 21:38 ` pinskia at physics dot uc dot edu
2003-08-03 19:25 ` [Bug c/11665] ICE in struct initializer when taking address neroden at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-24 21:38 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11665
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-07-24 21:38:11
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-24 21:38 -------
I can confirm gcc ICEs on this in 2.95.3, 3.0.4, 3.2.2, 3.2.3, 3.3.1 (20030707) and the mainline
(20030724) so this is not a regression.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/11665] ICE in struct initializer when taking address
2003-07-24 21:31 [Bug c/11665] New: ICE in struct initializer jwhite at cse dot unl dot edu
2003-07-24 21:38 ` [Bug c/11665] " pinskia at physics dot uc dot edu
@ 2003-08-03 19:25 ` neroden at gcc dot gnu dot org
2003-08-23 0:59 ` dhazeghi at yahoo dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: neroden at gcc dot gnu dot org @ 2003-08-03 19:25 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11665
neroden at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE in struct initializer |ICE in struct initializer
| |when taking address
------- Additional Comments From neroden at gcc dot gnu dot org 2003-08-03 19:25 -------
Dunno whether the code is valid or not. C
language experts?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/11665] ICE in struct initializer when taking address
2003-07-24 21:31 [Bug c/11665] New: ICE in struct initializer jwhite at cse dot unl dot edu
2003-07-24 21:38 ` [Bug c/11665] " pinskia at physics dot uc dot edu
2003-08-03 19:25 ` [Bug c/11665] ICE in struct initializer when taking address neroden at gcc dot gnu dot org
@ 2003-08-23 0:59 ` dhazeghi at yahoo dot com
2003-09-08 2:17 ` [Bug middle-end/11665] " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-23 0:59 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11665
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |---
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/11665] ICE in struct initializer when taking address
2003-07-24 21:31 [Bug c/11665] New: ICE in struct initializer jwhite at cse dot unl dot edu
` (2 preceding siblings ...)
2003-08-23 0:59 ` dhazeghi at yahoo dot com
@ 2003-09-08 2:17 ` pinskia at gcc dot gnu dot org
2003-09-08 2:50 ` pinskia at gcc dot gnu dot org
2003-11-21 16:19 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-08 2:17 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11665
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |middle-end
Last reconfirmed|2003-07-24 21:38:11 |2003-09-08 02:17:51
date| |
Target Milestone|--- |3.3.2
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-08 02:17 -------
This is valid c as the initializer does not have to be a constant when it in a function.
Also this ICE on the C++ front-end too, so this is a middle-end problem, most likely
related to bug 11852 (might even was fixed by it, I did not test GCC with the patch). I will
tentatively put the target as 3.3.2 and I will retest it when I bootstrap with updated sources
with the patch already applied.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/11665] ICE in struct initializer when taking address
2003-07-24 21:31 [Bug c/11665] New: ICE in struct initializer jwhite at cse dot unl dot edu
` (3 preceding siblings ...)
2003-09-08 2:17 ` [Bug middle-end/11665] " pinskia at gcc dot gnu dot org
@ 2003-09-08 2:50 ` pinskia at gcc dot gnu dot org
2003-11-21 16:19 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-08 2:50 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11665
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-08 02:50 -------
Guess what it is fixed by the same patch which fixed bug 11852 so commiting a testcase
for this one. Forgot to say this is fixed in 3.3.2 and 3.4.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/11665] ICE in struct initializer when taking address
2003-07-24 21:31 [Bug c/11665] New: ICE in struct initializer jwhite at cse dot unl dot edu
` (4 preceding siblings ...)
2003-09-08 2:50 ` pinskia at gcc dot gnu dot org
@ 2003-11-21 16:19 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-21 16:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-21 16:19 -------
*** Bug 12123 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |NitinY at KPITCummins dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11665
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-11-21 16:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-24 21:31 [Bug c/11665] New: ICE in struct initializer jwhite at cse dot unl dot edu
2003-07-24 21:38 ` [Bug c/11665] " pinskia at physics dot uc dot edu
2003-08-03 19:25 ` [Bug c/11665] ICE in struct initializer when taking address neroden at gcc dot gnu dot org
2003-08-23 0:59 ` dhazeghi at yahoo dot com
2003-09-08 2:17 ` [Bug middle-end/11665] " pinskia at gcc dot gnu dot org
2003-09-08 2:50 ` pinskia at gcc dot gnu dot org
2003-11-21 16:19 ` 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).