From: Olivier Hainque Date: Fri, 17 Oct 2025 17:49:41 +0000 (+0000) Subject: Undefine SET_CMODEL before #define in rs6000/vxworks.h X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70f66ae8ae833192812c91598348c971e5b21c29;p=thirdparty%2Fgcc.git 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 * config/rs6000/vxworks.h (SET_CMODEL): Undefine before (re)defining. --- 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