* config/rl78-defs.h (rl78_error): Add "const".

* config/rl78-parse.y (rl78_error): Likewise.
This commit is contained in:
DJ Delorie 2011-11-21 17:10:31 +00:00
parent 8443c2073b
commit cc18928581
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-11-21 DJ Delorie <dj@redhat.com>
* config/rl78-defs.h (rl78_error): Add "const".
* config/rl78-parse.y (rl78_error): Likewise.
2011-11-21 Andreas Tobler <andreast@fgznet.ch>
* config/tc-ppc.c (ppc_target_format): Add format for powerpc*-freebsd.

View File

@ -26,7 +26,7 @@
#define RL78REL_DATA 0
#define RL78REL_PCREL 1
extern int rl78_error (char *);
extern int rl78_error (const char *);
extern void rl78_lex_init (char *, char *);
extern void rl78_prefix (int);
extern int rl78_has_prefix (void);

View File

@ -1430,7 +1430,7 @@ rl78_lex (void)
}
int
rl78_error (char * str)
rl78_error (const char * str)
{
int len;