aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/rtl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/rtl.c b/gcc/rtl.c
index d5eea12..ac1979f 100644
--- a/gcc/rtl.c
+++ b/gcc/rtl.c
@@ -800,8 +800,9 @@ init_rtl ()
*s++ = 'e';
*s++ = '0';
/* Set the GET_RTX_FORMAT of CONST_DOUBLE to a string
- of as many `i's as we now have elements. */
- for (i = 0; i < rtx_length[(int) CONST_DOUBLE]; i++)
+ of as many `w's as we now have elements. Subtract two from
+ the size to account for the 'e' and the '0'. */
+ for (i = 2; i < rtx_length[(int) CONST_DOUBLE]; i++)
*s++ = 'w';
*s++ = 0;
}