[Bug middle-end/20794] [4.0/4.1 Regression] Miscompilation with __attribute ((aligned))
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Sun Apr 17 11:04:00 GMT 2005
------- Additional Comments From joseph at codesourcery dot com 2005-04-17 11:04 -------
Subject: Re: [4.0/4.1 Regression] Miscompilation with
__attribute ((aligned))
On Sun, 17 Apr 2005, mark at codesourcery dot com wrote:
> > The obvious options include:
> >
> > * Make a new type of larger size to match the alignment whenever e.g. an
> > 8-byte-aligned-int is requested. (Probably breaks too much.)
> >
> > * Disallow arrays of extra-aligned types, and array references and pointer
> > arithmetic on such types; either with an error, or with a warning and removal of
> > the "aligned" attribute (in the case of arrays, attaching it to the array; in
> > the case of pointers, causing the results of the arithmetic to have the ordinary
> > type without alignment).
>
> As a C front-end maintainer, which of these options do you prefer? It
> sounds like you, like me, favor the second option, but I'd like to be sure.
I'd prefer the second option.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20794
More information about the Gcc-bugs
mailing list