Landing: 5f4e2f10f442
Project / Subsystem
gcc / i386
Date
2026-05-01
Author
Xi Ruoyao
Commit
5f4e2f10f4425c66efef048afded12f31b39fa5e
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- i386
- patch_id
- —
- commit_hash
- 5f4e2f10f4425c66efef048afded12f31b39fa5e
- source_type
- github
- headline
- i386: Disable PIE for tests using check_function_bodies due to PIE incompatibilities.
- tldr
- Several i386 tests using `check_function_bodies` now disable PIE to avoid mismatches in expected function body output.
- author
- Xi Ruoyao
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • i386
- • testsuite
- • pie
- discussion_id_link
- github:gcc-mirror/gcc#70150
- bugzilla_pr
- —
- date
- 2026-05-01T00:00:00.000Z
Several i386 testsuite tests that use check_function_bodies now explicitly disable Position Independent Executable (PIE) generation. These tests compare the actual generated assembly of a function against a pre-defined expected output, and PIE can cause slight variations in the generated code (e.g., different address calculation syntax, extra “@PLT” symbols) that cause the tests to fail. The -fno-pie option is added to the testsuite directives to prevent this issue and ensure the tests execute correctly. This addresses PR testsuite/70150.