Landing: c21bc4887dec
Project / Subsystem
gcc / pdp11
Date
2026-09-10
Author
Richard Sandiford
Commit
c21bc4887dec4204dfdfa7687a2e3b35306c6f04
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- pdp11
- patch_id
- —
- commit_hash
- c21bc4887dec4204dfdfa7687a2e3b35306c6f04
- source_type
- github
- headline
- pdp11: Avoid a maybe-uninitialized warning
- tldr
- PDP-11 backend avoids a compiler warning by restructuring `pdp11_rtx_costs` to initialize variables within their usage scope.
- author
- Richard Sandiford
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • pdp11
- • compiler warning
- • build
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-10T00:00:00.000Z
This commit addresses a potential compiler warning on the PDP-11 backend related to uninitialized variables. In the pdp11_rtx_costs function, a variable src was used after being conditionally assigned based on GET_RTX_LENGTH. To resolve this, the assignment of src has been duplicated and moved directly into the two code blocks that use it, ensuring it is always initialized before use and silencing the warning. This change is necessary for successful builds with config-list.mk.