diff options
author | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-04-02 16:30:13 -0400 |
---|---|---|
committer | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-04-03 19:46:09 -0400 |
commit | 585ba0408978602f9fdd8fd3c76180e838d906c2 (patch) | |
tree | 49fb6a40365cd2424ca457d70e6623d20b7aa121 /gas | |
parent | 2fe882148c2a8f8f604ad040dc07fcf1899a8aa3 (diff) | |
download | gdb-585ba0408978602f9fdd8fd3c76180e838d906c2.zip gdb-585ba0408978602f9fdd8fd3c76180e838d906c2.tar.gz gdb-585ba0408978602f9fdd8fd3c76180e838d906c2.tar.bz2 |
make score build again
It needs a few more things to be const now.
gas/ChangeLog:
2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-score.c (s3_gen_reloc): Add const qualifiers.
* config/tc-score7.c (s7_gen_reloc): Likewise.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/tc-score.c | 2 | ||||
-rw-r--r-- | gas/config/tc-score7.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-score.c b/gas/config/tc-score.c index 8ea1084..a509da7 100644 --- a/gas/config/tc-score.c +++ b/gas/config/tc-score.c @@ -7398,7 +7398,7 @@ s3_gen_reloc (asection * section ATTRIBUTE_UNUSED, fixS * fixp) static arelent *retval[MAX_RELOC_EXPANSION + 1]; /* MAX_RELOC_EXPANSION equals 2. */ arelent *reloc; bfd_reloc_code_real_type code; - char *type; + const char *type; reloc = retval[0] = xmalloc (sizeof (arelent)); retval[1] = NULL; diff --git a/gas/config/tc-score7.c b/gas/config/tc-score7.c index 97dfea2..d6a546d 100644 --- a/gas/config/tc-score7.c +++ b/gas/config/tc-score7.c @@ -6209,7 +6209,7 @@ s7_operand (expressionS * exp) the byte sequence 3f f1 99 99 99 99 99 9a, and in little endian mode is the byte sequence 99 99 f1 3f 9a 99 99 99. */ -static char * +static const char * s7_atof (int type, char *litP, int *sizeP) { int prec; @@ -6875,7 +6875,7 @@ s7_gen_reloc (asection * section ATTRIBUTE_UNUSED, fixS * fixp) static arelent *retval[MAX_RELOC_EXPANSION + 1]; /* MAX_RELOC_EXPANSION equals 2. */ arelent *reloc; bfd_reloc_code_real_type code; - char *type; + const char *type; reloc = retval[0] = xmalloc (sizeof (arelent)); retval[1] = NULL; |