From: Richard Earnshaw Date: Thu, 13 Jul 2017 10:01:55 +0000 (+0000) Subject: [ARM, VXworks] Fix build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b663b8319ded32fe3fb8224dae71792af88f87fe;p=gcc.git [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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f7907aac43..5bd9387c3ca 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 9af37c7f4f5..f20324f144d 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