[rtems commit] powerpc: Use RTEMS_XCONCAT()

Sebastian Huber sebh at rtems.org
Wed Feb 28 07:37:37 UTC 2024


Module:    rtems
Branch:    master
Commit:    c454b1048f0629324188c360634b9c96d1fa3fdb
Changeset: http://git.rtems.org/rtems/commit/?id=c454b1048f0629324188c360634b9c96d1fa3fdb

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jan 16 20:57:49 2024 +0100

powerpc: Use RTEMS_XCONCAT()

Prefer macros with a proper namespace.

---

 cpukit/score/cpu/powerpc/include/rtems/asm.h | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/cpukit/score/cpu/powerpc/include/rtems/asm.h b/cpukit/score/cpu/powerpc/include/rtems/asm.h
index 27af64e724..94f54245b4 100644
--- a/cpukit/score/cpu/powerpc/include/rtems/asm.h
+++ b/cpukit/score/cpu/powerpc/include/rtems/asm.h
@@ -75,23 +75,21 @@
 #define __PROC_LABEL_PREFIX__  __USER_LABEL_PREFIX__
 #endif
 
-#include <rtems/concat.h>
-
 /* Use the right prefix for global labels.  */
 
-#define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
+#define SYM(x) RTEMS_XCONCAT (__USER_LABEL_PREFIX__, x)
 
 /* Use the right prefix for procedure labels.  */
 
-#define PROC(x) CONCAT1 (__PROC_LABEL_PREFIX__, x)
+#define PROC(x) RTEMS_XCONCAT (__PROC_LABEL_PREFIX__, x)
 
 /* Use the right prefix for registers.  */
 
-#define REG(x) CONCAT1 (__REGISTER_PREFIX__, x)
+#define REG(x) RTEMS_XCONCAT (__REGISTER_PREFIX__, x)
 
 /* Use the right prefix for floating point registers.  */
 
-#define FREG(x) CONCAT1 (__FLOAT_REGISTER_PREFIX__, x)
+#define FREG(x) RTEMS_XCONCAT (__FLOAT_REGISTER_PREFIX__, x)
 
 /*
  *  define macros for all of the registers on this CPU



More information about the vc mailing list