public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3553] i386: port vxworks to TARGET_CPU_P macro
@ 2021-09-15 15:47 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-09-15 15:47 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7bdf51557d18aafdb300e1ad2b4f6fb7ef456f2b

commit r12-3553-g7bdf51557d18aafdb300e1ad2b4f6fb7ef456f2b
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Sep 15 17:45:21 2021 +0200

    i386: port vxworks to TARGET_CPU_P macro
    
            PR target/102351
    
    gcc/ChangeLog:
    
            * config/i386/vxworks.h: Use new macro TARGET_CPU_P.

Diff:
---
 gcc/config/i386/vxworks.h | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/gcc/config/i386/vxworks.h b/gcc/config/i386/vxworks.h
index ebda7d9d26a..0676cb4cead 100644
--- a/gcc/config/i386/vxworks.h
+++ b/gcc/config/i386/vxworks.h
@@ -73,37 +73,37 @@ along with GCC; see the file COPYING3.  If not see
       VXWORKS_OS_CPP_BUILTINS ();			\
       if (TARGET_64BIT)					\
 	VX_CPUDEF (X86_64);				\
-      else if (TARGET_PENTIUM4)				\
+      else if (TARGET_CPU_P (PENTIUM4))			\
 	{						\
 	  VX_CPUDEF (PENTIUM4);				\
 	  VX_CPUVDEF (PENTIUM4);			\
 	}						\
-      else if (TARGET_CORE2)				\
+      else if (TARGET_CPU_P (CORE2))			\
 	VX_CPUDEF (CORE2);				\
-      else if (TARGET_NEHALEM)				\
+      else if (TARGET_CPU_P (NEHALEM))			\
 	VX_CPUDEF (NEHALEM);				\
-      else if (TARGET_SANDYBRIDGE)			\
+      else if (TARGET_CPU_P (SANDYBRIDGE))		\
 	VX_CPUDEF (SANDYBRIDGE);			\
-      else if (TARGET_HASWELL)				\
+      else if (TARGET_CPU_P (HASWELL))			\
 	VX_CPUDEF (HASWELL);				\
-      else if (TARGET_SILVERMONT)			\
+      else if (TARGET_CPU_P (SILVERMONT))		\
 	VX_CPUDEF (SILVERMONT);				\
-      else if (TARGET_SKYLAKE || TARGET_SKYLAKE_AVX512) \
+      else if (TARGET_CPU_P (SKYLAKE) || TARGET_CPU_P (SKYLAKE_AVX512)) \
 	VX_CPUDEF (SKYLAKE);				\
-      else if (TARGET_GOLDMONT)				\
+      else if (TARGET_CPU_P (GOLDMONT))			\
 	VX_CPUDEF (GOLDMONT);				\
       else if (TARGET_VXWORKS7)				\
 	VX_CPUDEF (PENTIUM4);				\
-      else if (TARGET_386)				\
+      else if (TARGET_CPU_P (I386))			\
 	VX_CPUDEF (I80386);				\
-      else if (TARGET_486)				\
+      else if (TARGET_CPU_P (I486))			\
 	VX_CPUDEF (I80486);				\
-      else if (TARGET_PENTIUM)				\
+      else if (TARGET_CPU_P (PENTIUM))			\
 	{						\
 	  VX_CPUDEF (PENTIUM);				\
 	  VX_CPUVDEF (PENTIUM);				\
 	}						\
-      else if (TARGET_PENTIUMPRO)			\
+      else if (TARGET_CPU_P (PENTIUMPRO))		\
 	{						\
 	  VX_CPUDEF (PENTIUM2);				\
 	  VX_CPUVDEF (PENTIUMPRO);			\


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-15 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15 15:47 [gcc r12-3553] i386: port vxworks to TARGET_CPU_P macro Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).