* 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 256353ca43b2165e4146d2b308f0f7da5f47548e..7be3d1778c629a64e992f97912df555a377f6c6b 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 bd31e54243851880e271cdb3ae2aa8097c2ebe2d..803a20f1a7e493c6b81748c6bd3e444be55b4967 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];
This page took 0.040462 seconds and 4 git commands to generate.