This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: [PATCH] Re: sparc64-elf crt0.o fails to compile


On Jan 22 10:11, Yaakov Selkowitz wrote:
> On Thu, 2014-12-25 at 23:29 -0600, Yaakov Selkowitz wrote:
> > On 2014-12-25 22:52, Yaakov Selkowitz wrote:
> > > On 2014-12-25 21:48, Gedare Bloom wrote:
> > >> Without looking at the source--this error refers to using a global
> > >> register other than g0 or g1 without "declaring" it as used. Most
> > >> often this presents as g2 or g3. The ABI restricts the use of global
> > >> registers. You need to add:
> > >>
> > >> .register %g2, #scratch
> > >>
> > >> to the top of the assembly file to specify that g2 is used in the
> > >> assembly.
> > >
> > > OK, thanks for the hint.  I used the attached patch to get
> > > newlib/libgloss to compile for sparc64-elf.
> > >
> > > 2014-12-25  Yaakov Selkowitz  <yselkowi@...>
> > >
> > > 	libgloss/
> > > 	* sparc/crt0.S: Declare use of system registers.
> > > 	* sparc/cygmon-crt0.S: Ditto.
> > > 	* sparc/erc32-crt0.S: Ditto.
> > > 	* sparc/traps.S: Ditto.
> > >
> > > 	newlib/
> > > 	* libc/sys/sparc64/sys/time.h: #include <time.h> for time_t.
> > 
> > Sorry, wrong patch, this should have been <sys/types.h>.
> 
> Ping?

With the sys/types.h change, ok to apply.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: pgpfMWEPSMO1n.pgp
Description: PGP signature


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