------- Comment #3 from alexandre dot nunes at gmail dot com 2008-02-08 20:48 ------- (In reply to comment #2) > Also using a volatile pointer may prevent optimization, so don't use it if > not strictly needed (or at least don't expect optimized code). >
Sorry for lefting it in there: Tought the above code snippet was from real code that writes to a hardware register, the compiler generates exactly the same output with or without the volatile, thus that's irrelevant for this bug report. I hope I don't confuse testing on future compiler versions, where it may end up making any difference. > Can you try 4.3 as suggested? > Yes, if/when I can get it to compile. I'll post back in a few days. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35141