mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 19:03:59 +08:00
PR target/34210 PR target/35508 * config.host (avr-*-*): Add avr cpu_type and avr tmake_file. * config/t-avr: New file. Build 16bit libgcc functions.
From-SVN: r133993
This commit is contained in:
parent
06407e30fd
commit
47583040f7
@ -1,3 +1,10 @@
|
||||
2008-04-07 Andy Hutchinson <hutchinsonandy@aim.com>
|
||||
|
||||
PR target/34210
|
||||
PR target/35508
|
||||
* config.host (avr-*-*): Add avr cpu_type and avr tmake_file.
|
||||
* config/t-avr: New file. Build 16bit libgcc functions.
|
||||
|
||||
2008-03-02 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR target/35401
|
||||
|
@ -77,6 +77,9 @@ strongarm*-*-*)
|
||||
arm*-*-*)
|
||||
cpu_type=arm
|
||||
;;
|
||||
avr-*-*)
|
||||
cpu_type=avr
|
||||
;;
|
||||
bfin*-*)
|
||||
cpu_type=bfin
|
||||
;;
|
||||
@ -243,6 +246,8 @@ arm*-*-kaos*)
|
||||
avr-*-rtems*)
|
||||
;;
|
||||
avr-*-*)
|
||||
# Make HImode functions for AVR
|
||||
tmake_file=${cpu_type}/t-avr
|
||||
;;
|
||||
bfin*-elf*)
|
||||
;;
|
||||
|
19
libgcc/config/avr/t-avr
Normal file
19
libgcc/config/avr/t-avr
Normal file
@ -0,0 +1,19 @@
|
||||
# Extra 16-bit integer functions.
|
||||
intfuncs16 = _absvXX2 _addvXX3 _subvXX3 _mulvXX3 _negvXX2 _ffsXX2 _clzXX2 \
|
||||
_ctzXX2 _popcountXX2 _parityXX2
|
||||
hiintfuncs16 = $(subst XX,hi,$(intfuncs16))
|
||||
siintfuncs16 = $(subst XX,si,$(intfuncs16))
|
||||
|
||||
iter-items := $(hiintfuncs16)
|
||||
iter-labels := $(siintfuncs16)
|
||||
iter-sizes := $(patsubst %,2,$(siintfuncs16)) $(patsubst %,2,$(hiintfuncs16))
|
||||
|
||||
|
||||
include $(srcdir)/empty.mk $(patsubst %,$(srcdir)/siditi-object.mk,$(iter-items))
|
||||
libgcc-objects += $(patsubst %,%$(objext),$(hiintfuncs16))
|
||||
|
||||
ifeq ($(enable_shared),yes)
|
||||
libgcc-s-objects += $(patsubst %,%_s$(objext),$(hiintfuncs16))
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user