aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>1999-10-14 06:24:21 +0000
committerRichard Henderson <rth@gcc.gnu.org>1999-10-13 23:24:21 -0700
commit5ee95df611c953675d4bea25941f844a744d4551 (patch)
tree85fa2426d791a6d3f9440119883a989e4096c9ed /gcc
parent8342b4674633d17413de60be5bd87201dd81fee8 (diff)
downloadgcc-5ee95df611c953675d4bea25941f844a744d4551.zip
gcc-5ee95df611c953675d4bea25941f844a744d4551.tar.gz
gcc-5ee95df611c953675d4bea25941f844a744d4551.tar.bz2
Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* rs6000.c (expand_block_move): Use INTVAL, not XINT to access alignment. From-SVN: r29962
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2ce75d6..99b1d1f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Wed Oct 13 23:23:45 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
+
+ * rs6000.c (expand_block_move): Use INTVAL, not XINT to access
+ alignment.
+
Wed Oct 13 21:47:18 1999 Richard Henderson <rth@cygnus.com>
* ggc-page.c (MAP_FAILED): Provide default.
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index c2de411..535e7bd 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -2063,7 +2063,7 @@ expand_block_move (operands)
rtx bytes_rtx = operands[2];
rtx align_rtx = operands[3];
int constp = (GET_CODE (bytes_rtx) == CONST_INT);
- int align = XINT (align_rtx, 0);
+ int align;
int bytes;
int offset;
int num_reg;
@@ -2080,6 +2080,11 @@ expand_block_move (operands)
if (! constp)
return 0;
+ /* If this is not a fixed size alignment, abort */
+ if (GET_CODE (align_rtx) != CONST_INT)
+ abort ();
+ align = INTVAL (align_rtx);
+
/* Anything to move? */
bytes = INTVAL (bytes_rtx);
if (bytes <= 0)