| LIBGCC1=libgcc1.null |
| CROSS_LIBGCC1 = libgcc1-asm.a |
| LIB1ASMSRC = mn10200/lib1funcs.asm |
| LIB1ASMFUNCS = _divhi3 \ |
| _modhi3 \ |
| _addsi3 \ |
| _subsi3 \ |
| _mulsi3 \ |
| _ashlsi3 \ |
| _lshrsi3 \ |
| _ashrsi3 \ |
| _negsi2_d0 \ |
| _negsi2_d2 \ |
| _zero_extendpsisi2_d0 \ |
| _zero_extendpsisi2_d2 \ |
| _sign_extendpsisi2_d0 \ |
| _sign_extendpsisi2_d2 \ |
| _truncsipsi2_d0_d0 \ |
| _truncsipsi2_d0_d1 \ |
| _truncsipsi2_d0_d2 \ |
| _truncsipsi2_d0_d3 \ |
| _truncsipsi2_d2_d0 \ |
| _truncsipsi2_d2_d1 \ |
| _truncsipsi2_d2_d2 \ |
| _truncsipsi2_d2_d3 \ |
| _cmpsi2 \ |
| _ucmpsi2 \ |
| _prologue \ |
| _epilogue_a0 \ |
| _epilogue_d0 \ |
| _epilogue_noreturn |
| |
| |
| # These are really part of libgcc1, but this will cause them to be |
| # built correctly, so... |
| |
| # We do not have DF or DI types, so fake out the libgcc2 compilation. |
| TARGET_LIBGCC2_CFLAGS=-DDF=SF -DDI=SI |
| LIB2FUNCS_EXTRA = fp-bit.c $(srcdir)/config/mn10200/udivmodsi4.c \ |
| $(srcdir)/config/mn10200/divmod.c $(srcdir)/config/mn10200/udivmod.c |
| |
| fp-bit.c: $(srcdir)/config/fp-bit.c |
| echo '#define FLOAT' > fp-bit.c |
| echo '#define FLOAT_ONLY' >> fp-bit.c |
| echo '#define SMALL_MACHINE' >> fp-bit.c |
| echo '#define CMPtype HItype' >> fp-bit.c |
| echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c |
| echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c |
| echo '#endif' >> fp-bit.c |
| cat $(srcdir)/config/fp-bit.c >> fp-bit.c |