tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] regression in tinycc x86 assembly/pre-processor parser


From: Michael Ackermann
Subject: [Tinycc-devel] regression in tinycc x86 assembly/pre-processor parser
Date: Sat, 16 Nov 2024 03:31:39 +0000

Greetings.

While regression-testing tcc against linux-2.4.37.11 kernel compilation another
problem got introduced some time on tcc mob branch:

$ i386-tcc -E -P -I../linux/include setup.S \
-D__ASSEMBLY__ -D__KERNEL__ -D__BIG_KERNEL__ -o setup.s

### inside a comment section number parsing isn't ignored although it should be:
# Ye Olde Traditional Methode.  Returns the memory size (up to 16mb or
# 64mb, depending on the bios) in ax. ### <- line 391
mem88:

### yields -> setup.S:391: error: invalid number

Although tcc doesn't support 16bit real-mode assembly, it was possible before
to pre-process the mentioned assembly file with it and then dumping the
pre-processed output into binutils-as.

The assembly parsing problem got introduced some time in between
commit e7262accb6e6965452e7f82c0ff281ef8412af4d (march 2023,assembly parsing OK)
... latest HEAD (2024, problem with assembly/pre-processing parsing FAILURE)

I could not in detail identify/bisect exactly which commit introduced the
problem, nor haven't i got a patch to offer for it yet.
Let me know if further details are necessary to re-produce the issue.
Currently i'm idling in #tcc channel at OFTC.

Regards.
aggi
-- 

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]