Landing: 3adc17073b38
Project / Subsystem
gcc / sh
Date
2026-09-08
Author
Jack O'Donohue
Commit
3adc17073b38eb5a29e228c05f4b35dfc4d87fee
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- sh
- patch_id
- —
- commit_hash
- 3adc17073b38eb5a29e228c05f4b35dfc4d87fee
- source_type
- github
- headline
- SH: Fix __builtin_sh_{get,set}_fpscr ICE on targets without FPU
- tldr
- Correctly enables FP register built-ins only on SH targets with an FPU.
- author
- Jack O'Donohue
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • sh
- • builtins
- • compiler error
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-08T00:00:00.000Z
Previously, _builtin_sh{get,set}_fpscr was enabled on SH targets even if they lacked an FPU, leading to an ICE. This change modifies the condition for enabling these built-ins to correctly check for the presence of TARGET_FPU_ANY, preventing the ICE and ensuring they are only available when an FPU is present. New test cases verify this fix.