Parameters for Precompiled Header Validity Checking#
-
void *TARGET_GET_PCH_VALIDITY(size_t *sz)#
This hook returns a pointer to the data needed by
TARGET_PCH_VALID_Pand sets*szto the size of the data in bytes.
-
const char *TARGET_PCH_VALID_P(const void *data, size_t sz)#
This hook checks whether the options used to create a PCH file are compatible with the current settings. It returns
NULLif so and a suitable error message if not. Error messages will be presented to the user and must be localized using_(msg).datais the data that was returned byTARGET_GET_PCH_VALIDITYwhen the PCH file was created andszis the size of that data in bytes. It’s safe to assume that the data was created by the same version of the compiler, so no format checking is needed.The default definition of
default_pch_valid_pshould be suitable for most targets.
-
const char *TARGET_CHECK_PCH_TARGET_FLAGS(int pch_flags)#
If this hook is nonnull, the default implementation of
TARGET_PCH_VALID_Pwill use it to check for compatible values oftarget_flags.pch_flagsspecifies the value thattarget_flagshad when the PCH file was created. The return value is the same as forTARGET_PCH_VALID_P.
-
void TARGET_PREPARE_PCH_SAVE(void)#
Called before writing out a PCH file. If the target has some garbage-collected data that needs to be in a particular state on PCH loads, it can use this hook to enforce that state. Very few targets need to do anything here.