This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: more strict-aliasing questions
- From: Andrew Haley <aph at redhat dot com>
- To: howarth at bromo dot msbb dot uc dot edu (Jack Howarth)
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 5 Dec 2005 18:10:02 +0000
- Subject: Re: more strict-aliasing questions
- References: <20051205180105.76F591DC06D@bromo.msbb.uc.edu>
Jack Howarth writes:
> My second question is how univeral are the strict-aliasing
> rules used by gcc?
They are applicable to every compiler that implements ISO C++. In
other words, code that violates aliasing constrains is not legal C++.
> In other words, is it safe to say that by correcting source code
> upstream to not violate any of the strict-aliasing rules in gcc
> trunk that such code might achieve stability benefits as well on
> other third party compilers?
Yes.
Andrew.