]> git.ipfire.org Git - thirdparty/gcc.git/commit
IBM Z: Fix address of operands will never be NULL warnings
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Tue, 2 Nov 2021 08:19:44 +0000 (09:19 +0100)
committerStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Tue, 2 Nov 2021 08:19:44 +0000 (09:19 +0100)
commite72f783c86264dc4a8f0addd340a9950da1d1b6d
tree52a6d32566d4adb63042a52ea38e430db3471e2c
parentfb7fee84813b23487baf0c1094860251229ab5dd
IBM Z: Fix address of operands will never be NULL warnings

Since a recent enhancement of -Waddress a couple of warnings are emitted
and turned into errors during bootstrap:

gcc/config/s390/s390.md:12087:25: error: the address of 'operands' will never be NULL [-Werror=address]
12087 |   "TARGET_HTM && operands != NULL
build/gencondmd.c:59:12: note: 'operands' declared here
   59 | extern rtx operands[];
      |            ^~~~~~~~

Fixed by removing those non-null checks.

gcc/ChangeLog:

* config/s390/s390.md ("*cc_to_int", "tabort", "*tabort_1",
"*tabort_1_plus"): Remove operands non-null check.
gcc/config/s390/s390.md