https://gcc.gnu.org/g:c84044a97923c80e1e5337690023ee4d4139af13

commit r16-7391-gc84044a97923c80e1e5337690023ee4d4139af13
Author: Jonathan Yong <[email protected]>
Date:   Sun Feb 8 03:25:22 2026 +0000

    gcc.dg/analyzer/null-deref-pr105755.c: fix llp64
    
    Fix compile warnings with mingw-w64.
    
    Signed-off-by: Jonathan Yong <[email protected]>
    
    gcc/testsuite/ChangeLog:
            * gcc.dg/analyzer/null-deref-pr105755.c:
            (ptrdiff_t): Change from long int to __PTRDIFF_TYPE__.
            (EMACS_INT): Change from long int to __UINTPTR_TYPE__.
            (intmax_t): change from long int to __INTMAX_TYPE__.

Diff:
---
 gcc/testsuite/gcc.dg/analyzer/null-deref-pr105755.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/analyzer/null-deref-pr105755.c 
b/gcc/testsuite/gcc.dg/analyzer/null-deref-pr105755.c
index 5375b4dd6f6f..f47e58697965 100644
--- a/gcc/testsuite/gcc.dg/analyzer/null-deref-pr105755.c
+++ b/gcc/testsuite/gcc.dg/analyzer/null-deref-pr105755.c
@@ -1,9 +1,9 @@
 /* { dg-require-effective-target int32plus } */
 /* { dg-additional-options "-Wno-analyzer-too-complex 
-Wno-analyzer-symbol-too-complex -O2" } */
 
-typedef long int ptrdiff_t;
-typedef long int EMACS_INT;
-typedef long int intmax_t;
+typedef __PTRDIFF_TYPE__ ptrdiff_t;
+typedef __UINTPTR_TYPE__ EMACS_INT;
+typedef __INTMAX_TYPE__ intmax_t;
 
 enum Lisp_Type
   {

Reply via email to