On 7/13/2026 7:06 PM, Jim Lin wrote:
parse_arch tested "if (*m_loc)", dereferencing the location_t pointer,
while every other diagnostic site guards with "if (m_loc)". Since
m_loc can be NULL, test the pointer instead of dereferencing it.
gcc/ChangeLog:
* config/riscv/riscv-target-attr.cc
(riscv_target_attr_parser::parse_arch): Check m_loc instead of
*m_loc before emitting the diagnostic.
Signed-off-by: Jim Lin <[email protected]>
OK. I've pushed this as well as your zicond fix to the trunk.
jeff