Landing: ee79e2769671

Project / Subsystem

gcc / gcc

Date

2026-05-12

Author

Naveen

Commit

ee79e2769671b894f4c4cc98e8c76bbc937f2a51

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
commit_hash
ee79e2769671b894f4c4cc98e8c76bbc937f2a51
source_type
github
headline
Make aarch64_output_simd_mov_imm_low return const char *
tldr
Changes the return type of aarch64_output_simd_mov_imm_low to const char * to avoid a -Werror=write-strings failure.
author
Naveen
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • aarch64
  • compiler
  • type safety
discussion_id_link
bugzilla_pr
date
2026-05-12T00:00:00.000Z

The function aarch64_output_simd_mov_imm_low in GCC’s AArch64 backend emits an instruction directly and returns an empty string. Since this empty string is a string literal, this commit changes the return type of the function to const char * from char *. This resolves a compilation error (-Werror=write-strings) that arises when the compiler prevents assigning a string literal to a non-const char *.