From 70f66ae8ae833192812c91598348c971e5b21c29 Mon Sep 17 00:00:00 2001
From: Olivier Hainque <hainque@adacore.com>
Date: Fri, 17 Oct 2025 17:49:41 +0000
Subject: [PATCH] Undefine SET_CMODEL before #define in rs6000/vxworks.h

This prevents warnings complaining about the redefinition
on top of the base version.

2025-10-16  Olivier Hainque  <hainque@adacore.com>

	* config/rs6000/vxworks.h (SET_CMODEL): Undefine before
	(re)defining.
---
 gcc/config/rs6000/vxworks.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/config/rs6000/vxworks.h b/gcc/config/rs6000/vxworks.h
index 13c706b6114..f4a778dd016 100644
--- a/gcc/config/rs6000/vxworks.h
+++ b/gcc/config/rs6000/vxworks.h
@@ -270,6 +270,7 @@ along with GCC; see the file COPYING3.  If not see
 /* Allow code model to be selected.  */
 #undef TARGET_CMODEL
 #define TARGET_CMODEL rs6000_current_cmodel
+#undef SET_CMODEL
 #define SET_CMODEL(opt) rs6000_current_cmodel = opt
 
 /* For link specs, we leverage the linux configuration bits through
-- 
2.34.1

