This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[RFA] Add sh*-*-netbsdelf* target


The following patch adds sh*-*-netbsdelf* targets.  Little-endian
is selected by configuring sh*le-*-netbsdelf*.

Protocol question: Assuming no changes are made to non-OS-specific
files, should an OS port maintainer get an OK from a CPU target
maintiner when adding a new OS configuration for that CPU?

(Obviously I should get an OK from the SH target maintainer in this
case, since I changed sh.h -- but my question is pertinent for some
upcoming NetBSD targets...)

	* config.gcc (sh*-*-*): Set cpu_type to sh.
	(sh*-*-netbsdelf*): New target.
	* config/sh/lib1funcs.asm: No leading underscores for
	user labels in NetBSD either.
	* config/sh/little.h: New file.
	* config/sh/netbsd-elf.h: New file.
	* config/sh/sh.h (NO_BUILTIN_SIZE_TYPE): Define.
	(NO_BUILTIN_PTRDIFF_TYPE): Define.
	(SIZE_TYPE): Define to match SUBTARGET_CPP_PTR_SPEC.
	(PTRDIFF_TYPE): Likewise.
	* config/sh/t-netbsd: New file.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

Attachment: sh-nbsd-patch
Description: sh-nbsd-patch


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