This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25235] byte swapping unreliable in optimized builds
- From: "cdfrey at netdirect dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Dec 2005 00:32:26 -0000
- Subject: [Bug c++/25235] byte swapping unreliable in optimized builds
- References: <bug-25235-11813@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from cdfrey at netdirect dot ca 2005-12-03 00:32 -------
Thanks for the info!
I can understand the examples in the article at
http://mail-index.netbsd.org/tech-kern/2003/08/11/0001.html but with my example
source code in this bug report, I can't seem to follow the optimization path
that results in what I'm seeing.
I understand that the optimizer can ignore duplicated code, or unnecessary
code, but conv and d2 need to be initialized somehow, and if the compiler
doesn't use the code that's there, what does it use?
A warning would be really nice.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25235