optgen: make more sanity checks for enums.
authorMartin Liska <mliska@suse.cz>
Tue, 5 May 2020 14:13:46 +0000 (16:13 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 5 May 2020 14:13:46 +0000 (16:13 +0200)
commit2d8a60a63cafdd9930bdbfb2ec76c47d7d14cd45
tree97f2d4fee31df31fd402980aca805bdab64a21e6
parent0f62caf58b5d11f375f789385d6d49891ebd9a94
optgen: make more sanity checks for enums.

* opt-functions.awk (opt_args_non_empty): New function.
* opt-read.awk: Use the function for various option arguments.
gcc/ChangeLog
gcc/opt-functions.awk
gcc/opt-read.awk