aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-05-12 02:05:52 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-05-12 02:05:52 +0000
commitffa916bafb79e4f31a7af88dcb674e42eb708a8f (patch)
tree1f54d7953727976239e7dcffa0133f74909688fc /gcc
parentd7d89a581688ad780ea43d5a15c04b0fe2c04cdb (diff)
downloadgcc-ffa916bafb79e4f31a7af88dcb674e42eb708a8f.zip
gcc-ffa916bafb79e4f31a7af88dcb674e42eb708a8f.tar.gz
gcc-ffa916bafb79e4f31a7af88dcb674e42eb708a8f.tar.bz2
* sparc.c (print_operand): Fix uninitialized warning.
From-SVN: r66707
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/sparc/sparc.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index da8a280..74b8da8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2003-05-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * sparc.c (print_operand): Fix uninitialized warning.
+
2003-05-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index 857fe3f..ca97286 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -6481,7 +6481,10 @@ print_operand (file, x, code)
else if (GET_CODE(x) == CONST_DOUBLE)
i = CONST_DOUBLE_LOW (x);
else
- output_operand_lossage ("invalid %%s operand");
+ {
+ output_operand_lossage ("invalid %%s operand");
+ return;
+ }
i = trunc_int_for_mode (i, SImode);
fprintf (file, HOST_WIDE_INT_PRINT_DEC, i);
return;