This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/erc32 sim] build errors


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  <guitton@gnat.com>
> > 
> > 	* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]