[project @ 2005-04-26 14:43:31 by simonmar]
authorsimonmar <unknown>
Tue, 26 Apr 2005 14:43:31 +0000 (14:43 +0000)
committersimonmar <unknown>
Tue, 26 Apr 2005 14:43:31 +0000 (14:43 +0000)
Back out previous revision.

It appears that passing -g to the assembly phase of C compilation
results in an object file with broken debug info, that gdb can't
read.  This is probably a bug in gcc and/or binutils, but this change
means that I can't avoid it (unless we were to hack the pipeline to
do .c->.s->.o in one stage instead of two).

ghc/compiler/main/DynFlags.hs

index 518a8e9..09932b6 100644 (file)
@@ -766,7 +766,7 @@ dynamic_flags = [
   ,  ( "optL"          , HasArg (upd . addOptL) )  
   ,  ( "optP"          , HasArg (upd . addOptP) )  
   ,  ( "optF"           , HasArg (upd . addOptF) )  
-  ,  ( "optc"          , HasArg (\f -> upd (addOptc f . addOpta f)) )
+  ,  ( "optc"          , HasArg (upd . addOptc) )  
   ,  ( "optm"          , HasArg (upd . addOptm) )  
   ,  ( "opta"          , HasArg (upd . addOpta) )  
   ,  ( "optl"          , HasArg (upd . addOptl) )