From b663b8319ded32fe3fb8224dae71792af88f87fe Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Thu, 13 Jul 2017 10:01:55 +0000 Subject: [PATCH] [ARM, VXworks] Fix build My patch last week to address selection of be8 linking mode broke the build for vxworks. It turns out that this port is one of the few remaining that is still not based on the EABI/AAPCS. This patch fixes the build, but I've not really tested it beyond building the core compiler binaries. Building a workable compiler entails downloading a load of vxworks stuff that I'm not sure where to find. * config/arm/vxworks.h (TARGET_ENDIAN_DEFAULT): Define. From-SVN: r250177 --- gcc/ChangeLog | 4 ++++ gcc/config/arm/vxworks.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f7907a..5bd9387 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-07-13 Richard Earnshaw + + * config/arm/vxworks.h (TARGET_ENDIAN_DEFAULT): Define. + 2017-07-13 Maxim Ostapenko * asan.c (asan_emit_allocas_unpoison): Use ptr_mode for arguments diff --git a/gcc/config/arm/vxworks.h b/gcc/config/arm/vxworks.h index 9af37c7..f20324f 100644 --- a/gcc/config/arm/vxworks.h +++ b/gcc/config/arm/vxworks.h @@ -117,3 +117,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see /* This platform supports the probing method of stack checking (RTP mode). 8K is reserved in the stack to propagate exceptions in case of overflow. */ #define STACK_CHECK_PROTECT 8192 + +/* Unless overridded by the target options, the default is little-endian. */ +#define TARGET_ENDIAN_DEFAULT 0 -- 2.7.4