aboutsummaryrefslogtreecommitdiff
path: root/gcc/alloc-pool.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-03-14 12:53:10 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-03-14 12:57:01 +0000
commit7d7bc2ce3898294d67761ab176c2c229089fc13b (patch)
tree0feabb302e2ce7cc2652b235a1e498788df57f6e /gcc/alloc-pool.cc
parent41f402f0b19c7e4f19f8d4d65d15223d2752f302 (diff)
downloadgcc-7d7bc2ce3898294d67761ab176c2c229089fc13b.zip
gcc-7d7bc2ce3898294d67761ab176c2c229089fc13b.tar.gz
gcc-7d7bc2ce3898294d67761ab176c2c229089fc13b.tar.bz2
Fix memory corruption in generation of builtin functions
When we compile normal language functions we maintain a stack of the current function declaration and associated return addresses. This is used while building up the GCC tree graph. When we generate builtin intrinsic functions such as offset or size_of were missing their associated push_fn but still performed a pop_fn on completion this resulted in a corrupt stack which valgrind shown as bad read/writes. This patch removes the pop_fn calls since no fncontext stack is required here for these intrinsics. Fixes #1024
Diffstat (limited to 'gcc/alloc-pool.cc')
0 files changed, 0 insertions, 0 deletions