This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: [RFC] Removing -fpack-struct in C++ for 4.0
- From: "Dave Korn" <dk at artimi dot com>
- To: "'Giovanni Bajo'" <giovannibajo at libero dot it>,"'Andrew Haley'" <aph at redhat dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Thu, 7 Oct 2004 14:15:42 +0100
- Subject: RE: [RFC] Removing -fpack-struct in C++ for 4.0
> -----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....