This is the mail archive of the gcc-bugs@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: gcc 4.0.0 on amd64: problem with -O2?



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


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