Skip to content

Commit 0df499e

Browse files
Jiri Slabymasahir0y
authored andcommitted
kbuild: dummy-tools: pretend we understand __LONG_DOUBLE_128__
There is a test in powerpc's Kconfig which checks __LONG_DOUBLE_128__ and sets CONFIG_PPC_LONG_DOUBLE_128 if it is understood by the compiler. We currently don't handle it, so this results in PPC_LONG_DOUBLE_128 not being in super-config generated by dummy-tools. So take this into account in the gcc script and preprocess __LONG_DOUBLE_128__ as "1". Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 5b8a9a8 commit 0df499e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • scripts/dummy-tools

scripts/dummy-tools/gcc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fi
5959
if arg_contain -E "$@"; then
6060
# For scripts/cc-version.sh; This emulates GCC 20.0.0
6161
if arg_contain - "$@"; then
62-
sed -n '/^GCC/{s/__GNUC__/20/; s/__GNUC_MINOR__/0/; s/__GNUC_PATCHLEVEL__/0/; p;}'
62+
sed -n '/^GCC/{s/__GNUC__/20/; s/__GNUC_MINOR__/0/; s/__GNUC_PATCHLEVEL__/0/; p;}; s/__LONG_DOUBLE_128__/1/ p'
6363
exit 0
6464
else
6565
echo "no input files" >&2

0 commit comments

Comments
 (0)