This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20794] [4.0/4.1 Regression] Miscompilation with __attribute ((aligned))
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Apr 2005 18:00:10 -0000
- Subject: [Bug middle-end/20794] [4.0/4.1 Regression] Miscompilation with __attribute ((aligned))
- References: <20050406144601.20794.jakub@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-04-07 18:00 -------
Yes, I still think that we ought to declare this invalid code.
If a particular front end (e.g., Ada) wants to adjust the types of the array
elements, etc., that's its business -- but the C/C++ front-ends should not. And
the middle end should be able to expect that the size of the elements is at
least as large as their alignments.
I think that once we agree on this, actually issuing the error will be easy to
do. And, once we agree, we should change this PR to accepts-invalid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20794