[llvm-commits] [llvm-gcc-4.2] r93387 - /llvm-gcc-4.2/trunk/gcc/omp-low.c

Devang Patel devang.patel at gmail.com
Thu Jan 14 09:58:04 PST 2010


On Thu, Jan 14, 2010 at 1:55 AM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Stuart,
>
>> Decorate an OMP-specific MODIFY with correct lexical block.
>
> why?  Where are you going with these patches?
>

llvm-gcc (and dragon-egg also?) converts gimplified gcc trees into
llvm IR. Even at -O0. Unfortunately, during gimplification the lexical
blocks info. is not kept upto date by the gimplifier.

This results in not so pleasant, and many times confusing, debugging
experience while debugging unoptimized code generated by llvm-gcc.
This is because all local variables are made available at function
level.

Stuart is trying to keep lexical blocks info intact during
gimplification, so the llvm converter can convert debug info
appropriately.
-
Devang




More information about the llvm-commits mailing list