diff options
author | Jørgen Kvalsvik <j@lambda.is> | 2025-06-19 21:00:07 +0200 |
---|---|---|
committer | Jørgen Kvalsvik <j@lambda.is> | 2025-06-20 13:21:39 +0200 |
commit | 69725b13e9dc8bdb17ec8a7d554071b6b517ad47 (patch) | |
tree | 270dcb2e5c13038280e552df848be5d3b03af356 /gcc/common/config/mcore | |
parent | 246c33ac8e8e1967c74ae20c07454a24ef02822a (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
The selftests had a bunch of memory leaks that showed up in make
selftest-valgrind as a result of not using auto_vec or other
explicitly calling release. Replacing vec with auto_vec makes the
problem go away. The auto_vec_vec helper is made constructable from a
vec so that objects returned from functions can be automatically
managed too.
PR gcov-profile/120634
gcc/ChangeLog:
* prime-paths.cc (struct auto_vec_vec): Add constructor from
vec.
(test_split_components): Use auto_vec_vec.
(test_scc_internal_prime_paths): Ditto.
(test_scc_entry_exit_paths): Ditto.
(test_complete_prime_paths): Ditto.
(test_entry_prime_paths): Ditto.
(test_singleton_path): Ditto.
Diffstat (limited to 'gcc/common/config/mcore')
0 files changed, 0 insertions, 0 deletions