This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35553] -fkeep-inline-functions and -O errors out in SSE headers
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2008 18:33:33 -0000
- Subject: [Bug c++/35553] -fkeep-inline-functions and -O errors out in SSE headers
- References: <bug-35553-11646@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from ubizjak at gmail dot com 2008-03-12 18:33 -------
I guess we should use something like:
Index: i386.h
===================================================================
--- i386.h (revision 133145)
+++ i386.h (working copy)
@@ -691,6 +691,10 @@
builtin_define ("__SSE_MATH__"); \
if (TARGET_SSE_MATH && TARGET_SSE2) \
builtin_define ("__SSE2_MATH__"); \
+ \
+ /* Define inline functions with immediate arguments. */ \
+ if (optimize && !flag_keep_inline_functions) \
+ builtin_define ("__SSE_USE_INLINED_FUNC__"); \
} \
while (0)
In addition to this change, every #ifdef __OPTIMIZE__ should be changed to
#ifdef __SSE_USE__INLINED_FUNC__ through MMX/SSE include files.
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ubizjak at gmail dot com
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-03-12 18:33:33
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35553