fold-const.c (native_encode_vector, [...]): Correct obvious mistakes in the previous...
authorRoger Sayle <roger@eyesopen.com>
Thu, 13 Apr 2006 21:31:00 +0000 (21:31 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Thu, 13 Apr 2006 21:31:00 +0000 (21:31 +0000)
* fold-const.c (native_encode_vector, native_interpret_real):
Correct obvious mistakes in the previous check-in.

From-SVN: r112930

gcc/ChangeLog
gcc/fold-const.c

index 708551dd295ab70464e0b2c9a31921c8eca562ac..b18bb7e2c5f9e5f3c0cd23c8abcc96e788d845d1 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-13  Roger Sayle  <roger@eyesopen.com>
+
+       * fold-const.c (native_encode_vector, native_interpret_real):
+       Correct obvious mistakes in the previous check-in.
+
 2006-04-13  Roger Sayle  <roger@eyesopen.com>
 
        * fold-const.c (native_encode_expr): New function to encode
index 8c88cd3af0965406343f703987170b3951e2c61c..3a8327bb57fe7ce41816fbb5de4fc5ff2b8e7a13 100644 (file)
@@ -6882,8 +6882,7 @@ native_encode_complex (tree expr, unsigned char *ptr, int len)
 static int
 native_encode_vector (tree expr, unsigned char *ptr, int len)
 {
-  tree type = TREE_TYPE (expr);
-  int i, size, offste, count;
+  int i, size, offset, count;
   tree elem, elements;
 
   size = 0;
@@ -7004,7 +7003,8 @@ native_interpret_int (tree type, unsigned char *ptr, int len)
 static tree
 native_interpret_real (tree type, unsigned char *ptr, int len)
 {
-  int total_bytes = GET_MODE_SIZE (TYPE_MODE (type));
+  enum machine_mode mode = TYPE_MODE (type);
+  int total_bytes = GET_MODE_SIZE (mode);
   int byte, offset, word, words;
   unsigned char value;
   /* There are always 32 bits in each long, no matter the size of