On 04.05.2026 11:08, Jerry Jin wrote:
Problem:
....

Fix:
....

Open issue:
....

There is missing

Test:
  <how you will want to test your fix after you wrote it>

Please review attached patch file, thanks!

I'm afraid there is no people here who want to extract patches
from email and run tests for other people ;)

There are some useful switches though for objdump that might
help:

$ objdump --help
$ objdump -d -z --insn-width=1 test.o
$ objdump -j .text -s test.o

Also you might want to write a short test file, for example:

test.S:
   mov $0x12345678, %ebx
   .p2align 4
   ret

$ tcc -c test.S && objdump ... test.o

So this is how you could test your fix.

Of course you also need to know what .p2align is supposed to do
at all, exactly.  If you do not know that then you cannot do
anything because you will not know whether your fix is correct
even when you test it.


Regards
Jerry

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to