This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] tree-vrp: add "const" qualifier to various value_range pointers




On 08/30/2018 06:24 PM, David Malcolm wrote:
Adding "const" to these indicates to both humans and the compiler in which
direction information is intended to flow.  For example, compare:
   extract_range_from_binary_expr_1, which takes two vr and modifies a third
with:
   ranges_from_anti_range, which takes one and modifies two others.


Duuuude!  Thanks so much.  I will adjust my patch accordingly.

Aldy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]