This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][GCC][front-end][opt-framework] Allow back-ends to be able to do custom validations on params. [Patch (1/3)]


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.christina@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]