This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Fwd: [RFA] Add sh*-*-netbsdelf* target (fwd)]
- From: Joern Rennecke <joern dot rennecke at st dot com>
- To: Jason R Thorpe <thorpej at wasabisystems dot com>,gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Feb 2002 12:36:23 +0000
- Subject: [Fwd: [RFA] Add sh*-*-netbsdelf* target (fwd)]
- Organization: SuperH UK Ltd.
- Reply-to: joern dot rennecke at st dot com
Joern Rennecke wrote:
>
> Jason R Thorpe wrote:
>
> > Index: config/sh/lib1funcs.asm
> > ===================================================================
> > RCS file: /cvs/gcc/gcc/gcc/config/sh/lib1funcs.asm,v
> > retrieving revision 1.19
> > diff -c -r1.19 lib1funcs.asm
> > *** lib1funcs.asm 2001/06/03 22:08:26 1.19
> > --- lib1funcs.asm 2002/01/27 09:06:38
> > ***************
> > *** 43,49 ****
> > #define LOCAL(X) L_##X
> > #endif
> >
> > ! #ifdef __linux__
> > #define GLOBAL(X) __##X
> > #endif
> >
> > --- 43,49 ----
> > #define LOCAL(X) L_##X
> > #endif
> >
> > ! #if defined(__linux__) || defined(__NetBSD__)
> > #define GLOBAL(X) __##X
> > #endif
> >
>
> This should be really written in terms of __USER_LABEL_PREFIX__ ,
> I.e.:
>
> #define CONCAT(A,B) A##B
> #define GLOBAL0(U,X) CONCAT(U,__##X)
> #define GLOBAL(X) GLOBAL0(__USER_LABEL_PREFIX__,X)
>
> > Index: config/sh/netbsd-elf.h
>
> You seem to duplicate an awful lot of the stuff in sh/elf.h . Is this
> really simpler than including that header and adjusting the definitions
> that are not suitable?
>
> > Index: config/sh/sh.h
> > ===================================================================
> > RCS file: /cvs/gcc/gcc/gcc/config/sh/sh.h,v
> > retrieving revision 1.128
> > diff -c -r1.128 sh.h
> > *** sh.h 2002/01/27 04:18:11 1.128
> > --- sh.h 2002/01/27 09:06:45
> > ***************
> > *** 70,75 ****
> > --- 70,83 ----
> > #define CPP_DEFAULT_CPU_SPEC "-D__sh1__"
> > #endif
> >
> > + #define NO_BUILTIN_SIZE_TYPE
> > + #undef SIZE_TYPE
> > + #define SIZE_TYPE "unsigned int"
> > +
> > + #define NO_BUILTIN_PTRDIFF_TYPE
> > + #undef PTRDIFF_TYPE
> > + #define PTRDIFF_TYPE "int"
> > +
> > #ifndef SUBTARGET_CPP_PTR_SPEC
> > #define SUBTARGET_CPP_PTR_SPEC "-D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int"
> > #endif
>
> There is already a definition for SIZE_TYPE in sh.h. The other definitions
> in this hunk are also included in th SH5 patch that Alexandre posted.
>
>
> --
> --------------------------
> SuperH
> 2430 Aztec West / Almondsbury / BRISTOL / BS32 4AQ
> T:01454 462330
--
--------------------------
SuperH
2430 Aztec West / Almondsbury / BRISTOL / BS32 4AQ
T:01454 462330