aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1997-09-10 15:04:24 -0700
committerJim Wilson <wilson@gcc.gnu.org>1997-09-10 15:04:24 -0700
commit04395f964f8c0a0bd8c08d5ca040f9c709a4766c (patch)
tree6955c61fc74e8780cc547a89ad8bb905af5b3360 /gcc
parentbecdcf6da0322c8bcd04ae4723b2f16b9a4e4fa4 (diff)
downloadgcc-04395f964f8c0a0bd8c08d5ca040f9c709a4766c.zip
gcc-04395f964f8c0a0bd8c08d5ca040f9c709a4766c.tar.gz
gcc-04395f964f8c0a0bd8c08d5ca040f9c709a4766c.tar.bz2
Fix problem reported by chris@lslsun.epfl.ch (Christian Iseli)
Fix problem reported by chris@lslsun.epfl.ch (Christian Iseli) * emit-rtl.c (gen_lowpart_common): For a SUBREG, add in word when create new subreg. From-SVN: r15391
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/emit-rtl.c2
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f2cb5a3..05261bc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,8 +1,13 @@
+Wed Sep 10 14:58:40 1997 Jim Wilson <wilson@cygnus.com>
+
+ * emit-rtl.c (gen_lowpart_common): For a SUBREG, add in word when
+ create new subreg.
+
Wed Sep 10 15:19:22 1997 Jeffrey A Law (law@cygnus.com)
* config.sub: Accept 'amigados' for backward compatability.
-Wed Sep 10 14:05:08 1997 Jim Wilson <wilson@cygnus.com>
+Wed Sep 10 14:05:08 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
* Makefile.in (testsuite/site.exp): New target.
(check-gcc, check-g++): Depend on testsuite/site.exp.
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 86948de..cc2834b 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -664,7 +664,7 @@ gen_lowpart_common (mode, x)
|| GET_MODE_SIZE (mode) == GET_MODE_UNIT_SIZE (GET_MODE (x))))
return (GET_MODE (SUBREG_REG (x)) == mode && SUBREG_WORD (x) == 0
? SUBREG_REG (x)
- : gen_rtx (SUBREG, mode, SUBREG_REG (x), SUBREG_WORD (x)));
+ : gen_rtx (SUBREG, mode, SUBREG_REG (x), SUBREG_WORD (x) + word));
else if (GET_CODE (x) == REG)
{
/* If the register is not valid for MODE, return 0. If we don't