From d467598989bcd815adf30e42f9a67a73929f9d71 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 20 Apr 2021 04:36:05 -0700 Subject: Revert bogus LIT_ALIGN commit from 2015. This reverts commit 0343c6f32c5bd8335e88595cb9d23506625b2586. I don't see evidence that the claim in the commit is true: that wide literals are not four-byte-aligned on Darwin in spite of sizeof(wchar_t) being 4. Not even with the old clang in my old VM where I first thought I discovered this. * configure: do not set up LIT_ALIGN == 2 for Darwin. * lib.h (litptr): Remove LIT_ALIGN < 4 && SIZEOF_WCHAR_T == 4 case. * HACKING: Undocument bogus claim. --- configure | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 131068d0..6b104cf1 100755 --- a/configure +++ b/configure @@ -1503,11 +1503,7 @@ if [ -z "$lit_align" ] ; then exit 1 fi - if [ -n "$darwin_target" ] && [ "$(arch)" = "i386" ] ; then - lit_align=2 - else - lit_align=$SIZEOF_WCHAR_T - fi + lit_align=$SIZEOF_WCHAR_T fi printf "%d\n" "$lit_align" -- cgit v1.2.3