aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2017-09-06 13:21:10 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2017-09-06 13:21:10 +0000
commita87169db7dc0667a978e3f5b63e0fca648d3b793 (patch)
treefa08ca1c9fa94d790c980e4f711f7db73bdd352a /gcc
parent940ab2e08e241437c176aad1ad5bf2a2a2849809 (diff)
downloadgcc-a87169db7dc0667a978e3f5b63e0fca648d3b793.zip
gcc-a87169db7dc0667a978e3f5b63e0fca648d3b793.tar.gz
gcc-a87169db7dc0667a978e3f5b63e0fca648d3b793.tar.bz2
vxworks.h (VXCPU_FOR_8548): Correct definition for VxWorks 7.
2017-09-06 Olivier Hainque <hainque@adacore.com> * config/powerpcspe/vxworks.h (VXCPU_FOR_8548): Correct definition for VxWorks 7. Adjust surrounding comments. From-SVN: r251796
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/powerpcspe/vxworks.h12
2 files changed, 14 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index eba2c68..695cf01 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-09-06 Olivier Hainque <hainque@adacore.com>
+
+ * config/powerpcspe/vxworks.h (VXCPU_FOR_8548): Correct definition
+ for VxWorks 7. Adjust surrounding comments.
+
2017-09-06 Richard Biener <rguenther@suse.de>
* gimple-ssa-strength-reduction.c
diff --git a/gcc/config/powerpcspe/vxworks.h b/gcc/config/powerpcspe/vxworks.h
index ccf6a66..6a60af5 100644
--- a/gcc/config/powerpcspe/vxworks.h
+++ b/gcc/config/powerpcspe/vxworks.h
@@ -60,11 +60,17 @@ along with GCC; see the file COPYING3. If not see
#define SUBTARGET_EXTRA_SPECS /* none needed */
-/* VxWorks and VxWorksAE (aka 653) expect different CPU values to designate
- SPE on 8548. We define a dedicated macro for the base VxWorks here, which
- the AE configuration will override. */
+/* Arrange to infer -DCPU, which VxWorks headers require, from -mcpu. */
+/* Different flavors of VxWorks expect different CPU values to designate SPE
+ on 8548. We define a dedicated macro for the base VxWorks here, which the
+ AE configuration might also override. */
+
+#if TARGET_VXWORKS7
+#define VXCPU_FOR_8548 "PPCE500V2"
+#else
#define VXCPU_FOR_8548 "PPC85XX"
+#endif
/* FIXME: The only reason we allow no -mcpu switch at all is because
config-ml.in insists on a "." multilib. */