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]

[PATCH][tuples] Fix gcc.dg/tree-ssa/pr32901.c


Here we prefix a constructor assignment with [constructor] which trunk
doesn't do.

Fixed with the following.

Richard.

2008-07-14  Richard Guenther  <rguenther@suse.de>

	* gimple-pretty-print.c (dump_unary_rhs): Do not prefix
	CONSTRUCTOR with [constructor].

Index: gimple-pretty-print.c
===================================================================
*** gimple-pretty-print.c	(revision 137785)
--- gimple-pretty-print.c	(working copy)
*************** dump_unary_rhs (pretty_printer *buffer,
*** 285,291 ****
  	  || TREE_CODE_CLASS (rhs_code) == tcc_constant
  	  || TREE_CODE_CLASS (rhs_code) == tcc_reference
  	  || rhs_code == SSA_NAME
! 	  || rhs_code == ADDR_EXPR)
  	; /* do nothing.  */
        else if (rhs_code == BIT_NOT_EXPR)
  	pp_string (buffer, "~");
--- 285,292 ----
  	  || TREE_CODE_CLASS (rhs_code) == tcc_constant
  	  || TREE_CODE_CLASS (rhs_code) == tcc_reference
  	  || rhs_code == SSA_NAME
! 	  || rhs_code == ADDR_EXPR
! 	  || rhs_code == CONSTRUCTOR)
  	; /* do nothing.  */
        else if (rhs_code == BIT_NOT_EXPR)
  	pp_string (buffer, "~");


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