[PATCH] Handling of unary +

Nick Clifton nickc@redhat.com
Tue Mar 15 14:05:00 GMT 2005


Hi Jan,

> gas/
> 2005-03-11  Jan Beulich  <jbeulich@novell.com>
> 
> 	* expr.c (operand): Merge handling of unary + into that for
> unary
> 	-, !, and ~.

Approved please apply, but ...


>      case '-':
> +    case '+':
>        {
> -        /* Do not accept --e as -(-e)
> +	/* Do not accept ++e or --e as +(+e) or -(-e)
>  	   Disabled, since the preprocessor removes whitespace.  */
> -	if (0 && c == '-' && *input_line_pointer == '-')
> +	if (0 && (c == '-' || c == '+') && *input_line_pointer == c)
>  	  goto target_op;

Is there really any need to preserve/modify suppressed code ?  Maybe 
this particular fragment could just be replaced with a comment ?

Cheers
   Nick





More information about the Binutils mailing list