This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: more strict-aliasing questions


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]