[patch] fix release builds for arm-linux-gnueabi
Alan Modra
amodra@bigpond.net.au
Sun Oct 18 13:32:00 GMT 2009
On Sat, Oct 17, 2009 at 03:29:01AM +0200, Matthias Klose wrote:
> * config/tc-arm.c (make_mapping_symbol): Add braces to avoid empty body
> in release builds.
I applied this but then thought of a better solution.
* as.h (know): Don't define as empty.
* config/tc-arm.c (make_mapping_symbol): Revert last patch.
Index: gas/as.h
===================================================================
RCS file: /cvs/src/src/gas/as.h,v
retrieving revision 1.64
diff -u -p -r1.64 as.h
--- gas/as.h 3 Sep 2009 12:54:21 -0000 1.64
+++ gas/as.h 18 Oct 2009 13:30:03 -0000
@@ -238,7 +238,7 @@ typedef addressT valueT;
#define know(p) gas_assert(p) /* Verify our assumptions! */
#endif /* not yet defined */
#else
-#define know(p) /* know() checks are no-op.ed */
+#define know(p) do {} while (0) /* know() checks are no-op.ed */
#endif
/* input_scrub.c */
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list