public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31579] New: ICE when compiling attached code
@ 2007-04-15 16:21 us15 at os dot inf dot tu-dresden dot de
2007-04-15 16:23 ` [Bug c++/31579] " us15 at os dot inf dot tu-dresden dot de
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: us15 at os dot inf dot tu-dresden dot de @ 2007-04-15 16:21 UTC (permalink / raw)
To: gcc-bugs
g++ crashes when compiling the attached code:
/tmp/build/src/oldloader.cpp:1638: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-svn/configure --prefix=/usr --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++
--disable-checking --with-gnu-ld --verbose
Thread model: posix
gcc version 4.3.0 20070411 (experimental)
--
Summary: ICE when compiling attached code
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: us15 at os dot inf dot tu-dresden dot de
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31579
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31579] ICE when compiling attached code
2007-04-15 16:21 [Bug c++/31579] New: ICE when compiling attached code us15 at os dot inf dot tu-dresden dot de
@ 2007-04-15 16:23 ` us15 at os dot inf dot tu-dresden dot de
2007-04-16 6:56 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: us15 at os dot inf dot tu-dresden dot de @ 2007-04-15 16:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from us15 at os dot inf dot tu-dresden dot de 2007-04-15 17:23 -------
Created an attachment (id=13368)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13368&action=view)
preprocessed code that triggers ICE
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31579
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31579] ICE when compiling attached code
2007-04-15 16:21 [Bug c++/31579] New: ICE when compiling attached code us15 at os dot inf dot tu-dresden dot de
2007-04-15 16:23 ` [Bug c++/31579] " us15 at os dot inf dot tu-dresden dot de
@ 2007-04-16 6:56 ` pinskia at gcc dot gnu dot org
2007-04-19 19:06 ` [Bug c++/31579] [4.3 regression] " bangerth at dealii dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-16 6:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-04-16 07:56 -------
Reduced testcase:
struct Industry {
unsigned char produced_cargo[2];
};
unsigned int a = (((unsigned long)&reinterpret_cast<const volatile
char&>((((Industry*)(char*)8)->produced_cargo[0]))) - 8);
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31579
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31579] [4.3 regression] ICE when compiling attached code
2007-04-15 16:21 [Bug c++/31579] New: ICE when compiling attached code us15 at os dot inf dot tu-dresden dot de
2007-04-15 16:23 ` [Bug c++/31579] " us15 at os dot inf dot tu-dresden dot de
2007-04-16 6:56 ` pinskia at gcc dot gnu dot org
@ 2007-04-19 19:06 ` bangerth at dealii dot org
2007-04-19 19:10 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2007-04-19 19:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from bangerth at dealii dot org 2007-04-19 20:06 -------
Confirmed. This is a regression on at least mainline. I don't
have my set of compilers around here to verify if it is also a
regression on 4.1 and 4.2.x. It seems to work with 4.0.x.
W.
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at dealii dot org
Summary|ICE when compiling attached |[4.3 regression] ICE when
|code |compiling attached code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31579
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31579] [4.3 regression] ICE when compiling attached code
2007-04-15 16:21 [Bug c++/31579] New: ICE when compiling attached code us15 at os dot inf dot tu-dresden dot de
` (2 preceding siblings ...)
2007-04-19 19:06 ` [Bug c++/31579] [4.3 regression] " bangerth at dealii dot org
@ 2007-04-19 19:10 ` pinskia at gcc dot gnu dot org
2007-04-19 19:15 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-19 19:10 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|i686-pc-linux-gnu |
GCC host triplet|i686-pc-linux-gnu |
GCC target triplet|i686-pc-linux-gnu |
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31579
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31579] [4.3 regression] ICE when compiling attached code
2007-04-15 16:21 [Bug c++/31579] New: ICE when compiling attached code us15 at os dot inf dot tu-dresden dot de
` (3 preceding siblings ...)
2007-04-19 19:10 ` pinskia at gcc dot gnu dot org
@ 2007-04-19 19:15 ` pinskia at gcc dot gnu dot org
2007-06-07 2:55 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-19 19:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2007-04-19 20:15 -------
(In reply to comment #3)
> Confirmed. This is a regression on at least mainline. I don't
> have my set of compilers around here to verify if it is also a
> regression on 4.1 and 4.2.x. It seems to work with 4.0.x.
I tried it out with 4.1.1 and 4.2.0 and it works there.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Known to work|4.1.1 |4.1.1 4.2.0
Last reconfirmed|0000-00-00 00:00:00 |2007-04-19 20:15:32
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31579
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/31579] [4.3 regression] ICE when compiling attached code
2007-04-15 16:21 [Bug c++/31579] New: ICE when compiling attached code us15 at os dot inf dot tu-dresden dot de
` (4 preceding siblings ...)
2007-04-19 19:15 ` pinskia at gcc dot gnu dot org
@ 2007-06-07 2:55 ` pinskia at gcc dot gnu dot org
2007-06-12 1:31 ` [Bug middle-end/31579] " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-07 2:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2007-06-07 02:55 -------
I have a fix, I fixed this one already on the pointer_plus branch and I did not
know there was a way to invoke this bug on the trunk.
2007-05-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
* expr.c (expand_expr_addr_expr_1): Call expand_expr
for the offset with the modifier as EXPAND_INITIALIZER
if the modifier is EXPAND_INITIALIZER.
(expand_expr_real_1 <case INTEGER_CST>): Don't force to
a register if we had an overflow.
http://gcc.gnu.org/ml/gcc-patches/2007-05/msg00841.html
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31579
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/31579] [4.3 regression] ICE when compiling attached code
2007-04-15 16:21 [Bug c++/31579] New: ICE when compiling attached code us15 at os dot inf dot tu-dresden dot de
` (5 preceding siblings ...)
2007-06-07 2:55 ` pinskia at gcc dot gnu dot org
@ 2007-06-12 1:31 ` pinskia at gcc dot gnu dot org
2007-06-12 19:16 ` pinskia at gcc dot gnu dot org
2007-06-12 19:16 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-12 1:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2007-06-12 01:31 -------
Patch posted:
http://gcc.gnu.org/ml/gcc-patches/2007-06/msg00745.html
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2007-
| |06/msg00745.html
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31579
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/31579] [4.3 regression] ICE when compiling attached code
2007-04-15 16:21 [Bug c++/31579] New: ICE when compiling attached code us15 at os dot inf dot tu-dresden dot de
` (6 preceding siblings ...)
2007-06-12 1:31 ` [Bug middle-end/31579] " pinskia at gcc dot gnu dot org
@ 2007-06-12 19:16 ` pinskia at gcc dot gnu dot org
2007-06-12 19:16 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-12 19:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pinskia at gcc dot gnu dot org 2007-06-12 19:16 -------
Subject: Bug 31579
Author: pinskia
Date: Tue Jun 12 19:15:50 2007
New Revision: 125655
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125655
Log:
2007-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/31579
* expr.c (expand_expr_addr_expr_1): Call expand_expr
for the offset with the modifier as EXPAND_INITIALIZER
if the modifier is EXPAND_INITIALIZER.
(expand_expr_real_1 <case INTEGER_CST>): Don't force to
a register if we had an overflow.
2007-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/31579
* g++.dg/torture/pr31579.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr31579.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/expr.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31579
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/31579] [4.3 regression] ICE when compiling attached code
2007-04-15 16:21 [Bug c++/31579] New: ICE when compiling attached code us15 at os dot inf dot tu-dresden dot de
` (7 preceding siblings ...)
2007-06-12 19:16 ` pinskia at gcc dot gnu dot org
@ 2007-06-12 19:16 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-12 19:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2007-06-12 19:16 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31579
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-06-12 19:16 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-15 16:21 [Bug c++/31579] New: ICE when compiling attached code us15 at os dot inf dot tu-dresden dot de
2007-04-15 16:23 ` [Bug c++/31579] " us15 at os dot inf dot tu-dresden dot de
2007-04-16 6:56 ` pinskia at gcc dot gnu dot org
2007-04-19 19:06 ` [Bug c++/31579] [4.3 regression] " bangerth at dealii dot org
2007-04-19 19:10 ` pinskia at gcc dot gnu dot org
2007-04-19 19:15 ` pinskia at gcc dot gnu dot org
2007-06-07 2:55 ` pinskia at gcc dot gnu dot org
2007-06-12 1:31 ` [Bug middle-end/31579] " pinskia at gcc dot gnu dot org
2007-06-12 19:16 ` pinskia at gcc dot gnu dot org
2007-06-12 19:16 ` 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).