aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2020-02-21 16:23:30 +0100
committerUros Bizjak <ubizjak@gmail.com>2020-02-21 16:24:53 +0100
commitb59506cd8b9f92293fc154c1470691534e29ddcf (patch)
tree512a5f81df835e039a04ccc27b3f90909e840065
parentbf5582c356eb795ab8dfbe1b1df6b9571ec1bd81 (diff)
downloadgcc-b59506cd8b9f92293fc154c1470691534e29ddcf.zip
gcc-b59506cd8b9f92293fc154c1470691534e29ddcf.tar.gz
gcc-b59506cd8b9f92293fc154c1470691534e29ddcf.tar.bz2
testsuite: Add -fcommon to gcc.target/i386/pr69052.c
This testcase is susceptible to memory location details and start to fail with default to -fno-common. Use -fcommon to set expected testing conditions. * gcc.target/i386/pr69052.c: Require target ia32. (dg-options): Add -fcommon and remove -pie.
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.target/i386/pr69052.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 02fa22e..01da6fb 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -9,6 +9,11 @@
2020-02-21 Uroš Bizjak <ubizjak@gmail.com>
+ * gcc.target/i386/pr69052.c: Require target ia32.
+ (dg-options): Add -fcommon and remove -pie.
+
+2020-02-21 Uroš Bizjak <ubizjak@gmail.com>
+
* gcc.dg/vect/vect-epilogues.c (scan-tree-dump): Require
vect_mutiple_sizes effective target.
diff --git a/gcc/testsuite/gcc.target/i386/pr69052.c b/gcc/testsuite/gcc.target/i386/pr69052.c
index 6f491e9..19bc3c8 100644
--- a/gcc/testsuite/gcc.target/i386/pr69052.c
+++ b/gcc/testsuite/gcc.target/i386/pr69052.c
@@ -1,6 +1,6 @@
-/* { dg-do compile } */
+/* { dg-do compile { target ia32 } } */
/* { dg-require-effective-target pie } */
-/* { dg-options "-O2 -fPIE -pie" } */
+/* { dg-options "-O2 -fPIE -fcommon" } */
int look_nbits[256], loop_sym[256];
const int ind[] = {
@@ -51,4 +51,4 @@ void foo (int *l1, int *l2, int *v, int *v1, int *m1, int i)
}
}
-/* { dg-final { scan-assembler-not "leal\[ \t\]ind@GOTOFF\\(%\[^,\]*\\), %" { target ia32 } } } */
+/* { dg-final { scan-assembler-not "leal\[ \t\]ind@GOTOFF\\(%\[^,\]*\\), %" } } */