From 15bc166fa03cdd7ab76c21ed2165b1f024042322 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sun, 16 Dec 2001 13:42:53 +0000 Subject: [PATCH] nextstep-protos.h: New file. * nextstep-protos.h: New file. * nextstep.c: Include "rtl.h", "output.h" & "tm_p.h". * nextstep.h (INCLUDE_DEFAULTS): Delete LOCAL_INCLUDE_DIR and STANDARD_INCLUDE_DIR from the CROSS_COMPILE clause. (nextstep_asm_out_constructor, nextstep_asm_out_destructor, handle_pragma): Move prototypes to nextstep-protos.h. * config.gcc (i[34567]86-next-*, m68k-next-nextstep2*, m68k-next-nextstep[34]*): Append nextstep-protos.h to tm_p_file. From-SVN: r48067 --- gcc/ChangeLog | 11 +++++++++++ gcc/config.gcc | 3 +++ gcc/config/nextstep-protos.h | 28 ++++++++++++++++++++++++++++ gcc/config/nextstep.c | 3 +++ gcc/config/nextstep.h | 5 ----- 5 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 gcc/config/nextstep-protos.h diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d3e8d1cbeff..35ae8a3f417 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2001-12-16 Kaveh R. Ghazi + + * nextstep-protos.h: New file. + * nextstep.c: Include "rtl.h", "output.h" & "tm_p.h". + * nextstep.h (INCLUDE_DEFAULTS): Delete LOCAL_INCLUDE_DIR and + STANDARD_INCLUDE_DIR from the CROSS_COMPILE clause. + (nextstep_asm_out_constructor, nextstep_asm_out_destructor, + handle_pragma): Move prototypes to nextstep-protos.h. + * config.gcc (i[34567]86-next-*, m68k-next-nextstep2*, + m68k-next-nextstep[34]*): Append nextstep-protos.h to tm_p_file. + 2001-12-16 Craig Rodrigues PR other/3725 diff --git a/gcc/config.gcc b/gcc/config.gcc index 061c970074c..1fde163031e 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1029,6 +1029,7 @@ i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 tmake_file=i386/t-crtpic ;; i[34567]86-next-*) + tm_p_file="${tm_p_file} nextstep-protos.h" tm_file=i386/next.h tmake_file=i386/t-next extra_objs=nextstep.o @@ -1854,6 +1855,7 @@ m68k-sony-bsd* | m68k-sony-newsos*) float_format=m68k ;; m68k-next-nextstep2*) + tm_p_file="${tm_p_file} nextstep-protos.h" tm_file=m68k/next21.h tmake_file=m68k/t-next xmake_file=m68k/x-next @@ -1863,6 +1865,7 @@ m68k-next-nextstep2*) float_format=m68k ;; m68k-next-nextstep[34]*) + tm_p_file="${tm_p_file} nextstep-protos.h" tm_file=m68k/next.h tmake_file=m68k/t-next xmake_file=m68k/x-next diff --git a/gcc/config/nextstep-protos.h b/gcc/config/nextstep-protos.h new file mode 100644 index 00000000000..1f86e1d9b3b --- /dev/null +++ b/gcc/config/nextstep-protos.h @@ -0,0 +1,28 @@ +/* Operating system specific defines to be used when targeting GCC + for NeXTSTEP. + Copyright (C) 2001 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. */ + +extern void nextstep_asm_out_constructor PARAMS ((struct rtx_def *, int)); +extern void nextstep_asm_out_destructor PARAMS ((struct rtx_def *, int)); +extern int handle_pragma PARAMS ((int(*)(void), void (*)(int), const char *)); +extern void constructor_section PARAMS ((void)); +extern void destructor_section PARAMS ((void)); +extern void nextstep_exception_section PARAMS ((void)); +extern void nextstep_eh_frame_section PARAMS ((void)); diff --git a/gcc/config/nextstep.c b/gcc/config/nextstep.c index bbe0cd68fa4..228c5662a2d 100644 --- a/gcc/config/nextstep.c +++ b/gcc/config/nextstep.c @@ -23,7 +23,10 @@ Boston, MA 02111-1307, USA. */ #include "system.h" #include "flags.h" #include "tree.h" +#include "rtl.h" #include "toplev.h" +#include "output.h" +#include "tm_p.h" /* Make everything that used to go in the text section really go there. */ diff --git a/gcc/config/nextstep.h b/gcc/config/nextstep.h index 94309ef8f31..8089633a7c1 100644 --- a/gcc/config/nextstep.h +++ b/gcc/config/nextstep.h @@ -55,14 +55,12 @@ Boston, MA 02111-1307, USA. */ { \ { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 }, \ { GPLUSPLUS_INCLUDE_DIR, 0, 1, 1 }, \ - { LOCAL_INCLUDE_DIR, 0, 0, 1 }, \ { GCC_INCLUDE_DIR, "GCC", 0, 0 }, \ { GCC_INCLUDE_DIR "/ansi", 0, 0, 0 }, \ { GCC_INCLUDE_DIR "/bsd", 0, 0, 0 }, \ { TOOL_INCLUDE_DIR, "BINUTILS", 0, 1 }, \ { TOOL_INCLUDE_DIR "/ansi", 0, 0, 0 }, \ { TOOL_INCLUDE_DIR "/bsd", 0, 0, 0 }, \ - { STANDARD_INCLUDE_DIR, 0, 0, 0 }, \ { "/usr/include/bsd", 0, 0, 0 }, \ { 0, 0, 0, 0 } \ } @@ -214,8 +212,6 @@ Boston, MA 02111-1307, USA. */ #define TARGET_ASM_CONSTRUCTOR nextstep_asm_out_constructor #define TARGET_ASM_DESTRUCTOR nextstep_asm_out_destructor -extern void nextstep_asm_out_constructor PARAMS ((struct rtx_def *, int)); -extern void nextstep_asm_out_destructor PARAMS ((struct rtx_def *, int)); #define TARGET_ASM_EXCEPTION_SECTION nextstep_exception_section @@ -241,7 +237,6 @@ extern void nextstep_asm_out_destructor PARAMS ((struct rtx_def *, int)); #undef HANDLE_PRAGMA #define HANDLE_PRAGMA(GETC, UNGETC, NAME) handle_pragma (GETC, UNGETC, NAME) -extern int handle_pragma PARAMS ((int(*)(void), void (*)(int), const char *)); /* Give methods pretty symbol names on NeXT. */ -- 2.30.2