On 21.08.2025 15:00, grischka via Tinycc-devel wrote:
On 21.08.2025 12:02, Herman ten Brugge wrote:
I debugged this and for stabs and dwarf it is used to register anon structs
(struct with no definition):
Hi,
I just pushed a patch to handle stabs forward decls.
The idea is to store the info directly into the type symbol.
Such there aren't any problems with scope because if the symbol
goes away then the info also does automatically.
Also it came to me (when counting 9 calls to tcc_debug_check_forw())
that basically, as long as a struct declaration is incomplete
there can be only pointers. Maybe if 'struct xyz *' was made its
own debug type then there would be only on location to be patched
later. Anyway, just an idea...
--- grischka
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel