GCC Middle and Back End API Reference
hosthooks-def.h File Reference
#include "hooks.h"
Include dependency graph for hosthooks-def.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HOST_HOOKS_EXTRA_SIGNALS   hook_void_void
 
#define HOST_HOOKS_GT_PCH_GET_ADDRESS   default_gt_pch_get_address
 
#define HOST_HOOKS_GT_PCH_USE_ADDRESS   default_gt_pch_use_address
 
#define HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY    default_gt_pch_alloc_granularity
 
#define HOST_HOOKS_INITIALIZER
 

Functions

void * default_gt_pch_get_address (size_t, int)
 
int default_gt_pch_use_address (void *&, size_t, int, size_t)
 
size_t default_gt_pch_alloc_granularity (void)
 
void * mmap_gt_pch_get_address (size_t, int)
 
int mmap_gt_pch_use_address (void *&, size_t, int, size_t)
 

Macro Definition Documentation

◆ HOST_HOOKS_EXTRA_SIGNALS

#define HOST_HOOKS_EXTRA_SIGNALS   hook_void_void
Default macros to initialize the lang_hooks data structure.
   Copyright (C) 2003-2024 Free Software Foundation, Inc.

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 3, 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 COPYING3.  If not see
<http://www.gnu.org/licenses/>.   

◆ HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY

#define HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY    default_gt_pch_alloc_granularity

◆ HOST_HOOKS_GT_PCH_GET_ADDRESS

#define HOST_HOOKS_GT_PCH_GET_ADDRESS   default_gt_pch_get_address

◆ HOST_HOOKS_GT_PCH_USE_ADDRESS

#define HOST_HOOKS_GT_PCH_USE_ADDRESS   default_gt_pch_use_address

◆ HOST_HOOKS_INITIALIZER

#define HOST_HOOKS_INITIALIZER
Value:
{ \
}
#define HOST_HOOKS_GT_PCH_GET_ADDRESS
Definition hosthooks-def.h:30
#define HOST_HOOKS_EXTRA_SIGNALS
Definition hosthooks-def.h:25
#define HOST_HOOKS_GT_PCH_USE_ADDRESS
Definition hosthooks-def.h:31
#define HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY
Definition hosthooks-def.h:34
The structure is defined in hosthooks.h.   

Function Documentation

◆ default_gt_pch_alloc_granularity()

size_t default_gt_pch_alloc_granularity ( void )
extern
Default version of HOST_HOOKS_GT_PCH_GET_ADDRESS.   Return the
alignment required for allocating virtual memory. Usually this is the
same as pagesize.   

◆ default_gt_pch_get_address()

void * default_gt_pch_get_address ( size_t size,
int fd )
extern
Default version of HOST_HOOKS_GT_PCH_GET_ADDRESS when mmap is not present.
Select no address whatsoever, and let gt_pch_save choose what it will with
malloc, presumably.   

References NULL.

◆ default_gt_pch_use_address()

int default_gt_pch_use_address ( void *& base,
size_t size,
int fd,
size_t offset )
extern
Default version of HOST_HOOKS_GT_PCH_USE_ADDRESS when mmap is not present.
Allocate SIZE bytes with malloc.  Return 0 if the address we got is the
same as base, indicating that the memory has been allocated but needs to
be read in from the file.  Return -1 if the address differs, to relocation
of the PCH file would be required.   

◆ mmap_gt_pch_get_address()

void * mmap_gt_pch_get_address ( size_t ,
int  )
extern

◆ mmap_gt_pch_use_address()

int mmap_gt_pch_use_address ( void *& ,
size_t ,
int ,
size_t  )
extern