From 3a42e16dca67208ace35f9cf7c45c35d0cbd46e6 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 18 Jan 2019 14:33:46 +0000 Subject: [PATCH] Update PR middle-end/88587 tests It is wrong to use -m32 in dg-options. { target ia32 } should be used instead. Also add -fno-pic to g++.target/i386/pr88587.C since it is invalid with PIC. PR middle-end/88587 * g++.target/i386/pr88587.C (dg-do): Add { target ia32 }. (dg-options): Replace -m32 with -fno-pic. * gcc.target/i386/mvc13.c (dg-do): Add { target ia32 }. (dg-options): Remove -m32. From-SVN: r268079 --- gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/g++.target/i386/pr88587.C | 4 ++-- gcc/testsuite/gcc.target/i386/mvc13.c | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 77b89f46084..19f5b21aee9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2019-01-18 H.J. Lu + + PR middle-end/88587 + * g++.target/i386/pr88587.C (dg-do): Add { target ia32 }. + (dg-options): Replace -m32 with -fno-pic. + * gcc.target/i386/mvc13.c (dg-do): Add { target ia32 }. + (dg-options): Remove -m32. + 2019-01-18 Richard Biener PR tree-optimization/88903 diff --git a/gcc/testsuite/g++.target/i386/pr88587.C b/gcc/testsuite/g++.target/i386/pr88587.C index 6808ab68cbb..e7488e68743 100644 --- a/gcc/testsuite/g++.target/i386/pr88587.C +++ b/gcc/testsuite/g++.target/i386/pr88587.C @@ -1,6 +1,6 @@ -/* { dg-do compile } */ +/* { dg-do compile { target ia32 } } */ /* { dg-require-ifunc "" } */ -/* { dg-options "-O -m32 -g -mno-sse -Wno-attributes" } */ +/* { dg-options "-O -fno-pic -g -mno-sse -Wno-attributes" } */ __attribute__((target("default"),always_inline)) void a() diff --git a/gcc/testsuite/gcc.target/i386/mvc13.c b/gcc/testsuite/gcc.target/i386/mvc13.c index 9e31ef7c4da..8d7e34437b4 100644 --- a/gcc/testsuite/gcc.target/i386/mvc13.c +++ b/gcc/testsuite/gcc.target/i386/mvc13.c @@ -1,6 +1,6 @@ -/* { dg-do compile } */ +/* { dg-do compile { target ia32 } } */ /* { dg-require-ifunc "" } */ -/* { dg-options "-O -m32 -g -mno-sse" } */ +/* { dg-options "-O -g -mno-sse" } */ __attribute__((target_clones("default,sse2"))) void a() -- 2.30.2