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]

Fix trivial bug in dump_generic_node


2004-06-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* tree-pretty-print.c (dump_generic_node, case TYPE_DECL):
	Don't look at TYPE_METHODS unless RECORD_TYPE or UNION_TYPE.

*** tree-pretty-print.c	23 Jun 2004 20:12:43 -0000	2.12
--- tree-pretty-print.c	24 Jun 2004 21:28:49 -0000
*************** dump_generic_node (pretty_printer *buffe
*** 550,554 ****
        else
  	{
! 	  if (TYPE_METHODS (TREE_TYPE (node)))
  	    {
  	      /* The type is a c++ class: all structures have at least
--- 550,556 ----
        else
  	{
! 	  if ((TREE_CODE (TREE_TYPE (node)) == RECORD_TYPE
! 	       || TREE_CODE (TREE_TYPE (node)) == UNION_TYPE)
! 	      && TYPE_METHODS (TREE_TYPE (node)))
  	    {
  	      /* The type is a c++ class: all structures have at least


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