aboutsummaryrefslogtreecommitdiff
path: root/gcc/d
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2021-03-28 16:40:23 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2021-03-28 17:46:36 +0200
commit5a5d23010ab8ecbefd443054d9a3ec227aceb976 (patch)
treed5818bb65ddbeb7d4dfe0fcbe326de2704d1f4f7 /gcc/d
parentbe080b17271cfbe3b8b46d9ca635f8d77de2088e (diff)
downloadgcc-5a5d23010ab8ecbefd443054d9a3ec227aceb976.zip
gcc-5a5d23010ab8ecbefd443054d9a3ec227aceb976.tar.gz
gcc-5a5d23010ab8ecbefd443054d9a3ec227aceb976.tar.bz2
d: Predefine the D_PIE version condition when flag_pie is set.
Same as the D_PIC version condition, which is set by flag_pic. gcc/d/ChangeLog: * d-builtins.cc (d_init_versions): Predefine D_PIE if flag_pie is set.
Diffstat (limited to 'gcc/d')
-rw-r--r--gcc/d/d-builtins.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/d/d-builtins.cc b/gcc/d/d-builtins.cc
index c45edc2..ce09861 100644
--- a/gcc/d/d-builtins.cc
+++ b/gcc/d/d-builtins.cc
@@ -480,6 +480,8 @@ d_init_versions (void)
VersionCondition::addPredefinedGlobalIdent ("D_Coverage");
if (flag_pic)
VersionCondition::addPredefinedGlobalIdent ("D_PIC");
+ if (flag_pie)
+ VersionCondition::addPredefinedGlobalIdent ("D_PIE");
if (global.params.doDocComments)
VersionCondition::addPredefinedGlobalIdent ("D_Ddoc");