From 5bfa8d3a3da73c8953001f98ba166561bf9e8a4b Mon Sep 17 00:00:00 2001 From: Josef Melcr Date: Fri, 24 Oct 2025 11:12:44 +0200 Subject: [PATCH] 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 --- 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 83d27544150..ee39ef61a20 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