On Tue, 7 May 2013, Steven Bosscher wrote: > > Index: gcc/config/msp430/README.txt > > =================================================================== > > --- gcc/config/msp430/README.txt (revision 0) > > +++ gcc/config/msp430/README.txt (revision 0) > > @@ -0,0 +1,7 @@ > > +Random Notes > > +------------ > > + > > +The MSP430 port does not use leading underscores. However, the > > +assembler has no way of differentiating between, for example, register > > +R12 and symbol R12. So, if you do "int r12;" in your C program, you > > +may get an assembler error, and will certainly have runtime problems. > > Perhaps put this in the user documentation instead (or as well).
Even better, add assembler support for some suitable prefix on register names, and require a new enough assembler to use this GCC port, so users can use whatever symbol names in the user namespace they like. (Prefixing registers is better than starting to use leading underscores on C symbols; leading underscores in ELF are contrary to the ELF gABI, which says that symbol names in ELF symbol tables are the same as in C.) -- Joseph S. Myers jos...@codesourcery.com