i386: Compile pr82699-5.c and pr82699-6.c with -fno-pic
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 25 Sep 2018 13:51:45 +0000 (13:51 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 25 Sep 2018 13:51:45 +0000 (06:51 -0700)
commit97b8f8679d0db4b9159e1640ff34460aaccace74
treed1ff5e7327e85b23d41978b7d2c91e1f9dabf762
parenteeefd00d9217513a47f1823f2f09111adf65d277
i386: Compile pr82699-5.c and pr82699-6.c with -fno-pic

Compile pr82699-5.c and pr82699-6.c with -fno-pic to avoid

FAIL: gcc.target/i386/pr82699-5.c (test for excess errors)
Excess errors:
cc1: sorry, unimplemented: -mfentry isn't supported for 32-bit in combination with -fpic
FAIL: gcc.target/i386/pr82699-6.c (test for excess errors)
Excess errors:
cc1: error: -mnop-mcount is not implemented for -fPIC
cc1: sorry, unimplemented: -mfentry isn't supported for 32-bit in combination with -fpic

when running GCC testsuite with --target_board='unix{-fpic\ -m32,-fpic}'.

PR target/82699
* gcc.target/i386/pr82699-5.c: Add -fno-pic for ia32.
* gcc.target/i386/pr82699-6.c: Add -fno-pic.

From-SVN: r264569
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr82699-5.c
gcc/testsuite/gcc.target/i386/pr82699-6.c