diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-13 21:31:00 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-13 21:31:00 +0000 |
commit | 3fa15ed1db29406077e6aca88c22a58b741f873e (patch) | |
tree | e2d11eb6c22809d739fb2a75669b737367ecaf98 /gcc/fold-const.c | |
parent | 5f4092eda8363452b5fab07a8a0d9248306ddca7 (diff) | |
download | gcc-3fa15ed1db29406077e6aca88c22a58b741f873e.tar.gz |
* fold-const.c (native_encode_vector, native_interpret_real):
Correct obvious mistakes in the previous check-in.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112930 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 8c88cd3af09..3a8327bb57f 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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 |