]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/i386/vxworks.h
Update copyright years.
[thirdparty/gcc.git] / gcc / config / i386 / vxworks.h
index b3ca224fa1071bd84db804e8f3db9afb2bc60559..ca14edea8c4c9e994ed549fd643d4ec1ee456108 100644 (file)
@@ -1,5 +1,5 @@
 /* IA32 VxWorks target definitions for GNU compiler.
-   Copyright (C) 2003-2021 Free Software Foundation, Inc.
+   Copyright (C) 2003-2023 Free Software Foundation, Inc.
    Updated by CodeSourcery, LLC.
 
 This file is part of GCC.
@@ -37,13 +37,6 @@ along with GCC; see the file COPYING3.  If not see
 #define TARGET_SUBTARGET_DEFAULT \
        (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS | MASK_VECT8_RETURNS)
 
-/* Provide our target specific DBX_REGISTER_NUMBER.  VxWorks relies on
-   the SVR4 numbering.  */
-
-#undef DBX_REGISTER_NUMBER
-#define DBX_REGISTER_NUMBER(n) \
-  (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
-
 #undef PTRDIFF_TYPE
 #define PTRDIFF_TYPE (TARGET_LP64 ? "long int" : "int")
 
@@ -61,6 +54,13 @@ along with GCC; see the file COPYING3.  If not see
 
 #endif
 
+/* Provide our target specific DEBUGGER_REGNO.  VxWorks relies on
+   the SVR4 numbering.  */
+
+#undef DEBUGGER_REGNO
+#define DEBUGGER_REGNO(n) \
+  (TARGET_64BIT ? debugger64_register_map[n] : svr4_debugger_register_map[n])
+
 /* CPU macro definitions, ordered to account for VxWorks 7 not
    supporting CPUs older than PENTIUM4 since SR0650.  */
 
@@ -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);                      \