From: hainque Date: Fri, 21 Sep 2018 12:38:57 +0000 (+0000) Subject: Move default #define TARGET_VXWORKS7 to vxworks-dummy.h X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f81cdfdaf7ca8db61e2b54510b48d432dfcbf9c;p=thirdparty%2Fgcc.git Move default #define TARGET_VXWORKS7 to vxworks-dummy.h 2018-09-21 Olivier Hainque * config/vxworks.h (TARGET_VXWORKS7): Move default definition ... * config/vxworks-dummy.h: here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264472 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a581fbadfdea..d55d0cb35f3b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-09-21 Olivier Hainque + + * config/vxworks.h (TARGET_VXWORKS7): Move default definition ... + * config/vxworks-dummy.h: here. + 2018-09-21 Olivier Hainque * config.gcc: Prepend vxworks-dummy.h to tm_file for powerpc* diff --git a/gcc/config/vxworks-dummy.h b/gcc/config/vxworks-dummy.h index 33ed0c7f5818..0a7eff9a7fea 100644 --- a/gcc/config/vxworks-dummy.h +++ b/gcc/config/vxworks-dummy.h @@ -22,11 +22,15 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -/* True if we're targeting VxWorks. */ +/* True if we're targeting VxWorks, then VxWorks7. */ #ifndef TARGET_VXWORKS #define TARGET_VXWORKS 0 #endif +#ifndef TARGET_VXWORKS7 +#define TARGET_VXWORKS7 0 +#endif + /* True if generating code for a VxWorks RTP. */ #ifndef TARGET_VXWORKS_RTP #define TARGET_VXWORKS_RTP false diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h index 86773868ec23..c2a0cb44d9a8 100644 --- a/gcc/config/vxworks.h +++ b/gcc/config/vxworks.h @@ -23,11 +23,6 @@ along with GCC; see the file COPYING3. If not see #undef TARGET_VXWORKS #define TARGET_VXWORKS 1 -/* If TARGET_VXWORKS7 is undefined, then we're not targeting it. */ -#ifndef TARGET_VXWORKS7 -#define TARGET_VXWORKS7 0 -#endif - /* In kernel mode, VxWorks provides all the libraries itself, as well as the functionality of startup files, etc. In RTP mode, it behaves more like a traditional Unix, with more external files. Most of our specs