summaryrefslogtreecommitdiff
path: root/m68k-unknown-amigaos/recipes/files/gcc/gcc/config/m68k/amigaos-protos.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-12-24 12:43:10 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-12-24 12:43:10 +0000
commitd4570b422e46cc8efbf9c51d112b9afb69b993df (patch)
tree64bec97fa29cb062a18ac94c5eac3581339d9bfd /m68k-unknown-amigaos/recipes/files/gcc/gcc/config/m68k/amigaos-protos.h
parentdd3d652af7ca6ff66409e9c2510fbe6810d42c13 (diff)
downloadtoolchains-d4570b422e46cc8efbf9c51d112b9afb69b993df.tar.gz
toolchains-d4570b422e46cc8efbf9c51d112b9afb69b993df.tar.bz2
A motley selection of changes, which ultimately result in a toolchain that produces binaries:
* Makefile: Change to a two-stage build and build+install clib2 between stages Other, associated changes to reflect additional patches etc * recipes/files/gcc: Contents moved to recipes/files/gcc/gcc Various changes to the target configuration to reflect use of clib2 * recipes/files/ndk: Additional header files for the NDK to permit clib2 to build * recipes/files/clib2: Add sys/wait.h to clib2, and stub out wait(), vfork(), and pipe() for the benefit of libiberty * recipes/patches/gcc/(config.host.p,config.gcc.p): Renamed to gcc.\1 * recipes/patches/gcc/libgcc.config.host.p: Make libgcc aware of our target triple * recipes/patches/binutils/gas.app.c.p: Backport a 5-year old fix that prevents the GAS lexer dropping input on the floor * recipes/patches/ndk/ndk.inline.intuition.h.p: Hack around inline function needing access to a variable from the place it was inlined * recipes/patches/clib2/clib2.modern_gcc.p: Fix up clib2 to compile with modern GCC * recipes/patches/clib2/clib2.include.unistd.h.p: Export definitions of vfork() and pipe() * recipes/patches/clib2/clib2.include.fcntl.h.p: Define FD_CLOEXEC -- the clib2 fcntl() implementation will ignore F_GETFD/F_SETFD anyway * recipes/patches/clib2/clib2.GNUmakefile.68k.p: Reflect our use of a full target triple in the toolchain settings Add stubs.c to build Do not attempt to build resident/resident32 library variants svn path=/toolchains/; revision=11120
Diffstat (limited to 'm68k-unknown-amigaos/recipes/files/gcc/gcc/config/m68k/amigaos-protos.h')
-rw-r--r--m68k-unknown-amigaos/recipes/files/gcc/gcc/config/m68k/amigaos-protos.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/m68k-unknown-amigaos/recipes/files/gcc/gcc/config/m68k/amigaos-protos.h b/m68k-unknown-amigaos/recipes/files/gcc/gcc/config/m68k/amigaos-protos.h
new file mode 100644
index 0000000..f7f7e97
--- /dev/null
+++ b/m68k-unknown-amigaos/recipes/files/gcc/gcc/config/m68k/amigaos-protos.h
@@ -0,0 +1,45 @@
+/* Configuration for GNU C-compiler for m68k Amiga, running AmigaOS.
+ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2003
+ Free Software Foundation, Inc.
+ Contributed by Markus M. Wild (wild@amiga.physik.unizh.ch).
+ Heavily modified by Kamil Iskra (iskra@student.uci.agh.edu.pl).
+
+This file is part of GCC.
+
+GCC 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.
+
+GCC 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 GCC; see the file COPYING. If not, write to
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
+
+extern int amigaos_restore_a4 (void);
+#ifdef RTX_CODE
+extern int read_only_operand (rtx);
+extern void amigaos_select_section (tree, int, unsigned HOST_WIDE_INT);
+extern void amigaos_encode_section_info (tree, rtx, int);
+extern void amigaos_alternate_pic_setup (FILE *);
+extern void amigaos_prologue_begin_hook (FILE *, int);
+extern void amigaos_alternate_frame_setup_f (FILE *, int);
+extern void amigaos_alternate_frame_setup (FILE *, int);
+extern struct rtx_def* gen_stack_cleanup_call (rtx, rtx);
+extern void amigaos_alternate_allocate_stack (rtx *);
+#ifdef TREE_CODE
+extern void amigaos_init_cumulative_args (CUMULATIVE_ARGS *, tree);
+/* extern void amigaos_function_arg_advance (CUMULATIVE_ARGS *); */
+extern struct rtx_def *amigaos_function_arg (CUMULATIVE_ARGS *, enum machine_mode, tree);
+#endif
+#endif
+#ifdef TREE_CODE
+extern tree amigaos_handle_decl_attribute (tree *, tree, tree, int, bool *);
+extern tree amigaos_handle_type_attribute (tree *, tree, tree, int, bool *);
+extern int amigaos_comp_type_attributes (tree, tree);
+#endif