From d0228c2eaeb942cf8359a2fd08265f935f52dd0a Mon Sep 17 00:00:00 2001
From: Jakub Jelinek <jakub@redhat.com>
Date: Thu, 5 May 2011 14:04:29 +0200
Subject: [PATCH] * gimplify.c (create_tmp_var_raw): Don't call
 build_type_variant.

From-SVN: r173426
---
 gcc/ChangeLog  | 4 ++++
 gcc/gimplify.c | 5 -----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 88b6008244fb..f4b18747335e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2011-05-05  Jakub Jelinek  <jakub@redhat.com>
+
+	* gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
+
 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
 
 	* tree.h (get_pending_sizes): Remove prototype.
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index a554c20e76ba..c4b84c171982 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -427,11 +427,6 @@ tree
 create_tmp_var_raw (tree type, const char *prefix)
 {
   tree tmp_var;
-  tree new_type;
-
-  /* Make the type of the variable writable.  */
-  new_type = build_type_variant (type, 0, 0);
-  TYPE_ATTRIBUTES (new_type) = TYPE_ATTRIBUTES (type);
 
   tmp_var = build_decl (input_location,
 			VAR_DECL, prefix ? create_tmp_var_name (prefix) : NULL,
-- 
GitLab