Mercurial > hg > CbC > CbC_gcc
comparison gcc/doc/hostconfig.texi @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | 77e2b8dfacca |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
41 @deftypefn {Host Hook} void HOST_HOOKS_EXTRA_SIGNALS (void) | 41 @deftypefn {Host Hook} void HOST_HOOKS_EXTRA_SIGNALS (void) |
42 This host hook is used to set up handling for extra signals. The most | 42 This host hook is used to set up handling for extra signals. The most |
43 common thing to do in this hook is to detect stack overflow. | 43 common thing to do in this hook is to detect stack overflow. |
44 @end deftypefn | 44 @end deftypefn |
45 | 45 |
46 @deftypefn {Host Hook} void * HOST_HOOKS_GT_PCH_GET_ADDRESS (size_t @var{size}, int @var{fd}) | 46 @deftypefn {Host Hook} {void *} HOST_HOOKS_GT_PCH_GET_ADDRESS (size_t @ |
47 @var{size}, int @var{fd}) | |
47 This host hook returns the address of some space that is likely to be | 48 This host hook returns the address of some space that is likely to be |
48 free in some subsequent invocation of the compiler. We intend to load | 49 free in some subsequent invocation of the compiler. We intend to load |
49 the PCH data at this address such that the data need not be relocated. | 50 the PCH data at this address such that the data need not be relocated. |
50 The area should be able to hold @var{size} bytes. If the host uses | 51 The area should be able to hold @var{size} bytes. If the host uses |
51 @code{mmap}, @var{fd} is an open file descriptor that can be used for | 52 @code{mmap}, @var{fd} is an open file descriptor that can be used for |
52 probing. | 53 probing. |
53 @end deftypefn | 54 @end deftypefn |
54 | 55 |
55 @deftypefn {Host Hook} int HOST_HOOKS_GT_PCH_USE_ADDRESS (void * @var{address}, size_t @var{size}, int @var{fd}, size_t @var{offset}) | 56 @deftypefn {Host Hook} int HOST_HOOKS_GT_PCH_USE_ADDRESS (void * @var{address}, @ |
57 size_t @var{size}, int @var{fd}, size_t @var{offset}) | |
56 This host hook is called when a PCH file is about to be loaded. | 58 This host hook is called when a PCH file is about to be loaded. |
57 We want to load @var{size} bytes from @var{fd} at @var{offset} | 59 We want to load @var{size} bytes from @var{fd} at @var{offset} |
58 into memory at @var{address}. The given address will be the result of | 60 into memory at @var{address}. The given address will be the result of |
59 a previous invocation of @code{HOST_HOOKS_GT_PCH_GET_ADDRESS}. | 61 a previous invocation of @code{HOST_HOOKS_GT_PCH_GET_ADDRESS}. |
60 Return @minus{}1 if we couldn't allocate @var{size} bytes at @var{address}. | 62 Return @minus{}1 if we couldn't allocate @var{size} bytes at @var{address}. |