This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC build failed for native with your patch on2003-08-30T20:00:01Z.


"GCC regression checker" <geoffk@apple.com> writes:

> /Users/regress/tbox/cvs-gcc/gcc/gcc/gengtype.c:718: internal compiler error: tree check: expected field_decl, have tree_list in dbxout_type, at dbxout.c:1795

Geoff, could you please try the appended patch?

zw

        * dbxout.c (dbxout_type): Don't look at TYPE_VFIELD of
        incomplete types.

===================================================================
Index: dbxout.c
--- dbxout.c	5 Aug 2003 21:15:56 -0000	1.157
+++ dbxout.c	30 Aug 2003 22:02:54 -0000
@@ -1775,6 +1775,9 @@ dbxout_type (tree type, int full)
       CHARS (1);
 
       if (use_gnu_debug_info_extensions && TREE_CODE (type) == RECORD_TYPE
+	  /* C front end uses TYPE_VFIELD for something else in
+	     incomplete types.  */
+	  && COMPLETE_TYPE_P (type)
 	  /* Avoid the ~ if we don't really need it--it confuses dbx.  */
 	  && TYPE_VFIELD (type))
 	{


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]