Patchwork [mem-ref2] Adjust i386.c INDIRECT_REF use

login
register
mail settings
Submitter Richard Guenther
Date June 25, 2010, 2:34 p.m.
Message ID <alpine.LNX.2.00.1006251633510.1429@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/56916/
State New
Headers show

Comments

Richard Guenther - June 25, 2010, 2:34 p.m.
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2010-06-25  Richard Guenther  <rguenther@suse.de>

	* config/i386/i386.c (ix86_canonical_va_list_type): Replace
	INDIRECT_REF handling with MEM_REF.

Patch

Index: gcc/config/i386/i386.c
===================================================================
--- gcc/config/i386/i386.c	(revision 161369)
+++ gcc/config/i386/i386.c	(working copy)
@@ -30580,7 +30580,7 @@  ix86_canonical_va_list_type (tree type)
   tree wtype, htype;
 
   /* Resolve references and pointers to va_list type.  */
-  if (INDIRECT_REF_P (type))
+  if (TREE_CODE (type) == MEM_REF)
     type = TREE_TYPE (type);
   else if (POINTER_TYPE_P (type) && POINTER_TYPE_P (TREE_TYPE(type)))
     type = TREE_TYPE (type);