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

Bill Wendling isanbard at gmail.com
Sat Mar 28 14:15:57 PDT 2009

Author: void
Date: Sat Mar 28 16:15:56 2009
New Revision: 67958

URL: http://llvm.org/viewvc/llvm-project?rev=67958&view=rev
Re-enable r67884. There was a flaw in my buildbots that Dale pointed out to me.

--- Merging (from foreign repository) r67884 into '.':
U    gcc/llvm-debug.cpp

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

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
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=67958&r1=67957&r2=67958&view=diff

--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Sat Mar 28 16:15:56 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 &&

More information about the llvm-commits mailing list