bugAVR C Runtime Library - Bugs: bug #3485, Using float arithmetic without...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #3485: Using float arithmetic without linking with -lm result in incorrect code

Submitter:  Invalid User ID <#18784>
Submitted:  Tue 06 May 2003 02:12:24 PM UTC
   
 
Category:  Library Severity:  2 - Minor
Priority:  2 Item Group:  libm code
Status:  None Assigned to:  arcanum
Percent Complete:  50% Open/Closed:  Open
Release:  1.6.2 Fixed Release:  None

Jump to the original submission

Sun 02 Sep 2012 07:45:32 PM UTC, comment #6: 
Georg-Johann Lay <gjlayde>
Thu 20 Mar 2008 05:46:28 AM UTC, comment #5: 

Well, let's keep this one open until all of our libgcc routines
have really been integrated into libgcc (__fixunssfsi etc.).
This is the actual reason for the incorrect code, and I've
already talked to Dmitry, he wants to look into what needs to
be done to contribute that back to the GCC project.

Unless any of the functions from <math.h> is needed, linking
against libm.a ought to be entirely optional, and should not
cause different code to be generated.

Joerg Wunsch <joerg_wunsch>
Group administrator
Wed 01 Nov 2006 09:02:30 AM UTC, comment #4: 

Bug #18169 has been marked as a duplicate.

Joerg Wunsch <joerg_wunsch>
Group administrator
Wed 22 Dec 2004 10:35:07 PM UTC, comment #3: 

Oops, closing this item was not intented.

Joerg Wunsch <joerg_wunsch>
Group administrator
Wed 22 Dec 2004 10:11:09 PM UTC, comment #2: 

We ought to merge libc and libm completely.  There are
other discrepancies as well, like FP conversion functions
listed in <stdlib.h>, while their implementation is only
present in libm.a.

This item will be deferred until after the release of 1.2.0.

Joerg Wunsch <joerg_wunsch>
Group administrator
Wed 07 May 2003 03:46:31 PM UTC, comment #1: 

Reduced severity as it's a documentation change.

Eric Weddington <arcanum>
Group administrator
Tue 06 May 2003 02:12:24 PM UTC, original submission:  

In the normal C environment, it's possibile to compile correct code using floating point arithmetic without linking math library. Math library is required only if functions like sin() are used. I try to do the same with avr-libc, but the math code included (__floatsisf for instance) contains jmp 0x0 wich obviusly isn't what I wanted. Linking with -lm is a solution, but it must be stated that every use of FPA requires -lm.

Invalid User ID <#18784>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gjlayde (Posted a comment)
  • -email is unavailable- added by arcanum (Updated the item)
  • -email is unavailable- added by joerg_wunsch (Updated the item)
  •  

    Follow 21 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-06-18 arcanum StatusFixed None
        Percent Complete100% 50%
    2008-06-18 arcanum ReleaseNone 1.6.2
    2008-03-20 joerg_wunsch CategoryDocumentation Library
        Item GroupDocumentation libm code
        Open/ClosedClosed Open
        Fixed Release1.7.1 None
    2008-03-19 arcanum StatusNone Fixed
        Percent Complete0% 100%
        Assigned toNone arcanum
        Open/ClosedOpen Closed
        Fixed ReleaseNone 1.7.1
    2008-03-19 arcanum Item Grouplibm code Documentation
    2007-01-08 joerg_wunsch Item GroupNone libm code
    2006-11-01 joerg_wunsch Carbon-Copy- Added -email is unavailable-
    2004-12-22 joerg_wunsch Open/ClosedClosed Open
    2004-12-22 joerg_wunsch Open/ClosedOpen Closed
    2004-12-22 arcanum Priority3 - Low 2
    2004-11-01 arcanum Attached File#906 Removed
    2003-12-24 None Attached File- Added TASK MANAGER.EXE, #906
    2003-05-07 arcanum Severity3 - Normal None

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code