This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] SH64/GAS: Fix a -Wwrite-strings build failure
- From: Maciej W.Rozycki <macro at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 15 May 2016 22:25:13 -0000
- Subject: [binutils-gdb] SH64/GAS: Fix a -Wwrite-strings build failure
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9dfa3e63479d3c3106c7e5e86764a0ed8e22aa7f
commit 9dfa3e63479d3c3106c7e5e86764a0ed8e22aa7f
Author: Maciej W. Rozycki <macro@imgtec.com>
Date: Sun May 15 23:14:52 2016 +0100
SH64/GAS: Fix a -Wwrite-strings build failure
Fix a commit 6757cf57697d ("enable -Wwrite-strings for gas") regression.
gas/
* config/tc-sh64.c (shmedia_check_limits): Constify `msg'.
Diff:
---
gas/ChangeLog | 4 ++++
gas/config/tc-sh64.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7ecec77..d5adac6 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2016-05-15 Maciej W. Rozycki <macro@imgtec.com>
+
+ * config/tc-sh64.c (shmedia_check_limits): Constify `msg'.
+
2016-05-13 Peter Bergner <bergner@vnet.ibm.com>
* testsuite/gas/ppc/power9.d <xxspltib>: Add additional operand tests.
diff --git a/gas/config/tc-sh64.c b/gas/config/tc-sh64.c
index 294f96b..4de044c 100644
--- a/gas/config/tc-sh64.c
+++ b/gas/config/tc-sh64.c
@@ -1473,7 +1473,7 @@ shmedia_check_limits (offsetT *valp, bfd_reloc_code_real_type reloc,
{
offsetT val = *valp;
- char *msg = NULL;
+ const char *msg = NULL;
switch (reloc)
{