From mint-bounce@lists.fishpool.fi  Thu May 22 05:28:31 2008
X-Virus-Scanned: amavisd-new at demon.co.uk
Subject: Re: [MiNT] [Mint-cvs] [FreeMiNT CVS] mintlib
From: Alan Hourihane <alanh@fairlite.demon.co.uk>
To: mint <mint@fishpool.com>
Cc: fnaumann@freemint.de
In-Reply-To: <1211447229.1784.37.camel@localhost>
References: <200805182020.m4IKKCuS013980@mail.sparemint.org>
	 <1211447229.1784.37.camel@localhost>
Content-Type: text/plain
Date: Thu, 22 May 2008 10:24:38 +0100
Message-Id: <1211448278.1784.42.camel@localhost>
Mime-Version: 1.0
X-Mailer: Evolution 2.12.3 
Content-Transfer-Encoding: 7bit
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: alanh@fairlite.demon.co.uk
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>

On Thu, 2008-05-22 at 10:07 +0100, Alan Hourihane wrote:
> 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.

Actually, make that...

NOCFLAGS-linea.c = -O2 -O

as the debug (-g) build, builds by default with -O

Alan.


