OSDN Git Service

* nextstep-protos.h: New file.
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 Dec 2001 13:42:53 +0000 (13:42 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 Dec 2001 13:42:53 +0000 (13:42 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48067 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config.gcc
gcc/config/nextstep-protos.h [new file with mode: 0644]
gcc/config/nextstep.c
gcc/config/nextstep.h

index d3e8d1c..35ae8a3 100644 (file)
@@ -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
index 061c970..1fde163 100644 (file)
@@ -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 (file)
index 0000000..1f86e1d
--- /dev/null
@@ -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));
index bbe0cd6..228c566 100644 (file)
@@ -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.  */
 
index 94309ef..8089633 100644 (file)
@@ -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. */