This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: fix a mmix assertion failure
- From: Andreas Schwab <schwab at suse dot de>
- To: binutils at sources dot redhat dot com
- Date: Wed, 02 Mar 2005 00:20:40 +0100
- Subject: Re: fix a mmix assertion failure
- References: <20050301221959.GU5299@bubble.modra.org>
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."