From 9f25eed9c96cb37ee58fcb65aafb44f9c6183dde Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Fri, 8 Feb 2002 07:11:13 +0000 Subject: Contribute sh64-elf. 2001-03-13 Alexandre Oliva * configure.host (newlib_cflags) [sh*-*-*]: Enable long long support in printf. 2001-01-29 Alexandre Oliva * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before any labels. 2001-01-24 Alexandre Oliva * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2. 2000-12-16 Alexandre Oliva * libc/machine/sh/configure.in: Rework conditionals. * libc/machine/sh/Makefile.am: Likewise. * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt. 2000-12-01 Alexandre Oliva * configure.host: Match `sh*'. * libc/include/machine/setjmp.h: Define for SH5. * libc/machine/sh/configure.in: Detect SH5. * libc/machine/sh/configure: Rebuilt. * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5. * libc/machine/sh/Makefile.in: Rebuilt. * libc/machine/sh/asm.h: Adjust for SH5. * libc/machine/sh/setjmp.S: Implement in SHmedia. * libc/sys/sh/crt0.S: Likewise. * libc/sys/sh/trap.S: Likewise. --- newlib/libc/machine/sh/asm.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'newlib/libc/machine/sh/asm.h') diff --git a/newlib/libc/machine/sh/asm.h b/newlib/libc/machine/sh/asm.h index ed27fdb1e..cfdaa812b 100644 --- a/newlib/libc/machine/sh/asm.h +++ b/newlib/libc/machine/sh/asm.h @@ -5,8 +5,19 @@ #endif #define _ASM_LABEL(x) x +#if __SH5__ +# if __SH5__ == 32 && __SHMEDIA__ +# define TEXT .section .text..SHmedia32, "ax" +# else +# define TEXT .text +# endif + +# define _ENTRY(name) \ + TEXT; .align 4; .globl name; name: +#else #define _ENTRY(name) \ .text; .align 2; .globl name; name: +#endif /* __SH5__ */ #define ENTRY(name) \ _ENTRY(_C_LABEL(name)) -- cgit v1.2.3