On May 7, 2005, at 3:25 PM, Harald Dunkel wrote:
Andrew Pinski wrote:
Stop right there, you said it warns, well this is a case where you are violating C89/C99/C++ aliasing rules so it is a bug in your code and not in GCC.
This is not my code. It is XFree86 4.3. I am just trying to help by investigating a problem and providing an easy testcase.
If you read my report, then you will recognize that it is a problem of the optimizer.
Wrong, try again. Violating aliasing rules cause undefined behavior so seg faulting is an okay thing to do.
-- Pinski