[OE-core] [PATCH] Replace -mno-thumb by -marm

Ken Werner ken.werner at linaro.org
Fri Dec 23 12:25:41 UTC 2011


Hi,

The OE-Core qemuarm MACHINE configuration uses "-march=armv5te -mno-thumb"
in order to generate code for the ARM instruction set. Recent versions of
GCC for ARM reject the -mno-thumb option [*] and expects developers to use
the -marm instead. Since -marm also works for older GCC versions I just
replaced -mno-thumb by -marm.
Since OE-Core is using a GCC 4.6.3 based toolchain this isn't an issue yet.
But it causes some trouble for users who build OE-Core with a recent external
toolchain (depending on the ARM_INSTRUCTION_SET).

Ken Werner (1):
  Change -mno-thumb to -marm

 .../conf/machine/include/arm/feature-arm-thumb.inc |    4 ++--
 meta/conf/machine/include/tune-thumb.inc           |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Regards,
Ken

[*] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47930
-- 
1.7.5.4





More information about the Openembedded-core mailing list