]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: remove dead predefines when using WMMX
authorRichard Earnshaw <rearnsha@arm.com>
Wed, 30 Apr 2025 12:52:31 +0000 (13:52 +0100)
committerRichard Earnshaw <rearnsha@arm.com>
Mon, 12 May 2025 09:34:49 +0000 (10:34 +0100)
Since we no-longer enable iWMMXT, these predefines are no-longer enabled
when preprocessing C.  Remove them.

gcc/ChangeLog:

* config/arm/arm-c.cc (arm_cpu_builtins):  Remove predefines
for __IWWMXT__, __IWMMXT2__ and __ARM_WMMX.

gcc/config/arm/arm-c.cc

index 15e4080904f37d7fd0196054da80863565e362d6..d257e62b563b8c94b4c7a4f32cc65256ffd90fd3 100644 (file)
@@ -373,13 +373,6 @@ arm_cpu_builtins (struct cpp_reader* pfile)
   builtin_define (arm_arch_name);
   if (arm_arch_xscale)
     builtin_define ("__XSCALE__");
-  if (arm_arch_iwmmxt)
-    {
-      builtin_define ("__IWMMXT__");
-      builtin_define ("__ARM_WMMX");
-    }
-  if (arm_arch_iwmmxt2)
-    builtin_define ("__IWMMXT2__");
   /* ARMv6KZ was originally identified as the misspelled __ARM_ARCH_6ZK__.  To
      preserve the existing behavior, the misspelled feature macro must still be
      defined.  */