John Griessen wrote:
Is the current version of gcc recommended to be 3.2.3 for a build of mspgcc?
I've gotten answers that one person uses 3.2.3, and one uses 3.3 so far....
What are the tradeoffs? Pitfalls?
Ok, here is where I think things are,
gcc-3.2.3 (mspgcc/gcc/gcc-3.3)
works,
compiles all our projects ok,
I think there is some fault with calls to pointers in R1
(which I have recently patched)
Maybe some very subtle fault with pointers to structures
selecting the correct offset.
gcc-3.3.6 (msp-gcc/gcc/gcc-3.4)
compiles ok,
makes bigger code, does not seem to use bit instruction for
'and #',
includes mods for C++
(could be back ported to gcc-3.2.3 quite easily)
does not have newer devices (1471,....)
gcc-3.4.4 (msp-gcc/gcc/gcc-current)
compiles with some modifications,
fail with internal compiler error:
in subreg_highpart_offset, at emit-rtl.c:1328
does have C++ mods
does have newer devices (1471,....)
gcc-4.0.2
can be made to compile with major modifications,
wont compile with -O2 needs modifications to msp430.md
also has same fault as gcc-3.4.4 in emit-rtl.c
I am considering making two unofficial debian packages or maybe two KLIK
packages for use directly with msp430's and one for use with TinyOS and nesC
for msp430
which involves a patch to the assembler.
From a TinyOS developer: "We actually do not patch GCC itself but rather the
assembler so that it can accept $-signs in identifiers."
Does the gcc option '-fdollars-in-identifiers' not do what you want?
--
Peter Jansen
___________________________________________________________________________
Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not
the
intended recipient, you are notified that use or dissemination of this
communication is
strictly prohibited by Commonwealth law. If you have received this transmission
in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232
3209 and
DELETE the message.
Visit our web site at http://www.aad.gov.au/
___________________________________________________________________________