This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH FIX PR34210,35508 : Missing HI mode libgcc functions


Thanks Eric

The duplication seems to be a bug in Tortoise SVN.

I edited out the second copy and now it is referenced from TOP directory.

Change log entry below, but Rask can take credit for the clever part!

2008-03-22 Andy Hutchinson <hutchinsonandy@aim.com>

   PR target/34210, 35508
   * config.host (avr-*-*): Add avr cpu_type and avr tmake_file.
   * config/t-avr: Build 16bit libgcc functions.



Andy


Index: libgcc/config.host
===================================================================
--- libgcc/config.host  (revision 132947)
+++ libgcc/config.host  (working copy)
@@ -77,6 +77,9 @@
 arm*-*-*)
    cpu_type=arm
    ;;
+avr-*-*)
+   cpu_type=avr
+   ;;    
 bfin*-*)
    cpu_type=bfin
    ;;
@@ -243,6 +246,8 @@
 avr-*-rtems*)
    ;;
 avr-*-*)
+    # Make HImode functions for AVR
+    tmake_file=${cpu_type}/t-avr
    ;;
 bfin*-elf*)
         ;;
Index: libgcc/config/avr/t-avr
===================================================================
--- libgcc/config/avr/t-avr (revision 0)
+++ libgcc/config/avr/t-avr (revision 0)
@@ -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
+
+

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]