This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fix a mmix assertion failure


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]