aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-10-03 08:13:37 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-10-03 08:13:37 +0000
commit8748518b95a4543d98477eec5a85fa9a037de209 (patch)
tree9bc548442e362112cd8a9774226767862b21b160
parent0fd8504376c457ec76beea2c3769bea717c1748f (diff)
downloadgdb-8748518b95a4543d98477eec5a85fa9a037de209.zip
gdb-8748518b95a4543d98477eec5a85fa9a037de209.tar.gz
gdb-8748518b95a4543d98477eec5a85fa9a037de209.tar.bz2
* sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
reg_size to keep GCC silent.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/sh-tdep.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2c50236..7dfa1b1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2003-10-03 Corinna Vinschen <vinschen@redhat.com>
+ * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
+ reg_size to keep GCC silent.
+
+2003-10-03 Corinna Vinschen <vinschen@redhat.com>
+
* dwarf2-frame.c (struct comp_unit): Add tbase member to store
base for DW_EH_PE_textrel encodings.
(read_encoded_value): Add a DW_EH_PE_textrel case.
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index 60fe4b6..9d50fbd 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -743,12 +743,12 @@ sh_push_dummy_call_fpu (struct gdbarch *gdbarch,
{
int stack_offset = 0;
int argreg = ARG0_REGNUM;
- int flt_argreg;
+ int flt_argreg = 0;
int argnum;
struct type *type;
CORE_ADDR regval;
char *val;
- int len, reg_size;
+ int len, reg_size = 0;
int pass_on_stack;
/* first force sp to a 4-byte alignment */