This is the mail archive of the
mailing list for the GCC project.
Re: Clarification anyone? -- was Re: Linux and aliasing?
- To: nik at tiuk dot ti dot com
- Subject: Re: Clarification anyone? -- was Re: Linux and aliasing?
- From: mark at codesourcery dot com
- Date: Tue, 08 Jun 1999 10:45:53 -0700
- Cc: tim at franck dot Princeton dot EDU, egcs at egcs dot cygnus dot com, george at moberg dot com
- Organization: CodeSourcery, LLC
- References: <199906081731.KAA16675@franck.Princeton.EDU><199906081732.SAA13273@tiuk.ti.com>
>>>>> "Nick" == Nick Ing-Simmons <firstname.lastname@example.org> writes:
Nick> I assume unions are exempt from this?
Somewhat. Please see the manual section I just posted for more
Nick> What is proposed is that any mem-assign can be considered to
Nick> "clobber" any value of the same type, and an assign via a
Nick> char * to clobber anything ?
Nick> And thus problem is that if I do this:
Nick> int a; *((short *) &a) = 123;
Nick> Then 'a' is not considered clobbered?
Nick> Even in the same function?
Mark Mitchell email@example.com
CodeSourcery, LLC http://www.codesourcery.com