re PR target/34000 (GCC pedwarns about use of static inline functions from system...
authorUros Bizjak <ubizjak@gmail.com>
Thu, 13 Mar 2008 13:33:47 +0000 (14:33 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 13 Mar 2008 13:33:47 +0000 (14:33 +0100)
commit1359ef39755c2a648c44e410e974450d91a4bd99
tree0ca19fa288a9af69b989a25372e7675c5943fbe1
parent5d2edb29da34b654ab66139c12280eae688970bb
re PR target/34000 (GCC pedwarns about use of static inline functions from system headers in extern inline functions)

PR target/34000
PR target/35553
* config/i386/xmmintrin.h: Change all static inline functions to
extern inline and add __gnu_inline__ attribute.
* 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.
* config/i386/pmmintrin.h: Ditto.
* config/i386/mmintrin.h: Ditto.
* config/i386/mm3dnow.h: Ditto.

testsuite/ChangeLog:

PR target/34000
PR target/35553
* g++.dg/other/i386-3.C: New test.
* gcc.target/i386/sse-13.c: Redefine extern instead of static.
* gcc.target/i386/sse-14.c: Ditto.
* gcc.target/i386/mmx-1.c: Ditto.
* gcc.target/i386/mmx-2.c: Ditto.
* gcc.target/i386/3dnow-1.c: Ditto.
* gcc.target/i386/3dnow-2.c: Ditto.
* gcc.target/i386/3dnowA-1.c: Ditto.
* gcc.target/i386/3dnowA-2.c: Ditto.

From-SVN: r133169
21 files changed:
gcc/ChangeLog
gcc/config/i386/ammintrin.h
gcc/config/i386/bmmintrin.h
gcc/config/i386/emmintrin.h
gcc/config/i386/mm3dnow.h
gcc/config/i386/mmintrin-common.h
gcc/config/i386/mmintrin.h
gcc/config/i386/pmmintrin.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]
gcc/testsuite/gcc.target/i386/3dnow-1.c
gcc/testsuite/gcc.target/i386/3dnow-2.c
gcc/testsuite/gcc.target/i386/3dnowA-1.c
gcc/testsuite/gcc.target/i386/3dnowA-2.c
gcc/testsuite/gcc.target/i386/mmx-1.c
gcc/testsuite/gcc.target/i386/mmx-2.c
gcc/testsuite/gcc.target/i386/sse-13.c
gcc/testsuite/gcc.target/i386/sse-14.c