]> git.ipfire.org Git - thirdparty/gcc.git/commit
cselib: dump_cselib_* fixes
authorAlexandre Oliva <oliva@adacore.com>
Sun, 7 Dec 2025 01:08:04 +0000 (22:08 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sun, 7 Dec 2025 01:08:04 +0000 (22:08 -0300)
commit83739ee76da65ddf56a1be3eda253e2ad0fa5ab8
tree8235b39fe030680eb86e87e4ed4570e2f04ead6d
parentc70bf3e009397fc7d13b5a5bd64da02e92bba3e9
cselib: dump_cselib_* fixes

Rework dump_cselib_table to not crash when cselib_preserved_hash_table
is not allocated, and to remove the extraneous indirection from
dump_cselib_val that made it inconvenient to call from a debugger.

for  gcc/ChangeLog

* cselib.cc (dump_cselib_val): Split out of and rename to...
(dump_cselib_val_ptr): ... this.
(dump_cselib_table): Adjust.  Skip cselib_preserved_hash_table
when not allocated.
gcc/cselib.cc