http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52314

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-21 
12:11:42 UTC ---
I am testing

Index: gcc/gimplify.c
===================================================================
--- gcc/gimplify.c      (revision 184428)
+++ gcc/gimplify.c      (working copy)
@@ -504,7 +504,8 @@ create_tmp_reg (tree type, const char *p
 static inline tree
 create_tmp_from_val (tree val)
 {
-  return create_tmp_var (TREE_TYPE (val), get_name (val));
+  /* Drop all qualifiers and address-space information from the value type. 
*/
+  return create_tmp_var (TYPE_MAIN_VARIANT (TREE_TYPE (val)), get_name (val));
 }

 /* Create a temporary to hold the value of VAL.  If IS_FORMAL, try to reuse

Reply via email to