[Bug target/33374] GCC 4.1.2 produce wrong assembler code with -O2 option enabled.
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 11 20:28:00 GMT 2007
------- Comment #5 from bangerth at dealii dot org 2007-09-11 20:28 -------
This code is certainly undefined and violates all sorts of type
correctness rules. In essence you write code that violates the language
standards -- using -fno-strict-aliasing is only a workaround and you should
fix your code.
You may want to try to rewrite your code so that you don't need all those
type casts. It isn't particularly hard to write a doubly-linked list without
any type casts at all.
W.
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at dealii dot org
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33374
More information about the Gcc-bugs
mailing list