This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/33292] optimizer optimizes out a piece of code
- From: "nicolas at dyalog dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2007 14:07:52 -0000
- Subject: [Bug c/33292] optimizer optimizes out a piece of code
- References: <bug-33292-15058@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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