This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/20794] [4.0/4.1 Regression] Miscompilation with __attribute ((aligned))


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]