From 5440a1b0fe1122a2e044023c9c7508d9205bfa14 Mon Sep 17 00:00:00 2001
From: Chung-Lin Tang <cltang@codesourcery.com>
Date: Sat, 13 Oct 2012 09:28:26 +0000
Subject: [PATCH] builtins.c (expand_builtin_set_thread_pointer): Use
 create_input_operand() instead of create_fixed_operand().

2012-10-13  Chung-Lin Tang  <cltang@codesourcery.com>

	* builtins.c (expand_builtin_set_thread_pointer): Use
	create_input_operand() instead of create_fixed_operand().

From-SVN: r192422
---
 gcc/ChangeLog  | 5 +++++
 gcc/builtins.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 190748015d29..fa3c54d57284 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-13  Chung-Lin Tang  <cltang@codesourcery.com>
+
+	* builtins.c (expand_builtin_set_thread_pointer): Use
+	create_input_operand() instead of create_fixed_operand().
+
 2012-10-13  Uros Bizjak  <ubizjak@gmail.com>
 
 	* config/alpha/alpha.md (FMODE): New mode iterator.
diff --git a/gcc/builtins.c b/gcc/builtins.c
index fb8d83a14e9f..c309566919ec 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -5776,7 +5776,7 @@ expand_builtin_set_thread_pointer (tree exp)
       struct expand_operand op;
       rtx val = expand_expr (CALL_EXPR_ARG (exp, 0), NULL_RTX,
 			     Pmode, EXPAND_NORMAL);      
-      create_fixed_operand (&op, val);
+      create_input_operand (&op, val, Pmode);
       expand_insn (icode, 1, &op);
       return;
     }
-- 
GitLab