https://gcc.gnu.org/g:4182b22649d4682c9452d8cd408f41fc1245989c
commit r17-6282-g4182b22649d4682c9452d8cd408f41fc1245989c Author: Kael Andrew Franco <[email protected]> Date: Sat Nov 14 18:56:45 2026 -0500 gcc: Remove #ifdef EXIT_{SUCCESS,FAILURE} in system.h. Since r17-5049 assume at least C89 stdlib.h, EXIT_{SUCCESS,FAILURE} must be defined so remove this unused #ifdef. Bootstrapped on x86_64-pc-linux-gnu. gcc/ChangeLog: * system.h: Remove #ifdef EXIT_{SUCCESS,FAILURE}. Diff: --- gcc/system.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/gcc/system.h b/gcc/system.h index 6a05e6dc88fc..407e2b5020c6 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -284,22 +284,13 @@ extern int fprintf_unlocked (FILE *, const char *, ...); #undef vec_free /* If we don't have an overriding definition, set SUCCESS_EXIT_CODE and - FATAL_EXIT_CODE to EXIT_SUCCESS and EXIT_FAILURE respectively, - or 0 and 1 if those macros are not defined. */ + FATAL_EXIT_CODE to EXIT_SUCCESS and EXIT_FAILURE respectively. */ #ifndef SUCCESS_EXIT_CODE -# ifdef EXIT_SUCCESS -# define SUCCESS_EXIT_CODE EXIT_SUCCESS -# else -# define SUCCESS_EXIT_CODE 0 -# endif +# define SUCCESS_EXIT_CODE EXIT_SUCCESS #endif #ifndef FATAL_EXIT_CODE -# ifdef EXIT_FAILURE -# define FATAL_EXIT_CODE EXIT_FAILURE -# else -# define FATAL_EXIT_CODE 1 -# endif +# define FATAL_EXIT_CODE EXIT_FAILURE #endif #define ICE_EXIT_CODE 4
