[Tinyos-host-mote-wg] Re: [Tinyos-2.0wg] new avr toolchain
David Gay
dgay42 at gmail.com
Thu Jul 21 11:04:55 PDT 2005
On 7/19/05, Kristin Wright <l.kristin.wright at gmail.com> wrote:
> Given the symptoms, I suspect that I mixed up an old source tgz that
> omitted the dollar-sign fix for a newer one with the patch correctly
> applied.
>
> The source for that is here:
> http://www.tinyos.net/dist-1.2.0/tools/source/avr-binutils-2.15tinyos.tgz
> If someone verifies that that is the right source (patch applied), I
> can regenerate that rpm and get the new one online. A even better idea
> is to just describe the patch and I'll check for it.
It's the wrong source. Here's the diff to the right one:
[dgay at barnowl tmp]$ diff --recursive avr-binutils-2.15tinyos
binutils-2.15-tinyos/
diff --recursive avr-binutils-2.15tinyos/gas/config/tc-avr.h
binutils-2.15-tinyos/gas/config/tc-avr.h
117c117,118
< allow it in symbols. We allow it in the middle of symbols. */
---
> allow it in symbols. We allow it in the middle of symbols.
> We also hack get_symbol_end to disallow it at the end of a symbol. */
118a120,121
> #define TC_EOL_IN_INSN(PTR) (*(PTR) == '$' && is_part_of_name((PTR)[-1]) && is_part_of_name((PTR)[1]))
> #define TC_FORBID_DOLLAR_AT_END
diff --recursive avr-binutils-2.15tinyos/gas/expr.c
binutils-2.15-tinyos/gas/expr.c
1902a1903,1911
> #ifdef TC_FORBID_DOLLAR_AT_END
> /* This is for the Atmel AVR platforms. We want to allow $ in symbols
> but also as a line separator. Yucky. */
> if (input_line_pointer[-2] == '$')
> {
> input_line_pointer--;
> c = '$';
> }
> #endif
_______________________________________________
Tinyos-2.0wg mailing list
Tinyos-2.0wg at Mail.Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0wg
More information about the Tinyos-host-mote-wg
mailing list