https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67745
Bug ID: 67745
Summary: [ARM] wrong alignments when __attribute__
((optimize,target,align) is used
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: chrbr at gcc dot gnu.org
Target Milestone: ---
alignment directives emitted by the compiler are inconsistent for ARM when
attributes target are used.
for instance this code compiled with -Os -mthumb,
void __attribute__ ((target ("arm")))
c(void)
{
}
emits
.text
.align 1
.global c
.syntax divided
.arm
.type c, %function
it should have the function 'c' aligned on 2^2 bytes, not 2^1