This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][i386]Fix PR 57756


Sriraman,

The tests gcc.target/i386/funcspec-5.c and gcc.target/i386/pr57756.c fail 
on targets for which -msse is the default (see
http://gcc.gnu.org/ml/gcc-testresults/2013-10/msg01365.html or
http://gcc.gnu.org/ml/gcc-testresults/2013-10/msg01345.html ).

This is fixed with the following patch:

diff -up ../_clean/gcc/testsuite/gcc.target/i386/funcspec-5.c gcc/testsuite/gcc.target/i386/funcspec-5.c
--- ../_clean/gcc/testsuite/gcc.target/i386/funcspec-5.c	2011-08-23 21:54:27.000000000 +0200
+++ gcc/testsuite/gcc.target/i386/funcspec-5.c	2013-10-17 09:45:20.000000000 +0200
@@ -2,6 +2,7 @@
    without error.  */
 /* { dg-do compile } */
 /* { dg-require-effective-target ia32 } */
+/* { dg-options "-mno-sse" } */
 
 extern void test_abm (void)			__attribute__((__target__("abm")));
 extern void test_aes (void)			__attribute__((__target__("aes")));
diff -up ../_clean/gcc/testsuite/gcc.target/i386/pr57756.c gcc/testsuite/gcc.target/i386/pr57756.c
--- ../_clean/gcc/testsuite/gcc.target/i386/pr57756.c	2013-10-15 23:53:31.000000000 +0200
+++ gcc/testsuite/gcc.target/i386/pr57756.c	2013-10-17 09:46:53.000000000 +0200
@@ -1,6 +1,7 @@
 /* callee cannot be inlined into caller because it has a higher
    target ISA.  */
 /* { dg-do compile } */
+/* { dg-options "-mno-sse" } */
 
 __attribute__((always_inline,target("sse4.2")))
 __inline int callee () /* { dg-error "inlining failed in call to always_inline" }  */

My apologies if this has already reported in the thread (I may have missed some posts).

Dominique


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]