Closed medhefgo closed 1 year ago
Seems like this is a know issue see:
and also see discussion here: https://reviews.llvm.org/D91460
It looks like gcc and edg accept this: https://godbolt.org/z/TcMYb9Pz3
So we should fix but not sure what the result should be.
CC @nickdesaulniers @MaskRay to see who the correct person to include on what the fix should be and if this is possibly a good first problem.
LLVM integrated assembler rejecting .asciz "a" "b"
(juxtaposition) (error: unexpected token
) is intended.
GNU assembler has a behavior change in Nov 2020. https://sourceware.org/pipermail/binutils/2020-November/114172.html
.data
.asciz "a", "b" "c", "d"
was assembled to 61006200 63006400
and now 61006263 006400
.
I think rejecting the behavior is reasonable as nobody relied on the use case in the wild (and dangerous if they do, as GNU assembler has a behavior change not too long ago).
All three directives allow string concatenation with GNU as while the llvm assembler rejects the latter two.
At least for
.asciz
, the GNU as manual is explicit: