https://gcc.gnu.org/g:5bfa8d3a3da73c8953001f98ba166561bf9e8a4b

commit r16-4596-g5bfa8d3a3da73c8953001f98ba166561bf9e8a4b
Author: Josef Melcr <[email protected]>
Date:   Fri Oct 24 11:12:44 2025 +0200

    middle-end/122392 - Remove erroneous PASS_MEM_STAT annotation.
    
    Hi,
    this patch remvoes the annotation which causes the build to fail when
    configured with --enable-gather-detailed-mem-stats.  I am very familiar
    with the mem stat system yet, so I'd leave annotating these functions
    for a future patch.
    
    gcc/ChangeLog:
    
            PR middle-end/122392
            * attr-callback.cc (callback_build_attr): Remove erroneous
            annotation.
    
    Signed-off-by: Josef Melcr <[email protected]>

Diff:
---
 gcc/attr-callback.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/attr-callback.cc b/gcc/attr-callback.cc
index 83d275441507..ee39ef61a20d 100644
--- a/gcc/attr-callback.cc
+++ b/gcc/attr-callback.cc
@@ -48,7 +48,7 @@ callback_build_attr (unsigned fn_idx, unsigned arg_count...)
     {
       int num = va_arg (args, int);
       tree tnum = build_int_cst (integer_type_node, num);
-      *pp = build_tree_list (NULL, tnum PASS_MEM_STAT);
+      *pp = build_tree_list (NULL, tnum);
       pp = &TREE_CHAIN (*pp);
     }
   cblist

Reply via email to