Landing: 87f35e3e8ffd

Project / Subsystem

gcc / testsuite

Date

2026-04-10

Author

Dimitar Dimitrov

Commit

87f35e3e8ffd48919df3cf9f21d0956e496f1507

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
testsuite
patch_id
—
commit_hash
87f35e3e8ffd48919df3cf9f21d0956e496f1507
source_type
github
headline
Add missing target fpic requirement for tests using -fpic/-fPIC.
tldr
Test suite now requires effective target fpic for tests explicitly passing -fpic/-fPIC.
author
Dimitar Dimitrov
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • testsuite
  • • PIC
  • • cross-compilation
discussion_id_link
—
bugzilla_pr
—
date
2026-04-10T00:00:00.000Z

Several test cases in the GCC test suite that explicitly use the -fpic or -fPIC flags were failing on certain targets due to a missing requirement for the effective target to support Position Independent Code (PIC). This commit adds the necessary require target fpic directive to these tests, resolving spurious failures on platforms like pru-unknown-elf and avr.