]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Do not allocate macro_scope on the heap
authorTom Tromey <tom@tromey.com>
Thu, 29 May 2025 23:23:04 +0000 (17:23 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 31 May 2025 14:50:34 +0000 (08:50 -0600)
commit4aac43f399a8e55c70bfbc025f33e154d65f7b69
treeb844aa7b7289e24c594d65d33735f052976ea2a4
parent408984ea7b8b9f29104ad7642a4fa7d8daabb788
Do not allocate macro_scope on the heap

I noticed that there's no particular reason to allocate the
macro_scope objects on the heap.  They can be passed around by value
just as easily.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/c-exp.y
gdb/compile/compile-c-support.c
gdb/macrocmd.c
gdb/macroscope.c
gdb/macroscope.h
gdb/symtab.c