gas: rx: constify string to rx_error

Mike Frysinger vapier@gentoo.org
Thu Oct 20 00:14:00 GMT 2011


On Wednesday 19 October 2011 20:03:29 Alan Modra wrote:
> On Wed, Oct 19, 2011 at 12:01:57PM -0400, Mike Frysinger wrote:
> > building rx's gas code atm fails:
> > 
> > rx-parse.c: In function ‘rx_parse’:
> > rx-parse.c:3774:9: error: passing argument 1 of ‘rx_error’ discards
> > ‘const’
> 
> I'm curious because I don't see this error.  What's the code here look
> like?  What version of bison are you using?

i'm using gcc-4.6.1, glibc-2.14, and bison-2.5.  the failing code path looks 
something like:
	...
	#define yyerror         rx_error
	...
	        char const *yymsgp = YY_("syntax error");
	...
	        yyerror (yymsgp);
	...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20111020/8d23fde2/attachment.sig>


More information about the Binutils mailing list