Landing: cf703b60e49d
Project / Subsystem
gcc / ada
Date
2026-03-17
Author
Ronan Desplanques
Commit
cf703b60e49d39d3ea80f3c23c490bf005481caf
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- cf703b60e49d39d3ea80f3c23c490bf005481caf
- source_type
- github
- headline
- Ada No Longer Depends on gnat_envp for Environment Variables
- tldr
- The Ada runtime no longer relies on the non-standard `gnat_envp` global for accessing environment variables, improving compatibility and correctness.
- author
- Ronan Desplanques
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • environment variables
- • compatibility
- • runtime
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-03-17T00:00:00.000Z
The Ada runtime’s handling of environment variables has been updated to use the standard environ mechanism (or its equivalent on other platforms) instead of the GNAT-specific gnat_envp. This eliminates potential null pointer dereferences and linking failures, especially in mixed C/Ada projects. The change also ensures consistency across platforms with respect to putenv calls.