gas couldn't handle comments leaved by C preprocessor properly

2021-10-03 Thread lhq...@126.com
Hi! I'm trying to port GCC and binutils to AArch64-Android platform, and something unusual happened in the process. I found that GNU as (gas) couldn't handle comments leaved by C preprocessor properly: t.c: #include #include int main(int ac, char **av) { printf("

回复:gas couldn't handle comments leaved by C preprocessor properly

2021-10-03 Thread lhq...@126.com
This is t_.s: (assemble code after CPP)# 0 "t.s"# 0 ""# 0 ""# 1 "t.s" .arch armv8-a .file "t.c" .text .section .rodata .align 3.LC0: .string " START "..    I have try every means to confirm if it is a bug rather than a mistake I have made. I found that gas 2.29 in APP C4droid wo