From: Uros Bizjak Date: Fri, 21 Feb 2020 15:23:30 +0000 (+0100) Subject: testsuite: Add -fcommon to gcc.target/i386/pr69052.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b59506cd8b9f92293fc154c1470691534e29ddcf;p=gcc.git 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. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 02fa22ef23c..01da6fb33ce 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -7,6 +7,11 @@ (check_effective_target_arm_v8_1m_mve_ok): New. (add_options_for_v8_1m_mve): New. +2020-02-21 Uroš Bizjak + + * gcc.target/i386/pr69052.c: Require target ia32. + (dg-options): Add -fcommon and remove -pie. + 2020-02-21 Uroš Bizjak * gcc.dg/vect/vect-epilogues.c (scan-tree-dump): Require diff --git a/gcc/testsuite/gcc.target/i386/pr69052.c b/gcc/testsuite/gcc.target/i386/pr69052.c index 6f491e9ab53..19bc3c8a77d 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\\(%\[^,\]*\\), %" } } */