https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119367

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
The diff for a.xamdgcn-amdhsa.mkoffload.270r.expand shows identical output.

When glancing at the diff for a.xamdgcn-amdhsa.mkoffload.1.s, I noticed a large
 increase in the 'local vars size':
-       ; local vars size: 1472
-       ; callee save size: 2136
+       ; local vars size: 6840
+       ; callee save size: 2184


Regarding:

./a.xamdgcn-amdhsa.mkoffload.2.s:75841:9: error: value evaluated as 113052 is
out of range.
        .2byte  .LM6-.LM5

If one just looks at the line numbers of the labels in the assembly file, one
sees:

2095:.L7:
2096:.LM5:
23455:.LM6:

Thus, '.LM5' spans a rather large number of lines (namely 21,360 lines), which
seems to translate (llvm-mc output) to 113,052 bytes, which is > 2^16 = 65,536
that fit into .2byte.

Reply via email to