more strict-aliasing questions

Andrew Haley aph@redhat.com
Mon Dec 5 18:10:00 GMT 2005


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.



More information about the Gcc mailing list