Fix two misleading indentation warnings
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 29 Jan 2016 20:32:29 +0000 (15:32 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Fri, 29 Jan 2016 20:32:29 +0000 (15:32 -0500)
Two small changes so everything builds with latest GCC and its
-Wmisleading-indentation.

In the aarch64-tdep.c case, the two misindented lines should actually be
part of the for loop.  It looks like the indentation is all done using
spaces in that file though...  I fixed it (changed for tabs + spaces) for
the lines I touched.

In the xcoffread.c case, we can simply remove the braces and fix the
indentation.

gdb/ChangeLog:

* aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
to for include additional lines.
* xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.

gdb/ChangeLog
gdb/aarch64-tdep.c
gdb/xcoffread.c

index 0e191d72dcd8e8865c290eab28dbc46e45fec500..635202a6a6405d16f3696a0db383da4ebc352f84 100644 (file)
@@ -1,3 +1,9 @@
+2016-01-29  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
+       to for include additional lines.
+       * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
+
 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
 
        * gnulib/import/Makefile.am: Regenerate.
index c7da618e0ceaf19ca94dc199cc987c1d502ac892..798a1b719e0d20eee45f9a6b6935e05faaebe666 100644 (file)
@@ -3192,15 +3192,17 @@ aarch64_record_asimd_load_store (insn_decode_record *aarch64_insn_r)
       else
         {
           for (sindex = 0; sindex < selem; sindex++)
-            if (bit (aarch64_insn_r->aarch64_insn, 22))
-              record_buf[reg_index++] = reg_rt + AARCH64_V0_REGNUM;
-            else
-              {
-                record_buf_mem[mem_index++] = esize / 8;
-                record_buf_mem[mem_index++] = address + addr_offset;
-              }
-            addr_offset = addr_offset + (esize / 8);
-            reg_rt = (reg_rt + 1) % 32;
+           {
+             if (bit (aarch64_insn_r->aarch64_insn, 22))
+               record_buf[reg_index++] = reg_rt + AARCH64_V0_REGNUM;
+             else
+               {
+                 record_buf_mem[mem_index++] = esize / 8;
+                 record_buf_mem[mem_index++] = address + addr_offset;
+               }
+             addr_offset = addr_offset + (esize / 8);
+             reg_rt = (reg_rt + 1) % 32;
+           }
         }
     }
   /* Load/store multiple structure.  */
index 533a33a7be3f7605dbc915bb44ca6fb750d59cb8..c67094980a9ff02e8b97e2bf8dc8cb92b3131401 100644 (file)
@@ -2381,13 +2381,12 @@ scan_xcoff_symtab (struct objfile *objfile)
                    if (first_fun_line_offset == 0 && symbol.n_numaux > 1)
                      first_fun_line_offset =
                        main_aux[0].x_sym.x_fcnary.x_fcn.x_lnnoptr;
-                     {
-                       record_minimal_symbol
-                         (namestring, symbol.n_value,
-                          sclass == C_HIDEXT ? mst_file_text : mst_text,
-                          symbol.n_scnum, objfile);
-                       misc_func_recorded = 1;
-                     }
+
+                   record_minimal_symbol
+                     (namestring, symbol.n_value,
+                      sclass == C_HIDEXT ? mst_file_text : mst_text,
+                      symbol.n_scnum, objfile);
+                   misc_func_recorded = 1;
                    break;
 
                  case XMC_GL: