]> sourceware.org Git - systemtap.git/commit
PR16974: wrap if, try and for tmpvar decls in unions
authorAbegail Jakop <ajakop@redhat.com>
Wed, 25 Feb 2015 21:48:30 +0000 (16:48 -0500)
committerAbegail Jakop <ajakop@redhat.com>
Wed, 25 Feb 2015 22:22:34 +0000 (17:22 -0500)
commitd74a787413c860f3ee9624e73db6f7e046d67420
treed94d6f76bcd5dc4d7b74890bacafca7a86352dea
parent395146b5aa203359a3bc80d384806645e375d778
PR16974: wrap if, try and for tmpvar decls in unions

translate.cxx: in c_tmpcounter::visit_block, the tmpvar declarations
in the generated c code are wrapped in a union, with each
block->statements[i] wrapped in a struct, to reduce context memory
allocation. following ::visit_block, the tmpvar declarations in
::visit_if_statement, ::visit_try_block and ::visit_for_loop are
wrapped in a union. since this causes quite a lot of nesting, comments
are added to the generated c code to indicate the source file and
line the struct/union tmpvars correspond to.
translate.cxx
This page took 0.026541 seconds and 5 git commands to generate.