Skip to content

Commit 13c239a

Browse files
idavydoffmasahir0y
authored andcommitted
kbuild: doc: gcc to CC change
In this part of the documentation, $(CC) is meant, but gcc is written. Signed-off-by: Ivan Davydov <davydoff33@yandex.ru> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 1a7c8d2 commit 13c239a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/kbuild/makefiles.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ cc-option
578578
Note: cc-option uses KBUILD_CFLAGS for $(CC) options
579579

580580
cc-option-yn
581-
cc-option-yn is used to check if gcc supports a given option
581+
cc-option-yn is used to check if $(CC) supports a given option
582582
and return "y" if supported, otherwise "n".
583583

584584
Example::
@@ -596,7 +596,7 @@ cc-option-yn
596596
Note: cc-option-yn uses KBUILD_CFLAGS for $(CC) options
597597

598598
cc-disable-warning
599-
cc-disable-warning checks if gcc supports a given warning and returns
599+
cc-disable-warning checks if $(CC) supports a given warning and returns
600600
the commandline switch to disable it. This special function is needed,
601601
because gcc 4.4 and later accept any unknown -Wno-* option and only
602602
warn about it if there is another warning in the source file.
@@ -606,7 +606,7 @@ cc-disable-warning
606606
KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
607607

608608
In the above example, -Wno-unused-but-set-variable will be added to
609-
KBUILD_CFLAGS only if gcc really accepts it.
609+
KBUILD_CFLAGS only if $(CC) really accepts it.
610610

611611
gcc-min-version
612612
gcc-min-version tests if the value of $(CONFIG_GCC_VERSION) is greater than

0 commit comments

Comments
 (0)