Hi,

In the removal of arm-wrs-vxworks, the default cpu was updated from arm8
to armv7-a, but this is not recognized as a valid -mcpu target.  There
is however generic-armv7-a, which was likely the intended cpu that
should have been used instead.
Tested by building a cross-compiler targetting arm-wrs-vxworks7, running
make all-gcc and ensuring it succeeds.

OK?  This affects release/gcc-10 branch as well, so should be
backported too.

Regards
Iain.


gcc/ChangeLog:

        PR target/95420
        * config.gcc (arm-wrs-vxworks7*): Set default cpu to generic-armv7-a.
---
 gcc/config.gcc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config.gcc b/gcc/config.gcc
index f544932fc39..06ad813ad39 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1193,7 +1193,7 @@ arm-wrs-vxworks7*)
        tmake_file="${tmake_file} arm/t-arm arm/t-vxworks arm/t-bpabi"
        tm_file="elfos.h arm/elf.h arm/bpabi.h arm/aout.h ${tm_file}"
        tm_file="${tm_file} vx-common.h vxworks.h arm/vxworks.h"
-       target_cpu_cname="armv7-a"
+       target_cpu_cname="generic-armv7-a"
        need_64bit_hwint=yes
        ;;
 arm*-*-freebsd*)                # ARM FreeBSD EABI
-- 
2.20.1

Reply via email to