On 07/11/2018 05:24 AM, Tamar Christina wrote:
> Hi All,
> 
> This patch adds the ability for backends to add custom constrains to the param
> values by defining a new hook option_validate_param.
> 
> This hook is invoked on every set_param_value which allows the back-end to
> ensure that the parameters are always within it's desired state.
> 
> Bootstrapped Regtested on aarch64-none-linux-gnu, x86_64-pc-linux-gnu and no 
> issues.
> Both targets were tested with stack clash on and off by default.
> 
> Ok for trunk?
> 
> Thanks,
> Tamar
> 
> gcc/
> 2018-07-11  Tamar Christina  <tamar.christ...@arm.com>
> 
>       * params.c (set_param_value):
>       Add index of parameter being validated.
>       * common/common-target.def (option_validate_param): New.
>       * common/common-targhooks.h (default_option_validate_param): New.
>       * common/common-targhooks.c (default_option_validate_param): New.
>       * doc/tm.texi.in (TARGET_OPTION_VALIDATE_PARAM): New.
>       * doc/tm.texi: Regenerate.
> 
OK
jeff

Reply via email to