* 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
+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
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
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
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
--- /dev/null
+/* 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));
#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. */
{ \
{ 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 } \
}
#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
#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. */