diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2021-08-30 22:36:47 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2021-09-13 18:38:52 +0200 |
commit | 6c79057fae6bbb36c4a4fd61c5b7107a16b71b17 (patch) | |
tree | db148081651c13c52fd54fc81d33e58c00857d61 /gcc/fortran/resolve.c | |
parent | 1985392242d9a6bf8b091f78143d3c1fa9ccd284 (diff) | |
download | gcc-6c79057fae6bbb36c4a4fd61c5b7107a16b71b17.zip gcc-6c79057fae6bbb36c4a4fd61c5b7107a16b71b17.tar.gz gcc-6c79057fae6bbb36c4a4fd61c5b7107a16b71b17.tar.bz2 |
Don't maintain a warning spec for 'UNKNOWN_LOCATION'/'BUILTINS_LOCATION' [PR101574]
This resolves PR101574 "gcc/sparseset.h:215:20: error: suggest parentheses
around assignment used as truth value [-Werror=parentheses]", as (bogusly)
reported at commit a61f6afbee370785cf091fe46e2e022748528307:
In file included from [...]/source-gcc/gcc/lra-lives.c:43:
[...]/source-gcc/gcc/lra-lives.c: In function ‘void make_hard_regno_dead(int)’:
[...]/source-gcc/gcc/sparseset.h:215:20: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
215 | && (((ITER) = sparseset_iter_elm (SPARSESET)) || 1); \
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[...]/source-gcc/gcc/lra-lives.c:304:3: note: in expansion of macro ‘EXECUTE_IF_SET_IN_SPARSESET’
304 | EXECUTE_IF_SET_IN_SPARSESET (pseudos_live, i)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc/
PR bootstrap/101574
* diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
'RESERVED_LOCATION_P' locations.
* warning-control.cc (get_nowarn_spec, suppress_warning)
(copy_warning): Likewise.
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions