diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-30 20:44:03 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-30 20:44:03 +0000 |
commit | d5d1c295d3217e4c1d9395f2feb6a5b11f738210 (patch) | |
tree | ea4d7673e4669f048a90928ef154e42a4227260d /gcc/tree-ssa-loop-ivopts.c | |
parent | c3578bfd5b381e1f808a7e2a2c2cc7343ea1203b (diff) | |
download | gcc-d5d1c295d3217e4c1d9395f2feb6a5b11f738210.tar.gz |
compiler: Use backend interface for stack allocation.
Stack allocation was being done by making a temporary variable and
taking its address. This does not work when allocating in a loop
because every allocated variable will refer to the same address.
The backend now provides a way to safely allocate in a loop.
* go-gcc.cc (Gcc_backend::stack_allocation_expression): New
method.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222657 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
0 files changed, 0 insertions, 0 deletions