2003-02-06 02:47:56 +01:00
|
|
|
/* The host_hooks data structure.
|
c-incpath.c, [...]: Update copyright.
gcc/
* c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
hosthooks.h, params.h, ra-colorize.c, web.c,
config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
config/avr/avr-protos.h, config/avr/avr.md,
config/fr30/fr30-protos.h, config/fr30/fr30.md,
config/h8300/fixunssfsi.c, config/i386/darwin.h,
config/i386/freebsd.h, config/i386/freebsd64.h,
config/ia64/hpux.h, config/ia64/unwind-ia64.c,
config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
config/pa/pa64-regs.h, config/rs6000/aix41.h,
config/rs6000/aix43.h, config/rs6000/host-darwin.c,
config/sparc/aout.h, config/sparc/freebsd.h,
config/sparc/litecoff.h, config/vax/vax-protos.h,
doc/hostconfig.texi, doc/include/gcc-common.texi: Update
copyright.
gcc/cp/
* cp-lang.c, ptree.c: Update copyright.
From-SVN: r79506
2004-03-15 19:20:51 +01:00
|
|
|
Copyright 2003, 2004 Free Software Foundation, Inc.
|
2003-02-06 02:47:56 +01:00
|
|
|
|
2003-03-13 04:51:01 +01:00
|
|
|
This file is part of GCC.
|
2003-02-06 02:47:56 +01:00
|
|
|
|
2003-03-13 04:51:01 +01:00
|
|
|
GCC is free software; you can redistribute it and/or modify
|
2003-02-06 02:47:56 +01:00
|
|
|
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.
|
|
|
|
|
2003-03-13 04:51:01 +01:00
|
|
|
GCC is distributed in the hope that it will be useful,
|
2003-02-06 02:47:56 +01:00
|
|
|
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
|
2003-03-13 04:51:01 +01:00
|
|
|
along with GCC; see the file COPYING. If not, write to
|
2003-02-06 02:47:56 +01:00
|
|
|
the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
|
|
|
|
#ifndef GCC_HOST_HOOKS_H
|
|
|
|
#define GCC_HOST_HOOKS_H
|
|
|
|
|
2003-07-06 08:15:36 +02:00
|
|
|
struct host_hooks
|
2003-02-06 02:47:56 +01:00
|
|
|
{
|
2003-07-06 08:15:36 +02:00
|
|
|
void (*extra_signals) (void);
|
2003-02-06 02:47:56 +01:00
|
|
|
|
2004-03-11 04:19:04 +01:00
|
|
|
/* Identify an address that's likely to be free in a subsequent invocation
|
|
|
|
of the compiler. The area should be able to hold SIZE bytes. FD is an
|
|
|
|
open file descriptor if the host would like to probe with mmap. */
|
|
|
|
void * (*gt_pch_get_address) (size_t size, int fd);
|
|
|
|
|
|
|
|
/* ADDR is an address returned by gt_pch_get_address. Attempt to allocate
|
|
|
|
SIZE bytes at the same address and load it with the data from FD at
|
|
|
|
OFFSET. Return -1 if we couldn't allocate memory at ADDR, return 0
|
|
|
|
if the memory is allocated but the data not loaded, return 1 if done. */
|
|
|
|
int (*gt_pch_use_address) (void *addr, size_t size, int fd, size_t offset);
|
2003-07-30 01:36:53 +02:00
|
|
|
|
2003-02-06 02:47:56 +01:00
|
|
|
/* Whenever you add entries here, make sure you adjust hosthooks-def.h. */
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Each host provides its own. */
|
|
|
|
extern const struct host_hooks host_hooks;
|
|
|
|
|
|
|
|
#endif /* GCC_LANG_HOOKS_H */
|