about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorChris Copeland <chris@chrisnc.net>2024-03-28 00:57:09 -0700
committerChris Copeland <chris@chrisnc.net>2024-04-04 22:10:45 -0700
commit0459e55375b15b28830e7ad1052a63d40268080e (patch)
treebf4e69b415dc030412a826ced6d924fea1332037 /compiler/rustc_codegen_gcc
parent3d7e88148a00c99e444c8f287d73ebe1846bc7aa (diff)
downloadrust-0459e55375b15b28830e7ad1052a63d40268080e.tar.gz
rust-0459e55375b15b28830e7ad1052a63d40268080e.zip
Fix target-cpu fpu features on Armv7-R, Armv7-M, and Armv8-M
This is achieved by converting `+<fpu>,-d32,{,-fp64}` to `+<fpu>d16{,sp}`.

By using a single additive feature that captures `d16` vs `d32` and `sp` vs
`dp`, we prevent `-<feature>` from overriding `-C target-cpu` at build time.

Remove extraneous `-fp16` from `armv7r` targets, as this is not included in
`vfp3` anyway, but was preventing `fp16` from being enabled by e.g.,
`-C target-cpu=cortex-r7`, which does support `fp16`.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions