add support for "sparc-*-netbsdelf"
This commit is contained in:
parent
33e708f1c7
commit
c57e92ccdf
82
gnu/dist/gcc/config/sparc/netbsdelf.h
vendored
Normal file
82
gnu/dist/gcc/config/sparc/netbsdelf.h
vendored
Normal file
@ -0,0 +1,82 @@
|
||||
/* netbsd sparc ELF configuration */
|
||||
/* be nice to merge this with netbsd64.h somehow */
|
||||
|
||||
#include <sparc/elf.h>
|
||||
|
||||
/* ok, clean up after <sparc/elf.h> */
|
||||
|
||||
#undef CPP_PREDEFINES
|
||||
#define CPP_PREDEFINES "-D__sparc__ -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__"
|
||||
|
||||
/* clean up after <sparc/elf.h> */
|
||||
#undef CPP_SUBTARGET_SPEC
|
||||
#define CPP_SUBTARGET_SPEC ""
|
||||
|
||||
#define NETBSD_ELF
|
||||
#include <netbsd.h>
|
||||
|
||||
#undef SIZE_TYPE
|
||||
#define SIZE_TYPE "unsigned int"
|
||||
|
||||
#undef PTRDIFF_TYPE
|
||||
#define PTRDIFF_TYPE "int"
|
||||
|
||||
#undef WCHAR_TYPE
|
||||
#define WCHAR_TYPE "int"
|
||||
|
||||
#undef WCHAR_TYPE_SIZE
|
||||
#define WCHAR_TYPE_SIZE 32
|
||||
|
||||
#undef WCHAR_UNSIGNED
|
||||
#define WCHAR_UNSIGNED 0
|
||||
|
||||
#undef PREFERRED_DEBUGGING_TYPE
|
||||
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
|
||||
|
||||
/* This is the char to use for continuation (in case we need to turn
|
||||
continuation back on). */
|
||||
#undef DBX_CONTIN_CHAR
|
||||
#define DBX_CONTIN_CHAR '?'
|
||||
|
||||
/*#undef ASM_OUTPUT_SKIP*/
|
||||
|
||||
#undef DBX_REGISTER_NUMBER
|
||||
#define DBX_REGISTER_NUMBER(REGNO) \
|
||||
(TARGET_FLAT && REGNO == FRAME_POINTER_REGNUM ? 31 : REGNO)
|
||||
|
||||
/* This is how to output a definition of an internal numbered label where
|
||||
PREFIX is the class of label and NUM is the number within the class. */
|
||||
|
||||
#undef ASM_OUTPUT_INTERNAL_LABEL
|
||||
#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \
|
||||
fprintf (FILE, ".L%s%d:\n", PREFIX, NUM)
|
||||
|
||||
/* This is how to store into the string LABEL
|
||||
the symbol_ref name of an internal numbered label where
|
||||
PREFIX is the class of label and NUM is the number within the class.
|
||||
This is suitable for output with `assemble_name'. */
|
||||
|
||||
#undef ASM_GENERATE_INTERNAL_LABEL
|
||||
#define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \
|
||||
sprintf ((LABEL), "*.L%s%ld", (PREFIX), (long)(NUM))
|
||||
|
||||
#undef ASM_SPEC
|
||||
#define ASM_SPEC "%{fpic:-K PIC} %{fPIC:-K PIC} \
|
||||
%{mlittle-endian:-EL} \
|
||||
%(asm_cpu) \
|
||||
"
|
||||
|
||||
#undef STDC_0_IN_SYSTEM_HEADERS
|
||||
|
||||
/* Name the port. */
|
||||
#undef TARGET_NAME
|
||||
#define TARGET_NAME "sparc-netbsdelf"
|
||||
|
||||
/* XXX Redefine this; <sparc/sparc.h> mucks with it. */
|
||||
#undef TARGET_VERSION
|
||||
#define TARGET_VERSION fprintf (stderr, " (%s)", TARGET_NAME);
|
||||
|
||||
/* Name the target CPU. */
|
||||
#ifndef TARGET_CPU_DEFAULT
|
||||
#define TARGET_CPU_DEFAULT TARGET_CPU_sparc
|
||||
#endif
|
7
gnu/dist/gcc/configure
vendored
7
gnu/dist/gcc/configure
vendored
@ -4485,6 +4485,13 @@ for machine in $build $host $target; do
|
||||
tmake_file=sparc/t-sparcbare
|
||||
tm_file="sparc/aout.h libgloss.h"
|
||||
;;
|
||||
sparc-*-netbsd*elf*)
|
||||
tm_file=sparc/netbsdelf.h
|
||||
xm_file=sparc/xm-netbsd.h
|
||||
# On NetBSD, the headers are already okay, except for math.h.
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=t-netbsd
|
||||
;;
|
||||
sparc-*-netbsd*)
|
||||
tm_file=sparc/netbsd.h
|
||||
xm_file=sparc/xm-netbsd.h
|
||||
|
7
gnu/dist/gcc/configure.in
vendored
7
gnu/dist/gcc/configure.in
vendored
@ -2583,6 +2583,13 @@ for machine in $build $host $target; do
|
||||
tmake_file=sparc/t-sparcbare
|
||||
tm_file="sparc/aout.h libgloss.h"
|
||||
;;
|
||||
sparc-*-netbsd*elf*)
|
||||
tm_file=sparc/netbsdelf.h
|
||||
xm_file=sparc/xm-netbsd.h
|
||||
# On NetBSD, the headers are already okay, except for math.h.
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=t-netbsd
|
||||
;;
|
||||
sparc-*-netbsd*)
|
||||
tm_file=sparc/netbsd.h
|
||||
xm_file=sparc/xm-netbsd.h
|
||||
|
Loading…
Reference in New Issue
Block a user