aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2015-01-13 20:07:33 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2015-01-13 12:07:33 -0800
commitee57ebbf2b503f9bf1cdad544090402c269538f7 (patch)
tree2d73a1e572d0e6a571392139fe45ecbf34519300
parented4f78fae8b9406f32cfe8cc47bd138aeb9d5540 (diff)
downloadgcc-ee57ebbf2b503f9bf1cdad544090402c269538f7.zip
gcc-ee57ebbf2b503f9bf1cdad544090402c269538f7.tar.gz
gcc-ee57ebbf2b503f9bf1cdad544090402c269538f7.tar.bz2
Support PIE in gcc.dg/tree-ssa/ssa-store-ccp-3.c
target nonpic is always false for -fPIE since it defines both __PIC__ and __PIE__. This patch changes gcc.dg/tree-ssa/ssa-store-ccp-3.c to make it to pass with -fPIE by excluding PIE when nonpic is true. * gcc.dg/tree-ssa/ssa-store-ccp-3.c: Exclude pie when nonpic is true. From-SVN: r219554
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/ssa-store-ccp-3.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 24e8b25..9fbdbcc 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2015-01-13 H.J. Lu <hongjiu.lu@intel.com>
+ * gcc.dg/tree-ssa/ssa-store-ccp-3.c: Exclude pie when nonpic is
+ true.
+
+2015-01-13 H.J. Lu <hongjiu.lu@intel.com>
+
* gcc.target/i386/pie.c: New test.
* lib/target-supports.exp (check_effective_target_pie): New.
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-store-ccp-3.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-store-ccp-3.c
index e187735..eafcd9c 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-store-ccp-3.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-store-ccp-3.c
@@ -13,6 +13,6 @@ int f(void)
/* There should be no reference for nonpic targets to
conststaticvariable as we should have inlined the 0. */
-/* { dg-final { scan-tree-dump-times "conststaticvariable" 0 "optimized" { target nonpic } } } */
-/* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized" { target { ! nonpic } } } } */
+/* { dg-final { scan-tree-dump-times "conststaticvariable" 0 "optimized" { target { pie || nonpic } } } } */
+/* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized" { target { { ! pie } && { ! nonpic } } } } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */