r222657 - in /trunk/gcc/go: ChangeLog go-gcc.cc...
ian@gcc.gnu.org
ian@gcc.gnu.org
Thu Apr 30 20:44:00 GMT 2015
Author: ian
Date: Thu Apr 30 20:44:03 2015
New Revision: 222657
URL: https://gcc.gnu.org/viewcvs?rev=222657&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/go/ChangeLog
trunk/gcc/go/go-gcc.cc
trunk/gcc/go/gofrontend/backend.h
trunk/gcc/go/gofrontend/expressions.cc
trunk/gcc/go/gofrontend/expressions.h
More information about the Gcc-cvs
mailing list