This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] x86: slightly tighten MMX/SSE inline tests
- From: "Jan Beulich" <jbeulich at novell dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 27 Feb 2008 07:41:53 +0000
- Subject: [PATCH] x86: slightly tighten MMX/SSE inline tests
This change, back in 3.x or early 4.x, helped spotting missing
conditionals in the MMX/SSE headers. Unfortunately, the change to make
sse-13.c and sse-14.c simply cover all SSE headers at once (instead of
doing incremental tests) now defeats part of the purpose of the patch,
but I think it is appropriate to add the extra option anyway.
Built and tested on i686-pc-linux-gnu and x86_64-unknown-linux-gnu.
gcc/testsuite/
2008-02-27 Jan Beulich <jbeulich@novell.com>
* gcc.target/i386/mmx-1.c: Add
-Werror-implicit-function-declaration to dg-options.
* gcc.target/i386/mmx-2.c: Likewise.
* gcc.target/i386/sse-13.c: Likewise.
* gcc.target/i386/sse-14.c: Likewise.
--- 2008-02-25/gcc/testsuite/gcc.target/i386/mmx-1.c 2008-02-22 10:22:28.000000000 +0100
+++ 2008-02-25/gcc/testsuite/gcc.target/i386/mmx-1.c 2008-02-26 09:37:30.000000000 +0100
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -mmmx" } */
+/* { dg-options "-O2 -Werror-implicit-function-declaration -mmmx" } */
/* Test that the intrinsics compile with optimization. All of them are
defined as inline functions in mmintrin.h that reference the proper
--- 2008-02-25/gcc/testsuite/gcc.target/i386/mmx-2.c 2008-02-22 10:22:28.000000000 +0100
+++ 2008-02-25/gcc/testsuite/gcc.target/i386/mmx-2.c 2008-02-26 09:37:30.000000000 +0100
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O0 -mmmx" } */
+/* { dg-options "-O0 -Werror-implicit-function-declaration -mmmx" } */
/* Test that the intrinsics compile without optimization. All of them are
defined as inline functions in mmintrin.h that reference the proper
--- 2008-02-25/gcc/testsuite/gcc.target/i386/sse-13.c 2008-02-22 10:22:28.000000000 +0100
+++ 2008-02-25/gcc/testsuite/gcc.target/i386/sse-13.c 2008-02-26 09:37:30.000000000 +0100
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -march=k8 -m3dnow -msse4 -msse5" } */
+/* { dg-options "-O2 -Werror-implicit-function-declaration -march=k8 -m3dnow -msse4 -msse5" } */
/* Test that the intrinsics compile with optimization. All of them are
defined as inline functions in {,x,e,p,t,s,a,b}mmintrin.h and mm3dnow.h
--- 2008-02-25/gcc/testsuite/gcc.target/i386/sse-14.c 2008-02-22 10:22:28.000000000 +0100
+++ 2008-02-25/gcc/testsuite/gcc.target/i386/sse-14.c 2008-02-26 09:37:30.000000000 +0100
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O0 -march=k8 -m3dnow -msse4 -msse5" } */
+/* { dg-options "-O0 -Werror-implicit-function-declaration -march=k8 -m3dnow -msse4 -msse5" } */
/* Test that the intrinsics compile without optimization. All of them are
defined as inline functions in {,x,e,p,t,s,a,b}mmintrin.h and mm3dnow.h