diff options
author | Jiri Slaby <jslaby@suse.cz> | 2022-08-10 11:26:03 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-08-20 19:47:48 +0200 |
commit | 0df499eaf3c1a43ebb0a84ac854262e3fa731bcf (patch) | |
tree | 2978bedc933e70f3af241738306be511db1d4586 /scripts | |
parent | modpost: fix module versioning when a symbol lacks valid CRC (diff) | |
download | linux-0df499eaf3c1a43ebb0a84ac854262e3fa731bcf.tar.xz linux-0df499eaf3c1a43ebb0a84ac854262e3fa731bcf.zip |
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>
Diffstat (limited to '')
-rwxr-xr-x | scripts/dummy-tools/gcc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dummy-tools/gcc b/scripts/dummy-tools/gcc index 7db825843435..1db1889f6d81 100755 --- a/scripts/dummy-tools/gcc +++ b/scripts/dummy-tools/gcc @@ -59,7 +59,7 @@ fi if arg_contain -E "$@"; then # For scripts/cc-version.sh; This emulates GCC 20.0.0 if arg_contain - "$@"; then - sed -n '/^GCC/{s/__GNUC__/20/; s/__GNUC_MINOR__/0/; s/__GNUC_PATCHLEVEL__/0/; p;}' + sed -n '/^GCC/{s/__GNUC__/20/; s/__GNUC_MINOR__/0/; s/__GNUC_PATCHLEVEL__/0/; p;}; s/__LONG_DOUBLE_128__/1/ p' exit 0 else echo "no input files" >&2 |