Update options framework for parameters to properly handle and validate configure...
authorTamar Christina <tamar.christina@arm.com>
Mon, 1 Oct 2018 13:08:10 +0000 (13:08 +0000)
committerTamar Christina <tnfchris@gcc.gnu.org>
Mon, 1 Oct 2018 13:08:10 +0000 (13:08 +0000)
commitf622a56bcb4049083fcbb63bb27eca9230c89456
tree1cca3ec2894bdd3e4a96bdcc543668afbf6108a4
parent03ced4ab9f729cc4d5854439f136d84d1343b32d
Update options framework for parameters to properly handle and validate configure time params.

This patch changes it so that default parameters are validated during
initialization. This change is needed to ensure parameters set via by the
target specific common initialization routines still keep the parameters within
the valid range.

gcc/

* params.c (validate_param): New.
(add_params): Use it.
(set_param_value): Refactor param validation into validate_param.
(diagnostic.h): Include.
* diagnostic.h (diagnostic_ready_p): New.

From-SVN: r264756
gcc/ChangeLog
gcc/diagnostic.h
gcc/params.c