]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix a few incorrect accesses.
authorAndrew MacLeod <amacleod@redhat.com>
Tue, 29 Nov 2022 18:07:28 +0000 (13:07 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Fri, 2 Dec 2022 16:50:05 +0000 (11:50 -0500)
commit76dd48f8956b5e17adf0ae1cd1ed3d804a005470
treee3dec229a8348bf01153d3505661220d0745b781
parent6d3c634c8baebd9ff12c39d61947752486758bd3
Fix a few incorrect accesses.

This consists of 3 changes which stronger type checking has indicated
are incorrect.

gcc/
* fold-const.cc (fold_unary_loc): Check TREE_TYPE of node.
(tree_invalid_nonnegative_warnv_p): Likewise.

gcc/c-family/
* c-attribs.cc (handle_deprecated_attribute): Use type when
using TYPE_NAME.
gcc/c-family/c-attribs.cc
gcc/fold-const.cc