https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118889
Bug ID: 118889
Summary: attribute "common" ignored with -fdata-sections
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: gjl at gcc dot gnu.org
Target Milestone: ---
gcc from 2025-02-14 ignores attribute "common" with -fdata-sections:
__attribute__((common))
static volatile int z;
int main ()
{
return z;
}
.section .bss.z,"aw",@nobits
.type z, @object
.size z, 2
z:
.zero 2
.ident "GCC: (GNU) 15.0.1 20250214 (experimental)"