[cfe-commits] r134045 - in /cfe/trunk: include/clang/Basic/LangOptions.h include/clang/Driver/CC1Options.td include/clang/Driver/Options.td lib/CodeGen/CGBlocks.cpp lib/Driver/Tools.cpp lib/Frontend/CompilerInvocation.cpp test/CodeGen/reset-local

Fariborz Jahanian fjahanian at apple.com
Tue Jun 28 17:40:14 PDT 2011


On Jun 28, 2011, at 5:14 PM, Eli Friedman wrote:

> On Tue, Jun 28, 2011 at 4:51 PM, Fariborz Jahanian <fjahanian at apple.com> wrote:
>> Author: fjahanian
>> Date: Tue Jun 28 18:51:26 2011
>> New Revision: 134045
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=134045&view=rev
>> Log:
>> Under a compiler flag, -freset-local-blocks,
>> wipe out stack blocks when they go out of scope.
>> // rdar://9227352
>> 
>> Added:
>>    cfe/trunk/test/CodeGen/reset-local-block.c
>> 
> 
> I'm not sure this bit of code works correctly in the presence of
> goto's... I was doing something sort of similar in rdar://9421018 and
> ran into issues.

This doesn't have to work perfectly. It is for debugging only and may only be
used with a compiler option. But we use the infrastructure in other places too,
so it may be a problem when we depend on this feature working perfectly.

- Fariborz
> 
> -Eli




More information about the cfe-commits mailing list