fix a mmix assertion failure

Andreas Schwab schwab@suse.de
Tue Mar 1 23:20:00 GMT 2005


Alan Modra <amodra@bigpond.net.au> writes:

> @@ -1561,7 +1561,13 @@ fb_label_name (long n,	/* We just saw "n
>    char symbol_name_temporary[20];	/* Build up a number, BACKWARDS.  */
>  
>    know (n >= 0);
> -  know (augend == 0 || augend == 1);
> +  know (
> +#ifdef TC_MMIX
> +	(unsigned long) augend <= 2 /* See mmix_fb_label.  */
> +#else
> +	(unsigned long) augend <= 1
> +#endif
> +	);

That won't work when know is a macro.  You can't have preprocessor
directives inside a macro parameter.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Binutils mailing list