diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-08-17 23:43:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-08-17 23:43:08 +0000 |
commit | e68035acfd6997ed97eb32aec4f277f3b6858550 (patch) | |
tree | f0e21a4a0680568bf5045771a16e20292aad1cfc /gcc/ada/gcc-interface/misc.c | |
parent | b9a21efdea18862f79c68ceb2eee0704844ead53 (diff) | |
download | gcc-e68035acfd6997ed97eb32aec4f277f3b6858550.zip gcc-e68035acfd6997ed97eb32aec4f277f3b6858550.tar.gz gcc-e68035acfd6997ed97eb32aec4f277f3b6858550.tar.bz2 |
compiler, runtime: allocate defer records on the stack
When a defer is executed at most once in a function body,
we can allocate the defer record for it on the stack instead
of on the heap.
This should make defers like this (which are very common) faster.
This is a port of CL 171758 from the gc repo.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/190410
From-SVN: r274613
Diffstat (limited to 'gcc/ada/gcc-interface/misc.c')
0 files changed, 0 insertions, 0 deletions