https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122392
Bug ID: 122392
Summary: [16 Regression] GCC fails to build when configured
with --enable-gather-detailed-mem-stats since
r16-4468-g7cd91c7c42eec8
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: pheeck at gcc dot gnu.org
CC: hubicka at gcc dot gnu.org, jamborm at gcc dot gnu.org,
jmelcr02 at gmail dot com
Target Milestone: ---
Host: x86_64-linux
Target: x86_64-linux
./configure --enable-gather-detailed-mem-stats
make
results in
g++ -fno-PIE -c -g -O2 -DIN_GCC -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -DHAVE_CONFIG_H -fno-PIE -I. -I. -I../../src/gcc
-I../../src/gcc/. -I../../src/gcc/../include -I../../src/gcc/../libcpp/include
-I../../src/gcc/../libcody -I../../src/gcc/../libdecnumber
-I../../src/gcc/../libdecnumber/bid -I../libdecnumber
-I../../src/gcc/../libbacktrace -o attr-callback.o -MT attr-callback.o -MMD
-MP -MF ./.deps/attr-callback.TPo ../../src/gcc/attr-callback.cc
In file included from ../../src/gcc/hash-table.h:246,
from ../../src/gcc/coretypes.h:524,
from ../../src/gcc/attr-callback.cc:23:
../../src/gcc/attr-callback.cc: In function ‘tree_node*
callback_build_attr(unsigned int, unsigned int, ...)’:
../../src/gcc/statistics.h:32:29: error: ‘_loc_name’ was not declared in this
scope
32 | #define ALONE_PASS_MEM_STAT _loc_name, _loc_line, _loc_function
| ^~~~~~~~~
../../src/gcc/statistics.h:37:25: note: in expansion of macro
‘ALONE_PASS_MEM_STAT’
37 | #define PASS_MEM_STAT , ALONE_PASS_MEM_STAT
| ^~~~~~~~~~~~~~~~~~~
../../src/gcc/attr-callback.cc:51:41: note: in expansion of macro
‘PASS_MEM_STAT’
51 | *pp = build_tree_list (NULL, tnum PASS_MEM_STAT);
| ^~~~~~~~~~~~~
../../src/gcc/statistics.h:32:40: error: ‘_loc_line’ was not declared in this
scope
32 | #define ALONE_PASS_MEM_STAT _loc_name, _loc_line, _loc_function
| ^~~~~~~~~
../../src/gcc/statistics.h:37:25: note: in expansion of macro
‘ALONE_PASS_MEM_STAT’
37 | #define PASS_MEM_STAT , ALONE_PASS_MEM_STAT
| ^~~~~~~~~~~~~~~~~~~
../../src/gcc/attr-callback.cc:51:41: note: in expansion of macro
‘PASS_MEM_STAT’
51 | *pp = build_tree_list (NULL, tnum PASS_MEM_STAT);
| ^~~~~~~~~~~~~
../../src/gcc/statistics.h:32:52: error: ‘_loc_function’ was not declared in
this scope; did you mean ‘dump_function’?
32 | #define ALONE_PASS_MEM_STAT _loc_name, _loc_line, _loc_function
| ^~~~~~~~~~~~~
../../src/gcc/statistics.h:37:25: note: in expansion of macro
‘ALONE_PASS_MEM_STAT’
37 | #define PASS_MEM_STAT , ALONE_PASS_MEM_STAT
| ^~~~~~~~~~~~~~~~~~~
../../src/gcc/attr-callback.cc:51:41: note: in expansion of macro
‘PASS_MEM_STAT’
51 | *pp = build_tree_list (NULL, tnum PASS_MEM_STAT);
| ^~~~~~~~~~~~~
make[2]: *** [Makefile:1215: attr-callback.o] Error 1
make[2]: Leaving directory '/home/fkastl/gcc/build/gcc'
make[1]: *** [Makefile:4723: all-gcc] Error 2
make[1]: Leaving directory '/home/fkastl/gcc/build'
make: *** [Makefile:1065: all] Error 2