From: Josef Melcr Date: Fri, 24 Oct 2025 09:12:44 +0000 (+0200) Subject: middle-end/122392 - Remove erroneous PASS_MEM_STAT annotation. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bfa8d3a3da73c8953001f98ba166561bf9e8a4b;p=thirdparty%2Fgcc.git 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 --- 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