Lines Matching full:cc
70 # cc-cross-prefix
71 # Usage: CROSS_COMPILE := $(call cc-cross-prefix, m68k-linux-gnu- m68k-linux-)
72 # Return first prefix where a prefix$(CC) is found in PATH.
73 # If no $(CC) found in PATH with listed prefixes return nothing
74 cc-cross-prefix = \
77 if (which $(strip $(c))$(CC)) > /dev/null 2>&1 ; then \
85 # Usage: option = $(call try-run, $(CC)...-o "$$TMP",option-ok,otherwise)
101 $(CC) $(KBUILD_CFLAGS) $(1) -c -x assembler /dev/null -o "$$TMP",$(1),$(2))
107 printf "%b\n" "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -x assembler -o "$$TMP" -,$(2),$(3))
109 # cc-option
110 # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)
112 cc-option = $(call try-run,\
113 $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) $(1) -c -x c /dev/null -o "$$TMP",$(1),$(2))
115 # cc-option-yn
116 # Usage: flag := $(call cc-option-yn,-march=winchip-c6)
117 cc-option-yn = $(call try-run,\
118 $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) $(1) -c -x c /dev/null -o "$$TMP",y,n)
120 # cc-option-align
122 cc-option-align = $(subst -functions=0,,\
123 $(call cc-option,-falign-functions=0,-malign-functions=0))
125 # cc-disable-warning
126 # Usage: cflags-y += $(call cc-disable-warning,unused-but-set-variable)
127 cc-disable-warning = $(call try-run,\
128 …$(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) -W$(strip $(1)) -c -x c /dev/null -o "$$TMP",-Wno-$(stri…
130 # cc-version
131 # Usage gcc-ver := $(call cc-version)
132 cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC))
134 # cc-fullversion
135 # Usage gcc-ver := $(call cc-fullversion)
136 cc-fullversion = $(shell $(CONFIG_SHELL) \
137 $(srctree)/scripts/gcc-version.sh -p $(CC))
139 # cc-ifversion
140 # Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1)
141 cc-ifversion = $(shell [ $(call cc-version, $(CC)) $(1) $(2) ] && echo $(3))
143 # cc-ldoption
144 # Usage: ldflags += $(call cc-ldoption, -Wl$(comma)--hash-style=both)
145 cc-ldoption = $(call try-run,\
146 $(CC) $(1) -nostdlib -x c /dev/null -o "$$TMP",$(1),$(2))
151 $(CC) /dev/null -c -o "$$TMPO" ; $(LD) $(1) "$$TMPO" -o "$$TMP",$(1),$(2))