* fold-const.c (c_getstr): Clamp STRING_LENGTH to STRING_SIZE.
[official-gcc.git] / libgcc / config / avr / lib2-object.mk
blob6a9e04de0f75bf0d969ea3c5d0b904bb9fde78b7
1 # This file is included several times in a row, once for each element of
2 # $(iter-items). On each inclusion, we advance $o to the next element.
3 # $(iter-labels) and $(iter-flags) are also advanced.
4 # This works similar to $(srcdir)/siditi-object.mk.
6 o := $(firstword $(iter-items))
7 iter-items := $(filter-out $o,$(iter-items))
9 $o-label := $(firstword $(iter-labels))
10 iter-labels := $(wordlist 2,$(words $(iter-labels)),$(iter-labels))
12 $o-flag := $(firstword $(iter-flags))
13 iter-flags := $(wordlist 2,$(words $(iter-flags)),$(iter-flags))
15 $o$(objext): %$(objext): $(srcdir)/config/avr/lib2funcs.c
16 $(gcc_compile) -DL_$($*-label) -DL_LABEL=$($*-label) $($*-flag) \
17 -c $< $(vis_hide)
19 ifeq ($(enable_shared),yes)
20 $(o)_s$(objext): %_s$(objext): $(srcdir)/config/avr/lib2funcs.c
21 $(gcc_s_compile) -DL_$($*-label) -DL_LABEL=$($*-label) $($*-flag) \
22 -c $<
23 endif