darwin, testsuite, fix more PR 82920
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 14 May 2019 20:36:18 +0000 (20:36 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Tue, 14 May 2019 20:36:18 +0000 (20:36 +0000)
Darwin doesn't support mx32, and some tests were
failing because it was trying to do them.  When we
disable this it turns out that quite a few tests
requiring mx32 support were not guarded.

gcc/

2019-05-14  Iain Sandoe  <iain@sandoe.co.uk>

PR target/82920
* config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
Darwin.

gcc/testsuite/

2019-05-14  Iain Sandoe  <iain@sandoe.co.uk>

PR target/82920
* gcc.target/i386/cet-sjlj-6b.c: Require effective target x32.
* gcc.target/i386/pr52146.c: Likewise.
* gcc.target/i386/pr52698.c: Likewise.
* gcc.target/i386/pr52857-1.c: Likewise.
* gcc.target/i386/pr52857-2.c: Likewise.
* gcc.target/i386/pr52876.c: Likewise.
* gcc.target/i386/pr53698.c: Likewise.
* gcc.target/i386/pr54157.c: Likewise.
* gcc.target/i386/pr55049-1.c: Likewise.
* gcc.target/i386/pr55093.c: Likewise.
* gcc.target/i386/pr55116-1.c: Likewise.
* gcc.target/i386/pr55116-2.c: Likewise.
* gcc.target/i386/pr55597.c: Likewise.
* gcc.target/i386/pr59929.c: Likewise.
* gcc.target/i386/pr66470.c: Likewise.

From-SVN: r271190

18 files changed:
gcc/ChangeLog
gcc/config/i386/darwin.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/cet-sjlj-6b.c
gcc/testsuite/gcc.target/i386/pr52146.c
gcc/testsuite/gcc.target/i386/pr52698.c
gcc/testsuite/gcc.target/i386/pr52857-1.c
gcc/testsuite/gcc.target/i386/pr52857-2.c
gcc/testsuite/gcc.target/i386/pr52876.c
gcc/testsuite/gcc.target/i386/pr53698.c
gcc/testsuite/gcc.target/i386/pr54157.c
gcc/testsuite/gcc.target/i386/pr55049-1.c
gcc/testsuite/gcc.target/i386/pr55093.c
gcc/testsuite/gcc.target/i386/pr55116-1.c
gcc/testsuite/gcc.target/i386/pr55116-2.c
gcc/testsuite/gcc.target/i386/pr55597.c
gcc/testsuite/gcc.target/i386/pr59929.c
gcc/testsuite/gcc.target/i386/pr66470.c

index 259d9d52b61001b4d871117e8fe545033ccc6c12..1b0666f489c1ee4aa18d4116ec30e2b623b5cec9 100644 (file)
@@ -1,3 +1,9 @@
+2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
+
+       PR target/82920
+       * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
+       Darwin.
+
 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
index d8e72ec69a57fc228ea933443467c454f557b518..fe11ec9efac33c7a40450b585c9c4146fb02e302 100644 (file)
@@ -131,7 +131,8 @@ extern int darwin_emit_branch_islands;
 #undef CC1_SPEC
 #define CC1_SPEC "%(cc1_cpu) \
   %{!mkernel:%{!static:%{!mdynamic-no-pic:-fPIC}}} \
-  %{g: %{!fno-eliminate-unused-debug-symbols: -feliminate-unused-debug-symbols }} " \
+  %{g: %{!fno-eliminate-unused-debug-symbols: -feliminate-unused-debug-symbols }} \
+  %{mx32:%eDarwin is not an mx32 platform}" \
   DARWIN_CC1_SPEC
 
 #undef ASM_SPEC
index 15c9e5495af5eaeea5962e3734e108ec73abecf6..caa0de956ff6f6690ac485c8e59a18ebb97b5b22 100644 (file)
@@ -1,3 +1,22 @@
+2019-05-14  Iain Sandoe  <iain@sandoe.co.uk>
+
+       PR target/82920
+       * gcc.target/i386/cet-sjlj-6b.c: Require effective target x32.
+       * gcc.target/i386/pr52146.c: Likewise.
+       * gcc.target/i386/pr52698.c: Likewise.
+       * gcc.target/i386/pr52857-1.c: Likewise.
+       * gcc.target/i386/pr52857-2.c: Likewise.
+       * gcc.target/i386/pr52876.c: Likewise.
+       * gcc.target/i386/pr53698.c: Likewise.
+       * gcc.target/i386/pr54157.c: Likewise.
+       * gcc.target/i386/pr55049-1.c: Likewise.
+       * gcc.target/i386/pr55093.c: Likewise.
+       * gcc.target/i386/pr55116-1.c: Likewise.
+       * gcc.target/i386/pr55116-2.c: Likewise.
+       * gcc.target/i386/pr55597.c: Likewise.
+       * gcc.target/i386/pr59929.c: Likewise.
+       * gcc.target/i386/pr66470.c: Likewise.
+
 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * gcc.dg/atomic/c11-atomic-exec-4.c: Simplify triplet to
index 6ec4b834bfbdff49133c3a85a23540e4f62d35ac..b2376e710df6ada0b7245a86908127988c67f3fb 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-O -maddress-mode=long -fcf-protection -mx32" } */
 /* { dg-final { scan-assembler-times "endbr64" 2 } } */
 /* { dg-final { scan-assembler-times "movq\t.*buf\\+16" 1 } } */
index dcc28d007fe61aeb1292b7cc0e728fac361c5066..9bd81368bcdf43099f86e996142ad15fa0591f8d 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-O2 -mx32" } */
 
 void
index d5cfa74111272412ef83ea178c1344e8773aab66..8d8988fccc348a5d0af7cd02b400618756bffb47 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-O2 -mx32 -maddress-mode=long" } */
 
 extern void abort (void);
index 5c23339b66a87d802c9f875a3c03b63737db8435..2e8a4afdc1051e37761ed553080ac29e11a7e18d 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-g -O -mx32 -maddress-mode=long" } */
 
 extern void get_BID128 (int *);
index 99acf84347d64879a60e742987412eb7d129d286..62ac5df5eb11bf4ba45d1e6ade7c5b6b23f094f9 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-g -O -mx32 -maddress-mode=long" } */
 
 void uw_init_context_1 (void *);
index 249206c334610ef59518f039f670736583ebd1d0..6255b286a786b65d661e706a0be26d0e8ff814c5 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run { target x32 } } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-O2 -mx32 -maddress-mode=long" } */
 
 extern void abort (void);
index e36200af8520a11ef7c912ded4aad700f11dacd4..9f36707ecf9f7862ad4609208c091ae433975acd 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-O -mx32 -maddress-mode=long -fno-tree-dominator-opts" } */
 
 extern char foo[];
index 26318677d590695b76a30a22757c192f149c923b..01b02c58a90ec213a2fcf98bcf7dfe888790ea3f 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-O2 -mx32 -maddress-mode=long -ftree-vectorize" } */
 
 struct s2{
index 387bbeb81fb446e3618f0b92697ebc162340b203..6486ce99a2761f27c6c9ef6ce65d890941a28f4a 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile { target { ! ia32 } } } */
 /* { dg-require-effective-target fpic } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-O2 -fPIC -mx32" } */
 
 extern void __morestack_fail (const char *msg);
index bfe2c503d83eb001921a65253ebc5b4b27bd3b3c..190a9423f331547ef72bb48be75d9f5aa2d1efe7 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-O2 -mx32 -maddress-mode=long" } */
 /* { dg-skip-if "different ABI" { x86_64-*-mingw* } } */
 
index a2e2acd858a7f857ce66407b6a1f72b8a54a2f83..a7d17ed014e33beb356fa392e9335e0c905c69ce 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-O2 -mx32 -maddress-mode=long" } */
 
 int glob_int_arr[100];
index 59bdebe690da67d84476039032fb39e456932a43..62ac0a1d0019ea44ed33520dbc71e977b355c6f7 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-O2 -mx32 -maddress-mode=long" } */
 
 typedef struct rtx_def *rtx;
index 617c3e5c5eda7d068de06430e26cf8e518cc75b6..b942324892c10186fe83e2ed3b81b4509f74795c 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile { target { ! ia32 } } } */
 /* { dg-require-effective-target fpic } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-O2 -fPIC -mx32 -maddress-mode=long" } */
 
 struct initial_sp
index 53e0b237c2706133dd5403858b96162436d576ec..f770d4b7d1dc9caa036c8ff824049149a303ef01 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O0 -mno-accumulate-outgoing-args" } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-additional-options "-mx32 -maddress-mode=short" { target x32 } } */
 
 void
index 5c068f3d71b5abbfa111c66475bcbec7b529329c..3515b6d289294cc978f3c06a725ad2788cec1eb6 100644 (file)
@@ -1,5 +1,6 @@
 /* PR target/66470 */
 /* { dg-do compile { target { ! ia32 } } } */
+/* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-O2 -mx32 -maddress-mode=long" } */
 /* { dg-require-effective-target tls } */