[RFC] Removing -fpack-struct in C++ for 4.0
Dave Korn
dk@artimi.com
Thu Oct 7 17:01:00 GMT 2004
> -----Original Message-----
> From: Giovanni Bajo
> Sent: 07 October 2004 14:06
> Dave Korn wrote:
>
> > Yeh, it's used in embedded code, and it's handy for accessing data
> > structs that may be sent at arbitrary alignment in a stream of
> > network or file data.
>
> The same can be done with either pragma pack or
> attribute((packed)). But this way you can [...snip!]
Yep, I know all that, which is why I said....
> Let's not get into a discussion about how bad someone's engineering
> practices would be if they wanted to use C++ in an embedded system and
> -fpack-structs to allow unaligned accesses; it's not the compiler's job
> to mandate good development methodology amongst the users.
I'm not going to object very strongly. If you really want rid of it, get
rid of it; it's not a flag that I ever use, so I have no personal interest
in the matter. But I do think people will complain.
cheers,
DaveK
--
Can't think of a witty .sigline today....
More information about the Gcc
mailing list