Re: RFA and RFC: tweak -fstrict-aliasing docs, provide pointer-cast example

2008-06-25 Thread Gabriel Dos Reis
On Wed, Jun 25, 2008 at 10:43 AM, Andrew Haley <[EMAIL PROTECTED]> wrote: > Gabriel Dos Reis wrote: >> On Wed, Jun 25, 2008 at 9:49 AM, Andrew Haley <[EMAIL PROTECTED]> wrote: >>> Richard Guenther wrote: > >>> The C++ standard calls this a type pun, so -- with all due respect -- I'm >> >> The C++ s

Re: RFA and RFC: tweak -fstrict-aliasing docs, provide pointer-cast example

2008-06-25 Thread Andrew Haley
Gabriel Dos Reis wrote: > On Wed, Jun 25, 2008 at 9:49 AM, Andrew Haley <[EMAIL PROTECTED]> wrote: >> Richard Guenther wrote: >> The C++ standard calls this a type pun, so -- with all due respect -- I'm > > The C++ standard does not actually call it a type pun, but I think I > understand what you

Re: RFA and RFC: tweak -fstrict-aliasing docs, provide pointer-cast example

2008-06-25 Thread Gabriel Dos Reis
On Wed, Jun 25, 2008 at 9:49 AM, Andrew Haley <[EMAIL PROTECTED]> wrote: > Richard Guenther wrote: >> On Wed, Jun 25, 2008 at 4:04 PM, Andrew Haley <[EMAIL PROTECTED]> wrote: >>> Hans-Peter Nilsson wrote: > Date: Tue, 24 Jun 2008 10:36:15 +0100 > From: Andrew Haley <[EMAIL PROTECTED]> >

Re: RFA and RFC: tweak -fstrict-aliasing docs, provide pointer-cast example

2008-06-25 Thread Andrew Haley
Richard Guenther wrote: > On Wed, Jun 25, 2008 at 4:04 PM, Andrew Haley <[EMAIL PROTECTED]> wrote: >> Hans-Peter Nilsson wrote: Date: Tue, 24 Jun 2008 10:36:15 +0100 From: Andrew Haley <[EMAIL PROTECTED]> I thought cast-through-pointer-to-union didn't work and was already disall

Re: RFA and RFC: tweak -fstrict-aliasing docs, provide pointer-cast example

2008-06-25 Thread Richard Guenther
On Wed, Jun 25, 2008 at 4:04 PM, Andrew Haley <[EMAIL PROTECTED]> wrote: > Hans-Peter Nilsson wrote: >>> Date: Tue, 24 Jun 2008 10:36:15 +0100 >>> From: Andrew Haley <[EMAIL PROTECTED]> >> >>> I thought cast-through-pointer-to-union didn't work and was already >>> disallowed; we've been around all

Re: RFA and RFC: tweak -fstrict-aliasing docs, provide pointer-cast example

2008-06-25 Thread Andrew Haley
Hans-Peter Nilsson wrote: >> Date: Tue, 24 Jun 2008 10:36:15 +0100 >> From: Andrew Haley <[EMAIL PROTECTED]> > >> I thought cast-through-pointer-to-union didn't work and was already >> disallowed; we've been around all this already. > > We also bless assignments through unions, and this could be

Re: RFA and RFC: tweak -fstrict-aliasing docs, provide pointer-cast example

2008-06-24 Thread Joseph S. Myers
On Tue, 24 Jun 2008, Hans-Peter Nilsson wrote: > There's background in > . Neither > Richi nor me could find the union-assignment "gcc extension" at > a glance, probably because it's not an *extension* but an > implementation-defined behavior, an

Re: RFA and RFC: tweak -fstrict-aliasing docs, provide pointer-cast example

2008-06-24 Thread Hans-Peter Nilsson
> Date: Tue, 24 Jun 2008 10:36:15 +0100 > From: Andrew Haley <[EMAIL PROTECTED]> > I thought cast-through-pointer-to-union didn't work and was already > disallowed; we've been around all this already. We also bless assignments through unions, and this could be argued as assigning through a union,

Re: RFA and RFC: tweak -fstrict-aliasing docs, provide pointer-cast example

2008-06-24 Thread Andrew Haley
Hans-Peter Nilsson wrote: > There's background in > . Neither > Richi nor me could find the union-assignment "gcc extension" at > a glance, probably because it's not an *extension* but an > implementation-defined behavior, and actually duly docume

RFA and RFC: tweak -fstrict-aliasing docs, provide pointer-cast example

2008-06-23 Thread Hans-Peter Nilsson
There's background in . Neither Richi nor me could find the union-assignment "gcc extension" at a glance, probably because it's not an *extension* but an implementation-defined behavior, and actually duly documented as such. However, to cross-ref