------- 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