aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-10-25 20:36:22 +0000
committerMike Frysinger <vapier@gentoo.org>2011-10-25 20:36:22 +0000
commit214ce7b58a5e6526bd9fcfe7e7893e2b915f75fd (patch)
tree9a6bfa1cac53bc2d1534618d3045aad3b84affa0
parent54d8a6445fa1b27e4cd03307af963828cf337f9f (diff)
downloadfsf-binutils-gdb-214ce7b58a5e6526bd9fcfe7e7893e2b915f75fd.zip
fsf-binutils-gdb-214ce7b58a5e6526bd9fcfe7e7893e2b915f75fd.tar.gz
fsf-binutils-gdb-214ce7b58a5e6526bd9fcfe7e7893e2b915f75fd.tar.bz2
Building rx's gas code atm fails:
rx-parse.c: In function ‘rx_parse’: rx-parse.c:3774:9: error: passing argument 1 of ‘rx_error’ discards ‘const’ qualifier from pointer target type [-Werror] ../../../gas/config/rx-defs.h:40:12: note: expected ‘char *’ but argument is of type ‘const char *’ cc1: all warnings being treated as errors Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/rx-defs.h2
-rw-r--r--gas/config/rx-parse.y2
3 files changed, 7 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2167d36..d82606a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-25 Mike Frysinger <vapier@gentoo.org>
+
+ * config/rx-defs.h (rx_error): Add const to first arg.
+ * config/rx-parse.y (rx_error): Likewise.
+
2011-10-25 Nick Clifton <nickc@redhat.com>
* config/tc-ns32k.c (md_begin): Rename local variable 'stat' to
diff --git a/gas/config/rx-defs.h b/gas/config/rx-defs.h
index 868796e..5353cb9 100644
--- a/gas/config/rx-defs.h
+++ b/gas/config/rx-defs.h
@@ -37,7 +37,7 @@
extern int rx_pid_register;
extern int rx_gp_register;
-extern int rx_error (char *);
+extern int rx_error (const char *);
extern void rx_lex_init (char *, char *);
extern void rx_base1 (int);
extern void rx_base2 (int, int);
diff --git a/gas/config/rx-parse.y b/gas/config/rx-parse.y
index b473788..263e78b 100644
--- a/gas/config/rx-parse.y
+++ b/gas/config/rx-parse.y
@@ -1277,7 +1277,7 @@ rx_lex (void)
}
int
-rx_error (char * str)
+rx_error (const char * str)
{
int len;