Lines Matching refs:cc
71 # cc-cross-prefix
72 # Usage: CROSS_COMPILE := $(call cc-cross-prefix, m68k-linux-gnu- m68k-linux-)
75 cc-cross-prefix = \
110 # cc-option
111 # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)
113 cc-option = $(call try-run,\
116 # cc-option-yn
117 # Usage: flag := $(call cc-option-yn,-march=winchip-c6)
118 cc-option-yn = $(call try-run,\
121 # cc-option-align
123 cc-option-align = $(subst -functions=0,,\
124 $(call cc-option,-falign-functions=0,-malign-functions=0))
126 # cc-disable-warning
127 # Usage: cflags-y += $(call cc-disable-warning,unused-but-set-variable)
128 cc-disable-warning = $(call try-run,\
131 # cc-name
133 cc-name = $(shell $(CC) -v 2>&1 | grep -q "clang version" && echo clang || echo gcc)
135 # cc-version
136 cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC))
138 # cc-fullversion
139 cc-fullversion = $(shell $(CONFIG_SHELL) \
142 # cc-ifversion
143 # Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1)
144 cc-ifversion = $(shell [ $(cc-version) $(1) $(2) ] && echo $(3) || echo $(4))
146 # cc-ldoption
147 # Usage: ldflags += $(call cc-ldoption, -Wl$(comma)--hash-style=both)
148 cc-ldoption = $(call try-run,\