Sven Panne writes:
> Traditionally, profiling with optimizations on has been a problem in
> GHC's history... :-] Here's a new one:
>
..
> ghc-3.01 -o blah -O -prof -fglasgow-exts Foo.o Main.o
> Main.o(.text+0xe9): undefined reference to `CC_FooZdmycc2ZdDUPD_struct'
> Main.o(.text+0xef): undefined reference to `CC_FooZdmycc2ZdDUPD_struct'
>
I've been waiting for a report about this one :-) Apply patch at the end.
--Sigbjorn
*** ghc/compiler/profiling/CostCentre.lhs 1998/02/26 13:47:07 1.19
--- ghc/compiler/profiling/CostCentre.lhs 1998/03/12 12:23:33
***************
*** 425,429 ****
---------------
! do_dupd sty ADupdCC str = if (friendly_sty sty) then str ++ "/DUPD" else str
do_dupd _ _ str = str
\end{code}
--- 425,429 ----
---------------
! do_dupd sty ADupdCC str = if (debugStyle sty) then str ++ "/DUPD" else str
do_dupd _ _ str = str
\end{code}