Skip to content

Commit

Permalink
Merge branch 'mr/llvm-equivalent-of-general-regs-only' into 'master'
Browse files Browse the repository at this point in the history
Use -mno-implicit-float for GNAT-LLVM instead of -mgeneral-regs-only

See merge request eng/toolchain/bb-runtimes!80
  • Loading branch information
sebastianpoeplau committed Mar 15, 2024
2 parents d79c3c5 + dd9cf0c commit 3881098
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion aarch64/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ def amend_rts(self, rts_profile, conf):
# switch and does so by doing lazy context switches: this restores
# the registers only when they are used by apps. This means that if
# a FPU register is used out of context, then we're doomed.
conf.build_flags["common_gnarl_flags"] += ["-mgeneral-regs-only"]
conf.build_flags["common_gnarl_flags"] += [
"-mgeneral-regs-only"
if not using_llvm_compiler()
else "-mno-implicit-float"
]

def dump_runtime_xml(self, rts_name, rts):
cnt = super(Aarch64Target, self).dump_runtime_xml(rts_name, rts)
Expand Down

0 comments on commit 3881098

Please sign in to comment.