Commit 15b1c12a by Roger Sayle Committed by Roger Sayle

fold-const.c (native_encode_vector, [...]): Correct obvious mistakes in the previous check-in.


	* fold-const.c (native_encode_vector, native_interpret_real):
	Correct obvious mistakes in the previous check-in.

From-SVN: r112930
parent 78bf6e2f
2006-04-13 Roger Sayle <roger@eyesopen.com> 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 * fold-const.c (native_encode_expr): New function to encode
the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
or VECTOR_CST into a specified buffer. or VECTOR_CST into a specified buffer.
......
...@@ -6882,8 +6882,7 @@ native_encode_complex (tree expr, unsigned char *ptr, int len) ...@@ -6882,8 +6882,7 @@ native_encode_complex (tree expr, unsigned char *ptr, int len)
static int static int
native_encode_vector (tree expr, unsigned char *ptr, int len) native_encode_vector (tree expr, unsigned char *ptr, int len)
{ {
tree type = TREE_TYPE (expr); int i, size, offset, count;
int i, size, offste, count;
tree elem, elements; tree elem, elements;
size = 0; size = 0;
...@@ -7004,7 +7003,8 @@ native_interpret_int (tree type, unsigned char *ptr, int len) ...@@ -7004,7 +7003,8 @@ native_interpret_int (tree type, unsigned char *ptr, int len)
static tree static tree
native_interpret_real (tree type, unsigned char *ptr, int len) 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; int byte, offset, word, words;
unsigned char value; unsigned char value;
/* There are always 32 bits in each long, no matter the size of /* There are always 32 bits in each long, no matter the size of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment