Commit a8d790df by H.J. Lu Committed by H.J. Lu

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
parent fa01ffcc
2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
* doc/sourcebuild.texi (pie_enabled): Document.
2015-02-11 Martin Liska <mliska@suse.cz> 2015-02-11 Martin Liska <mliska@suse.cz>
PR ipa/64813 PR ipa/64813
......
...@@ -1884,6 +1884,9 @@ Target uses natural alignment (aligned to type size) for types of ...@@ -1884,6 +1884,9 @@ Target uses natural alignment (aligned to type size) for types of
@item nonpic @item nonpic
Target does not generate PIC by default. Target does not generate PIC by default.
@item pie_enabled
Target generates PIE by default.
@item pcc_bitfield_type_matters @item pcc_bitfield_type_matters
Target defines @code{PCC_BITFIELD_TYPE_MATTERS}. Target defines @code{PCC_BITFIELD_TYPE_MATTERS}.
......
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> 2015-02-11 Andrew Pinski <apinski@cavium.com>
PR target/64893 PR target/64893
......
...@@ -13,6 +13,6 @@ int f(void) ...@@ -13,6 +13,6 @@ int f(void)
/* There should be no reference for nonpic targets to /* There should be no reference for nonpic targets to
conststaticvariable as we should have inlined the 0. */ 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" 0 "optimized" { target { pie_enabled || nonpic } } } } */
/* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized" { target { { ! pie } && { ! nonpic } } } } } */ /* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized" { target { { ! pie_enabled } && { ! nonpic } } } } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */
/* { dg-do compile { target pie } } */ /* { dg-do compile { target pie_enabled } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
int foo (void); int foo (void);
......
...@@ -1100,8 +1100,8 @@ proc check_effective_target_nonpic { } { ...@@ -1100,8 +1100,8 @@ proc check_effective_target_nonpic { } {
# Return 1 if the current multilib generates PIE by default. # Return 1 if the current multilib generates PIE by default.
proc check_effective_target_pie { } { proc check_effective_target_pie_enabled { } {
return [check_no_compiler_messages pie assembly { return [check_no_compiler_messages pie_enabled assembly {
#ifndef __PIE__ #ifndef __PIE__
#error unsupported #error unsupported
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment