]> git.ipfire.org Git - thirdparty/gcc.git/commit
Clarify 'key_type_t' to 'location_t' as used for 'gcc/diagnostic-spec.h:nowarn_map'
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 31 Aug 2021 20:01:23 +0000 (22:01 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Mon, 13 Sep 2021 16:38:51 +0000 (18:38 +0200)
commit1985392242d9a6bf8b091f78143d3c1fa9ccd284
treebb9669251850505aa0e4979dfad8ec173f820acb
parentaccf94329d61933e6c58c1d7815fb08d8fc2afa5
Clarify 'key_type_t' to 'location_t' as used for 'gcc/diagnostic-spec.h:nowarn_map'

To make it obvious what exactly the key type is.  No change in behavior.

gcc/
* diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
(typedef key_type_t): ... this.  Remove.
(nowarn_map): Document.
* diagnostic-spec.c (nowarn_map): Likewise.
* warning-control.cc (convert_to_key): Evolve functions into...
(get_location): ... these.  Adjust all users.
gcc/diagnostic-spec.c
gcc/diagnostic-spec.h
gcc/warning-control.cc