]> code.ossystems Code Review - openembedded-core.git/commit
gcc6: enable FL_LPAE flag for armv7ve cores
authorAndre McCurdy <armccurdy@gmail.com>
Fri, 10 Nov 2017 06:10:13 +0000 (22:10 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 Mar 2018 23:35:38 +0000 (16:35 -0700)
commite0d856d64f9e2afd762d6d40bcc6c8dc5e06b430
tree313f57c0d186775fd945c03bbd4eeb26ad4ed962
parent7d1fa740451229e7114b5a0c2d3ace39a7618830
gcc6: enable FL_LPAE flag for armv7ve cores

The following commit added the FL_LPAE flag to FL_FOR_ARCH7VE, but
neglected to also add it to the armv7ve compatible cores defined in
arm-cores.def.

  https://github.com/gcc-mirror/gcc/commit/af2d9b9e58e8be576c53d94f30c48c68146b0c98

The result is that gcc 6.4 now refuses to allow -march=armv7ve and
-mcpu=XXX to be used together, even when -mcpu is set to an armv7ve
compatible core:

  arm-linux-gnueabi-gcc -march=armv7ve -mcpu=cortex-a7 -Werror ...
  error: switch -mcpu=cortex-a7 conflicts with -march=armv7ve switch [-Werror]

Fix by defining flags for armv7ve compatible cores directly from
FL_FOR_ARCH7VE, rather than re-creating the armv7ve flags
independently by combining FL_FOR_ARCH7A with the armv7ve specific
FL_THUMB_DIV and FL_ARM_DIV flags.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
meta/recipes-devtools/gcc/gcc-6.4.inc
meta/recipes-devtools/gcc/gcc-6.4/backport/0001-enable-FL_LPAE-flag-for-armv7ve-cores.patch [new file with mode: 0644]