Landing: 7c3add671b5d
Project / Subsystem
gcc / libssp
Date
2024-08-31
Author
WHR
Commit
7c3add671b5deddb69b2fca3c489e2a06ddd4f90
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libssp
- patch_id
- —
- commit_hash
- 7c3add671b5deddb69b2fca3c489e2a06ddd4f90
- source_type
- github
- headline
- libssp: Include stdlib.h for using alloca(3)
- tldr
- Includes stdlib.h in libssp to declare alloca(3), resolving compilation errors on systems that forbid implicit declarations.
- author
- WHR
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libssp
- • build
- • error handling
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2024-08-31T00:00:00.000Z
GCC’s stricter error checking now flags implicit declarations of alloca as an error, breaking compilation for libssp on some systems. This patch includes stdlib.h, which provides the necessary declaration for alloca(3), resolving the issue and allowing libssp to compile correctly. This change was prompted by compilation failures on FreeBSD and OpenBSD systems.