Check pie_enabled target in PIC tests
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 25 Sep 2018 12:25:44 +0000 (12:25 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 25 Sep 2018 12:25:44 +0000 (05:25 -0700)
commit5d6749d1f241223353cba6cb637738bb5b698756
tree1cd65acc473b5293d273d52262f0888bae68ed97
parentf6919d2011ed694971f54a9e3bfe63ff0fcb864c
Check pie_enabled target in PIC tests

We need to check pie_enabled target in PIC tests to support GCC where
PIE is enabled by default when configured with --enable-default-pie.

PR testsuite/70150
* gcc.dg/20020312-2.c (dg-additional-options): Set to "-no-pie"
for pie_enabled target.
* gcc.dg/uninit-19.c: Check pie_enabled for PIC.
* gcc.target/i386/pr34256.c: Likewise.

From-SVN: r264565
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20020312-2.c
gcc/testsuite/gcc.dg/uninit-19.c
gcc/testsuite/gcc.target/i386/pr34256.c