Landing: 218780d6c7b9

Project / Subsystem

gcc / risc-v

Date

2026-06-04

Author

Kito Cheng

Commit

218780d6c7b93cec4d7088079820491b6b8f2771

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
risc-v
patch_id
commit_hash
218780d6c7b93cec4d7088079820491b6b8f2771
source_type
github
headline
RISC-V: Specifies cmodel in option default specs.
tldr
The RISC-V GCC port now explicitly specifies the default code model in `OPTION_DEFAULT_SPECS` for improved multilib support.
author
Kito Cheng
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • risc-v
  • multilib
  • compiler-options
discussion_id_link
bugzilla_pr
date
2026-06-04T00:00:00.000Z

The RISC-V GCC port now specifies the default code model (cmodel) directly within OPTION_DEFAULT_SPECS. While TARGET_DEFAULT_CMODEL generally sets the default, this explicit specification is necessary to correctly handle multilib configurations. This ensures that the compiler accurately detects and applies the appropriate code model for different multilib targets, improving the reliability of RISC-V binaries built with GCC.