This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/42830] Inlining changes semantics when strict aliasing optimization is enabled
- From: "gary at intrepid dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2010 16:30:47 -0000
- Subject: [Bug c/42830] Inlining changes semantics when strict aliasing optimization is enabled
- References: <bug-42830-9975@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from gary at intrepid dot com 2010-01-21 16:30 -------
(In reply to comment #1)
> Created an attachment (id=19682)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19682&action=view) [edit]
> Test case to demonstate interaction between inlining and strict-aliasing
> optimization
This test case is excerpted from production code that used config. tests and
#ifdef's to ensure that all types in the anytype_32_t union were all 32 bit
types. The test case can be improved to be more portable (and not depend upon
(sizeof(int) == sizeof(float) == 4). A quick fix to simply drop 'float' from
the union.
--
gary at intrepid dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gary at intrepid dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42830