From: Andrey Smirnov Date: Mon, 5 Dec 2011 03:48:29 +0000 (+0000) Subject: * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5ff83562895fa7659dc0f8802febf9b2b5d377b;p=binutils-gdb.git * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition of `tdep'(-Wshadow). --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 256353ca43b..7be3d1778c6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-12-05 Andrey Smirnov + * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition + of `tdep'(-Wshadow). + 2011-12-03 Jan Kratochvil Fix compilation --without-expat. diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index bd31e542438..803a20f1a7e 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -878,7 +878,6 @@ amd64_push_dummy_call (struct gdbarch *gdbarch, struct value *function, /* Pass "hidden" argument". */ if (struct_return) { - struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); /* The "hidden" argument is passed throught the first argument register. */ const int arg_regnum = tdep->call_dummy_integer_regs[0];