[PATCH][mem-ref2] Adjust i386.c INDIRECT_REF use
Richard Guenther
rguenther@suse.de
Fri Jun 25 15:50:00 GMT 2010
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.
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);
More information about the Gcc-patches
mailing list