* amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
authorAndrey Smirnov <ndreys@sourceware.org>
Mon, 5 Dec 2011 03:48:29 +0000 (03:48 +0000)
committerAndrey Smirnov <ndreys@sourceware.org>
Mon, 5 Dec 2011 03:48:29 +0000 (03:48 +0000)
  of `tdep'(-Wshadow).

gdb/ChangeLog
gdb/amd64-tdep.c

index 256353c..7be3d17 100644 (file)
@@ -1,3 +1,7 @@
+2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
+       * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
+       of `tdep'(-Wshadow).
+
 2011-12-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Fix compilation --without-expat.
index bd31e54..803a20f 100644 (file)
@@ -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];