summaryrefslogtreecommitdiff
path: root/libobjc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-10-11 15:36:13 +0100
committerIain Sandoe <iain@sandoe.co.uk>2020-10-11 19:32:08 +0100
commitdcd9800fcd42489034c0774247eb898d79b1ea2d (patch)
tree4b54adb1a64f9f4190a4c89c5536a077dfb2e390 /libobjc
parent73699d921d8734c351b9897f16a04453f6a47301 (diff)
libobjc, Darwin : Fix powerpc encoding regression.
This corrects a typo in the recipe for the special type alignment rules that are used for 32bit powerpc Darwin platforms. libobjc/ChangeLog: * encoding.c (_darwin_rs6000_special_round_type_align): Use DFMode in the emulation of the special round type.
Diffstat (limited to 'libobjc')
-rw-r--r--libobjc/encoding.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libobjc/encoding.c b/libobjc/encoding.c
index 706c1d2896a..68a20d1d49d 100644
--- a/libobjc/encoding.c
+++ b/libobjc/encoding.c
@@ -146,7 +146,6 @@ static int __attribute__ ((__unused__)) not_target_flags = 0;
# undef TARGET_ALIGN_NATURAL
# define TARGET_ALIGN_NATURAL 1
# endif
-
/* On Darwin32, we need to recurse until we find the starting stuct type. */
static int
_darwin_rs6000_special_round_type_align (const char *struc, int comp, int spec)
@@ -163,7 +162,7 @@ _darwin_rs6000_special_round_type_align (const char *struc, int comp, int spec)
case UNION_TYPE:
return MAX (MAX (comp, spec), objc_alignof_type (_stp) * __CHAR_BIT__);
break;
- case E_DFmode:
+ case DFmode:
case _C_LNG_LNG:
case _C_ULNG_LNG:
return MAX (MAX (comp, spec), 64);