[Bug 259617] ARM support function __aeabi_d2iz missing

[email protected]
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259617

            Bug ID: 259617
           Summary: ARM support function __aeabi_d2iz missing
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: [email protected]
          Reporter: [email protected]
             Flags: mfc-stable13?, mfc-stable12?

When compiling the following code in Thumb mode on armv6 FreeBSD 13, linking
fails due to an undefined symbol __aeabi_d2iz.  On armv7 FreeBSD 13 the issue
is not directly reproducible because this support function is not needed, but
you can pass -march=armv6 to make it fail the same way.

#include <stdio.h>
#include <stdlib.h>

int main()
{
        double f;

        f = strtod("1.0", NULL);

        printf("%u\n", (unsigned int)f);
}

To compile, type:

$ cc -mthumb -o x x.c                                                           
ld: error: undefined symbol: __aeabi_d2uiz
>>> referenced by x.c
>>>               /tmp/x-c2541a.o:(main)
>>> did you mean: __aeabi_d2iz
>>> defined in: /lib/libc.so.7
cc: error: linker command failed with exit code 1 (use -v to see invocation)

It appears that this function is missing despite being provided in
contrib/llvm-project/compiler-rt/lib/builtins/fixunsdfsi.c.

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.