summaryrefslogtreecommitdiffstats
path: root/scripts/gcc-64bitptr.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gcc-64bitptr.sh')
-rwxr-xr-xscripts/gcc-64bitptr.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/gcc-64bitptr.sh b/scripts/gcc-64bitptr.sh
new file mode 100755
index 0000000000..7fb05703b8
--- /dev/null
+++ b/scripts/gcc-64bitptr.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
+
+cat << "END" | $@ -x c - -c -o /dev/null
+int main(void)
+{
+ return sizeof(struct { int:-!(sizeof(void *) == 8); });
+}
+END