hosthooks-def.h revision 267654
125184Sjkh/* Default macros to initialize the lang_hooks data structure.
2113674Smtm   Copyright 2003, 2004 Free Software Foundation, Inc.
3113674Smtm
4113674SmtmThis file is part of GCC.
5113674Smtm
6113674SmtmGCC is free software; you can redistribute it and/or modify
7113674Smtmit under the terms of the GNU General Public License as published by
8113674Smtmthe Free Software Foundation; either version 2, or (at your option)
9113674Smtmany later version.
10113674Smtm
11113674SmtmGCC is distributed in the hope that it will be useful,
12113674Smtmbut WITHOUT ANY WARRANTY; without even the implied warranty of
13113674SmtmMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14113674SmtmGNU General Public License for more details.
15113674Smtm
16113674SmtmYou should have received a copy of the GNU General Public License
17113674Smtmalong with GCC; see the file COPYING.  If not, write to
18113674Smtmthe Free Software Foundation, 51 Franklin Street, Fifth Floor,
19113674SmtmBoston, MA 02110-1301, USA.  */
20113674Smtm
21113674Smtm#ifndef GCC_HOST_HOOKS_DEF_H
22113674Smtm#define GCC_HOST_HOOKS_DEF_H
23113674Smtm
24113674Smtm#include "hooks.h"
2550472Speter
2666830Sobrien#define HOST_HOOKS_EXTRA_SIGNALS hook_void_void
2725184Sjkh#if HAVE_MMAP_FILE
28113674Smtm#define HOST_HOOKS_GT_PCH_GET_ADDRESS mmap_gt_pch_get_address
29113674Smtm#define HOST_HOOKS_GT_PCH_USE_ADDRESS mmap_gt_pch_use_address
30113674Smtm#else
31113674Smtm#define HOST_HOOKS_GT_PCH_GET_ADDRESS default_gt_pch_get_address
3225184Sjkh#define HOST_HOOKS_GT_PCH_USE_ADDRESS default_gt_pch_use_address
33178356Ssam#endif
34197147Shrs
35197147Shrs#define HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY \
36178356Ssam  default_gt_pch_alloc_granularity
37178356Ssam
38178356Ssamextern void* default_gt_pch_get_address (size_t, int);
39178356Ssamextern int default_gt_pch_use_address (void *, size_t, int, size_t);
40178356Ssamextern size_t default_gt_pch_alloc_granularity (void);
41178356Ssamextern void* mmap_gt_pch_get_address (size_t, int);
42178356Ssamextern int mmap_gt_pch_use_address (void *, size_t, int, size_t);
43178356Ssam
44178356Ssam/* The structure is defined in hosthooks.h.  */
45178356Ssam#define HOST_HOOKS_INITIALIZER {		\
46178356Ssam  HOST_HOOKS_EXTRA_SIGNALS,			\
47178356Ssam  HOST_HOOKS_GT_PCH_GET_ADDRESS,		\
48197139Shrs  HOST_HOOKS_GT_PCH_USE_ADDRESS,		\
49178356Ssam  HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY		\
50197139Shrs}
51178356Ssam
52178356Ssam#endif /* GCC_HOST_HOOKS_DEF_H */
53178356Ssam