From a87169db7dc0667a978e3f5b63e0fca648d3b793 Mon Sep 17 00:00:00 2001 From: Olivier Hainque Date: Wed, 6 Sep 2017 13:21:10 +0000 Subject: [PATCH] vxworks.h (VXCPU_FOR_8548): Correct definition for VxWorks 7. 2017-09-06 Olivier Hainque * config/powerpcspe/vxworks.h (VXCPU_FOR_8548): Correct definition for VxWorks 7. Adjust surrounding comments. From-SVN: r251796 --- gcc/ChangeLog | 5 +++++ gcc/config/powerpcspe/vxworks.h | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eba2c6812df..695cf011845 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-09-06 Olivier Hainque + + * config/powerpcspe/vxworks.h (VXCPU_FOR_8548): Correct definition + for VxWorks 7. Adjust surrounding comments. + 2017-09-06 Richard Biener * gimple-ssa-strength-reduction.c diff --git a/gcc/config/powerpcspe/vxworks.h b/gcc/config/powerpcspe/vxworks.h index ccf6a666752..6a60af5366e 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. */ -- 2.30.2