From patchwork Thu Jan 28 18:43:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 10658 Received: (qmail 65570 invoked by alias); 28 Jan 2016 18:43:54 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 65436 invoked by uid 89); 28 Jan 2016 18:43:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=Hx-languages-length:1747 X-HELO: usplmg21.ericsson.net Received: from usplmg21.ericsson.net (HELO usplmg21.ericsson.net) (198.24.6.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 28 Jan 2016 18:43:52 +0000 Received: from EUSAAHC001.ericsson.se (Unknown_Domain [147.117.188.75]) by usplmg21.ericsson.net (Symantec Mail Security) with SMTP id FA.DC.32102.3516AA65; Thu, 28 Jan 2016 19:43:32 +0100 (CET) Received: from elxcz23q12-y4.dyn.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.75) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 28 Jan 2016 13:43:50 -0500 From: Simon Marchi To: CC: Simon Marchi Subject: [PATCH] Fix two misleading indentation warnings Date: Thu, 28 Jan 2016 13:43:46 -0500 Message-ID: <1454006626-10564-1-git-send-email-simon.marchi@ericsson.com> MIME-Version: 1.0 X-IsSubscribed: yes Two small changes so everything builds with latest GCC and its -Wmisleading-indentation. There is a slight possibility that these were actually bugs, and that the code was meant to be included in the control structure just above, so I am not pushing it as obvious. gdb/ChangeLog: * aarch64-tdep.c (aarch64_record_asimd_load_store): Fix indentation. * xcoffread.c (scan_xcoff_symtab): Likewise. --- gdb/aarch64-tdep.c | 4 ++-- gdb/xcoffread.c | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c index c7da618..4ac4191 100644 --- a/gdb/aarch64-tdep.c +++ b/gdb/aarch64-tdep.c @@ -3199,8 +3199,8 @@ aarch64_record_asimd_load_store (insn_decode_record *aarch64_insn_r) 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; + addr_offset = addr_offset + (esize / 8); + reg_rt = (reg_rt + 1) % 32; } } /* Load/store multiple structure. */ diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 533a33a..938261a 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -2381,13 +2381,13 @@ 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: