https://gcc.gnu.org/g:70f66ae8ae833192812c91598348c971e5b21c29

commit r16-4590-g70f66ae8ae833192812c91598348c971e5b21c29
Author: Olivier Hainque <[email protected]>
Date:   Fri Oct 17 17:49:41 2025 +0000

    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  <[email protected]>
    
            * config/rs6000/vxworks.h (SET_CMODEL): Undefine before
            (re)defining.

Diff:
---
 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 13c706b61142..f4a778dd016c 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

Reply via email to