public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rask at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/34210] ffs builtin calls undefined __ffshi2
Date: Fri, 21 Dec 2007 22:20:00 -0000	[thread overview]
Message-ID: <20071221222005.1154.qmail@sourceware.org> (raw)
In-Reply-To: <bug-34210-11470@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from rask at gcc dot gnu dot org  2007-12-21 22:20 -------
You want something like this in libgcc/config/avr/t-avr to get the 16-bit
versions:

# Extra 16-bit integer functions.
intfuncs16 = _absvXX2 _addvXX3 _subvXX3 _mulvXX3 _negvXX2 _ffsXX2 _clzXX2 \
             _ctzXX2 _popcountXX2
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


-- 

rask at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34210


  parent reply	other threads:[~2007-12-21 22:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-23 19:38 [Bug c/34210] New: " sjackman at gmail dot com
2007-11-23 20:01 ` [Bug c/34210] " sjackman at gmail dot com
2007-11-23 22:39 ` rguenth at gcc dot gnu dot org
2007-12-21 22:20 ` rask at gcc dot gnu dot org [this message]
2008-01-20  4:20 ` [Bug target/34210] " pmarques at grupopie dot com
2008-03-23  0:24 ` hutchinsonandy at aim dot com
2008-03-23  3:05 ` eric dot weddington at atmel dot com
2008-04-07 23:17 ` hutchinsonandy at gcc dot gnu dot org
2008-04-08 15:15 ` eric dot weddington at atmel dot com
     [not found] <bug-34210-4@http.gcc.gnu.org/bugzilla/>
2014-02-16 13:15 ` jackie.rosen at hushmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071221222005.1154.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).