Landing: 63874092cb70

Project / Subsystem

gcc / testsuite

Date

2026-05-12

Author

Alexandre Oliva

Commit

63874092cb70e723814a8a25dc2a0c17e6d63adb

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
testsuite
patch_id
commit_hash
63874092cb70e723814a8a25dc2a0c17e6d63adb
source_type
github
headline
Testsuite: RISC-V: Reset -march for tests with -mcpu
tldr
Resets the architecture flag (-march) in RISC-V tests when using -mcpu to ensure the architecture implied by -mcpu prevails.
author
Alexandre Oliva
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • testsuite
  • riscv
  • build
discussion_id_link
bugzilla_pr
date
2026-05-12T00:00:00.000Z

This commit addresses a test failure in the RISC-V testsuite that occurs when --target_board sets -march to a 32-bit architecture, conflicting with the architecture implied by -mcpu. The fix resets the -march flag so the -mcpu setting takes precedence, ensuring the tests run with the intended architecture.