https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126723
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[16/17 Regression] |aarch64-darwin: temporary
|aarch64-darwin: temporary |L.str labels miscompile
|L.str labels miscompile |literals after a
|literals after a |weak_definition
|weak_definition |
Last reconfirmed| |2026-08-07
Status|UNCONFIRMED |WAITING
Target|*darwin |aarch64-darwin
Ever confirmed|0 |1
--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Note aarch64 darwin support is not upstream yet so this should be filed at
https://github.com/iains/gcc-darwin-arm64 .
Second does this also happen for x86_64-darwin with GCC 16?
Your code example has .s file which is aarch64-darwin specific and shows where
the problem is with the .s file but GCC does not include an assembler.