Page MenuHomeFreeBSD

libgcc_s: __extendxftf2 and __trunctfxf2 are amd64-only
ClosedPublic

Authored by brooks on May 1 2024, 10:00 PM.
Tags
None
Referenced Files
F102449601: D45052.id137986.diff
Tue, Nov 12, 10:49 AM
Unknown Object (File)
Sat, Nov 9, 6:30 PM
Unknown Object (File)
Sat, Nov 9, 6:30 PM
Unknown Object (File)
Sat, Nov 9, 6:29 PM
Unknown Object (File)
Fri, Nov 8, 5:36 PM
Unknown Object (File)
Thu, Nov 7, 8:18 AM
Unknown Object (File)
Wed, Nov 6, 8:41 AM
Unknown Object (File)
Wed, Nov 6, 8:41 AM
Subscribers

Details

Summary

extendxftf2 and trunctfxf2 build on amd64 not aarch64 and riscv.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/libgcc_s/Symbol.map
225

Shouldn't this be an or? Although I'm not entirely sure if it builds for i386 since it needs int128.

brooks retitled this revision from libgcc_s: __extendxftf2 and __trunctfxf2 are x86 symbols to libgcc_s: __extendxftf2 and __trunctfxf2 are amd64-only.May 2 2024, 4:19 PM
brooks edited the summary of this revision. (Show Details)

These symbols are amd64-only

brooks added inline comments.
lib/libgcc_s/Symbol.map
225

*sigh* how did this even compile?

lib/libgcc_s/Symbol.map
225

the source files for these are in a .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" block in lib/libcompiler_rt/Makefile.inc?

brooks marked an inline comment as done.

Avoid a couple compiler invocations to create empty object files

lib/libgcc_s/Symbol.map
225

The pre-conditions aren't met when targeting i386 so the object files end up empty. I've tweaked the makefile to avoid those compiler invocations.

This revision is now accepted and ready to land.May 2 2024, 5:10 PM