aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2013-02-14 17:41:29 -0800
committerRichard Henderson <rth@gcc.gnu.org>2013-02-14 17:41:29 -0800
commit576fe41adc751a29ba41b01cce29baec4bb481b3 (patch)
tree2de6a4718fca994f8220419b3000cac075382830 /gcc
parent9b2f0394a02119a605017481a138bb10b5624077 (diff)
downloadgcc-576fe41adc751a29ba41b01cce29baec4bb481b3.zip
gcc-576fe41adc751a29ba41b01cce29baec4bb481b3.tar.gz
gcc-576fe41adc751a29ba41b01cce29baec4bb481b3.tar.bz2
re PR target/55941 (Strange copy of double (in struct) to stack)
PR target/55941 * lower-subreg.c (simple_move): Check dest mode instead of src mode. From-SVN: r196071
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/lower-subreg.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 49739f2..e8ca6ee 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-14 Richard Henderson <rth@redhat.com>
+
+ PR target/55941
+ * lower-subreg.c (simple_move): Check dest mode instead of src mode.
+
2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
* collect2-aix.h: Define F_LOADONLY.
diff --git a/gcc/lower-subreg.c b/gcc/lower-subreg.c
index 5bf6cc1..228d3a2 100644
--- a/gcc/lower-subreg.c
+++ b/gcc/lower-subreg.c
@@ -343,7 +343,7 @@ simple_move (rtx insn, bool speed_p)
registers. That means that we can't decompose if this is a
non-integer mode for which there is no integer mode of the same
size. */
- mode = GET_MODE (SET_SRC (set));
+ mode = GET_MODE (SET_DEST (set));
if (!SCALAR_INT_MODE_P (mode)
&& (mode_for_size (GET_MODE_SIZE (mode) * BITS_PER_UNIT, MODE_INT, 0)
== BLKmode))