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.
This commit is contained in:
Iain Buclaw 2021-03-28 16:40:23 +02:00
parent be080b1727
commit 5a5d23010a

View File

@ -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");