[llvm-commits] [llvm-gcc-4.2] r67884 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp

Chris Lattner clattner at apple.com
Fri Mar 27 17:43:35 PDT 2009


woot indeed!  Congrats Dale (and others)!

-Chris

On Mar 27, 2009, at 5:32 PM, Dale Johannesen wrote:

> Author: johannes
> Date: Fri Mar 27 19:32:17 2009
> New Revision: 67884
>
> URL: http://llvm.org/viewvc/llvm-project?rev=67884&view=rev
> Log:
> Enable debug info at -O.  I've fixed a lot of
> bugs where -g affects optimization recently; there
> are currently no such cases in the llvm testsuite or
> a substantial amount of other code on Darwin, which
> seems sufficient to turn it on.  Woot.  I make
> no claims about the quality of the generated debug
> info.
>
> Any cases where you see -g affecting optimization can
> now usefully be reported as bugs.  TEST=ipodbgopt should
> test this in the llvm testsuite.
>
>
> Modified:
>    llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
>
> Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=67884&r1=67883&r2=67884&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
> +++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Fri Mar 27 19:32:17 2009
> @@ -307,13 +307,9 @@
> }
>
> /// EmitStopPoint - Emit a call to llvm.dbg.stoppoint to indicate a  
> change of
> -/// source line - "llvm.dbg.stoppoint."
> +/// source line - "llvm.dbg.stoppoint."  Now enabled with -O.
> void DebugInfo::EmitStopPoint(Function *Fn, BasicBlock *CurBB) {
>
> -  // Do not emit line number info, for now.
> -  if (optimize)
> -    return;
> -
>   // Don't bother if things are the same as last time.
>   if (PrevLineNo == CurLineNo &&
>       PrevBB == CurBB &&
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list