Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2232499/?format=api
{ "id": 2232499, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2232499/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/7e2ac01d-9360-43af-bf5c-7916e59ffcf4@redhat.com/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/1.1/projects/17/?format=api", "name": "GNU Compiler Collection", "link_name": "gcc", "list_id": "gcc-patches.gcc.gnu.org", "list_email": "gcc-patches@gcc.gnu.org", "web_url": null, "scm_url": null, "webscm_url": null }, "msgid": "<7e2ac01d-9360-43af-bf5c-7916e59ffcf4@redhat.com>", "date": "2026-05-04T15:49:43", "name": "[COMMITTED,6/6] Rename value_range::set_type to value_range::set_range_class", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "ba4dc431c075f74e1d2b79c2e96d91d3063ccc55", "submitter": { "id": 7458, "url": "http://patchwork.ozlabs.org/api/1.1/people/7458/?format=api", "name": "Andrew MacLeod", "email": "amacleod@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/7e2ac01d-9360-43af-bf5c-7916e59ffcf4@redhat.com/mbox/", "series": [ { "id": 502687, "url": "http://patchwork.ozlabs.org/api/1.1/series/502687/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=502687", "date": "2026-05-04T15:49:11", "name": "[COMMITTED,1/6] get_tree_range should check the supplied range type.", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502687/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2232499/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2232499/checks/", "tags": {}, "headers": { "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=XawWHpjb;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)", "sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=XawWHpjb", "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com", "sourceware.org; spf=pass smtp.mailfrom=redhat.com", "server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.133.124" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g8R1Q1GV8z1yJ0\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 05 May 2026 01:50:18 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 331824B9DB6A\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 4 May 2026 15:50:16 +0000 (GMT)", "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by sourceware.org (Postfix) with ESMTP id CC0394BAD156\n for <gcc-patches@gcc.gnu.org>; Mon, 4 May 2026 15:49:47 +0000 (GMT)", "from mail-qk1-f197.google.com (mail-qk1-f197.google.com\n [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-222-yfHxP4iFOIm0lG0Db--pVQ-1; Mon, 04 May 2026 11:49:46 -0400", "by mail-qk1-f197.google.com with SMTP id\n af79cd13be357-8eacc2008b2so843036785a.3\n for <gcc-patches@gcc.gnu.org>; Mon, 04 May 2026 08:49:46 -0700 (PDT)", "from [192.168.49.94] ([68.179.25.249])\n by smtp.gmail.com with ESMTPSA id\n af79cd13be357-8fc2c91cd89sm1091512985a.35.2026.05.04.08.49.43\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Mon, 04 May 2026 08:49:43 -0700 (PDT)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 331824B9DB6A", "OpenDKIM Filter v2.11.0 sourceware.org CC0394BAD156" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org CC0394BAD156", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org CC0394BAD156", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777909787; cv=none;\n b=W83vfu1th2OeAofYHlgE94TL3aCN/pBsEX0nIyCf51CnCQnFQ7ye6F4KhEUNzCNVx1IHob16XvItz/C1pViCU4Zlo97uuuzt9m5t916Z+Nt+DjrtzTpZGS0dIIljOR03DdreylypWxCfSBOqNC82rmPnCXueeJR7UekToBkqpkg=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777909787; c=relaxed/simple;\n bh=kIMDPDrGfe4QBqpqWjeip23MmntDhzoG5ZaYj/L9MWo=;\n h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject;\n b=eZJQQ5Q8+ZXlv/YZeBm1ECNa0yhNyZmu3C5L5uJd7W0vJ9Y9MibYxgZTjyj1yVQGS1kz6IglHOV+2GpIIchvlDUKjv4XIyzUMO66Zwss3cXCY+BRLgptbrSPnje5cWCnleLVMTzLIGcQK88VH0pyQRN/9+k7wJ3Z2he3O1y54sQ=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1777909787;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type;\n bh=i5YQWqyroRYwU29suNP2z4GuDFQpeTXyWFZ8Rg2Lruw=;\n b=XawWHpjbUtf+bSLI4P1BwkRBT3PLjbVq5V4DHm+5RHKIDWcvAZcphnKY+6TrfI1agsA4gp\n lvnK1y4P0nBQL5SMknHwNEqEt32qLbw3f27ZENL6rwk0ZXeu2luiJgiT6wmTvgDdGp6j0b\n qJMMKk/yZ0guP393o2XfVdLHVlx75Xc=", "X-MC-Unique": "yfHxP4iFOIm0lG0Db--pVQ-1", "X-Mimecast-MFC-AGG-ID": "yfHxP4iFOIm0lG0Db--pVQ_1777909785", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777909785; x=1778514585;\n h=subject:from:cc:to:content-language:user-agent:mime-version:date\n :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=F79dsV1bxTt9wslB3tmPi97c27Gkn4CRrDRRtPkZ7F4=;\n b=niIRVfv24OFb5+hj6hGDcvsXjEP/PQ4OHd+sJut5lQBMziBHdPd70M209WIa0P1mxc\n IB6MaLvaiCBXf1jbKNJH6khFIaWfCagEBeq5dmDemyRYAMBk6l8bFhTZmbvopdHwrmaA\n trrzACIS1M6eHDbVNkWfK4LC31wx6pUMgucXK7BIWqHULRht5N25TTdspz1YwTNiPm7u\n /k2RZiio5LnXQy7dEMe5gWlu+5X4Ac0Gy7XP5eS80TvS25I+zn8zAh4WJvH27FmYBIHs\n AvTfl8awfPrApugTcHZ+3fJ0M8EjJJpBiRpqOtrkDsZvKifoIADxAscqlsSm6GUY1Rl/\n B+bw==", "X-Gm-Message-State": "AOJu0YxTcKEdMyWEBbDBiL1TCGzFZ/7b48CHZtgIJRamOYewOelkWude\n W5X4FkrnlUCD32zUd7IVLGslb3PGpqn0dwdIzEC0wWP5apzZgANYGac1t5oDtFfgSsckat6gY/B\n WVQJx+VbVJ2Ihw3Ar58ZAWA4u3xHErwChXqRwwwsG77Q9lc2tAKOcHGqaJknDSEOT+GqHVRohdy\n GO22aHBWu0DC3tQp3zUKC4mxLwF9KTjdNoetCAzJqHT4A=", "X-Gm-Gg": "AeBDievixvbvowsKv7d2bC08MW3henuYwNoeKo2Z/O6Z9lAhcNbkoPc7kDyW8+mF1rr\n 8G4vAPHMxQDIVzk6+8RvvDuaaOZy/v5bDiSj/6OBjLvIO0WosTEdC5wVyalDJJZ14wbWpI6JoMu\n A0ZnXX/+31aC1M1EFxcM5nK/ZmM10xgj7hg8tGNOKmcdHVKG2ecmSEU11T+zidFJ3PJBEWmbqkF\n rOBO4btKV/spddHWDjGoCe9deMpQCnjI468bbfke2VtEJvgp34GI4QZf98hgvspXch7Nfuxln7n\n sAaI+LDuPmM6lHGNO5ggMMaB8io2IZKJweSTIN+kGDuczXdXJxLhoWq2xixsq6U6mjMbN0Uynmz\n a80DwMuTEGePodIPid9kPWqnjKwP2hCLNzOU=", "X-Received": [ "by 2002:a05:620a:4555:b0:8ec:a621:a3aa with SMTP id\n af79cd13be357-8fd157eefc9mr1686041685a.2.1777909785205;\n Mon, 04 May 2026 08:49:45 -0700 (PDT)", "by 2002:a05:620a:4555:b0:8ec:a621:a3aa with SMTP id\n af79cd13be357-8fd157eefc9mr1686034185a.2.1777909784493;\n Mon, 04 May 2026 08:49:44 -0700 (PDT)" ], "Message-ID": "<7e2ac01d-9360-43af-bf5c-7916e59ffcf4@redhat.com>", "Date": "Mon, 4 May 2026 11:49:43 -0400", "MIME-Version": "1.0", "User-Agent": "Mozilla Thunderbird", "To": "gcc-patches <gcc-patches@gcc.gnu.org>", "Cc": "David Malcolm <dmalcolm@redhat.com>", "From": "Andrew MacLeod <amacleod@redhat.com>", "Subject": "[COMMITTED 6/6] Rename value_range::set_type to\n value_range::set_range_class", "X-Mimecast-Spam-Score": "0", "X-Mimecast-MFC-PROC-ID": "fVGlNEN8SmXTZlqxJe3MCXFMIr2r1JTcy3BppFhldOw_1777909785", "X-Mimecast-Originator": "redhat.com", "Content-Type": "multipart/mixed; boundary=\"------------8kxOdeUIAdRcDQMWyOscPWrE\"", "Content-Language": "en-US", "X-BeenThere": "gcc-patches@gcc.gnu.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>", "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>", "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>", "List-Post": "<mailto:gcc-patches@gcc.gnu.org>", "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>", "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>", "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org" }, "content": "Committing for dmalcolm.\n\n When looking at some ranger code, the terminology for setting the \nrange class for a value_range was confusing, so this helps clarify it.\n\nvalue_range::set_type doesn't set the m_type of the underlying vrange; \nit merely sets m_vrange to use an appropriate vrange subclass for the \ngiven type.\n\nBootstrapped on x86_64-pc-linux-gnu with no regressions. Pushed.\n\nAndrew", "diff": "From 064c232df26d574cecc4a04ea493cc2bf42ebf7d Mon Sep 17 00:00:00 2001\nFrom: David Malcolm <dmalcolm@redhat.com>\nDate: Wed, 4 Feb 2026 19:04:52 -0500\nSubject: [PATCH 6/6] Rename value_range::set_type to\n value_range::set_range_class\n\nvalue_range::set_type doesn't set the m_type of the underlying\nvrange; it merely sets m_vrange to use an appropriate vrange\nsubclass for the given type.\n\nThis confused me. This patch renames it to avoid other people being\nsimilarly confused.\n\nNo functional change intended.\n\n\tgcc/ChangeLog:\n\t* data-streamer-in.cc (streamer_read_value_range): Update for\n\trenaming of value_range::set_type to value_range::set_range_class.\n\t* gimple-range-gori.cc (gori_compute::compute_operand_range):\n\tLikewise.\n\t(gori_compute::compute_operand1_and_operand2_range): Likewise.\n\t(gori_stmt_info::gori_stmt_info): Likewise.\n\t(gori_calc_operands): Likewise.\n\t(gori_name_helper): Likewise.\n\t* ipa-cp.cc (ipcp_vr_lattice::set_to_bottom): Likewise.\n\t* ipa-cp.h (ipcp_vr_lattice::init): Likewise.\n\t* ipa-fnsummary.cc (evaluate_properties_for_edge): Likewise.\n\t* ipa-prop.cc (ipa_vr::get_vrange): Likewise.\n\t* range-op.h (range_cast): Likewise.\n\t* value-range.h (value_range::set_type): Rename to...\n\t(value_range::set_range_class): ...this, and add a note to the\n\tleading comment that it doesn't set the type of the underlying\n\tvrange.\n\t(value_range::init): Add a similar note to the leading comment.\n\t* analyzer/svalue.cc (binop_svalue::maybe_get_value_range): Update for\n\trenaming of value_range::set_type to value_range::set_range_class.\n\t(unaryop_svalue::maybe_get_value_range): Likewise.\n---\n gcc/analyzer/svalue.cc | 4 ++--\n gcc/data-streamer-in.cc | 2 +-\n gcc/gimple-range-gori.cc | 18 +++++++++---------\n gcc/ipa-cp.cc | 2 +-\n gcc/ipa-cp.h | 2 +-\n gcc/ipa-fnsummary.cc | 3 ++-\n gcc/ipa-prop.cc | 2 +-\n gcc/range-op.h | 2 +-\n gcc/value-range.h | 12 +++++++-----\n 9 files changed, 25 insertions(+), 22 deletions(-)\n\ndiff --git a/gcc/analyzer/svalue.cc b/gcc/analyzer/svalue.cc\nindex 824da5df793..fe22ae73ddd 100644\n--- a/gcc/analyzer/svalue.cc\n+++ b/gcc/analyzer/svalue.cc\n@@ -1594,7 +1594,7 @@ unaryop_svalue::maybe_get_value_range_1 (value_range &out) const\n \t a VARYING of the unknown value as the 2nd operand. */\n \t value_range varying (type);\n \t varying.set_varying (type);\n-\t out.set_type (type);\n+\t out.set_range_class (type);\n \t if (handler.fold_range (out, type, arg_vr, varying))\n \t return true;\n \t}\n@@ -1742,7 +1742,7 @@ binop_svalue::maybe_get_value_range_1 (value_range &out) const\n \trange_op_handler handler (m_op);\n \tif (handler)\n \t {\n-\t out.set_type (type);\n+\t out.set_range_class (type);\n \t if (handler.fold_range (out, get_type (), lhs, rhs))\n \t return true;\n \t }\ndiff --git a/gcc/data-streamer-in.cc b/gcc/data-streamer-in.cc\nindex f2294260b5a..a4c2b0b6ba3 100644\n--- a/gcc/data-streamer-in.cc\n+++ b/gcc/data-streamer-in.cc\n@@ -223,7 +223,7 @@ streamer_read_value_range (class lto_input_block *ib, data_in *data_in,\n tree type = stream_read_tree (ib, data_in);\n \n // Initialize the value_range to the correct type.\n- vr.set_type (type);\n+ vr.set_range_class (type);\n \n if (is_a <irange> (vr))\n {\ndiff --git a/gcc/gimple-range-gori.cc b/gcc/gimple-range-gori.cc\nindex 1c0a2b9f797..939798c9d71 100644\n--- a/gcc/gimple-range-gori.cc\n+++ b/gcc/gimple-range-gori.cc\n@@ -772,7 +772,7 @@ gori_compute::compute_operand_range (vrange &r, gimple *stmt,\n gimple *src_stmt;\n if (op1_in_chain)\n {\n- vr.set_type (TREE_TYPE (op1));\n+ vr.set_range_class (TREE_TYPE (op1));\n if (!compute_operand1_range (vr, handler, lhs, src, vrel_ptr))\n \treturn false;\n src_stmt = SSA_NAME_DEF_STMT (op1);\n@@ -780,7 +780,7 @@ gori_compute::compute_operand_range (vrange &r, gimple *stmt,\n else\n {\n gcc_checking_assert (op2_in_chain);\n- vr.set_type (TREE_TYPE (op2));\n+ vr.set_range_class (TREE_TYPE (op2));\n if (!compute_operand2_range (vr, handler, lhs, src, vrel_ptr))\n \treturn false;\n src_stmt = SSA_NAME_DEF_STMT (op2);\n@@ -1318,7 +1318,7 @@ gori_compute::compute_operand1_and_operand2_range (vrange &r,\n return false;\n \n // Now get the range thru op1.\n- vr.set_type (TREE_TYPE (handler.operand1 ()));\n+ vr.set_range_class (TREE_TYPE (handler.operand1 ()));\n if (!compute_operand1_range (vr, handler, lhs, src, rel))\n return false;\n src_stmt = SSA_NAME_DEF_STMT (handler.operand1 ());\n@@ -1592,14 +1592,14 @@ gori_stmt_info::gori_stmt_info (vrange &lhs, gimple *stmt, range_query *q)\n fur_stmt src (stmt, q);\n if (op1)\n {\n- op1_range.set_type (TREE_TYPE (op1));\n+ op1_range.set_range_class (TREE_TYPE (op1));\n src.get_operand (op1_range, op1);\n }\n \n // And satisfy the second operand for single op satements.\n if (op2)\n {\n- op2_range.set_type (TREE_TYPE (op2));\n+ op2_range.set_range_class (TREE_TYPE (op2));\n src.get_operand (op2_range, op2);\n }\n else if (op1)\n@@ -1625,7 +1625,7 @@ gori_calc_operands (vrange &lhs, gimple *stmt, ssa_cache &r, range_query *q)\n // If there was already a range, leave it and do no further evaluation.\n if (si.ssa1 && !r.has_range (si.ssa1))\n {\n- tmp.set_type (TREE_TYPE (si.ssa1));\n+ tmp.set_range_class (TREE_TYPE (si.ssa1));\n if (si.calc_op1 (tmp, lhs, si.op2_range))\n \tsi.op1_range.intersect (tmp);\n if (!si.op1_range.varying_p ())\n@@ -1640,7 +1640,7 @@ gori_calc_operands (vrange &lhs, gimple *stmt, ssa_cache &r, range_query *q)\n \n if (si.ssa2 && !r.has_range (si.ssa2))\n {\n- tmp.set_type (TREE_TYPE (si.ssa2));\n+ tmp.set_range_class (TREE_TYPE (si.ssa2));\n if (si.calc_op2 (tmp, lhs, si.op1_range))\n \tsi.op2_range.intersect (tmp);\n if (!si.op2_range.varying_p ())\n@@ -1697,7 +1697,7 @@ gori_name_helper (vrange &r, tree name, vrange &lhs, gimple *stmt,\n // If there was already a range, leave it and do no further evaluation.\n if (si.ssa1)\n {\n- tmp.set_type (TREE_TYPE (si.ssa1));\n+ tmp.set_range_class (TREE_TYPE (si.ssa1));\n if (si.calc_op1 (tmp, lhs, si.op2_range))\n \tsi.op1_range.intersect (tmp);\n gimple *src = SSA_NAME_DEF_STMT (si.ssa1);\n@@ -1709,7 +1709,7 @@ gori_name_helper (vrange &r, tree name, vrange &lhs, gimple *stmt,\n \n if (si.ssa2)\n {\n- tmp.set_type (TREE_TYPE (si.ssa2));\n+ tmp.set_range_class (TREE_TYPE (si.ssa2));\n if (si.calc_op2 (tmp, lhs, si.op1_range))\n \tsi.op2_range.intersect (tmp);\n gimple *src = SSA_NAME_DEF_STMT (si.ssa2);\ndiff --git a/gcc/ipa-cp.cc b/gcc/ipa-cp.cc\nindex 337fca71013..c1b1f6201fd 100644\n--- a/gcc/ipa-cp.cc\n+++ b/gcc/ipa-cp.cc\n@@ -891,7 +891,7 @@ ipcp_vr_lattice::set_to_bottom ()\n but nothing else (union, intersect, etc). This allows us to set\n bottoms on any ranges, and is safe as all users of the lattice\n check for bottom first. */\n- m_vr.set_type (void_type_node);\n+ m_vr.set_range_class (void_type_node);\n m_vr.set_varying (void_type_node);\n \n return true;\ndiff --git a/gcc/ipa-cp.h b/gcc/ipa-cp.h\nindex 8191aac5c5b..af1fe8f1e75 100644\n--- a/gcc/ipa-cp.h\n+++ b/gcc/ipa-cp.h\n@@ -261,7 +261,7 @@ inline void\n ipcp_vr_lattice::init (tree type)\n {\n if (type)\n- m_vr.set_type (type);\n+ m_vr.set_range_class (type);\n \n // Otherwise m_vr will default to unsupported_range.\n m_recipient_only = false;\ndiff --git a/gcc/ipa-fnsummary.cc b/gcc/ipa-fnsummary.cc\nindex e187231dfb6..ff181113078 100644\n--- a/gcc/ipa-fnsummary.cc\n+++ b/gcc/ipa-fnsummary.cc\n@@ -693,7 +693,8 @@ evaluate_properties_for_edge (struct cgraph_edge *e, bool inline_p,\n \t\t\t avals->m_known_value_ranges.safe_grow_cleared (count,\n \t\t\t\t\t\t\t\t\t true);\n \t\t\t for (int i = 0; i < count; ++i)\n-\t\t\t avals->m_known_value_ranges[i].set_type (void_type_node);\n+\t\t\t avals->m_known_value_ranges[i].set_range_class\n+\t\t\t\t(void_type_node);\n \t\t\t }\n \t\t\tavals->m_known_value_ranges[i] = vr;\n \t\t }\ndiff --git a/gcc/ipa-prop.cc b/gcc/ipa-prop.cc\nindex cb89934ee38..6675c2191fc 100644\n--- a/gcc/ipa-prop.cc\n+++ b/gcc/ipa-prop.cc\n@@ -177,7 +177,7 @@ ipa_vr::equal_p (const ipa_vr &o) const\n void\n ipa_vr::get_vrange (value_range &r) const\n {\n- r.set_type (m_type);\n+ r.set_range_class (m_type);\n m_storage->get_vrange (r, m_type);\n }\n \ndiff --git a/gcc/range-op.h b/gcc/range-op.h\nindex 5b80583e02c..1fd84ca0713 100644\n--- a/gcc/range-op.h\n+++ b/gcc/range-op.h\n@@ -370,7 +370,7 @@ range_cast (value_range &r, tree type)\n varying.set_varying (type);\n \n // Ensure we are in the correct mode for the call to fold.\n- r.set_type (type);\n+ r.set_range_class (type);\n \n // Call op_convert, if it fails, the result is varying.\n if (!range_op_handler (CONVERT_EXPR).fold_range (r, type, tmp, varying))\ndiff --git a/gcc/value-range.h b/gcc/value-range.h\nindex cb8e7fe2f26..d59c4283caa 100644\n--- a/gcc/value-range.h\n+++ b/gcc/value-range.h\n@@ -767,13 +767,13 @@ public:\n //\n // Using any of the various constructors initializes the object\n // appropriately, but the default constructor is uninitialized and\n-// must be initialized either with set_type() or by assigning into it.\n+// must be initialized either with set_range_class() or by assigning into /it.\n //\n // Assigning between incompatible types is allowed. For example if a\n // temporary holds an irange, you can assign an frange into it, and\n // all the right things will happen. However, before passing this\n // object to a function accepting a vrange, the correct type must be\n-// set. If it isn't, you can do so with set_type().\n+// set. If it isn't, you can do so with set_range_class().\n \n class value_range\n {\n@@ -784,7 +784,7 @@ public:\n value_range (tree, tree, value_range_kind kind = VR_RANGE);\n value_range (const value_range &);\n ~value_range ();\n- void set_type (tree type);\n+ void set_range_class (tree type);\n vrange& operator= (const vrange &);\n value_range& operator= (const value_range &);\n bool operator== (const value_range &r) const;\n@@ -832,7 +832,7 @@ private:\n };\n \n // The default constructor is uninitialized and must be initialized\n-// with either set_type() or with an assignment into it.\n+// with either set_range_class() or with an assignment into it.\n \n inline\n value_range::value_range ()\n@@ -885,9 +885,10 @@ value_range::~value_range ()\n \n // Initialize object to an UNDEFINED range that can hold ranges of\n // TYPE. Clean-up memory if there was a previous object.\n+// Note that this does *not* set the type of the underlying vrange.\n \n inline void\n-value_range::set_type (tree type)\n+value_range::set_range_class (tree type)\n {\n if (m_vrange)\n m_vrange->~vrange ();\n@@ -896,6 +897,7 @@ value_range::set_type (tree type)\n \n // Initialize object to an UNDEFINED range that can hold ranges of\n // TYPE.\n+// Note that this does *not* set the type of the underlying vrange.\n \n inline void\n value_range::init (tree type)\n-- \n2.45.0\n\n", "prefixes": [ "COMMITTED", "6/6" ] }