From a8d790dfc0f78bce8259e792c2c3502712d866dc Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 11 Feb 2015 14:03:14 +0000 Subject: [PATCH] Rename check_effective_target_pie to check_effective_target_pie_enabled gcc/ * doc/sourcebuild.texi (pie_enabled): Document. gcc/testsuite/ * lib/target-supports.exp (check_effective_target_pie): Renamed to ... (check_effective_target_pie_enabled): This. * gcc.dg/tree-ssa/ssa-store-ccp-3.c: Replace pie with pie_enabled. * gcc.target/i386/pie.c: Likewise. From-SVN: r220618 --- gcc/ChangeLog | 4 ++++ gcc/doc/sourcebuild.texi | 3 +++ gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/gcc.dg/tree-ssa/ssa-store-ccp-3.c | 4 ++-- gcc/testsuite/gcc.target/i386/pie.c | 2 +- gcc/testsuite/lib/target-supports.exp | 4 ++-- 6 files changed, 20 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eab5cdba8f8..2fa7ff2abf3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-02-11 H.J. Lu + + * doc/sourcebuild.texi (pie_enabled): Document. + 2015-02-11 Martin Liska PR ipa/64813 diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index eef5081b998..58759178c2b 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -1884,6 +1884,9 @@ Target uses natural alignment (aligned to type size) for types of @item nonpic Target does not generate PIC by default. +@item pie_enabled +Target generates PIE by default. + @item pcc_bitfield_type_matters Target defines @code{PCC_BITFIELD_TYPE_MATTERS}. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d67d8142760..bd508ec8e39 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2015-02-11 H.J. Lu + + * lib/target-supports.exp (check_effective_target_pie): Renamed + to ... + (check_effective_target_pie_enabled): This. + * gcc.dg/tree-ssa/ssa-store-ccp-3.c: Replace pie with pie_enabled. + * gcc.target/i386/pie.c: Likewise. + 2015-02-11 Andrew Pinski PR target/64893 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 eafcd9c4134..9c8d67ed06e 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 { pie || nonpic } } } } */ -/* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized" { target { { ! pie } && { ! nonpic } } } } } */ +/* { dg-final { scan-tree-dump-times "conststaticvariable" 0 "optimized" { target { pie_enabled || nonpic } } } } */ +/* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized" { target { { ! pie_enabled } && { ! nonpic } } } } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.target/i386/pie.c b/gcc/testsuite/gcc.target/i386/pie.c index 0a9f5eea0af..f96be6c0153 100644 --- a/gcc/testsuite/gcc.target/i386/pie.c +++ b/gcc/testsuite/gcc.target/i386/pie.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target pie } } */ +/* { dg-do compile { target pie_enabled } } */ /* { dg-options "-O2" } */ int foo (void); diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index ce7043acac2..93cb791c9a9 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -1100,8 +1100,8 @@ proc check_effective_target_nonpic { } { # Return 1 if the current multilib generates PIE by default. -proc check_effective_target_pie { } { - return [check_no_compiler_messages pie assembly { +proc check_effective_target_pie_enabled { } { + return [check_no_compiler_messages pie_enabled assembly { #ifndef __PIE__ #error unsupported #endif -- 2.30.2