[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [Mint-cvs] [FreeMiNT CVS] mintlib



On Sun, 2008-05-18 at 20:20 +0000, cvs@sparemint.org wrote:
> Update of /mint/mintlib
> In directory mail.sparemint.org:/tmp/cvs-serv12260
> 
> Modified Files:
> 	buildrules 
> Log Message:
> Never compile linea.c with profiling information.
> 
> 
> Index: mintlib/buildrules
> diff -u mintlib/buildrules:1.14 mintlib/buildrules:1.15
> --- mintlib/buildrules:1.14	Sun Apr 27 13:03:42 2008
> +++ mintlib/buildrules	Sun May 18 16:20:09 2008
> @@ -104,6 +104,7 @@
>  NOCFLAGS-mcount.c = -pg -fomit-frame-pointer
>  NOCFLAGS-profil-freq.c = -pg -fomit-frame-pointer
>  NOCFLAGS-profil-posix.c = -pg -fomit-frame-pointer
> +NOCFLAGS-linea.c = -pg
>  #DEFS-vfscanf.c = -DNO_BUG_IN_ISO_C_CORRIGENDUM_1
>  CFLAGS-vfprintf.c = -Wno-uninitialized
>  CFLAGS-ivfprintf.c = -Wno-uninitialized

This didn't work for me. It's actually the optimizer that's causing the
problem. If I change it from...

NOCFLAGS-linea.c = -pg

to

NOCFLAGS-linea.c = -O2

then it compiles with profiling, debugging and normally.

Alan.