diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-12-16 13:42:53 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-12-16 13:42:53 +0000 |
commit | 15bc166fa03cdd7ab76c21ed2165b1f024042322 (patch) | |
tree | 08f73fc349970fb8cfec05d6d6df0bfd6cdb6c2a | |
parent | 7759fccd623c2edd7c1c805c766595d881bff157 (diff) | |
download | gcc-15bc166fa03cdd7ab76c21ed2165b1f024042322.zip gcc-15bc166fa03cdd7ab76c21ed2165b1f024042322.tar.gz gcc-15bc166fa03cdd7ab76c21ed2165b1f024042322.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/config.gcc | 3 | ||||
-rw-r--r-- | gcc/config/nextstep-protos.h | 28 | ||||
-rw-r--r-- | gcc/config/nextstep.c | 3 | ||||
-rw-r--r-- | gcc/config/nextstep.h | 5 |
5 files changed, 45 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d3e8d1c..35ae8a3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2001-12-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * 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 <rodrigc@gcc.gnu.org> PR other/3725 diff --git a/gcc/config.gcc b/gcc/config.gcc index 061c970..1fde163 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 0000000..1f86e1d --- /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 bbe0cd6..228c566 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 94309ef..8089633 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. */ |