* [PATCH] make score build again
@ 2016-04-02 20:27 tbsaunde+binutils
2016-04-03 23:02 ` Alan Modra
0 siblings, 1 reply; 2+ messages in thread
From: tbsaunde+binutils @ 2016-04-02 20:27 UTC (permalink / raw)
To: binutils; +Cc: Trevor Saunders
From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
Hi,
For some reason it needs a few more things to be const now. I'm not really
sure how it worked for me before.
built a cross to score-elf, ok?
Trev
gas/ChangeLog:
2016-04-02 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-score.c (s3_gen_reloc): Add const qualifiers.
* config/tc-score7.c (s7_gen_reloc): Likewise.
---
gas/config/tc-score.c | 2 +-
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;
--
2.1.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] make score build again
2016-04-02 20:27 [PATCH] make score build again tbsaunde+binutils
@ 2016-04-03 23:02 ` Alan Modra
0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2016-04-03 23:02 UTC (permalink / raw)
To: tbsaunde+binutils; +Cc: binutils
On Sat, Apr 02, 2016 at 04:32:36PM -0400, tbsaunde+binutils@tbsaunde.org wrote:
> For some reason it needs a few more things to be const now. I'm not really
> sure how it worked for me before.
Most likely I broke score with 6d4af3c2. My set of test targets
didn't include score for some reason.
> * config/tc-score.c (s3_gen_reloc): Add const qualifiers.
> * config/tc-score7.c (s7_gen_reloc): Likewise.
OK.
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-03 23:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-02 20:27 [PATCH] make score build again tbsaunde+binutils
2016-04-03 23:02 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).