[binutils-gdb] mmix: constify handler_charp
Trevor Saunders
tbsaunde@sourceware.org
Tue May 24 12:46:00 GMT 2016
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=049efc6495c229476f6cf5bc27021e7c167fe1fb
commit 049efc6495c229476f6cf5bc27021e7c167fe1fb
Author: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
Date: Sun May 22 00:32:22 2016 -0400
mmix: constify handler_charp
gas/ChangeLog:
2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-mmix.c (mmix_parse_predefined_name): Change type of
handler_charp to const char *.
Diff:
---
gas/ChangeLog | 5 +++++
gas/config/tc-mmix.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index eca2c12..0ecfb48 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+ * config/tc-mmix.c (mmix_parse_predefined_name): Change type of
+ handler_charp to const char *.
+
+2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+
* config/tc-ft32.h (DEFAULT_TARGET_FORMAT): Remove.
(ft32_target_format): Likewise.
(TARGET_FORMAT): Adjust.
diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c
index 24362ad7..9cf94c5 100644
--- a/gas/config/tc-mmix.c
+++ b/gas/config/tc-mmix.c
@@ -3813,7 +3813,7 @@ int
mmix_parse_predefined_name (char *name, expressionS *expP)
{
char *canon_name;
- char *handler_charp;
+ const char *handler_charp;
const char handler_chars[] = "DVWIOUZX";
symbolS *symp;
More information about the Binutils-cvs
mailing list