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]

[Bug middle-end/28042] optimizer (-O2) changes the semantics of my programs



------- Comment #4 from tonyg-gccbugzilla at lshift dot net  2006-06-16 09:28 -------
Even better, if you remove the redundant parens, so that the program reads 

...
    if ((integerValue >= 0)
        && (integerValue >= -1073741824) && (integerValue < 1073741824)) {
...


then the optimizer generates code correctly! (How on earth can paren placement
affect code generation???)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28042


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