Frank Heckenbach wrote:
J. David Bryan wrote:
These two hints enabled me to find the problematic change by looking through the respective diffs. I think the following should fix it.
--- /home/gpc/src/p/gpc-decl.c.orig Sun Aug 25 05:03:34 2002 +++ /home/gpc/src/p/gpc-decl.c Sun Sep 1 04:02:45 2002 @@ -3134,7 +3134,9 @@
if (TREE_CODE (x) == TYPE_DECL) {
if (DECL_SOURCE_LINE (x) == 0 && TYPE_NAME (TREE_TYPE (x)) == 0)
if (TYPE_NAME (TREE_TYPE (x)) == x)
;
else if (DECL_SOURCE_LINE (x) == 0 && TYPE_NAME (TREE_TYPE (x)) == 0) TYPE_NAME (TREE_TYPE (x)) = x; else if (TREE_TYPE (x) != error_mark_node) {
The bug did not show up with the default debugging format for djgpp (COFF). But since stabs is much better for pascal debugging than COFF, I have recompiled gpc 2.1 with this only change (not others which might be in CVS) and uploaded it in the "contrib" section under
http://www.gnu-pascal.de/contrib/maurice/gpc-2.1-gcc-2953.i586-pc-msdosdjgpp...
(not yet in the "current" section to avoid confusion: pgp signatures etc..)
I use gdb 5.2 under rhide/djgpp (it is necessary to compile with the explicit option -gstabs)
I have checked that there are no errors in the test suite, the program given by David Bryan and some other programs of mine.
Hope this helps
Maurice