Rainer Orth <r...@cebitec.uni-bielefeld.de> writes: > Rainer Orth <r...@cebitec.uni-bielefeld.de> writes: >> Another easy part in the toplevel libgcc move was sync.c and related >> stuff. While doing this, it turned out to be easier to move the rest of >> gcc/config/mips/t-libgcc-mips16 rather than leave it behind. >> >> The patch is untested except for including it in a mips-sgi-irix6.5 >> build to make sure it is syntactically correct, but I don't have mips16 >> system to actually test. > > Since Richard had found that that patch didn't work on systems where > mips16.S is actually used since LIB1ASMSRC is only searched in > gcc/config, I'm deferring that part to a followup patch to deal with > libgcc1 (LIB1* etc.) as a whole. That patch is almost ready, just needs > a final read-over and a couple of finishing touches. > > So this patch only deals with the sync functions proper and should be > relatively straightforward. Richard, could you please try this one, > too?
Sure. Tested on mips64-linux-gnu, where it works fine, thanks. > 2011-07-10 Rainer Orth <r...@cebitec.uni-bielefeld.de> > > gcc: > * config/sync.c: Move to ../libgcc. > * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, > LIBGCC_SYNC_CFLAGS. > * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS): > Remove. > > libgcc: > * sync.c: New file. > * config/mips/t-mips16: New file. > * config.host (mips64*-*-linux*): Add mips/t-mips16 to tmake_file. > (mips*-*-linux*): Likewise. > (mips*-sde-elf*): Likewise. > (mipsisa32-*-elf*): Join with mipsisa32r2-*-elf*, > mipsisa64-*-elf*, mipsisa64r2-*-elf*. > Add mips/t-mips16 to tmake_file. > (mipsisa64sb1-*-elf*): Add mips/t-mips16 to tmake_file. > (mips-*-elf*): Likewise. > (mips64-*-elf*): Likewise. > (mips64orion-*-elf*): Likewise. > (mips*-*-rtems*): Likewise. > (mipstx39-*-elf*): Likewise. > * Makefile.in: Use SYNC instead of LIBGCC_SYNC. > ($(libgcc-sync-size-funcs-o)): Use SYNC_CFLAGS instead of > LIBGCC_SYNC_CFLAGS. > Use $(srcdir) to refer to sync.c. > Use $<. > ($(libgcc-sync-funcs-o)): Likewise. > ($(libgcc-sync-size-funcs-s-o)): Likewise. > ($(libgcc-sync-funcs-s-o)): Likewise. OK for the MIPS parts. Richard