Adriaan van Os wrote:
I forgot to mention that I get a number of warnings:
[G4:~/gnu/testgpc/adriaan] adriaan% gpc -c -o hello.o hello.pas -gstabs+ [G4:~/gnu/testgpc/adriaan] adriaan% objdump hello.o -g >> /dev/null
hello.o: file format mach-o-be
Warning: changing type size from 1 to 4 Warning: changing type size from 4 to 1 Warning: changing type size from 1 to 2 Warning: changing type size from 2 to 4 Warning: changing type size from 4 to 8
The warnings seem harmless. I do not get two first on i386, the last three are about `Shortbool', `Wordbool' and `Longbool'.
Also, I experimented with a modified version of the testsuite (adding objdump a.out >> /dev/null). This reveals more stab problems, for example:
[G4:~/gnu/testgpc/adriaan] adriaan% gpc -o adam2 adam2.pas -gstabs+ --automake
I do not expect quick solution (if ever...) to this problem. Stabs debugging format encodes types of methods in assembler names. I do not know if we can make it work for Pascal, the encoding was designed only for C++. And even for C++ stab method was limiting, so DWARF-2 was invented.
I will look at the problem, it is closely related to qualified identifiers. Thanks for the report.