public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/21079] New: avr-gcc lacks support for builtin ffs function
@ 2005-04-17 22:37 bjoern dot m dot haase at web dot de
  2005-04-17 22:45 ` [Bug target/21079] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: bjoern dot m dot haase at web dot de @ 2005-04-17 22:37 UTC (permalink / raw)
  To: gcc-bugs

tests gcc.c-torture/excecute/ffs-1 and -2 fail since neither libgcc nor libgcc2 
provide support for the excpected builtin function ffs.

-- 
           Summary: avr-gcc lacks support for builtin ffs function
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bjoern dot m dot haase at web dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i586-linux
  GCC host triplet: i586-linux
GCC target triplet: avr-*-*


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/21079] avr-gcc lacks support for builtin ffs function
  2005-04-17 22:37 [Bug c/21079] New: avr-gcc lacks support for builtin ffs function bjoern dot m dot haase at web dot de
@ 2005-04-17 22:45 ` pinskia at gcc dot gnu dot org
  2005-04-17 23:07 ` bjoern dot m dot haase at web dot de
  2005-04-19 15:50 ` ericw at evcohs dot com
  2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-17 22:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-17 22:45 -------
ffs is a POSIX function which almost all libc provides.
So if there is no fall back function, there is nothing which GCC can do.

Does avr have instructions which could be used to implement this if so it should implement ffssi/ffsdi 
and such.

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


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/21079] avr-gcc lacks support for builtin ffs function
  2005-04-17 22:37 [Bug c/21079] New: avr-gcc lacks support for builtin ffs function bjoern dot m dot haase at web dot de
  2005-04-17 22:45 ` [Bug target/21079] " pinskia at gcc dot gnu dot org
@ 2005-04-17 23:07 ` bjoern dot m dot haase at web dot de
  2005-04-19 15:50 ` ericw at evcohs dot com
  2 siblings, 0 replies; 6+ messages in thread
From: bjoern dot m dot haase at web dot de @ 2005-04-17 23:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bjoern dot m dot haase at web dot de  2005-04-17 23:07 -------
So probably the best thing to do now would probably be to 1.) mark the test 
cases as xfail and 2.) write an enhancement request for avr-libc.? 
 

-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/21079] avr-gcc lacks support for builtin ffs function
  2005-04-17 22:37 [Bug c/21079] New: avr-gcc lacks support for builtin ffs function bjoern dot m dot haase at web dot de
  2005-04-17 22:45 ` [Bug target/21079] " pinskia at gcc dot gnu dot org
  2005-04-17 23:07 ` bjoern dot m dot haase at web dot de
@ 2005-04-19 15:50 ` ericw at evcohs dot com
  2 siblings, 0 replies; 6+ messages in thread
From: ericw at evcohs dot com @ 2005-04-19 15:50 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 507 bytes --]


------- Additional Comments From ericw at evcohs dot com  2005-04-19 15:49 -------
Björn,

That sounds like a reasonable approach. Submit a bug report to the avr-libc
project on Savannah:
<http://savannah.nongnu.org/projects/avr-libc/>

Eric

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ericw at evcohs dot com


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/21079] avr-gcc lacks support for builtin ffs function
       [not found] <bug-21079-9887@http.gcc.gnu.org/bugzilla/>
  2005-10-18 22:44 ` aesok at pautinka dot net
@ 2005-10-18 22:46 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-18 22:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2005-10-18 22:46 -------
So closing as fixed then.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/21079] avr-gcc lacks support for builtin ffs function
       [not found] <bug-21079-9887@http.gcc.gnu.org/bugzilla/>
@ 2005-10-18 22:44 ` aesok at pautinka dot net
  2005-10-18 22:46 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 6+ messages in thread
From: aesok at pautinka dot net @ 2005-10-18 22:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from aesok at pautinka dot net  2005-10-18 22:44 -------
Functions 'ffs', 'ffsl' and 'ffsll' are added in avr-libc library.


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-10-18 22:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-17 22:37 [Bug c/21079] New: avr-gcc lacks support for builtin ffs function bjoern dot m dot haase at web dot de
2005-04-17 22:45 ` [Bug target/21079] " pinskia at gcc dot gnu dot org
2005-04-17 23:07 ` bjoern dot m dot haase at web dot de
2005-04-19 15:50 ` ericw at evcohs dot com
     [not found] <bug-21079-9887@http.gcc.gnu.org/bugzilla/>
2005-10-18 22:44 ` aesok at pautinka dot net
2005-10-18 22:46 ` pinskia at gcc dot gnu dot org

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).