public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Fix MIPS C++ ICE
@ 2001-11-13 15:03 Richard Kenner
  0 siblings, 0 replies; only message in thread
From: Richard Kenner @ 2001-11-13 15:03 UTC (permalink / raw)
  To: gcc-patches

This fixes an ICE reported earlier today by HJL.  Either of these changes
will fix the problem, but both represent bugs.

Sun Nov 18 16:47:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
	after re-laying out decl in incomplete case.
	(expand_expr, case ADDR_EXPR): Fix typo in copy case.

*** expr.c	2001/11/18 19:36:01	1.381
--- expr.c	2001/11/18 21:39:22
*************** expand_expr (exp, target, tmode, modifie
*** 6290,6293 ****
--- 6290,6294 ----
  	  layout_decl (exp, 0);
  	  PUT_MODE (DECL_RTL (exp), DECL_MODE (exp));
+ 	  set_mem_align (DECL_RTL (exp), DECL_ALIGN (exp));
  	}
  
*************** expand_expr (exp, target, tmode, modifie
*** 8675,8679 ****
  		  (TYPE_MODE (inner_type),
  		   MEM_SIZE (op0) ? INTVAL (MEM_SIZE (op0))
! 		   : int_size_in_bytes (TREE_TYPE (inner_type)),
  		   1, build_qualified_type (inner_type,
  					    (TYPE_QUALS (inner_type)
--- 8676,8680 ----
  		  (TYPE_MODE (inner_type),
  		   MEM_SIZE (op0) ? INTVAL (MEM_SIZE (op0))
! 		   : int_size_in_bytes (inner_type),
  		   1, build_qualified_type (inner_type,
  					    (TYPE_QUALS (inner_type)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-18 21:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-13 15:03 Fix MIPS C++ ICE Richard Kenner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).