Hello everyone, After spending a day trying to compile TinyOS for the MSP430, I found the attached patch to binutils, deep down in the CVS tree of TinyOS (it's in tinyos-1.x/contrib/eyes/tools/patches/binutils). It enables the use of '$' in identifiers, a feature heavily used by ncc (the nesC pre-compiler).
The patch is for binutils-2.14, but it applies cleanly to 2.15 as well. Any chance that this gets included into binutils? And if not, at least this mail generates a reference to the solution so that other people find it more easily (Google was *not* my friend, this time :-( -- Remy Remove underscore and suffix in reply address for a timely response.
diff -uNr binutils-2.14_vanilla/gas/config/tc-msp430.h binutils-2.14/gas/config/tc-msp430.h --- binutils-2.14_vanilla/gas/config/tc-msp430.h Mon Dec 30 20:25:07 2002 +++ binutils-2.14/gas/config/tc-msp430.h Mon Jan 26 12:24:30 2004 @@ -101,8 +101,10 @@ example, a value of 2 might print `1234 5678' where a value of 1 would print `12 34 56 78'. The default value is 4. */ -#define LEX_DOLLAR 0 +#undef LEX_DOLLAR 0 +/* nesC uses `$' in the labels */ /* MSP430 port does not use `$' as a logical line separator */ + #define TC_IMPLICIT_LCOMM_ALIGNMENT(SIZE, P2VAR) (P2VAR) = 0 /* An `.lcomm' directive with no explicit alignment parameter will