Rename check_effective_target_pie to check_effective_target_pie_enabled
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 11 Feb 2015 14:03:14 +0000 (14:03 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 11 Feb 2015 14:03:14 +0000 (06:03 -0800)
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
gcc/doc/sourcebuild.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-store-ccp-3.c
gcc/testsuite/gcc.target/i386/pie.c
gcc/testsuite/lib/target-supports.exp

index eab5cdba8f869f07debe9d7eed7dce176cdfb1a2..2fa7ff2abf39f6fdecab2bc60774407126458e0e 100644 (file)
@@ -1,3 +1,7 @@
+2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * doc/sourcebuild.texi (pie_enabled): Document.
+
 2015-02-11  Martin Liska  <mliska@suse.cz>
 
        PR ipa/64813
index eef5081b998c17b0294da6d564474464460da63d..58759178c2b224adb11d71aafdde1e50c1ba5fd0 100644 (file)
@@ -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}.
 
index d67d814276055cb145f77994c710b038c8bc381c..bd508ec8e392aca87f96f47e89bc66bd76b02cd8 100644 (file)
@@ -1,3 +1,11 @@
+2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * 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  <apinski@cavium.com>
 
        PR target/64893
index eafcd9c413415797fb8e00138a6c2ffeff0c1c3a..9c8d67ed06eaeea63f20393afc495646a431e0e8 100644 (file)
@@ -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" } } */
index 0a9f5eea0afd0b3e8384d3573cf9e2a1ae9fc968..f96be6c0153445fb983fde47091fe4c488146ea9 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target pie } } */
+/* { dg-do compile { target pie_enabled } } */
 /* { dg-options "-O2" } */
 
 int foo (void);
index ce7043acac2d540602709543e7935cdd38d29b27..93cb791c9a9e027b8380cf4cdd2585806a4d2a75 100644 (file)
@@ -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