]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use 'location_hash' for 'gcc/diagnostic-spec.h:nowarn_map'
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 31 Aug 2021 21:35:15 +0000 (23:35 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Mon, 15 Nov 2021 16:57:54 +0000 (17:57 +0100)
commitf861ed8b29a5eb6164d1ddbcfbb6232dddae713f
tree45828755f57b256a48feada408ba90b1733b42ab
parentbcebd05720540e257b520737de6e087a328c1f8b
Use 'location_hash' for 'gcc/diagnostic-spec.h:nowarn_map'

Instead of hard-coded '0'/'UINT_MAX', we now use the 'RESERVED_LOCATION_P'
values 'UNKNOWN_LOCATION'/'BUILTINS_LOCATION' as spare values for
'Empty'/'Deleted', and generally simplify the code.

gcc/
* diagnostic-spec.h (typedef xint_hash_t)
(typedef xint_hash_map_t): Replace with...
(typedef nowarn_map_t): ... this.
(nowarn_map): Adjust.
* diagnostic-spec.c (nowarn_map, suppress_warning_at): Likewise.
gcc/diagnostic-spec.c
gcc/diagnostic-spec.h