This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: type based aliasing again
- To: Nick Ing-Simmons <nik at tiuk dot ti dot com>
- Subject: Re: type based aliasing again
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Wed, 15 Sep 1999 18:33:41 -0400
- Cc: N8TM at aol dot com, richard dot earnshaw at arm dot com, gcc at gcc dot gnu dot org, espie at quatramaran dot ens dot fr, craig at jcb-sc dot com
>>>>> Nick Ing-Simmons writes:
Nick> How about making -fstrict-aliasing implied by -ansi/-iso ;-)
This is an interesting and good proposal. The problem that I see
is GCC currently uses that flag differently. The flag currently disables
GCC extensions that are not allowed by a strictly-conforming ANSI/ISO
program.
We already have -Os for space optimiation. Maybe we need -Oa or
-Oansi or -Oiso for the user to give assurances that the program is
standards-compliant. This would allow an umbrella optimization flag to
attach many of these optimizations requiring strict conformance to operate
correctly.
David