diff mbox series

[committed] testsuite: Add -fcommon to gcc.target/i386/pr69052.c

Message ID CAFULd4a01EBbbP3NAZwBG0L6y-q5ap8nOmxX45w_ucRgSqi9Yw@mail.gmail.com
State New
Headers show
Series [committed] testsuite: Add -fcommon to gcc.target/i386/pr69052.c | expand

Commit Message

Uros Bizjak Feb. 21, 2020, 3:27 p.m. UTC
This testcase is susceptible to memory location details and start to fail
with default to -fno-common.  Use -fcommon to set expected testing conditions.

Tested on x86_64-linux-gnu {,-m32}.

2020-02-21  Uroš Bizjak  <ubizjak@gmail.com>

    * gcc.target/i386/pr69052.c: Require target ia32.
    (dg-options): Add -fcommon and remove -pie.

Uros.
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/i386/pr69052.c b/gcc/testsuite/gcc.target/i386/pr69052.c
index 6f491e9ab539..19bc3c8a77dd 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\\(%\[^,\]*\\), %" } } */