This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: testsuite/sim/cris fix for "macro expansion and operator &&" fix
- From: Alan Modra <amodra at gmail dot com>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: JBeulich at novell dot com, alexdrui at post dot tau dot ac dot il, binutils at sourceware dot org, gdb-patches at sourceware dot org
- Date: Wed, 25 Aug 2010 17:56:06 +0930
- Subject: Re: testsuite/sim/cris fix for "macro expansion and operator &&" fix
- References: <20100818055720.GU31102@bubble.grove.modra.org> <201008231619.o7NGJHNe010930@ignucius.se.axis.com>
On Mon, Aug 23, 2010 at 06:19:17PM +0200, Hans-Peter Nilsson wrote:
> > Date: Wed, 18 Aug 2010 15:27:20 +0930
> > From: Alan Modra <amodra@gmail.com>
>
> (in gas/)
> > * macro.c (sub_actual): Add back ampersand suffix when no
> > substitution.
> > (macro_expand_body): Correct comment.
>
> This effectively changed the undocumented requirement to write
> operator '&&' as '&&&&' in macros. Release-note-worthy, if not
* NEWS: Mention ampersand in macro change.
Index: binutils/NEWS
===================================================================
RCS file: /cvs/src/src/binutils/NEWS,v
retrieving revision 1.95
diff -u -p -r1.95 NEWS
--- binutils/NEWS 19 Aug 2010 05:51:47 -0000 1.95
+++ binutils/NEWS 25 Aug 2010 08:25:39 -0000
@@ -3,6 +3,8 @@
* Linker script expression evaluation is somewhat more sane. This may
break scripts that depend on quirks of the old expression evaluation.
+* Gas no longer requires doubling of ampersands in macros.
+
* Add support for the TMS320C6000 (TI C6X) processor family.
* Readelf can now display ARM unwind tables (.ARM.exidx / .ARM.extab) using
--
Alan Modra
Australia Development Lab, IBM