]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Fix gcc.dg/torture/tls/tls-reload-1.c
authorRichard Henderson <rth@redhat.com>
Thu, 3 Jan 2013 23:26:13 +0000 (15:26 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 3 Jan 2013 23:26:13 +0000 (15:26 -0800)
        * config/i386/i386.c (ix86_expand_move): Always assign to op1
        after eliminating TLS symbols.

From-SVN: r194873

gcc/ChangeLog
gcc/config/i386/i386.c

index 80bfc2f86b678620a46d70d90773e5663242dd0b..f27a56b15d8c90aa488e3bec3444e9656409380c 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-03  Richard Henderson  <rth@redhat.com>
+
+       * config/i386/i386.c (ix86_expand_move): Always assign to op1
+       after eliminating TLS symbols.
+
 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
 
        PR bootstrap/50167
index 60f68d45369a620596bd47b723ad43226ef1a22e..6dffe14b23f6097a162f656833fd6685b902e4fd 100644 (file)
@@ -1,6 +1,6 @@
 /* Subroutines used for code generation on IA-32.
-   Copyright (C) 1988, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-   2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
+   Copyright (C) 1988, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+   2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -15960,8 +15960,7 @@ ix86_expand_move (enum machine_mode mode, rtx operands[])
                                     op0, 1, OPTAB_DIRECT);
          if (tmp == op0)
            return;
-         if (GET_MODE (tmp) != mode)
-           op1 = convert_to_mode (mode, tmp, 1);
+         op1 = convert_to_mode (mode, tmp, 1);
        }
     }