Opened 8 years ago

Last modified 7 years ago

#4113 new defect

$ is invalid in C identifiers

Reported by: Martin Sjölund Owned by: Lennart Ochel
Priority: high Milestone: Future
Component: Code Generation Version:
Keywords: Cc:

Description

The current C-code still uses dollars in identifiers in order to generate code despite being invalid in C.

avr-gcc does not like it, and -fdollars-in-identifiers can be used to pass the pre-processor. But the linker cannot handle dollars as symbol names, so we should try to remove the remaining uses of dollar-signs if possible (avr-gcc might be able to compile code anyway since I think we mostly use $ in preprocessor names, but if they appear in functions we need to fix those).

Change History (1)

comment:1 by Martin Sjölund, 7 years ago

We should possibly add -fno-dollars-in-identifiers to the flags passed to the CC when building the code.

Note: See TracTickets for help on using tickets.