Kill files that are now part of the latest snapshot
This commit is contained in:
parent
7cff8ee98c
commit
fc986ab32a
@ -1,126 +0,0 @@
|
||||
/* Configuration file for an alpha OpenBSD target.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We settle for little endian for now. */
|
||||
#define TARGET_ENDIAN_DEFAULT 0
|
||||
|
||||
#include <alpha/alpha.h>
|
||||
|
||||
#define OBSD_NO_DYNAMIC_LIBRARIES
|
||||
#define OBSD_HAS_DECLARE_FUNCTION_NAME
|
||||
#define OBSD_HAS_DECLARE_FUNCTION_SIZE
|
||||
#define OBSD_HAS_DECLARE_OBJECT
|
||||
|
||||
/* alpha ecoff supports only weak aliases, see below. */
|
||||
#define ASM_WEAKEN_LABEL(FILE,NAME) ASM_OUTPUT_WEAK_ALIAS (FILE,NAME,0)
|
||||
|
||||
#include <openbsd.h>
|
||||
|
||||
/* Controlling the compilation driver. */
|
||||
|
||||
/* alpha needs __start. */
|
||||
#undef LINK_SPEC
|
||||
#define LINK_SPEC \
|
||||
"%{!nostdlib:%{!r*:%{!e*:-e __start}}} -dc -dp %{assert*}"
|
||||
|
||||
/* run-time target specifications */
|
||||
#define CPP_PREDEFINES "-D__unix__ -D__ANSI_COMPAT -Asystem(unix) \
|
||||
-D__OpenBSD__ -D__alpha__ -D__alpha"
|
||||
|
||||
/* Layout of source language data types. */
|
||||
|
||||
/* This must agree with <machine/ansi.h> */
|
||||
#undef SIZE_TYPE
|
||||
#define SIZE_TYPE "long unsigned int"
|
||||
|
||||
#undef PTRDIFF_TYPE
|
||||
#define PTRDIFF_TYPE "long int"
|
||||
|
||||
#undef WCHAR_TYPE
|
||||
#define WCHAR_TYPE "int"
|
||||
|
||||
#undef WCHAR_TYPE_SIZE
|
||||
#define WCHAR_TYPE_SIZE 32
|
||||
|
||||
|
||||
#undef PREFERRED_DEBUGGING_TYPE
|
||||
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
|
||||
|
||||
#define LOCAL_LABEL_PREFIX "."
|
||||
|
||||
/* We don't have an init section yet. */
|
||||
#undef HAS_INIT_SECTION
|
||||
|
||||
/* collect2 support (assembler format: macros for initialization). */
|
||||
|
||||
/* Don't tell collect2 we use COFF as we don't have (yet ?) a dynamic ld
|
||||
library with the proper functions to handle this -> collect2 will
|
||||
default to using nm. */
|
||||
#undef OBJECT_FORMAT_COFF
|
||||
#undef EXTENDED_COFF
|
||||
|
||||
/* Assembler format: exception region output. */
|
||||
|
||||
/* All configurations that don't use elf must be explicit about not using
|
||||
dwarf unwind information. egcs doesn't try too hard to check internal
|
||||
configuration files... */
|
||||
#ifdef INCOMING_RETURN_ADDR_RTX
|
||||
#undef DWARF2_UNWIND_INFO
|
||||
#define DWARF2_UNWIND_INFO 0
|
||||
#endif
|
||||
|
||||
/* Assembler format: file framework. */
|
||||
|
||||
/* Taken from alpha/osf.h. This used to be common to all alpha
|
||||
configurations, but elf has departed from it.
|
||||
Check alpha/alpha.h, alpha/osf.h for it when egcs is upgraded. */
|
||||
#ifndef ASM_FILE_START
|
||||
#define ASM_FILE_START(FILE) \
|
||||
{ \
|
||||
alpha_write_verstamp (FILE); \
|
||||
fprintf (FILE, "\t.set noreorder\n"); \
|
||||
fprintf (FILE, "\t.set volatile\n"); \
|
||||
fprintf (FILE, "\t.set noat\n"); \
|
||||
if (TARGET_SUPPORT_ARCH) \
|
||||
fprintf (FILE, "\t.arch %s\n", \
|
||||
alpha_cpu == PROCESSOR_EV6 ? "ev6" \
|
||||
: (alpha_cpu == PROCESSOR_EV5 \
|
||||
? (TARGET_MAX ? "pca56" : TARGET_BWX ? "ev56" : "ev5") \
|
||||
: "ev4")); \
|
||||
\
|
||||
ASM_OUTPUT_SOURCE_FILENAME (FILE, main_input_filename); \
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Assembler format: label output. */
|
||||
|
||||
#define ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,VALUE) \
|
||||
do { \
|
||||
fputs ("\t.weakext\t", FILE); \
|
||||
assemble_name (FILE, NAME); \
|
||||
if (VALUE) \
|
||||
{ \
|
||||
fputs (" , ", FILE); \
|
||||
assemble_name (FILE, VALUE); \
|
||||
} \
|
||||
fputc ('\n', FILE); \
|
||||
} while (0)
|
||||
|
||||
|
@ -1,23 +0,0 @@
|
||||
/* Configuration file for an host running alpha OpenBSD.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <xm-openbsd.h>
|
||||
#include <alpha/xm-alpha.h>
|
||||
|
@ -1,130 +0,0 @@
|
||||
/* Configuration for an OpenBSD i386 target.
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* This is tested by i386gas.h. */
|
||||
#define YES_UNDERSCORES
|
||||
|
||||
#include <i386/gstabs.h>
|
||||
|
||||
/* Get perform_* macros to build libgcc.a. */
|
||||
#include <i386/perform.h>
|
||||
|
||||
/* Get generic OpenBSD definitions. */
|
||||
#define OBSD_OLD_GAS
|
||||
#include <openbsd.h>
|
||||
|
||||
/* Run-time target specifications */
|
||||
#define CPP_PREDEFINES "-D__unix__ -D__i386__ -D__OpenBSD__ -Asystem(unix) -Asystem(OpenBSD) -Acpu(i386) -Amachine(i386)"
|
||||
|
||||
/* Layout of source language data types. */
|
||||
|
||||
/* This must agree with <machine/ansi.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
|
||||
|
||||
/* Assembler format: overall framework. */
|
||||
|
||||
#undef ASM_APP_ON
|
||||
#define ASM_APP_ON "#APP\n"
|
||||
|
||||
#undef ASM_APP_OFF
|
||||
#define ASM_APP_OFF "#NO_APP\n"
|
||||
|
||||
/* The following macros were originally stolen from i386v4.h.
|
||||
These have to be defined to get PIC code correct. */
|
||||
|
||||
/* Assembler format: dispatch tables. */
|
||||
|
||||
/* How to output an element of a case-vector that is relative.
|
||||
This is only used for PIC code. See comments by the `casesi' insn in
|
||||
i386.md for an explanation of the expression this outputs. */
|
||||
#undef ASM_OUTPUT_ADDR_DIFF_ELT
|
||||
#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
|
||||
fprintf (FILE, "\t.long _GLOBAL_OFFSET_TABLE_+[.-%s%d]\n", LPREFIX, VALUE)
|
||||
|
||||
/* Assembler format: sections. */
|
||||
|
||||
/* Indicate when jump tables go in the text section. This is
|
||||
necessary when compiling PIC code. */
|
||||
#define JUMP_TABLES_IN_TEXT_SECTION (flag_pic)
|
||||
|
||||
/* Stack & calling: aggregate returns. */
|
||||
|
||||
/* Don't default to pcc-struct-return, because gcc is the only compiler, and
|
||||
we want to retain compatibility with older gcc versions. */
|
||||
#define DEFAULT_PCC_STRUCT_RETURN 0
|
||||
|
||||
/* Assembler format: alignment output. */
|
||||
|
||||
/* Kludgy test: when gas is upgraded, it will have p2align, and no problems
|
||||
with nops. */
|
||||
#ifndef HAVE_GAS_MAX_SKIP_P2ALIGN
|
||||
/* i386 OpenBSD still uses an older gas that doesn't insert nops by default
|
||||
when the .align directive demands to insert extra space in the text
|
||||
segment. */
|
||||
#undef ASM_OUTPUT_ALIGN
|
||||
#define ASM_OUTPUT_ALIGN(FILE,LOG) \
|
||||
if ((LOG)!=0) fprintf ((FILE), "\t.align %d,0x90\n", (LOG))
|
||||
#endif
|
||||
|
||||
/* Stack & calling: profiling. */
|
||||
|
||||
/* OpenBSD's profiler recovers all information from the stack pointer.
|
||||
The icky part is not here, but in machine/profile.h. */
|
||||
#undef FUNCTION_PROFILER
|
||||
#define FUNCTION_PROFILER(FILE, LABELNO) \
|
||||
fputs (flag_pic ? "\tcall mcount@PLT\n": "\tcall mcount\n", FILE);
|
||||
|
||||
/* Assembler format: exception region output. */
|
||||
|
||||
/* All configurations that don't use elf must be explicit about not using
|
||||
dwarf unwind information. egcs doesn't try too hard to check internal
|
||||
configuration files... */
|
||||
#define DWARF2_UNWIND_INFO 0
|
||||
|
||||
/* Assembler format: alignment output. */
|
||||
|
||||
/* A C statement to output to the stdio stream FILE an assembler
|
||||
command to advance the location counter to a multiple of 1<<LOG
|
||||
bytes if it is within MAX_SKIP bytes.
|
||||
|
||||
This will be used to align code labels according to Intel
|
||||
recommendations, in prevision of binutils upgrade. */
|
||||
#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
|
||||
#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP) \
|
||||
do { \
|
||||
if ((LOG) != 0) \
|
||||
if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
|
||||
else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
/* Note that we pick up ASM_OUTPUT_MI_THUNK from unix.h. */
|
||||
|
@ -1,23 +0,0 @@
|
||||
/* Configuration file for i386 hosts running OpenBSD.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <xm-openbsd.h>
|
||||
#include <i386/xm-i386.h>
|
||||
|
@ -1,121 +0,0 @@
|
||||
/* Configuration file for an m68k OpenBSD target.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* m68k is an old configuration that does not yet use the TARGET_CPU_DEFAULT
|
||||
framework. */
|
||||
#define TARGET_DEFAULT (MASK_BITFIELD | MASK_68881 | MASK_68020)
|
||||
|
||||
#include <m68k/m68k.h>
|
||||
|
||||
/* Get generic OpenBSD definitions. */
|
||||
#define OBSD_OLD_GAS
|
||||
#include <openbsd.h>
|
||||
|
||||
/* Define __HAVE_68881__ in preprocessor, unless -msoft-float is specified.
|
||||
This will control the use of inline 68881 insns in certain macros. */
|
||||
#undef CPP_SPEC
|
||||
#define CPP_SPEC "%{!msoft-float:-D__HAVE_68881__ -D__HAVE_FPU__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_POSIX_THREADS}"
|
||||
|
||||
/* Run-time target specifications */
|
||||
#define CPP_PREDEFINES "-D__unix__ -D__m68k__ -D__mc68000__ -D__mc68020__ -D__OpenBSD__ -Asystem(unix) -Asystem(OpenBSD) -Acpu(m68k) -Amachine(m68k)"
|
||||
|
||||
/* TODO: activate subtarget types when gas is updated.
|
||||
#define ASM_SPEC "%| %{m68030} %{m68040} %{m68060} %{fpic:-k} %{fPIC:-k -K}"
|
||||
*/
|
||||
|
||||
/* Layout of source language data types. */
|
||||
|
||||
/* This must agree with <machine/ansi.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
|
||||
|
||||
/* Storage layout. */
|
||||
|
||||
/* Every structure or union's size must be a multiple of 2 bytes. */
|
||||
#define STRUCTURE_SIZE_BOUNDARY 16
|
||||
|
||||
/* Specific options for DBX Output. */
|
||||
|
||||
/* This is BSD, so it wants DBX format. */
|
||||
#define DBX_DEBUGGING_INFO
|
||||
|
||||
/* Do not break .stabs pseudos into continuations. */
|
||||
#define DBX_CONTIN_LENGTH 0
|
||||
|
||||
/* This is the char to use for continuation (in case we need to turn
|
||||
continuation back on). */
|
||||
#define DBX_CONTIN_CHAR '?'
|
||||
|
||||
/* Stack & calling: aggregate returns. */
|
||||
|
||||
/* Don't default to pcc-struct-return, because gcc is the only compiler, and
|
||||
we want to retain compatibility with older gcc versions. */
|
||||
#define DEFAULT_PCC_STRUCT_RETURN 0
|
||||
|
||||
/* Assembler format: exception region output. */
|
||||
|
||||
/* All configurations that don't use elf must be explicit about not using
|
||||
dwarf unwind information. egcs doesn't try too hard to check internal
|
||||
configuration files... */
|
||||
#define DWARF2_UNWIND_INFO 0
|
||||
|
||||
|
||||
/* TODO: ASM_OUTPUT_MI_THUNK is busted. I need to figure out
|
||||
what bra func@PLTPC means under linux, and find the corresponding
|
||||
construction for our gas/pic setup. */
|
||||
#if 0
|
||||
/* Taken from linux.h. Processor dependent optimized code to handle C++
|
||||
multiple inheritance vtable lookup. */
|
||||
|
||||
/* Output code to add DELTA to the first argument, and then jump to FUNCTION.
|
||||
Used for C++ multiple inheritance. */
|
||||
#define ASM_OUTPUT_MI_THUNK(FILE, THUNK_FNDECL, DELTA, FUNCTION) \
|
||||
do { \
|
||||
if (DELTA > 0 && DELTA <= 8) \
|
||||
asm_fprintf (FILE, "\taddq.l %I%d,4(%Rsp)\n", DELTA); \
|
||||
else if (DELTA < 0 && DELTA >= -8) \
|
||||
asm_fprintf (FILE, "\tsubq.l %I%d,4(%Rsp)\n", -DELTA); \
|
||||
else \
|
||||
asm_fprintf (FILE, "\tadd.l %I%d,4(%Rsp)\n", DELTA); \
|
||||
\
|
||||
if (flag_pic) \
|
||||
{ \
|
||||
fprintf (FILE, "\tbra.l "); \
|
||||
assemble_name (FILE, XSTR (XEXP (DECL_RTL (FUNCTION), 0), 0)); \
|
||||
fprintf (FILE, "@PLTPC\n"); \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
fprintf (FILE, "\tjmp "); \
|
||||
assemble_name (FILE, XSTR (XEXP (DECL_RTL (FUNCTION), 0), 0)); \
|
||||
fprintf (FILE, "\n"); \
|
||||
} \
|
||||
} while (0)
|
||||
#endif
|
||||
|
@ -1,23 +0,0 @@
|
||||
/* Configuration file for an host running m68k OpenBSD.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <xm-openbsd.h>
|
||||
#include <m68k/xm-m68k.h>
|
||||
|
@ -1,302 +0,0 @@
|
||||
/* Base configuration file for all OpenBSD targets.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* Common OpenBSD configuration.
|
||||
All OpenBSD architectures include this file, which is intended as
|
||||
a repository for common defines.
|
||||
|
||||
Some defines are common to all architectures, a few of them are
|
||||
triggered by OBSD_* guards, so that we won't override architecture
|
||||
defaults by mistakes.
|
||||
|
||||
OBSD_HAS_CORRECT_SPECS:
|
||||
another mechanism provides correct specs already.
|
||||
OBSD_NO_DYNAMIC_LIBRARIES:
|
||||
no implementation of dynamic libraries.
|
||||
OBSD_OLD_GAS:
|
||||
older flavor of gas which needs help for PIC.
|
||||
OBSD_HAS_DECLARE_FUNCTION_NAME, OBSD_HAS_DECLARE_FUNCTION_SIZE,
|
||||
OBSD_HAS_DECLARE_OBJECT:
|
||||
PIC support, FUNCTION_NAME/FUNCTION_SIZE are independent, whereas
|
||||
the corresponding logic for OBJECTS is necessarily coupled.
|
||||
|
||||
There are also a few `default' defines such as ASM_WEAKEN_LABEL,
|
||||
intended as common ground for arch that don't provide
|
||||
anything suitable. */
|
||||
|
||||
/* OPENBSD_NATIVE is defined only when gcc is configured as part of
|
||||
the OpenBSD source tree, specifically through Makefile.bsd-wrapper.
|
||||
|
||||
In such a case the include path can be trimmed as there is no
|
||||
distinction between system includes and gcc includes. */
|
||||
|
||||
/* This configuration method, namely Makefile.bsd-wrapper and
|
||||
OPENBSD_NATIVE is NOT recommended for building cross-compilers. */
|
||||
|
||||
#ifdef OPENBSD_NATIVE
|
||||
|
||||
#undef GCC_INCLUDE_DIR
|
||||
#define GCC_INCLUDE_DIR "/usr/include"
|
||||
|
||||
/* The compiler is configured with ONLY the gcc/g++ standard headers. */
|
||||
#undef INCLUDE_DEFAULTS
|
||||
#define INCLUDE_DEFAULTS \
|
||||
{ \
|
||||
{ GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 }, \
|
||||
{ GCC_INCLUDE_DIR, "GCC", 0, 0 }, \
|
||||
{ 0, 0, 0, 0 } \
|
||||
}
|
||||
|
||||
/* Under OpenBSD, the normal location of the various *crt*.o files is the
|
||||
/usr/lib directory. */
|
||||
#define STANDARD_STARTFILE_PREFIX "/usr/lib/"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* Controlling the compilation driver. */
|
||||
|
||||
/* CPP_SPEC appropriate for OpenBSD. We deal with -posix and -pthread.
|
||||
XXX the way threads are handling currently is not very satisfying,
|
||||
since all code must be compiled with -pthread to work.
|
||||
This two-stage defines makes it easy to pick that for targets that
|
||||
have subspecs. */
|
||||
#define OBSD_CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_POSIX_THREADS}"
|
||||
|
||||
/* LIB_SPEC appropriate for OpenBSD. Select the appropriate libc,
|
||||
depending on profiling and threads. Basically,
|
||||
-lc(_r)?(_p)?, select _r for threads, and _p for p or pg. */
|
||||
#define OBSD_LIB_SPEC "-lc%{pthread:_r}%{p:_p}%{!p:%{pg:_p}}"
|
||||
|
||||
#ifndef OBSD_HAS_CORRECT_SPECS
|
||||
|
||||
#ifndef OBSD_NO_DYNAMIC_LIBRARIES
|
||||
#undef SWITCH_TAKES_ARG
|
||||
#define SWITCH_TAKES_ARG(CHAR) \
|
||||
(DEFAULT_SWITCH_TAKES_ARG (CHAR) \
|
||||
|| (CHAR) == 'R')
|
||||
#endif
|
||||
|
||||
#undef CPP_SPEC
|
||||
#define CPP_SPEC OBSD_CPP_SPEC
|
||||
|
||||
#ifdef OBSD_OLD_GAS
|
||||
/* ASM_SPEC appropriate for OpenBSD. For some architectures, OpenBSD
|
||||
still uses a special flavor of gas that needs to be told when generating
|
||||
pic code. */
|
||||
#undef ASM_SPEC
|
||||
#define ASM_SPEC "%{fpic:-k} %{fPIC:-k -K} %|"
|
||||
#else
|
||||
/* Since we use gas, stdin -> - is a good idea, but we don't want to
|
||||
override native specs just for that. */
|
||||
#ifndef ASM_SPEC
|
||||
#define ASM_SPEC "%|"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* LINK_SPEC appropriate for OpenBSD. Support for GCC options
|
||||
-static, -assert, and -nostdlib. */
|
||||
#undef LINK_SPEC
|
||||
#ifdef OBSD_NO_DYNAMIC_LIBRARIES
|
||||
#define LINK_SPEC \
|
||||
"%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{assert*}"
|
||||
#else
|
||||
#define LINK_SPEC \
|
||||
"%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{R*} %{static:-Bstatic} %{assert*}"
|
||||
#endif
|
||||
|
||||
#undef LIB_SPEC
|
||||
#define LIB_SPEC OBSD_LIB_SPEC
|
||||
#endif
|
||||
|
||||
|
||||
/* Runtime target specification. */
|
||||
|
||||
/* You must redefine CPP_PREDEFINES in any arch specific file. */
|
||||
#undef CPP_PREDEFINES
|
||||
|
||||
/* Implicit calls to library routines. */
|
||||
|
||||
/* Use memcpy and memset instead of bcopy and bzero. */
|
||||
#define TARGET_MEM_FUNCTIONS
|
||||
|
||||
/* Miscellaneous parameters. */
|
||||
|
||||
/* Tell libgcc2.c that OpenBSD targets support atexit. */
|
||||
#define HAVE_ATEXIT
|
||||
|
||||
/* Controlling debugging info: dbx options. */
|
||||
|
||||
/* Don't use the `xsTAG;' construct in DBX output; OpenBSD systems that
|
||||
use DBX don't support it. */
|
||||
#define DBX_NO_XREFS
|
||||
|
||||
|
||||
/* Support of shared libraries, mostly imported from svr4.h through netbsd. */
|
||||
/* Two differences from svr4.h:
|
||||
- we use . - _func instead of a local label,
|
||||
- we put extra spaces in expressions such as
|
||||
.type _func , @function
|
||||
This is more readable for a human being and confuses c++filt less. */
|
||||
|
||||
/* Assembler format: output and generation of labels. */
|
||||
|
||||
/* Define the strings used for the .type and .size directives.
|
||||
These strings generally do not vary from one system running OpenBSD
|
||||
to another, but if a given system needs to use different pseudo-op
|
||||
names for these, they may be overridden in the arch specific file. */
|
||||
|
||||
/* OpenBSD assembler is hacked to have .type & .size support even in a.out
|
||||
format object files. Functions size are supported but not activated
|
||||
yet (look for GRACE_PERIOD_EXPIRED in gas/config/obj-aout.c). */
|
||||
|
||||
#undef TYPE_ASM_OP
|
||||
#undef SIZE_ASM_OP
|
||||
|
||||
#define TYPE_ASM_OP ".type"
|
||||
#define SIZE_ASM_OP ".size"
|
||||
|
||||
/* The following macro defines the format used to output the second
|
||||
operand of the .type assembler directive. */
|
||||
#undef TYPE_OPERAND_FMT
|
||||
#define TYPE_OPERAND_FMT "@%s"
|
||||
|
||||
/* Provision if extra assembler code is needed to declare a function's result
|
||||
(taken from svr4, not needed yet actually). */
|
||||
#ifndef ASM_DECLARE_RESULT
|
||||
#define ASM_DECLARE_RESULT(FILE, RESULT)
|
||||
#endif
|
||||
|
||||
/* These macros generate the special .type and .size directives which
|
||||
are used to set the corresponding fields of the linker symbol table
|
||||
entries under OpenBSD. These macros also have to output the starting
|
||||
labels for the relevant functions/objects. */
|
||||
|
||||
#ifndef OBSD_HAS_DECLARE_FUNCTION_NAME
|
||||
/* Extra assembler code needed to declare a function properly.
|
||||
Some assemblers may also need to also have something extra said
|
||||
about the function's return value. We allow for that here. */
|
||||
#undef ASM_DECLARE_FUNCTION_NAME
|
||||
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \
|
||||
do { \
|
||||
fprintf (FILE, "\t%s\t", TYPE_ASM_OP); \
|
||||
assemble_name (FILE, NAME); \
|
||||
fputs (" , ", FILE); \
|
||||
fprintf (FILE, TYPE_OPERAND_FMT, "function"); \
|
||||
putc ('\n', FILE); \
|
||||
ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL)); \
|
||||
ASM_OUTPUT_LABEL(FILE, NAME); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#ifndef OBSD_HAS_DECLARE_FUNCTION_SIZE
|
||||
/* Declare the size of a function. */
|
||||
#undef ASM_DECLARE_FUNCTION_SIZE
|
||||
#define ASM_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL) \
|
||||
do { \
|
||||
if (!flag_inhibit_size_directive) \
|
||||
{ \
|
||||
fprintf (FILE, "\t%s\t", SIZE_ASM_OP); \
|
||||
assemble_name (FILE, (FNAME)); \
|
||||
fputs (" , . - ", FILE); \
|
||||
assemble_name (FILE, (FNAME)); \
|
||||
putc ('\n', FILE); \
|
||||
} \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#ifndef OBSD_HAS_DECLARE_OBJECT
|
||||
/* Extra assembler code needed to declare an object properly. */
|
||||
#undef ASM_DECLARE_OBJECT_NAME
|
||||
#define ASM_DECLARE_OBJECT_NAME(FILE, NAME, DECL) \
|
||||
do { \
|
||||
fprintf (FILE, "\t%s\t ", TYPE_ASM_OP); \
|
||||
assemble_name (FILE, NAME); \
|
||||
fputs (" , ", FILE); \
|
||||
fprintf (FILE, TYPE_OPERAND_FMT, "object"); \
|
||||
putc ('\n', FILE); \
|
||||
size_directive_output = 0; \
|
||||
if (!flag_inhibit_size_directive && DECL_SIZE (DECL)) \
|
||||
{ \
|
||||
size_directive_output = 1; \
|
||||
fprintf (FILE, "\t%s\t", SIZE_ASM_OP); \
|
||||
assemble_name (FILE, NAME); \
|
||||
fprintf (FILE, " , %d\n", int_size_in_bytes (TREE_TYPE (DECL)));\
|
||||
} \
|
||||
ASM_OUTPUT_LABEL (FILE, NAME); \
|
||||
} while (0)
|
||||
|
||||
/* Output the size directive for a decl in rest_of_decl_compilation
|
||||
in the case where we did not do so before the initializer.
|
||||
Once we find the error_mark_node, we know that the value of
|
||||
size_directive_output was set by ASM_DECLARE_OBJECT_NAME
|
||||
when it was run for the same decl. */
|
||||
#undef ASM_FINISH_DECLARE_OBJECT
|
||||
#define ASM_FINISH_DECLARE_OBJECT(FILE, DECL, TOP_LEVEL, AT_END) \
|
||||
do { \
|
||||
char *name = XSTR (XEXP (DECL_RTL (DECL), 0), 0); \
|
||||
if (!flag_inhibit_size_directive && DECL_SIZE (DECL) \
|
||||
&& ! AT_END && TOP_LEVEL \
|
||||
&& DECL_INITIAL (DECL) == error_mark_node \
|
||||
&& !size_directive_output) \
|
||||
{ \
|
||||
size_directive_output = 1; \
|
||||
fprintf (FILE, "\t%s\t", SIZE_ASM_OP); \
|
||||
assemble_name (FILE, name); \
|
||||
fprintf (FILE, " , %d\n", int_size_in_bytes (TREE_TYPE (DECL)));\
|
||||
} \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
|
||||
/* Those are `generic' ways to weaken/globalize a label. We shouldn't need
|
||||
to override a processor specific definition. Hence, #ifndef ASM_*
|
||||
In case overriding turns out to be needed, one can always #undef ASM_*
|
||||
before including this file. */
|
||||
|
||||
/* Tell the assembler that a symbol is weak. */
|
||||
/* Note: netbsd arm32 assembler needs a .globl here. An override may
|
||||
be needed when/if we go for arm32 support. */
|
||||
#ifndef ASM_WEAKEN_LABEL
|
||||
#define ASM_WEAKEN_LABEL(FILE,NAME) \
|
||||
do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \
|
||||
fputc ('\n', FILE); } while (0)
|
||||
#endif
|
||||
|
||||
/* Tell the assembler that a symbol is global. */
|
||||
#ifndef ASM_GLOBALIZE_LABEL
|
||||
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
|
||||
do { fputs ("\t.globl\t", FILE); assemble_name (FILE, NAME); \
|
||||
fputc ('\n', FILE); } while(0)
|
||||
#endif
|
||||
|
||||
|
||||
/* Storage layout. */
|
||||
|
||||
/* We don't have to worry about binary compatibility with older C++ code,
|
||||
but there is a big known bug with vtable thunks which has not been
|
||||
fixed yet, so DON'T activate it by default. */
|
||||
/* #define DEFAULT_VTABLE_THUNKS 1 */
|
||||
|
||||
|
||||
/* Otherwise, since we support weak, gthr.h erroneously tries to use
|
||||
#pragma weak. */
|
||||
#define GTHREAD_USE_WEAK 0
|
||||
|
@ -1,68 +0,0 @@
|
||||
/* Configuration file for sparc OpenBSD target.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <sparc/sparc.h>
|
||||
|
||||
/* Get generic OpenBSD definitions. */
|
||||
#define OBSD_OLD_GAS
|
||||
#include <openbsd.h>
|
||||
|
||||
/* Run-time target specifications. */
|
||||
#define CPP_PREDEFINES "-D__unix__ -D__sparc__ -D__OpenBSD__ -Asystem(unix) -Asystem(OpenBSD) -Acpu(sparc) -Amachine(sparc)"
|
||||
|
||||
/* Layout of source language data types */
|
||||
|
||||
/* This must agree with <machine/ansi.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
|
||||
|
||||
/* Specific options for DBX Output. */
|
||||
|
||||
/* This is BSD, so it wants DBX format. */
|
||||
#define DBX_DEBUGGING_INFO
|
||||
|
||||
/* This is the char to use for continuation */
|
||||
#define DBX_CONTIN_CHAR '?'
|
||||
|
||||
/* Stack & calling: aggregate returns. */
|
||||
|
||||
/* Don't default to pcc-struct-return, because gcc is the only compiler, and
|
||||
we want to retain compatibility with older gcc versions. */
|
||||
#undef DEFAULT_PCC_STRUCT_RETURN
|
||||
#define DEFAULT_PCC_STRUCT_RETURN 0
|
||||
|
||||
/* Assembler format: exception region output. */
|
||||
|
||||
/* All configurations that don't use elf must be explicit about not using
|
||||
dwarf unwind information. egcs doesn't try too hard to check internal
|
||||
configuration files... */
|
||||
#define DWARF2_UNWIND_INFO 0
|
||||
|
||||
/* Default sparc.h does already define ASM_OUTPUT_MI_THUNK */
|
||||
|
@ -1,23 +0,0 @@
|
||||
/* Configuration file for an host running sparc OpenBSD.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <xm-openbsd.h>
|
||||
#include <sparc/xm-sparc.h>
|
||||
|
@ -1,7 +0,0 @@
|
||||
# Don't run fixproto
|
||||
STMP_FIXPROTO =
|
||||
|
||||
# We don't need GCC's own include files but we do need lang specific ones.
|
||||
USER_H = ${LANG_EXTRA_HEADERS}
|
||||
INSTALL_ASSERT_H =
|
||||
|
@ -1,5 +0,0 @@
|
||||
# This is currently needed to compile libgcc2 for threads support
|
||||
TARGET_LIBGCC2_CFLAGS=-pthread
|
||||
#T_CFLAGS=-pthread
|
||||
#T_CPPFLAGS=-pthread
|
||||
|
@ -1,35 +0,0 @@
|
||||
/* Configuration fragment for hosts running a version of OpenBSD.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
/* This file gets included by all architectures. It holds stuff
|
||||
that ought to be defined when hosting a compiler on an OpenBSD
|
||||
machine, independently of the architecture. It's included by
|
||||
${cpu_type}/xm-openbsd.h, not included directly. */
|
||||
|
||||
/* OpenBSD is trying to be POSIX-compliant, to the point of fixing
|
||||
problems that may occur with gcc's interpretation. */
|
||||
#undef POSIX
|
||||
#define POSIX
|
||||
|
||||
/* Ensure we get gnu C's defaults. */
|
||||
#ifdef __GNUC__
|
||||
#define alloca __builtin_alloca
|
||||
#endif
|
||||
|
||||
|
@ -1,7 +0,0 @@
|
||||
# Base shared lib for OpenBSD i386
|
||||
|
||||
LIBS = $(ARLIB) $(SHLIB) $(SHLINK) mshlink
|
||||
SHFLAGS = -nostdlib -Wl,-Bshareable,-Bforcearchive
|
||||
SHDEPS = -lm
|
||||
DEPLIBS = ../$(SHLIB)
|
||||
|
@ -1,3 +0,0 @@
|
||||
# tell we want the mt-safe version
|
||||
MT_CFLAGS = -D_IO_MTSAFE_IO -D_PTHREADS
|
||||
|
@ -1,162 +0,0 @@
|
||||
--- gcc/configure.in.orig Sun Feb 14 19:11:00 1999
|
||||
+++ gcc/configure.in Sun Feb 14 20:29:01 1999
|
||||
@@ -502,11 +502,23 @@
|
||||
tm_file=${cpu_type}/${cpu_type}.h
|
||||
xm_file=${cpu_type}/xm-${cpu_type}.h
|
||||
|
||||
- # Set the default macros to define for GNU/Linux systems.
|
||||
+ # Common parts for linux-gnu and openbsd systems
|
||||
case $machine in
|
||||
*-*-linux-gnu*)
|
||||
xm_defines="HAVE_ATEXIT POSIX BSTRING"
|
||||
;;
|
||||
+ *-*-openbsd*)
|
||||
+ tm_file=${cpu_type}/openbsd.h
|
||||
+ # On OpenBSD systems, the headers are okay
|
||||
+ fixincludes=Makefile.in
|
||||
+ tmake_file="t-libc-ok t-openbsd"
|
||||
+ # avoid surprises, always provide an xm-openbsd file
|
||||
+ xm_file=${cpu_type}/xm-openbsd.h
|
||||
+ if test x$enable_threads = xyes; then
|
||||
+ thread_file='posix'
|
||||
+ tmake_file="${tmake_file} t-openbsd-thread"
|
||||
+ fi
|
||||
+ ;;
|
||||
esac
|
||||
|
||||
case $machine in
|
||||
@@ -586,6 +598,12 @@
|
||||
fixincludes=fixinc.wrap
|
||||
gas=yes gnu_ld=yes
|
||||
;;
|
||||
+
|
||||
+ alpha*-*-openbsd*)
|
||||
+ # default x-alpha is only appropriate for dec-osf.
|
||||
+ target_cpu_default="MASK_GAS"
|
||||
+ xmake_file=none
|
||||
+ ;;
|
||||
|
||||
alpha*-dec-osf*)
|
||||
if test x$stabs = xyes
|
||||
@@ -780,6 +798,10 @@
|
||||
h8300-*-*)
|
||||
float_format=i32
|
||||
;;
|
||||
+ hppa*-*-openbsd*)
|
||||
+ target_cpu_default="MASK_SNAKE"
|
||||
+ tmake_file=pa/t-openbsd
|
||||
+ ;;
|
||||
hppa1.1-*-pro*)
|
||||
tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
|
||||
xm_file=pa/xm-papro.h
|
||||
@@ -1107,10 +1129,8 @@
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=i386/t-freebsd
|
||||
;;
|
||||
- # We are hoping OpenBSD is still close enough to NetBSD that we can
|
||||
- # share the configurations.
|
||||
changequote(,)dnl
|
||||
- i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
|
||||
+ i[34567]86-*-netbsd*)
|
||||
changequote([,])dnl
|
||||
tm_file=i386/netbsd.h
|
||||
# On NetBSD, the headers are already okay, except for math.h.
|
||||
@@ -1118,6 +1138,14 @@
|
||||
tmake_file=t-netbsd
|
||||
;;
|
||||
changequote(,)dnl
|
||||
+ i[34567]86-*-openbsd*)
|
||||
+changequote([,])dnl
|
||||
+ # Remove when the math emulator is fixed
|
||||
+ target_cpu_default="MASK_NO_FANCY_MATH_387"
|
||||
+ # we need collect2 until our bug is fixed...
|
||||
+ use_collect2=yes
|
||||
+ ;;
|
||||
+changequote(,)dnl
|
||||
i[34567]86-*-coff*)
|
||||
changequote([,])dnl
|
||||
tm_file=i386/i386-coff.h
|
||||
@@ -1980,6 +2008,11 @@
|
||||
tmake_file=t-netbsd
|
||||
float_format=m68k
|
||||
;;
|
||||
+ m68k*-*-openbsd*)
|
||||
+ float_format=m68k
|
||||
+ # we need collect2 until our bug is fixed...
|
||||
+ use_collect2=yes
|
||||
+ ;;
|
||||
m68k-*-sysv3*) # Motorola m68k's running system V.3
|
||||
xm_file="xm-alloca.h ${xm_file}"
|
||||
xm_defines=USG
|
||||
@@ -2103,6 +2136,9 @@
|
||||
tmake_file=m88k/t-luna
|
||||
fi
|
||||
;;
|
||||
+ m88k-*-openbsd*)
|
||||
+ tmake_file="${tmake_file} m88k/t-luna-gas"
|
||||
+ ;;
|
||||
m88k-*-sysv3*)
|
||||
tm_file=m88k/sysv3.h
|
||||
extra_parts="crtbegin.o crtend.o"
|
||||
@@ -2311,6 +2347,16 @@
|
||||
gas=yes
|
||||
fixincludes=Makefile.in
|
||||
;;
|
||||
+ mips*el-*-openbsd*) # mips little endian
|
||||
+ target_cpu_default="MASK_GAS|MASK_ABICALLS"
|
||||
+ tm_file=mips/openbsd.h
|
||||
+ xmake_file=none
|
||||
+ ;;
|
||||
+ mips*-*-openbsd*) # mips big endian
|
||||
+ target_cpu_default="MASK_GAS|MASK_ABICALLS"
|
||||
+ tm_file=mips/openbsd-be.h
|
||||
+ xmake_file=none
|
||||
+ ;;
|
||||
mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
|
||||
tm_file="mips/news4.h ${tm_file}"
|
||||
if test x$stabs = xyes; then
|
||||
@@ -2661,6 +2707,9 @@
|
||||
;;
|
||||
pdp11-*-*)
|
||||
;;
|
||||
+ ns32k-*-openbsd*)
|
||||
+ # Nothing special
|
||||
+ ;;
|
||||
pyramid-*-*)
|
||||
cpu_type=pyr
|
||||
xmake_file=pyr/x-pyr
|
||||
@@ -2673,6 +2722,13 @@
|
||||
xmake_file=romp/x-mach
|
||||
use_collect2=yes
|
||||
;;
|
||||
+ romp-*-openbsd*)
|
||||
+ # Nothing special
|
||||
+ ;;
|
||||
+ powerpc-*-openbsd*)
|
||||
+ tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
|
||||
+ xmake_file=none
|
||||
+ ;;
|
||||
powerpc-*-beos*)
|
||||
cpu_type=rs6000
|
||||
tm_file=rs6000/beos.h
|
||||
@@ -2967,6 +3023,10 @@
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=t-netbsd
|
||||
;;
|
||||
+ sparc-*-openbsd*)
|
||||
+ # we need collect2 until our bug is fixed...
|
||||
+ use_collect2=yes
|
||||
+ ;;
|
||||
sparc-*-bsd*)
|
||||
tm_file=sparc/bsd.h
|
||||
;;
|
||||
@@ -3194,6 +3254,9 @@
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=t-netbsd
|
||||
float_format=vax
|
||||
+ ;;
|
||||
+ vax-*-openbsd*)
|
||||
+ tmake_file="${tm_file} vax/t-openbsd"
|
||||
;;
|
||||
vax-*-ultrix*) # vaxen running ultrix
|
||||
tm_file="${tm_file} vax/ultrix.h"
|
@ -1,12 +0,0 @@
|
||||
--- config.guess.orig Sun Feb 7 12:00:00 1999
|
||||
+++ config.guess Sun Feb 7 11:59:33 1999
|
||||
@@ -458,6 +458,9 @@
|
||||
parisc*:Lites*:*:*)
|
||||
echo hppa1.1-hp-lites
|
||||
exit 0 ;;
|
||||
+ hppa*:OpenBSD:*:*)
|
||||
+ echo hppa-unknown-openbsd
|
||||
+ exit 0 ;;
|
||||
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
||||
echo c1-convex-bsd
|
||||
exit 0 ;;
|
@ -1,21 +0,0 @@
|
||||
--- libstdc++/configure.in.orig Mon Feb 8 21:22:56 1999
|
||||
+++ libstdc++/configure.in Tue Feb 9 03:24:01 1999
|
||||
@@ -63,6 +63,7 @@
|
||||
*-*-irix[56]*) frags="${frags} irix5.ml" ;;
|
||||
*-*-linux*aout*) ;;
|
||||
*-*-linux*) frags="${frags} linux.ml" ;;
|
||||
+ *-*-openbsd*) frags="${frags} openbsd.ml" ;;
|
||||
*-*-sysv[45]*|*-*-udk*) frags="${frags} elf.ml" ;;
|
||||
*-*-solaris*) frags="${frags} sol2shm.ml" ;;
|
||||
*-*-sunos4*) frags="${frags} sunos4.ml" ;;
|
||||
@@ -76,6 +77,10 @@
|
||||
alpha*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
|
||||
powerpc*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
|
||||
*-*-linux-gnu) frags="${frags} linux.mt" ;;
|
||||
+ *-*-openbsd*)
|
||||
+ case "x${enable_threads}" in
|
||||
+ xyes|xposix) frags="${frags} openbsd.mt" ;;
|
||||
+ esac;;
|
||||
m68k-motorola-sysv) frags="${frags} delta.mt" ;;
|
||||
*-*-solaris*)
|
||||
case "x${enable_threads}" in
|
@ -1,126 +0,0 @@
|
||||
/* Configuration file for an alpha OpenBSD target.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We settle for little endian for now. */
|
||||
#define TARGET_ENDIAN_DEFAULT 0
|
||||
|
||||
#include <alpha/alpha.h>
|
||||
|
||||
#define OBSD_NO_DYNAMIC_LIBRARIES
|
||||
#define OBSD_HAS_DECLARE_FUNCTION_NAME
|
||||
#define OBSD_HAS_DECLARE_FUNCTION_SIZE
|
||||
#define OBSD_HAS_DECLARE_OBJECT
|
||||
|
||||
/* alpha ecoff supports only weak aliases, see below. */
|
||||
#define ASM_WEAKEN_LABEL(FILE,NAME) ASM_OUTPUT_WEAK_ALIAS (FILE,NAME,0)
|
||||
|
||||
#include <openbsd.h>
|
||||
|
||||
/* Controlling the compilation driver. */
|
||||
|
||||
/* alpha needs __start. */
|
||||
#undef LINK_SPEC
|
||||
#define LINK_SPEC \
|
||||
"%{!nostdlib:%{!r*:%{!e*:-e __start}}} -dc -dp %{assert*}"
|
||||
|
||||
/* run-time target specifications */
|
||||
#define CPP_PREDEFINES "-D__unix__ -D__ANSI_COMPAT -Asystem(unix) \
|
||||
-D__OpenBSD__ -D__alpha__ -D__alpha"
|
||||
|
||||
/* Layout of source language data types. */
|
||||
|
||||
/* This must agree with <machine/ansi.h> */
|
||||
#undef SIZE_TYPE
|
||||
#define SIZE_TYPE "long unsigned int"
|
||||
|
||||
#undef PTRDIFF_TYPE
|
||||
#define PTRDIFF_TYPE "long int"
|
||||
|
||||
#undef WCHAR_TYPE
|
||||
#define WCHAR_TYPE "int"
|
||||
|
||||
#undef WCHAR_TYPE_SIZE
|
||||
#define WCHAR_TYPE_SIZE 32
|
||||
|
||||
|
||||
#undef PREFERRED_DEBUGGING_TYPE
|
||||
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
|
||||
|
||||
#define LOCAL_LABEL_PREFIX "."
|
||||
|
||||
/* We don't have an init section yet. */
|
||||
#undef HAS_INIT_SECTION
|
||||
|
||||
/* collect2 support (assembler format: macros for initialization). */
|
||||
|
||||
/* Don't tell collect2 we use COFF as we don't have (yet ?) a dynamic ld
|
||||
library with the proper functions to handle this -> collect2 will
|
||||
default to using nm. */
|
||||
#undef OBJECT_FORMAT_COFF
|
||||
#undef EXTENDED_COFF
|
||||
|
||||
/* Assembler format: exception region output. */
|
||||
|
||||
/* All configurations that don't use elf must be explicit about not using
|
||||
dwarf unwind information. egcs doesn't try too hard to check internal
|
||||
configuration files... */
|
||||
#ifdef INCOMING_RETURN_ADDR_RTX
|
||||
#undef DWARF2_UNWIND_INFO
|
||||
#define DWARF2_UNWIND_INFO 0
|
||||
#endif
|
||||
|
||||
/* Assembler format: file framework. */
|
||||
|
||||
/* Taken from alpha/osf.h. This used to be common to all alpha
|
||||
configurations, but elf has departed from it.
|
||||
Check alpha/alpha.h, alpha/osf.h for it when egcs is upgraded. */
|
||||
#ifndef ASM_FILE_START
|
||||
#define ASM_FILE_START(FILE) \
|
||||
{ \
|
||||
alpha_write_verstamp (FILE); \
|
||||
fprintf (FILE, "\t.set noreorder\n"); \
|
||||
fprintf (FILE, "\t.set volatile\n"); \
|
||||
fprintf (FILE, "\t.set noat\n"); \
|
||||
if (TARGET_SUPPORT_ARCH) \
|
||||
fprintf (FILE, "\t.arch %s\n", \
|
||||
alpha_cpu == PROCESSOR_EV6 ? "ev6" \
|
||||
: (alpha_cpu == PROCESSOR_EV5 \
|
||||
? (TARGET_MAX ? "pca56" : TARGET_BWX ? "ev56" : "ev5") \
|
||||
: "ev4")); \
|
||||
\
|
||||
ASM_OUTPUT_SOURCE_FILENAME (FILE, main_input_filename); \
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Assembler format: label output. */
|
||||
|
||||
#define ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,VALUE) \
|
||||
do { \
|
||||
fputs ("\t.weakext\t", FILE); \
|
||||
assemble_name (FILE, NAME); \
|
||||
if (VALUE) \
|
||||
{ \
|
||||
fputs (" , ", FILE); \
|
||||
assemble_name (FILE, VALUE); \
|
||||
} \
|
||||
fputc ('\n', FILE); \
|
||||
} while (0)
|
||||
|
||||
|
@ -1,23 +0,0 @@
|
||||
/* Configuration file for an host running alpha OpenBSD.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <xm-openbsd.h>
|
||||
#include <alpha/xm-alpha.h>
|
||||
|
@ -1,130 +0,0 @@
|
||||
/* Configuration for an OpenBSD i386 target.
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* This is tested by i386gas.h. */
|
||||
#define YES_UNDERSCORES
|
||||
|
||||
#include <i386/gstabs.h>
|
||||
|
||||
/* Get perform_* macros to build libgcc.a. */
|
||||
#include <i386/perform.h>
|
||||
|
||||
/* Get generic OpenBSD definitions. */
|
||||
#define OBSD_OLD_GAS
|
||||
#include <openbsd.h>
|
||||
|
||||
/* Run-time target specifications */
|
||||
#define CPP_PREDEFINES "-D__unix__ -D__i386__ -D__OpenBSD__ -Asystem(unix) -Asystem(OpenBSD) -Acpu(i386) -Amachine(i386)"
|
||||
|
||||
/* Layout of source language data types. */
|
||||
|
||||
/* This must agree with <machine/ansi.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
|
||||
|
||||
/* Assembler format: overall framework. */
|
||||
|
||||
#undef ASM_APP_ON
|
||||
#define ASM_APP_ON "#APP\n"
|
||||
|
||||
#undef ASM_APP_OFF
|
||||
#define ASM_APP_OFF "#NO_APP\n"
|
||||
|
||||
/* The following macros were originally stolen from i386v4.h.
|
||||
These have to be defined to get PIC code correct. */
|
||||
|
||||
/* Assembler format: dispatch tables. */
|
||||
|
||||
/* How to output an element of a case-vector that is relative.
|
||||
This is only used for PIC code. See comments by the `casesi' insn in
|
||||
i386.md for an explanation of the expression this outputs. */
|
||||
#undef ASM_OUTPUT_ADDR_DIFF_ELT
|
||||
#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
|
||||
fprintf (FILE, "\t.long _GLOBAL_OFFSET_TABLE_+[.-%s%d]\n", LPREFIX, VALUE)
|
||||
|
||||
/* Assembler format: sections. */
|
||||
|
||||
/* Indicate when jump tables go in the text section. This is
|
||||
necessary when compiling PIC code. */
|
||||
#define JUMP_TABLES_IN_TEXT_SECTION (flag_pic)
|
||||
|
||||
/* Stack & calling: aggregate returns. */
|
||||
|
||||
/* Don't default to pcc-struct-return, because gcc is the only compiler, and
|
||||
we want to retain compatibility with older gcc versions. */
|
||||
#define DEFAULT_PCC_STRUCT_RETURN 0
|
||||
|
||||
/* Assembler format: alignment output. */
|
||||
|
||||
/* Kludgy test: when gas is upgraded, it will have p2align, and no problems
|
||||
with nops. */
|
||||
#ifndef HAVE_GAS_MAX_SKIP_P2ALIGN
|
||||
/* i386 OpenBSD still uses an older gas that doesn't insert nops by default
|
||||
when the .align directive demands to insert extra space in the text
|
||||
segment. */
|
||||
#undef ASM_OUTPUT_ALIGN
|
||||
#define ASM_OUTPUT_ALIGN(FILE,LOG) \
|
||||
if ((LOG)!=0) fprintf ((FILE), "\t.align %d,0x90\n", (LOG))
|
||||
#endif
|
||||
|
||||
/* Stack & calling: profiling. */
|
||||
|
||||
/* OpenBSD's profiler recovers all information from the stack pointer.
|
||||
The icky part is not here, but in machine/profile.h. */
|
||||
#undef FUNCTION_PROFILER
|
||||
#define FUNCTION_PROFILER(FILE, LABELNO) \
|
||||
fputs (flag_pic ? "\tcall mcount@PLT\n": "\tcall mcount\n", FILE);
|
||||
|
||||
/* Assembler format: exception region output. */
|
||||
|
||||
/* All configurations that don't use elf must be explicit about not using
|
||||
dwarf unwind information. egcs doesn't try too hard to check internal
|
||||
configuration files... */
|
||||
#define DWARF2_UNWIND_INFO 0
|
||||
|
||||
/* Assembler format: alignment output. */
|
||||
|
||||
/* A C statement to output to the stdio stream FILE an assembler
|
||||
command to advance the location counter to a multiple of 1<<LOG
|
||||
bytes if it is within MAX_SKIP bytes.
|
||||
|
||||
This will be used to align code labels according to Intel
|
||||
recommendations, in prevision of binutils upgrade. */
|
||||
#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
|
||||
#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP) \
|
||||
do { \
|
||||
if ((LOG) != 0) \
|
||||
if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
|
||||
else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
/* Note that we pick up ASM_OUTPUT_MI_THUNK from unix.h. */
|
||||
|
@ -1,23 +0,0 @@
|
||||
/* Configuration file for i386 hosts running OpenBSD.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <xm-openbsd.h>
|
||||
#include <i386/xm-i386.h>
|
||||
|
@ -1,121 +0,0 @@
|
||||
/* Configuration file for an m68k OpenBSD target.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* m68k is an old configuration that does not yet use the TARGET_CPU_DEFAULT
|
||||
framework. */
|
||||
#define TARGET_DEFAULT (MASK_BITFIELD | MASK_68881 | MASK_68020)
|
||||
|
||||
#include <m68k/m68k.h>
|
||||
|
||||
/* Get generic OpenBSD definitions. */
|
||||
#define OBSD_OLD_GAS
|
||||
#include <openbsd.h>
|
||||
|
||||
/* Define __HAVE_68881__ in preprocessor, unless -msoft-float is specified.
|
||||
This will control the use of inline 68881 insns in certain macros. */
|
||||
#undef CPP_SPEC
|
||||
#define CPP_SPEC "%{!msoft-float:-D__HAVE_68881__ -D__HAVE_FPU__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_POSIX_THREADS}"
|
||||
|
||||
/* Run-time target specifications */
|
||||
#define CPP_PREDEFINES "-D__unix__ -D__m68k__ -D__mc68000__ -D__mc68020__ -D__OpenBSD__ -Asystem(unix) -Asystem(OpenBSD) -Acpu(m68k) -Amachine(m68k)"
|
||||
|
||||
/* TODO: activate subtarget types when gas is updated.
|
||||
#define ASM_SPEC "%| %{m68030} %{m68040} %{m68060} %{fpic:-k} %{fPIC:-k -K}"
|
||||
*/
|
||||
|
||||
/* Layout of source language data types. */
|
||||
|
||||
/* This must agree with <machine/ansi.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
|
||||
|
||||
/* Storage layout. */
|
||||
|
||||
/* Every structure or union's size must be a multiple of 2 bytes. */
|
||||
#define STRUCTURE_SIZE_BOUNDARY 16
|
||||
|
||||
/* Specific options for DBX Output. */
|
||||
|
||||
/* This is BSD, so it wants DBX format. */
|
||||
#define DBX_DEBUGGING_INFO
|
||||
|
||||
/* Do not break .stabs pseudos into continuations. */
|
||||
#define DBX_CONTIN_LENGTH 0
|
||||
|
||||
/* This is the char to use for continuation (in case we need to turn
|
||||
continuation back on). */
|
||||
#define DBX_CONTIN_CHAR '?'
|
||||
|
||||
/* Stack & calling: aggregate returns. */
|
||||
|
||||
/* Don't default to pcc-struct-return, because gcc is the only compiler, and
|
||||
we want to retain compatibility with older gcc versions. */
|
||||
#define DEFAULT_PCC_STRUCT_RETURN 0
|
||||
|
||||
/* Assembler format: exception region output. */
|
||||
|
||||
/* All configurations that don't use elf must be explicit about not using
|
||||
dwarf unwind information. egcs doesn't try too hard to check internal
|
||||
configuration files... */
|
||||
#define DWARF2_UNWIND_INFO 0
|
||||
|
||||
|
||||
/* TODO: ASM_OUTPUT_MI_THUNK is busted. I need to figure out
|
||||
what bra func@PLTPC means under linux, and find the corresponding
|
||||
construction for our gas/pic setup. */
|
||||
#if 0
|
||||
/* Taken from linux.h. Processor dependent optimized code to handle C++
|
||||
multiple inheritance vtable lookup. */
|
||||
|
||||
/* Output code to add DELTA to the first argument, and then jump to FUNCTION.
|
||||
Used for C++ multiple inheritance. */
|
||||
#define ASM_OUTPUT_MI_THUNK(FILE, THUNK_FNDECL, DELTA, FUNCTION) \
|
||||
do { \
|
||||
if (DELTA > 0 && DELTA <= 8) \
|
||||
asm_fprintf (FILE, "\taddq.l %I%d,4(%Rsp)\n", DELTA); \
|
||||
else if (DELTA < 0 && DELTA >= -8) \
|
||||
asm_fprintf (FILE, "\tsubq.l %I%d,4(%Rsp)\n", -DELTA); \
|
||||
else \
|
||||
asm_fprintf (FILE, "\tadd.l %I%d,4(%Rsp)\n", DELTA); \
|
||||
\
|
||||
if (flag_pic) \
|
||||
{ \
|
||||
fprintf (FILE, "\tbra.l "); \
|
||||
assemble_name (FILE, XSTR (XEXP (DECL_RTL (FUNCTION), 0), 0)); \
|
||||
fprintf (FILE, "@PLTPC\n"); \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
fprintf (FILE, "\tjmp "); \
|
||||
assemble_name (FILE, XSTR (XEXP (DECL_RTL (FUNCTION), 0), 0)); \
|
||||
fprintf (FILE, "\n"); \
|
||||
} \
|
||||
} while (0)
|
||||
#endif
|
||||
|
@ -1,23 +0,0 @@
|
||||
/* Configuration file for an host running m68k OpenBSD.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <xm-openbsd.h>
|
||||
#include <m68k/xm-m68k.h>
|
||||
|
@ -1,302 +0,0 @@
|
||||
/* Base configuration file for all OpenBSD targets.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* Common OpenBSD configuration.
|
||||
All OpenBSD architectures include this file, which is intended as
|
||||
a repository for common defines.
|
||||
|
||||
Some defines are common to all architectures, a few of them are
|
||||
triggered by OBSD_* guards, so that we won't override architecture
|
||||
defaults by mistakes.
|
||||
|
||||
OBSD_HAS_CORRECT_SPECS:
|
||||
another mechanism provides correct specs already.
|
||||
OBSD_NO_DYNAMIC_LIBRARIES:
|
||||
no implementation of dynamic libraries.
|
||||
OBSD_OLD_GAS:
|
||||
older flavor of gas which needs help for PIC.
|
||||
OBSD_HAS_DECLARE_FUNCTION_NAME, OBSD_HAS_DECLARE_FUNCTION_SIZE,
|
||||
OBSD_HAS_DECLARE_OBJECT:
|
||||
PIC support, FUNCTION_NAME/FUNCTION_SIZE are independent, whereas
|
||||
the corresponding logic for OBJECTS is necessarily coupled.
|
||||
|
||||
There are also a few `default' defines such as ASM_WEAKEN_LABEL,
|
||||
intended as common ground for arch that don't provide
|
||||
anything suitable. */
|
||||
|
||||
/* OPENBSD_NATIVE is defined only when gcc is configured as part of
|
||||
the OpenBSD source tree, specifically through Makefile.bsd-wrapper.
|
||||
|
||||
In such a case the include path can be trimmed as there is no
|
||||
distinction between system includes and gcc includes. */
|
||||
|
||||
/* This configuration method, namely Makefile.bsd-wrapper and
|
||||
OPENBSD_NATIVE is NOT recommended for building cross-compilers. */
|
||||
|
||||
#ifdef OPENBSD_NATIVE
|
||||
|
||||
#undef GCC_INCLUDE_DIR
|
||||
#define GCC_INCLUDE_DIR "/usr/include"
|
||||
|
||||
/* The compiler is configured with ONLY the gcc/g++ standard headers. */
|
||||
#undef INCLUDE_DEFAULTS
|
||||
#define INCLUDE_DEFAULTS \
|
||||
{ \
|
||||
{ GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 }, \
|
||||
{ GCC_INCLUDE_DIR, "GCC", 0, 0 }, \
|
||||
{ 0, 0, 0, 0 } \
|
||||
}
|
||||
|
||||
/* Under OpenBSD, the normal location of the various *crt*.o files is the
|
||||
/usr/lib directory. */
|
||||
#define STANDARD_STARTFILE_PREFIX "/usr/lib/"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* Controlling the compilation driver. */
|
||||
|
||||
/* CPP_SPEC appropriate for OpenBSD. We deal with -posix and -pthread.
|
||||
XXX the way threads are handling currently is not very satisfying,
|
||||
since all code must be compiled with -pthread to work.
|
||||
This two-stage defines makes it easy to pick that for targets that
|
||||
have subspecs. */
|
||||
#define OBSD_CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_POSIX_THREADS}"
|
||||
|
||||
/* LIB_SPEC appropriate for OpenBSD. Select the appropriate libc,
|
||||
depending on profiling and threads. Basically,
|
||||
-lc(_r)?(_p)?, select _r for threads, and _p for p or pg. */
|
||||
#define OBSD_LIB_SPEC "-lc%{pthread:_r}%{p:_p}%{!p:%{pg:_p}}"
|
||||
|
||||
#ifndef OBSD_HAS_CORRECT_SPECS
|
||||
|
||||
#ifndef OBSD_NO_DYNAMIC_LIBRARIES
|
||||
#undef SWITCH_TAKES_ARG
|
||||
#define SWITCH_TAKES_ARG(CHAR) \
|
||||
(DEFAULT_SWITCH_TAKES_ARG (CHAR) \
|
||||
|| (CHAR) == 'R')
|
||||
#endif
|
||||
|
||||
#undef CPP_SPEC
|
||||
#define CPP_SPEC OBSD_CPP_SPEC
|
||||
|
||||
#ifdef OBSD_OLD_GAS
|
||||
/* ASM_SPEC appropriate for OpenBSD. For some architectures, OpenBSD
|
||||
still uses a special flavor of gas that needs to be told when generating
|
||||
pic code. */
|
||||
#undef ASM_SPEC
|
||||
#define ASM_SPEC "%{fpic:-k} %{fPIC:-k -K} %|"
|
||||
#else
|
||||
/* Since we use gas, stdin -> - is a good idea, but we don't want to
|
||||
override native specs just for that. */
|
||||
#ifndef ASM_SPEC
|
||||
#define ASM_SPEC "%|"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* LINK_SPEC appropriate for OpenBSD. Support for GCC options
|
||||
-static, -assert, and -nostdlib. */
|
||||
#undef LINK_SPEC
|
||||
#ifdef OBSD_NO_DYNAMIC_LIBRARIES
|
||||
#define LINK_SPEC \
|
||||
"%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{assert*}"
|
||||
#else
|
||||
#define LINK_SPEC \
|
||||
"%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{R*} %{static:-Bstatic} %{assert*}"
|
||||
#endif
|
||||
|
||||
#undef LIB_SPEC
|
||||
#define LIB_SPEC OBSD_LIB_SPEC
|
||||
#endif
|
||||
|
||||
|
||||
/* Runtime target specification. */
|
||||
|
||||
/* You must redefine CPP_PREDEFINES in any arch specific file. */
|
||||
#undef CPP_PREDEFINES
|
||||
|
||||
/* Implicit calls to library routines. */
|
||||
|
||||
/* Use memcpy and memset instead of bcopy and bzero. */
|
||||
#define TARGET_MEM_FUNCTIONS
|
||||
|
||||
/* Miscellaneous parameters. */
|
||||
|
||||
/* Tell libgcc2.c that OpenBSD targets support atexit. */
|
||||
#define HAVE_ATEXIT
|
||||
|
||||
/* Controlling debugging info: dbx options. */
|
||||
|
||||
/* Don't use the `xsTAG;' construct in DBX output; OpenBSD systems that
|
||||
use DBX don't support it. */
|
||||
#define DBX_NO_XREFS
|
||||
|
||||
|
||||
/* Support of shared libraries, mostly imported from svr4.h through netbsd. */
|
||||
/* Two differences from svr4.h:
|
||||
- we use . - _func instead of a local label,
|
||||
- we put extra spaces in expressions such as
|
||||
.type _func , @function
|
||||
This is more readable for a human being and confuses c++filt less. */
|
||||
|
||||
/* Assembler format: output and generation of labels. */
|
||||
|
||||
/* Define the strings used for the .type and .size directives.
|
||||
These strings generally do not vary from one system running OpenBSD
|
||||
to another, but if a given system needs to use different pseudo-op
|
||||
names for these, they may be overridden in the arch specific file. */
|
||||
|
||||
/* OpenBSD assembler is hacked to have .type & .size support even in a.out
|
||||
format object files. Functions size are supported but not activated
|
||||
yet (look for GRACE_PERIOD_EXPIRED in gas/config/obj-aout.c). */
|
||||
|
||||
#undef TYPE_ASM_OP
|
||||
#undef SIZE_ASM_OP
|
||||
|
||||
#define TYPE_ASM_OP ".type"
|
||||
#define SIZE_ASM_OP ".size"
|
||||
|
||||
/* The following macro defines the format used to output the second
|
||||
operand of the .type assembler directive. */
|
||||
#undef TYPE_OPERAND_FMT
|
||||
#define TYPE_OPERAND_FMT "@%s"
|
||||
|
||||
/* Provision if extra assembler code is needed to declare a function's result
|
||||
(taken from svr4, not needed yet actually). */
|
||||
#ifndef ASM_DECLARE_RESULT
|
||||
#define ASM_DECLARE_RESULT(FILE, RESULT)
|
||||
#endif
|
||||
|
||||
/* These macros generate the special .type and .size directives which
|
||||
are used to set the corresponding fields of the linker symbol table
|
||||
entries under OpenBSD. These macros also have to output the starting
|
||||
labels for the relevant functions/objects. */
|
||||
|
||||
#ifndef OBSD_HAS_DECLARE_FUNCTION_NAME
|
||||
/* Extra assembler code needed to declare a function properly.
|
||||
Some assemblers may also need to also have something extra said
|
||||
about the function's return value. We allow for that here. */
|
||||
#undef ASM_DECLARE_FUNCTION_NAME
|
||||
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \
|
||||
do { \
|
||||
fprintf (FILE, "\t%s\t", TYPE_ASM_OP); \
|
||||
assemble_name (FILE, NAME); \
|
||||
fputs (" , ", FILE); \
|
||||
fprintf (FILE, TYPE_OPERAND_FMT, "function"); \
|
||||
putc ('\n', FILE); \
|
||||
ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL)); \
|
||||
ASM_OUTPUT_LABEL(FILE, NAME); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#ifndef OBSD_HAS_DECLARE_FUNCTION_SIZE
|
||||
/* Declare the size of a function. */
|
||||
#undef ASM_DECLARE_FUNCTION_SIZE
|
||||
#define ASM_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL) \
|
||||
do { \
|
||||
if (!flag_inhibit_size_directive) \
|
||||
{ \
|
||||
fprintf (FILE, "\t%s\t", SIZE_ASM_OP); \
|
||||
assemble_name (FILE, (FNAME)); \
|
||||
fputs (" , . - ", FILE); \
|
||||
assemble_name (FILE, (FNAME)); \
|
||||
putc ('\n', FILE); \
|
||||
} \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#ifndef OBSD_HAS_DECLARE_OBJECT
|
||||
/* Extra assembler code needed to declare an object properly. */
|
||||
#undef ASM_DECLARE_OBJECT_NAME
|
||||
#define ASM_DECLARE_OBJECT_NAME(FILE, NAME, DECL) \
|
||||
do { \
|
||||
fprintf (FILE, "\t%s\t ", TYPE_ASM_OP); \
|
||||
assemble_name (FILE, NAME); \
|
||||
fputs (" , ", FILE); \
|
||||
fprintf (FILE, TYPE_OPERAND_FMT, "object"); \
|
||||
putc ('\n', FILE); \
|
||||
size_directive_output = 0; \
|
||||
if (!flag_inhibit_size_directive && DECL_SIZE (DECL)) \
|
||||
{ \
|
||||
size_directive_output = 1; \
|
||||
fprintf (FILE, "\t%s\t", SIZE_ASM_OP); \
|
||||
assemble_name (FILE, NAME); \
|
||||
fprintf (FILE, " , %d\n", int_size_in_bytes (TREE_TYPE (DECL)));\
|
||||
} \
|
||||
ASM_OUTPUT_LABEL (FILE, NAME); \
|
||||
} while (0)
|
||||
|
||||
/* Output the size directive for a decl in rest_of_decl_compilation
|
||||
in the case where we did not do so before the initializer.
|
||||
Once we find the error_mark_node, we know that the value of
|
||||
size_directive_output was set by ASM_DECLARE_OBJECT_NAME
|
||||
when it was run for the same decl. */
|
||||
#undef ASM_FINISH_DECLARE_OBJECT
|
||||
#define ASM_FINISH_DECLARE_OBJECT(FILE, DECL, TOP_LEVEL, AT_END) \
|
||||
do { \
|
||||
char *name = XSTR (XEXP (DECL_RTL (DECL), 0), 0); \
|
||||
if (!flag_inhibit_size_directive && DECL_SIZE (DECL) \
|
||||
&& ! AT_END && TOP_LEVEL \
|
||||
&& DECL_INITIAL (DECL) == error_mark_node \
|
||||
&& !size_directive_output) \
|
||||
{ \
|
||||
size_directive_output = 1; \
|
||||
fprintf (FILE, "\t%s\t", SIZE_ASM_OP); \
|
||||
assemble_name (FILE, name); \
|
||||
fprintf (FILE, " , %d\n", int_size_in_bytes (TREE_TYPE (DECL)));\
|
||||
} \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
|
||||
/* Those are `generic' ways to weaken/globalize a label. We shouldn't need
|
||||
to override a processor specific definition. Hence, #ifndef ASM_*
|
||||
In case overriding turns out to be needed, one can always #undef ASM_*
|
||||
before including this file. */
|
||||
|
||||
/* Tell the assembler that a symbol is weak. */
|
||||
/* Note: netbsd arm32 assembler needs a .globl here. An override may
|
||||
be needed when/if we go for arm32 support. */
|
||||
#ifndef ASM_WEAKEN_LABEL
|
||||
#define ASM_WEAKEN_LABEL(FILE,NAME) \
|
||||
do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \
|
||||
fputc ('\n', FILE); } while (0)
|
||||
#endif
|
||||
|
||||
/* Tell the assembler that a symbol is global. */
|
||||
#ifndef ASM_GLOBALIZE_LABEL
|
||||
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
|
||||
do { fputs ("\t.globl\t", FILE); assemble_name (FILE, NAME); \
|
||||
fputc ('\n', FILE); } while(0)
|
||||
#endif
|
||||
|
||||
|
||||
/* Storage layout. */
|
||||
|
||||
/* We don't have to worry about binary compatibility with older C++ code,
|
||||
but there is a big known bug with vtable thunks which has not been
|
||||
fixed yet, so DON'T activate it by default. */
|
||||
/* #define DEFAULT_VTABLE_THUNKS 1 */
|
||||
|
||||
|
||||
/* Otherwise, since we support weak, gthr.h erroneously tries to use
|
||||
#pragma weak. */
|
||||
#define GTHREAD_USE_WEAK 0
|
||||
|
@ -1,68 +0,0 @@
|
||||
/* Configuration file for sparc OpenBSD target.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <sparc/sparc.h>
|
||||
|
||||
/* Get generic OpenBSD definitions. */
|
||||
#define OBSD_OLD_GAS
|
||||
#include <openbsd.h>
|
||||
|
||||
/* Run-time target specifications. */
|
||||
#define CPP_PREDEFINES "-D__unix__ -D__sparc__ -D__OpenBSD__ -Asystem(unix) -Asystem(OpenBSD) -Acpu(sparc) -Amachine(sparc)"
|
||||
|
||||
/* Layout of source language data types */
|
||||
|
||||
/* This must agree with <machine/ansi.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
|
||||
|
||||
/* Specific options for DBX Output. */
|
||||
|
||||
/* This is BSD, so it wants DBX format. */
|
||||
#define DBX_DEBUGGING_INFO
|
||||
|
||||
/* This is the char to use for continuation */
|
||||
#define DBX_CONTIN_CHAR '?'
|
||||
|
||||
/* Stack & calling: aggregate returns. */
|
||||
|
||||
/* Don't default to pcc-struct-return, because gcc is the only compiler, and
|
||||
we want to retain compatibility with older gcc versions. */
|
||||
#undef DEFAULT_PCC_STRUCT_RETURN
|
||||
#define DEFAULT_PCC_STRUCT_RETURN 0
|
||||
|
||||
/* Assembler format: exception region output. */
|
||||
|
||||
/* All configurations that don't use elf must be explicit about not using
|
||||
dwarf unwind information. egcs doesn't try too hard to check internal
|
||||
configuration files... */
|
||||
#define DWARF2_UNWIND_INFO 0
|
||||
|
||||
/* Default sparc.h does already define ASM_OUTPUT_MI_THUNK */
|
||||
|
@ -1,23 +0,0 @@
|
||||
/* Configuration file for an host running sparc OpenBSD.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <xm-openbsd.h>
|
||||
#include <sparc/xm-sparc.h>
|
||||
|
@ -1,7 +0,0 @@
|
||||
# Don't run fixproto
|
||||
STMP_FIXPROTO =
|
||||
|
||||
# We don't need GCC's own include files but we do need lang specific ones.
|
||||
USER_H = ${LANG_EXTRA_HEADERS}
|
||||
INSTALL_ASSERT_H =
|
||||
|
@ -1,5 +0,0 @@
|
||||
# This is currently needed to compile libgcc2 for threads support
|
||||
TARGET_LIBGCC2_CFLAGS=-pthread
|
||||
#T_CFLAGS=-pthread
|
||||
#T_CPPFLAGS=-pthread
|
||||
|
@ -1,35 +0,0 @@
|
||||
/* Configuration fragment for hosts running a version of OpenBSD.
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU CC.
|
||||
|
||||
GNU CC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU CC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU CC; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
/* This file gets included by all architectures. It holds stuff
|
||||
that ought to be defined when hosting a compiler on an OpenBSD
|
||||
machine, independently of the architecture. It's included by
|
||||
${cpu_type}/xm-openbsd.h, not included directly. */
|
||||
|
||||
/* OpenBSD is trying to be POSIX-compliant, to the point of fixing
|
||||
problems that may occur with gcc's interpretation. */
|
||||
#undef POSIX
|
||||
#define POSIX
|
||||
|
||||
/* Ensure we get gnu C's defaults. */
|
||||
#ifdef __GNUC__
|
||||
#define alloca __builtin_alloca
|
||||
#endif
|
||||
|
||||
|
@ -1,7 +0,0 @@
|
||||
# Base shared lib for OpenBSD i386
|
||||
|
||||
LIBS = $(ARLIB) $(SHLIB) $(SHLINK) mshlink
|
||||
SHFLAGS = -nostdlib -Wl,-Bshareable,-Bforcearchive
|
||||
SHDEPS = -lm
|
||||
DEPLIBS = ../$(SHLIB)
|
||||
|
@ -1,3 +0,0 @@
|
||||
# tell we want the mt-safe version
|
||||
MT_CFLAGS = -D_IO_MTSAFE_IO -D_PTHREADS
|
||||
|
@ -1,162 +0,0 @@
|
||||
--- gcc/configure.in.orig Sun Feb 14 19:11:00 1999
|
||||
+++ gcc/configure.in Sun Feb 14 20:29:01 1999
|
||||
@@ -502,11 +502,23 @@
|
||||
tm_file=${cpu_type}/${cpu_type}.h
|
||||
xm_file=${cpu_type}/xm-${cpu_type}.h
|
||||
|
||||
- # Set the default macros to define for GNU/Linux systems.
|
||||
+ # Common parts for linux-gnu and openbsd systems
|
||||
case $machine in
|
||||
*-*-linux-gnu*)
|
||||
xm_defines="HAVE_ATEXIT POSIX BSTRING"
|
||||
;;
|
||||
+ *-*-openbsd*)
|
||||
+ tm_file=${cpu_type}/openbsd.h
|
||||
+ # On OpenBSD systems, the headers are okay
|
||||
+ fixincludes=Makefile.in
|
||||
+ tmake_file="t-libc-ok t-openbsd"
|
||||
+ # avoid surprises, always provide an xm-openbsd file
|
||||
+ xm_file=${cpu_type}/xm-openbsd.h
|
||||
+ if test x$enable_threads = xyes; then
|
||||
+ thread_file='posix'
|
||||
+ tmake_file="${tmake_file} t-openbsd-thread"
|
||||
+ fi
|
||||
+ ;;
|
||||
esac
|
||||
|
||||
case $machine in
|
||||
@@ -586,6 +598,12 @@
|
||||
fixincludes=fixinc.wrap
|
||||
gas=yes gnu_ld=yes
|
||||
;;
|
||||
+
|
||||
+ alpha*-*-openbsd*)
|
||||
+ # default x-alpha is only appropriate for dec-osf.
|
||||
+ target_cpu_default="MASK_GAS"
|
||||
+ xmake_file=none
|
||||
+ ;;
|
||||
|
||||
alpha*-dec-osf*)
|
||||
if test x$stabs = xyes
|
||||
@@ -780,6 +798,10 @@
|
||||
h8300-*-*)
|
||||
float_format=i32
|
||||
;;
|
||||
+ hppa*-*-openbsd*)
|
||||
+ target_cpu_default="MASK_SNAKE"
|
||||
+ tmake_file=pa/t-openbsd
|
||||
+ ;;
|
||||
hppa1.1-*-pro*)
|
||||
tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
|
||||
xm_file=pa/xm-papro.h
|
||||
@@ -1107,10 +1129,8 @@
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=i386/t-freebsd
|
||||
;;
|
||||
- # We are hoping OpenBSD is still close enough to NetBSD that we can
|
||||
- # share the configurations.
|
||||
changequote(,)dnl
|
||||
- i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
|
||||
+ i[34567]86-*-netbsd*)
|
||||
changequote([,])dnl
|
||||
tm_file=i386/netbsd.h
|
||||
# On NetBSD, the headers are already okay, except for math.h.
|
||||
@@ -1118,6 +1138,14 @@
|
||||
tmake_file=t-netbsd
|
||||
;;
|
||||
changequote(,)dnl
|
||||
+ i[34567]86-*-openbsd*)
|
||||
+changequote([,])dnl
|
||||
+ # Remove when the math emulator is fixed
|
||||
+ target_cpu_default="MASK_NO_FANCY_MATH_387"
|
||||
+ # we need collect2 until our bug is fixed...
|
||||
+ use_collect2=yes
|
||||
+ ;;
|
||||
+changequote(,)dnl
|
||||
i[34567]86-*-coff*)
|
||||
changequote([,])dnl
|
||||
tm_file=i386/i386-coff.h
|
||||
@@ -1980,6 +2008,11 @@
|
||||
tmake_file=t-netbsd
|
||||
float_format=m68k
|
||||
;;
|
||||
+ m68k*-*-openbsd*)
|
||||
+ float_format=m68k
|
||||
+ # we need collect2 until our bug is fixed...
|
||||
+ use_collect2=yes
|
||||
+ ;;
|
||||
m68k-*-sysv3*) # Motorola m68k's running system V.3
|
||||
xm_file="xm-alloca.h ${xm_file}"
|
||||
xm_defines=USG
|
||||
@@ -2103,6 +2136,9 @@
|
||||
tmake_file=m88k/t-luna
|
||||
fi
|
||||
;;
|
||||
+ m88k-*-openbsd*)
|
||||
+ tmake_file="${tmake_file} m88k/t-luna-gas"
|
||||
+ ;;
|
||||
m88k-*-sysv3*)
|
||||
tm_file=m88k/sysv3.h
|
||||
extra_parts="crtbegin.o crtend.o"
|
||||
@@ -2311,6 +2347,16 @@
|
||||
gas=yes
|
||||
fixincludes=Makefile.in
|
||||
;;
|
||||
+ mips*el-*-openbsd*) # mips little endian
|
||||
+ target_cpu_default="MASK_GAS|MASK_ABICALLS"
|
||||
+ tm_file=mips/openbsd.h
|
||||
+ xmake_file=none
|
||||
+ ;;
|
||||
+ mips*-*-openbsd*) # mips big endian
|
||||
+ target_cpu_default="MASK_GAS|MASK_ABICALLS"
|
||||
+ tm_file=mips/openbsd-be.h
|
||||
+ xmake_file=none
|
||||
+ ;;
|
||||
mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
|
||||
tm_file="mips/news4.h ${tm_file}"
|
||||
if test x$stabs = xyes; then
|
||||
@@ -2661,6 +2707,9 @@
|
||||
;;
|
||||
pdp11-*-*)
|
||||
;;
|
||||
+ ns32k-*-openbsd*)
|
||||
+ # Nothing special
|
||||
+ ;;
|
||||
pyramid-*-*)
|
||||
cpu_type=pyr
|
||||
xmake_file=pyr/x-pyr
|
||||
@@ -2673,6 +2722,13 @@
|
||||
xmake_file=romp/x-mach
|
||||
use_collect2=yes
|
||||
;;
|
||||
+ romp-*-openbsd*)
|
||||
+ # Nothing special
|
||||
+ ;;
|
||||
+ powerpc-*-openbsd*)
|
||||
+ tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
|
||||
+ xmake_file=none
|
||||
+ ;;
|
||||
powerpc-*-beos*)
|
||||
cpu_type=rs6000
|
||||
tm_file=rs6000/beos.h
|
||||
@@ -2967,6 +3023,10 @@
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=t-netbsd
|
||||
;;
|
||||
+ sparc-*-openbsd*)
|
||||
+ # we need collect2 until our bug is fixed...
|
||||
+ use_collect2=yes
|
||||
+ ;;
|
||||
sparc-*-bsd*)
|
||||
tm_file=sparc/bsd.h
|
||||
;;
|
||||
@@ -3194,6 +3254,9 @@
|
||||
fixincludes=fixinc.wrap
|
||||
tmake_file=t-netbsd
|
||||
float_format=vax
|
||||
+ ;;
|
||||
+ vax-*-openbsd*)
|
||||
+ tmake_file="${tm_file} vax/t-openbsd"
|
||||
;;
|
||||
vax-*-ultrix*) # vaxen running ultrix
|
||||
tm_file="${tm_file} vax/ultrix.h"
|
@ -1,12 +0,0 @@
|
||||
--- config.guess.orig Sun Feb 7 12:00:00 1999
|
||||
+++ config.guess Sun Feb 7 11:59:33 1999
|
||||
@@ -458,6 +458,9 @@
|
||||
parisc*:Lites*:*:*)
|
||||
echo hppa1.1-hp-lites
|
||||
exit 0 ;;
|
||||
+ hppa*:OpenBSD:*:*)
|
||||
+ echo hppa-unknown-openbsd
|
||||
+ exit 0 ;;
|
||||
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
||||
echo c1-convex-bsd
|
||||
exit 0 ;;
|
@ -1,21 +0,0 @@
|
||||
--- libstdc++/configure.in.orig Mon Feb 8 21:22:56 1999
|
||||
+++ libstdc++/configure.in Tue Feb 9 03:24:01 1999
|
||||
@@ -63,6 +63,7 @@
|
||||
*-*-irix[56]*) frags="${frags} irix5.ml" ;;
|
||||
*-*-linux*aout*) ;;
|
||||
*-*-linux*) frags="${frags} linux.ml" ;;
|
||||
+ *-*-openbsd*) frags="${frags} openbsd.ml" ;;
|
||||
*-*-sysv[45]*|*-*-udk*) frags="${frags} elf.ml" ;;
|
||||
*-*-solaris*) frags="${frags} sol2shm.ml" ;;
|
||||
*-*-sunos4*) frags="${frags} sunos4.ml" ;;
|
||||
@@ -76,6 +77,10 @@
|
||||
alpha*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
|
||||
powerpc*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
|
||||
*-*-linux-gnu) frags="${frags} linux.mt" ;;
|
||||
+ *-*-openbsd*)
|
||||
+ case "x${enable_threads}" in
|
||||
+ xyes|xposix) frags="${frags} openbsd.mt" ;;
|
||||
+ esac;;
|
||||
m68k-motorola-sysv) frags="${frags} delta.mt" ;;
|
||||
*-*-solaris*)
|
||||
case "x${enable_threads}" in
|
Loading…
Reference in New Issue
Block a user