
26 Apr
2012
26 Apr
'12
2:54 p.m.
On 04/26/2012 07:03 AM, Wolfgang Denk wrote:
Dear Rob,
arch/arm/cpu/armv7/highbank/config.mk contains this setting:
PLATFORM_CPPFLAGS += -march=armv7-a
This results in code bueing built with the follwoing compiler options:
... -march=armv5 -march=armv7-a ...
This is a bad idea - dependign on tool chain used, this may result in compiler errors ("error: bad value (armv7-a) for -march= switch"), or undefined behaviour, as it is not clear which option is used by the compiler.
Can you please provide a fix? Thanks!
The issue is I require a wfi assembly instruction for reset, so I would have to hard code the machine code to work on all compilers.
Rob
Best regards,
Wolfgang Denk