https://gcc.gnu.org/g:81a4602d5b644cb04091353213bf585fce802545

commit r17-6296-g81a4602d5b644cb04091353213bf585fce802545
Author: Kael Andrew Franco <[email protected]>
Date:   Sun Nov 15 07:23:30 2026 -0500

    gcc: Remove #ifndef UCHAR_MAX in system.h.
    
    Since r17-5049 assume at least C89 limits.h,
    UCHAR_MAX must be defined so remove
    #ifndef UCHAR_MAX.
    
    Bootstrapped on x86_64-pc-linux-gnu.
    
    gcc/ChangeLog:
    
            * system.h: Remove #ifndef UCHAR_MAX.

Diff:
---
 gcc/system.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/gcc/system.h b/gcc/system.h
index 407e2b5020c6..21f11500a607 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -330,11 +330,6 @@ extern int fprintf_unlocked (FILE *, const char *, ...);
                            ? (t) 1 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
 #define INTTYPE_MAXIMUM(t) ((t) (~ (t) 0 - INTTYPE_MINIMUM (t)))
 
-/* Use that infrastructure to provide a few constants.  */
-#ifndef UCHAR_MAX
-# define UCHAR_MAX INTTYPE_MAXIMUM (unsigned char)
-#endif
-
 #ifdef TIME_WITH_SYS_TIME
 # include <sys/time.h>
 # include <time.h>

Reply via email to