Skip to content

Commit

Permalink
ppc-lynx178: move to ada math functions
Browse files Browse the repository at this point in the history
That version of lynx doesn't not provide all requires symbols for the
math features available in light. Example: sqrtf is not defined.

Thus replace the files pulling the system features to pure Ada
implementation.

llvm-project#21
  • Loading branch information
Helflym committed Dec 4, 2024
1 parent 31dcea3 commit fa83e6d
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions support/rts_sources/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1404,17 +1404,21 @@
"libgnat/a-naliop.ads",
],
"lynx_srcs": [
"hie/a-ngelfu__cert.ads",
"hie/a-ngelfu__cert.adb",
"hie/a-nlelfu__cert.ads",
"hie/a-nuelfu__cert.ads",
"hie/s-gcmain__cert.ads",
"hie/s-gcmain__cert.adb",
"hie/a-nllefu__cert.ads",
"hie/a-nuaufl__light.ads",
"hie/a-nalofl__light.ads",
"hie/a-nallfl__light.ads",
"libgnat/a-naliop.ads",
"hie/a-ngelfu__ada.ads",
"hie/a-ngelfu__ada.adb",
"hie/a-nlelfu__ada.ads",
"hie/a-nuelfu__ada.ads",
"hie/s-gcmain__ada.ads",
"hie/s-gcmain__ada.adb",
"hie/s-libdou__ada.ads",
"hie/s-libdou__ada.adb",
"hie/s-libsin__ada.ads",
"hie/s-libsin__ada.adb",
"hie/s-lidosq__ada.ads",
"hie/s-lisisq__ada.ads",
"hie/s-libm__ada.ads",
"hie/s-libm__ada.adb",
"hie/s-libpre__ada.ads",
],
"pikeos_srcs": [
"hie/a-ngelfu__ada.ads",
Expand Down Expand Up @@ -1464,6 +1468,7 @@
"conditions": ["Add_Math_Lib:!no", "CPU_Family:!x86,!x86_64"],
"bb_srcs": ["libgnat/a-nllefu.ads"],
"freertos_srcs": ["libgnat/a-nllefu.ads"],
"lynx_srcs": ["libgnat/a-nllefu.ads"],
"pikeos_srcs": ["libgnat/a-nllefu.ads"],
},
"math/long_long_80bit": {
Expand Down Expand Up @@ -1516,24 +1521,28 @@
"conditions": ["Add_Math_Lib:softfloat,hardfloat_dp"],
"bb_srcs": ["hie/s-lisisq__ada.adb"],
"freertos_srcs": ["hie/s-lisisq__ada.adb"],
"lynx_srcs": ["hie/s-lisisq__ada.adb"],
"pikeos_srcs": ["hie/s-lisisq__ada.adb"],
},
"math/softdp": {
"conditions": ["Add_Math_Lib:softfloat,hardfloat_sp"],
"bb_srcs": ["hie/s-lidosq__ada.adb"],
"freertos_srcs": ["hie/s-lidosq__ada.adb"],
"lynx_srcs": ["hie/s-lidosq__ada.adb"],
"pikeos_srcs": ["hie/s-lidosq__ada.adb"],
},
"math/hardsp": {
"conditions": ["Add_Math_Lib:hardfloat,hardfloat_sp"],
"bb_srcs": ["hie/s-lisisq__fpu.adb"],
"freertos_srcs": ["hie/s-lisisq__fpu.adb"],
"lynx_srcs": ["hie/s-lisisq__fpu.adb"],
"pikeos_srcs": ["hie/s-lisisq__fpu.adb"],
},
"math/harddp": {
"conditions": ["Add_Math_Lib:hardfloat,hardfloat_dp"],
"bb_srcs": ["hie/s-lidosq__fpu.adb"],
"freertos_srcs": ["hie/s-lidosq__fpu.adb"],
"lynx_srcs": ["hie/s-lidosq__fpu.adb"],
"pikeos_srcs": ["hie/s-lidosq__fpu.adb"],
},
# Arithmetic
Expand Down

0 comments on commit fa83e6d

Please sign in to comment.