From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20591 invoked by alias); 3 Mar 2005 17:19:43 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 20568 invoked from network); 3 Mar 2005 17:19:35 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 3 Mar 2005 17:19:35 -0000 Received: from drow by nevyn.them.org with local (Exim 4.44 #1 (Debian)) id 1D6tyh-0006ql-5o; Thu, 03 Mar 2005 12:19:11 -0500 Date: Thu, 03 Mar 2005 17:19:00 -0000 From: Daniel Jacobowitz To: Jerome Guitton Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA/erc32 sim] build errors Message-ID: <20050303171910.GA18681@nevyn.them.org> Mail-Followup-To: Jerome Guitton , gdb-patches@sources.redhat.com References: <20050221181001.GA26476@adacore.com> <20050303145856.GA15842@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050303145856.GA15842@adacore.com> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-03/txt/msg00030.txt.bz2 On Thu, Mar 03, 2005 at 03:58:56PM +0100, Jerome Guitton wrote: > Ping? OK, I suppose. Does the sim actually work? > Jerome Guitton (guitton@adacore.com): > > > > > Mainly removing the uneeded duplicated symbols and fixing some compilation > > errors generated by GCC 3.4. > > > > OK to apply? > > > > 2005-02-21 Jerome Guitton > > > > * sim/erc32/float.c (set_fsr): Do not use deprecated multi-line > > strings. > > (clear_accex): Ditto. > > * sim/erc32/interf.c: Remove the redeclaration of fprintf. > > * sim/erc32/sis.c: Ditto. > > * sim/erc32/exec.c: Add missing semicolon. > > * sim/erc32/func.c: Remove definitions of generic_print_address, > > generic_symbol_at_address, buffer_read_memory and perror_memory, as > > they are already defined in opcodes/dis-buf.c. > > Index: float.c > > =================================================================== > > RCS file: /cvs/src/src/sim/erc32/float.c,v > > retrieving revision 1.1.1.1 > > diff -u -p -r1.1.1.1 float.c > > --- float.c 16 Apr 1999 01:35:00 -0000 1.1.1.1 > > +++ float.c 21 Feb 2005 18:00:34 -0000 > > @@ -67,11 +67,11 @@ clear_accex() > > #ifdef sparc > > set_fsr((_get_fsr_raw() & ~0x3e0)); > > #elif i386 > > - asm(" > > -.text > > - fnclex > > - > > - "); > > + asm("\n" > > +".text\n" > > +" fnclex\n" > > +"\n" > > +" "); > > #else > > #warning no fpu trap support for this target > > #endif FYI, using .text in asm() is highly bogus - especially in recent GCC. But this predates your change. -- Daniel Jacobowitz CodeSourcery, LLC