]> git.ipfire.org Git - thirdparty/gcc.git/commit
Update options framework for parameters to properly handle and validate configure...
authortnfchris <tnfchris@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Oct 2018 13:08:10 +0000 (13:08 +0000)
committertnfchris <tnfchris@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Oct 2018 13:08:10 +0000 (13:08 +0000)
commit03aa8ad7515856d4d3d9e8df73220240099a55a1
tree1cca3ec2894bdd3e4a96bdcc543668afbf6108a4
parent6b489379303e37173471f27074ee11d8d6498d8f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264756 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/diagnostic.h
gcc/params.c