diff options
| author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-04 07:42:04 +0000 |
|---|---|---|
| committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-04 07:42:04 +0000 |
| commit | ea53ad7c076a210b2fd6e84979f1cdcddbf52d25 (patch) | |
| tree | 54ebd319936f63b4c0adfe33edbf9d24146cde9c | |
| parent | c71bbf3818086980397f4daf7eedc9814a1de132 (diff) | |
| download | ppe42-gcc-ea53ad7c076a210b2fd6e84979f1cdcddbf52d25.tar.gz ppe42-gcc-ea53ad7c076a210b2fd6e84979f1cdcddbf52d25.zip | |
* config/stormy16/stormy16.c (stormy16_print_operand): Avoid
some uses of uninitialized variables in error cases.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46766 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 3 | ||||
| -rw-r--r-- | gcc/config/stormy16/stormy16.c | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bcf73c629c2..57d166dc32f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2001-11-03 Geoffrey Keating <geoffk@redhat.com> + * config/stormy16/stormy16.c (stormy16_print_operand): Avoid + some uses of uninitialized variables in error cases. + * config/stormy16/stormy16.c (stormy16_output_shift): Don't look at 'temp' if we won't be using it. diff --git a/gcc/config/stormy16/stormy16.c b/gcc/config/stormy16/stormy16.c index 059f3ebdbff..6910b392173 100644 --- a/gcc/config/stormy16/stormy16.c +++ b/gcc/config/stormy16/stormy16.c @@ -1516,7 +1516,8 @@ stormy16_print_operand (file, x, code) /* There is either one bit set, or one bit clear, in X. Print it preceded by '#'. */ { - HOST_WIDE_INT xx, l; + HOST_WIDE_INT xx = 1; + HOST_WIDE_INT l; if (GET_CODE (x) == CONST_INT) xx = INTVAL (x); @@ -1547,7 +1548,7 @@ stormy16_print_operand (file, x, code) /* Print the immediate operand less one, preceded by '#'. For 'O', negate it first. */ { - HOST_WIDE_INT xx; + HOST_WIDE_INT xx = 0; if (GET_CODE (x) == CONST_INT) xx = INTVAL (x); |

