]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++, analyzer: Expand CAN_HAVE_LOCATION_P macro.
authorBernhard Reutner-Fischer <aldot@gcc.gnu.org>
Thu, 1 Jun 2023 17:44:19 +0000 (19:44 +0200)
committerBernhard Reutner-Fischer <aldot@gcc.gnu.org>
Wed, 15 Nov 2023 17:38:45 +0000 (18:38 +0100)
commit186331063dfbcf1eacb445c473d92634c9baa90f
treee6cf8e7ad41ffc7f9f4629e239f723deb36a9520
parentd1189ceefc1da1515e039c9cfd2f5a67b5820207
c++, analyzer: Expand CAN_HAVE_LOCATION_P macro.

r14-985-gca2007a9bb3074 used the collapsed macro definition
CAN_HAVE_LOCATION_P in gcc-rich-location.cc and r14-977-g8861c80733da5c
in c++'s build_cplus_array_type ().
However, although otherwise correct, the usage of CAN_HAVE_LOCATION_P
in these two spots is misleading, so this patch reverts aforementioned
two hunks.

gcc/cp/ChangeLog:

* tree.cc (build_cplus_array_type): Revert using the macro
CAN_HAVE_LOCATION_P.

gcc/ChangeLog:

* gcc-rich-location.cc (maybe_range_label_for_tree_type_mismatch::get_text):
Revert using the macro CAN_HAVE_LOCATION_P.
gcc/cp/tree.cc
gcc/gcc-rich-location.cc