]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Undefine SET_CMODEL before #define in rs6000/vxworks.h
authorOlivier Hainque <hainque@adacore.com>
Fri, 17 Oct 2025 17:49:41 +0000 (17:49 +0000)
committerOlivier Hainque <hainque@adacore.com>
Fri, 24 Oct 2025 07:31:10 +0000 (07:31 +0000)
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

index 13c706b6114203a5662e75a637fa9c6213b9c9a8..f4a778dd016ca17cbea8d26897699958d41b57d5 100644 (file)
@@ -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