[RX] : Wrong alignment of falign-labels=n
Sandeep Kumar Singh
Sandeep.Singh2@kpit.com
Mon Jun 9 09:55:00 GMT 2014
Hi Chung-Ju Wu,
>> You can try to use align_labels_log to see if it generates
Thank you for reply on my query.
I have verified this behavior with native GCC and GNU ARM compiler,
RX,
$rx-elf-gcc -falign-labels=4 test.c -msim -S
.balign 16,3,1 <<== A
.L4:
mov.L 8[r6], r10
mov.L r10, [r6]
.balign 16,3,1 <<== A
ARM,
$arm-rz-eabi-gcc -falign-labels=4 test.c -S
.p2align 2 <<== B
.L6:
ldr r3, [fp, #-20]
str r3, [fp, #-8]
.p2align 2 <<== B
GCC,
gcc -falign-labels=4 test.c -S
.p2align 2 <<== C
.L4:
movl 12(%ebp), %eax
movl %eax, -4(%ebp)
.p2align 2 <<== C
It seems wrong implementation of option '-falign-labels=n' for RX target.
Additionally, options 'align_labels_log' '-falign_labels_log', is showing below error,
'unrecognized command line option'
Is anything I am doing wrong?
I appreciated for further help.
Regards,
Sandeep Kumar Singh
Senior Technical member staff, AESBU - Infotainment & Clusters
KPIT Technologies Limited
Phone: +91-20-66525000 | cell: +91-9730704579
More information about the Gcc-help
mailing list