summaryrefslogtreecommitdiff
path: root/Cross
diff options
context:
space:
mode:
authorTAKAI Kousuke <62541129+t-a-k@users.noreply.github.com>2022-10-18 22:46:11 +0900
committerTony Cook <tony@develop-help.com>2022-11-14 15:40:56 +1100
commita503b7406f4be5b6577fc63261184ffbe58009a1 (patch)
treebebf8ebb8b3aefca81141991a37234301290b901 /Cross
parentba63af8a4c3715989c590e98b08ffbd58e885eea (diff)
downloadperl-a503b7406f4be5b6577fc63261184ffbe58009a1.tar.gz
Figure out I32df, U32uf, etc. in Configure rather than in perl.h
These macros were defined in perl.h using preprocessor conditionals, but determining wheter I32 is "int" or "long" is pretty hard with preprocessor, when INTSIZE == LONGSIZE. The Configure script should know exact underlying type of I32, so it should be able to determine whether %d or %ld shall be used to format I32 value more robustly. Various pre-configured files, such as uconfig.h, are updated to align with this.
Diffstat (limited to 'Cross')
-rw-r--r--Cross/config.sh-arm-linux5
-rw-r--r--Cross/config.sh-arm-linux-n7705
2 files changed, 10 insertions, 0 deletions
diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux
index 5d32210e30..1fdecb40f9 100644
--- a/Cross/config.sh-arm-linux
+++ b/Cross/config.sh-arm-linux
@@ -739,6 +739,7 @@ html3dir=' '
html3direxp=''
i16size='2'
i16type='short'
+i32dformat='"ld"'
i32size='4'
i32type='long'
i64size='8'
@@ -1119,8 +1120,12 @@ troff=''
ttyname_r_proto='0'
u16size='2'
u16type='unsigned short'
+u32XUformat='"lX"'
+u32oformat='"lo"'
u32size='4'
u32type='unsigned long'
+u32uformat='"lu"'
+u32xformat='"lx"'
u64size='8'
u64type='unsigned long long'
u8size='1'
diff --git a/Cross/config.sh-arm-linux-n770 b/Cross/config.sh-arm-linux-n770
index c205e54b19..de7b6d9400 100644
--- a/Cross/config.sh-arm-linux-n770
+++ b/Cross/config.sh-arm-linux-n770
@@ -737,6 +737,7 @@ html3dir=' '
html3direxp=''
i16size='2'
i16type='short'
+i32dformat='"ld"'
i32size='4'
i32type='long'
i64size='8'
@@ -1117,8 +1118,12 @@ troff=''
ttyname_r_proto='0'
u16size='2'
u16type='unsigned short'
+u32XUformat='"lX"'
+u32oformat='"lo"'
u32size='4'
u32type='unsigned long'
+u32uformat='"lu"'
+u32xformat='"lx"'
u64size='8'
u64type='unsigned long long'
u8size='1'