This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/16670] struct { type:0; } passing bugs
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Sep 2004 16:26:30 -0000
- Subject: [Bug middle-end/16670] struct { type:0; } passing bugs
- References: <20040722101856.16670.jakub@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-09-27 16:26 -------
The bug seems to be fixed on mainline by Roger's patch
http://gcc.gnu.org/ml/gcc-cvs/2004-09/msg01232.html
I can only test i686-pc-linux-gnu, though.
The question is whether to apply this patch to the 3.4 and 3.3 branch
as well, although the problem is not really a regression.
I'd vote for fixing this on the 3.4 branch and the 3.3 branch as well, since
a) the code seems to be the same on those branches, i.e. a backport seems
to be trivial
b) the bug is really a bad one: Sometimes it shows as wrong-code,
sometimes the compiler crashes depending on the optimization switches
(it crashes since 3.0 when compiled with -Os, but gives wrong code
when compiled with -O0 for some versions and works fine with -O3).
This makes it really painful to track down the bug.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |sayle at gcc dot gnu dot
| |org, gdr at gcc dot gnu dot
| |org, mark at codesourcery
| |dot com, reichelt at gcc dot
| |gnu dot org
Keywords| |ice-on-valid-code
Known to fail|2.95.3 3.0.4 3.2.3 3.3.3 |2.95.3 3.0.4 3.2.3 3.3.3
|3.4.0 4.0 |3.4.0
Known to work| |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16670