From ff75ee77a9907b43529aab5a82dc971a35a22667 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 26 Apr 2005 14:43:31 +0000 Subject: [PATCH] [project @ 2005-04-26 14:43:31 by simonmar] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc/compiler/main/DynFlags.hs b/ghc/compiler/main/DynFlags.hs index 518a8e9..09932b6 100644 --- a/ghc/compiler/main/DynFlags.hs +++ b/ghc/compiler/main/DynFlags.hs @@ -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) ) -- 1.7.10.4