r254584 - in /branches/gcc-6-branch/gcc: Change...

ktkachov@gcc.gnu.org ktkachov@gcc.gnu.org
Thu Nov 9 14:34:00 GMT 2017


Author: ktkachov
Date: Thu Nov  9 14:34:28 2017
New Revision: 254584

URL: https://gcc.gnu.org/viewcvs?rev=254584&root=gcc&view=rev
Log:
[ARM][PATCH v2] 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]

This is a regression relative to gcc 6.3.

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>

2017-11-09  Andre McCurdy  <armccurdy@gmail.com>

	* config/arm/arm-cores.def: Fix missing FL_LPAE flag for armv7ve
	compatible cores.


Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/config/arm/arm-cores.def



More information about the Gcc-cvs mailing list