This is the mail archive of the gcc-patches@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]

Re: g++ 3.1 EH broken for irix6.5


On Fri, Jun 29, 2001 at 07:59:53AM -0400, Richard Kenner wrote:
> Hardly!  *Very* few programs would notice a change in alignment of a
> struct or union.  You have to go to extremes to construct a case where
> it will even be visible, much less matter.

Not at all.  All you have to do is pass a pointer to such 
a struct to a function in a different translation unit,
compiled with a different compiler.

If the first object file puts the struct on the stack at
the wrong alignment, then the second object file may SIGBUS.


r~


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