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.
This commit is contained in:
Trevor Saunders 2016-04-02 16:30:13 -04:00
parent 2fe882148c
commit 585ba04089
2 changed files with 3 additions and 3 deletions

View File

@ -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. */ static arelent *retval[MAX_RELOC_EXPANSION + 1]; /* MAX_RELOC_EXPANSION equals 2. */
arelent *reloc; arelent *reloc;
bfd_reloc_code_real_type code; bfd_reloc_code_real_type code;
char *type; const char *type;
reloc = retval[0] = xmalloc (sizeof (arelent)); reloc = retval[0] = xmalloc (sizeof (arelent));
retval[1] = NULL; retval[1] = NULL;

View File

@ -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 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. */ the byte sequence 99 99 f1 3f 9a 99 99 99. */
static char * static const char *
s7_atof (int type, char *litP, int *sizeP) s7_atof (int type, char *litP, int *sizeP)
{ {
int prec; 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. */ static arelent *retval[MAX_RELOC_EXPANSION + 1]; /* MAX_RELOC_EXPANSION equals 2. */
arelent *reloc; arelent *reloc;
bfd_reloc_code_real_type code; bfd_reloc_code_real_type code;
char *type; const char *type;
reloc = retval[0] = xmalloc (sizeof (arelent)); reloc = retval[0] = xmalloc (sizeof (arelent));
retval[1] = NULL; retval[1] = NULL;