C PATCH to emit_local_var

Jason Merrill jason@redhat.com
Tue May 13 18:54:00 GMT 2003


Dealing with temp slots can be expensive in functions with lots of
variables.  Really the data structure needs to be fixed, but this small
optimization can't hurt.

Tested i686-pc-linux-gnu, applied to trunk and tree-ssa.

2003-05-13  Jason Merrill  <jason@redhat.com>

        * c-semantics.c (emit_local_var): Don't mess with temp slots if
        there's no initializer.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 893 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030513/f0520485/attachment.bin>


More information about the Gcc-patches mailing list