]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
middle-end/122392 - Remove erroneous PASS_MEM_STAT annotation.
authorJosef Melcr <jmelcr02@gmail.com>
Fri, 24 Oct 2025 09:12:44 +0000 (11:12 +0200)
committerJosef Melcr <jmelcr02@gmail.com>
Fri, 24 Oct 2025 09:53:05 +0000 (11:53 +0200)
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 <jmelcr02@gmail.com>
gcc/attr-callback.cc

index 83d275441507eef65fb4305661313b21596887d3..ee39ef61a20da6a496e661ce46c4425a73db773c 100644 (file)
@@ -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