This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: New ARI warning Tue Feb 7 01:57:48 UTC 2017
- From: jose dot marchesi at oracle dot com (Jose E. Marchesi)
- To: GDB Administrator <gdbadmin at sourceware dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 07 Feb 2017 22:28:53 +0100
- Subject: Re: New ARI warning Tue Feb 7 01:57:48 UTC 2017
- Authentication-results: sourceware.org; auth=none
- References: <20170207015748.GA61828@sourceware.org>
567a568
> gdb/sparc-tdep.c:1828: code: OP eol: Do not use &&, or || at the end of a line
gdb/sparc-tdep.c:1828: SPARC_F0_REGNUM +
Fixed with the patch below, committed as obvious.
commit 1291063deab60b735429411b29eea9d7fd68d50e
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Date: Tue Feb 7 13:21:54 2017 -0800
gdb: fix ARI warning in sparc-tdep.c
gdb/ChangeLog:
2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
* sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
at the end of the line.
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5751ee7..71ea08d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
+
+ * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
+ at the end of the line. Avoids an ARI warning.
+
2017-02-06 Luis Machado <lgustavo@codesourcery.com>
* NEWS: Mention support for record/replay of Intel 64 rdrand and
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index afbcf2e..b605da7 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -1825,8 +1825,8 @@ sparc32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
"org.gnu.gdb.sparc.cp0",
tdep->cp0_register_names,
tdep->cp0_registers_num,
- SPARC_F0_REGNUM +
- tdep->fpu_registers_num);
+ SPARC_F0_REGNUM
+ + tdep->fpu_registers_num);
if (!valid_p)
{
tdesc_data_cleanup (tdesc_data);