aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2018-09-21 12:38:57 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2018-09-21 12:38:57 +0000
commit05e73c1c471d06a109226b075443831e5e2d5c6f (patch)
tree5f5482daa47599aec225ce5c4541bccfbb62914c /gcc
parent5d03c108523a712fad357c8a85fd65ede0df22d6 (diff)
downloadgcc-05e73c1c471d06a109226b075443831e5e2d5c6f.zip
gcc-05e73c1c471d06a109226b075443831e5e2d5c6f.tar.gz
gcc-05e73c1c471d06a109226b075443831e5e2d5c6f.tar.bz2
Move default #define TARGET_VXWORKS7 to vxworks-dummy.h
2018-09-21 Olivier Hainque <hainque@adacore.com> * config/vxworks.h (TARGET_VXWORKS7): Move default definition ... * config/vxworks-dummy.h: here. From-SVN: r264472
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/vxworks-dummy.h6
-rw-r--r--gcc/config/vxworks.h5
3 files changed, 10 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a581fba..d55d0cb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2018-09-21 Olivier Hainque <hainque@adacore.com>
+ * config/vxworks.h (TARGET_VXWORKS7): Move default definition ...
+ * config/vxworks-dummy.h: here.
+
+2018-09-21 Olivier Hainque <hainque@adacore.com>
+
* config.gcc: Prepend vxworks-dummy.h to tm_file for powerpc*
2018-09-21 Shaokun Zhang <zhangshaokun@hisilicon.com>
diff --git a/gcc/config/vxworks-dummy.h b/gcc/config/vxworks-dummy.h
index 33ed0c7..0a7eff9 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
<http://www.gnu.org/licenses/>. */
-/* 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 8677386..c2a0cb4 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