[Bug c/33292] optimizer optimizes out a piece of code
nicolas at dyalog dot com
gcc-bugzilla@gcc.gnu.org
Mon Sep 3 14:08:00 GMT 2007
------- Comment #2 from nicolas at dyalog dot com 2007-09-03 14:07 -------
after a bit more work it seems optimized out because diff64() doesn't observe
strict aliasing...
that was tricky because it was not the diff64() code that was snipped out but
TimeValToFileTime()...
I think the compiler should either warn (strict aliasing) in diff64, or not
remove TimeValToFileTime()...
Or did I miss something ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33292
More information about the Gcc-bugs
mailing list