re PR c++/35553 (-fkeep-inline-functions and -O errors out in SSE headers)
authorUros Bizjak <ubizjak@gmail.com>
Thu, 13 Mar 2008 09:49:43 +0000 (10:49 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 13 Mar 2008 09:49:43 +0000 (10:49 +0100)
commit8a6c843029229e6d289b1a0f31eedbceb3f73d62
tree00e1a4f280957573f0753c2ca1663b6b508d2af3
parent22aee8c5a9dabc4d5a716eaa0a6a65e71c4e0f03
re PR c++/35553 (-fkeep-inline-functions and -O errors out in SSE headers)

PR target/35553
* config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
__SSE_USE_INLINED_FUNC__ when using -flag-keep-inline-functions
together with optimization.
* config/i386/xmmintrin.h: Use __SSE_USE_INLINED_FUNC__ instead of
__OPTIMIZE__ to choose between inlined intrinsic SSE function having
immediate arguments and its equivalent macro definition.
* config/i386/bmintrin.h: Ditto.
* config/i386/smmintrin.h: Ditto.
* config/i386/tmmintrin.h: Ditto.
* config/i386/mmintrin-common.h: Ditto.
* config/i386/ammintrin.h: Ditto.
* config/i386/emmintrin.h: Ditto.

testsuite/ChangeLog:

PR target/35553
* g++.dg/other/i386-3.C: New test.

From-SVN: r133164
gcc/ChangeLog
gcc/config/i386/ammintrin.h
gcc/config/i386/bmmintrin.h
gcc/config/i386/emmintrin.h
gcc/config/i386/i386.h
gcc/config/i386/mmintrin-common.h
gcc/config/i386/smmintrin.h
gcc/config/i386/tmmintrin.h
gcc/config/i386/xmmintrin.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/i386-3.C [new file with mode: 0644]