aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2019-09-12 19:26:49 +0000
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2019-09-12 19:26:49 +0000
commit3ce68fc697bbc3614e27d6d442d8f76ffeea1d83 (patch)
treebf5154efa82b0a80bdf2ccbbe27baec3734901bc
parent570a09ad03a0dc167e491b34b20eb903c7a693ca (diff)
[Darwin, X86, testsuite] Adjust test for Darwin's align syntax.
Darwin has a .align taking a power of 2 by default, so that some tests expecting a byte count are failing, fixed by adjusting the scan-asms. We also avoid the ABI-mandated indirection for common and PIC extras for m32 (by adjusting compile options). 2019-09-12 Iain Sandoe <iain@sandoe.co.uk> Backport from mainline. 2019-05-27 Iain Sandoe <iain@sandoe.co.uk> * gcc.target/i386/pr22076.c: Adjust options to match codegen expected by the scan-asms. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@275690 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog8
-rw-r--r--gcc/testsuite/gcc.target/i386/pr22076.c4
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4fe02996465..debbdab9fa0 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2019-09-12 Iain Sandoe <iain@sandoe.co.uk>
+
+ Backport from mainline.
+ 2019-05-27 Iain Sandoe <iain@sandoe.co.uk>
+
+ * gcc.target/i386/pr22076.c: Adjust options to
+ match codegen expected by the scan-asms.
+
2019-09-12 Paul Thomas <pault@gcc.gnu.org>
PR fortran/91686
diff --git a/gcc/testsuite/gcc.target/i386/pr22076.c b/gcc/testsuite/gcc.target/i386/pr22076.c
index e9916c9a583..d31ffa584b4 100644
--- a/gcc/testsuite/gcc.target/i386/pr22076.c
+++ b/gcc/testsuite/gcc.target/i386/pr22076.c
@@ -1,6 +1,8 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fomit-frame-pointer -flax-vector-conversions -mmmx" } */
-/* { dg-options "-O2 -fomit-frame-pointer -flax-vector-conversions -mmmx -mno-vect8-ret-in-mem" { target *-*-vxworks* } } */
+/* { dg-additional-options "-mno-vect8-ret-in-mem" { target *-*-vxworks* } } */
+/* { dg-additional-options "-fno-common" { target *-*-darwin* } } */
+/* { dg-additional-options "-mdynamic-no-pic" { target { ia32 && *-*-darwin* } } } */
#include <mmintrin.h>