[Bug c++/87373] Packed structs are not handled properly on ARM architecture even with misaligned access is enabled
umesh.kalappa0 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Sep 21 08:59:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373
Umesh Kalappa <umesh.kalappa0 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |umesh.kalappa0 at gmail dot com
--- Comment #1 from Umesh Kalappa <umesh.kalappa0 at gmail dot com> ---
with trunk i see below output for the attached case .
main:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
sub sp, sp, #8
movw r3, #1025
str r3, [sp]
ldr r0, [sp]
ldr r3, .L4
uxtb r0, r0
str sp, [r3]
add sp, sp, #8
@ sp needed
bx lr
$ arm-windriver-linux-gnueabi-gcc -mcpu=cortex-m3 -mthumb '-DDEBUG=1' -O2
-pedantic -Wall -Wextra -fmessage-length=0 -mno-sched-prolog -fno-builtin
-fshort-enums test.c -S
More information about the Gcc-bugs
mailing list