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

commit r13-9427-gcb735b2768410e1ab201899c65daeaaed2baff71
Author: Eric Botcazou <ebotca...@adacore.com>
Date:   Fri Mar 14 00:01:46 2025 +0100

    Plug small loophole in the pattern matching done by -fdump-ada-spec
    
    gcc/c-family/
            PR ada/119265
            * c-ada-spec.cc (dump_ada_node) <INTEGER_TYPE>: Deal with typedefs
            of unsigned __int128.

Diff:
---
 gcc/c-family/c-ada-spec.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/c-family/c-ada-spec.cc b/gcc/c-family/c-ada-spec.cc
index b50b38775645..ead81757f43d 100644
--- a/gcc/c-family/c-ada-spec.cc
+++ b/gcc/c-family/c-ada-spec.cc
@@ -2190,8 +2190,8 @@ dump_ada_node (pretty_printer *buffer, tree node, tree 
type, int spc,
     case BOOLEAN_TYPE:
       if (TYPE_NAME (node)
          && !(TREE_CODE (TYPE_NAME (node)) == TYPE_DECL
-              && !strcmp (IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (node))),
-                          "__int128")))
+              && !strncmp (IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (node))),
+                          "__int128", 8)))
        {
          if (TREE_CODE (TYPE_NAME (node)) == IDENTIFIER_NODE)
            pp_ada_tree_identifier (buffer, TYPE_NAME (node), node,

Reply via email to