{"id":2232497,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2232497/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/f37e96b4-b96e-4254-b0cb-cc6aa5f903db@redhat.com/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/1.1/projects/17/?format=json","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":"<f37e96b4-b96e-4254-b0cb-cc6aa5f903db@redhat.com>","date":"2026-05-04T15:49:11","name":"[COMMITTED,1/6] get_tree_range should check the supplied range type.","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"ab37d914715bef723847e953a443adfa68e438ee","submitter":{"id":7458,"url":"http://patchwork.ozlabs.org/api/1.1/people/7458/?format=json","name":"Andrew MacLeod","email":"amacleod@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/f37e96b4-b96e-4254-b0cb-cc6aa5f903db@redhat.com/mbox/","series":[{"id":502687,"url":"http://patchwork.ozlabs.org/api/1.1/series/502687/?format=json","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/2232497/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2232497/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=Vo3MtpOJ;\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=Vo3MtpOJ","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 4g8R111rV7z1yJ9\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 05 May 2026 01:49:55 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id EA4794BAD158\n\tfor <incoming@patchwork.ozlabs.org>; Mon,  4 May 2026 15:49:52 +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 0487B4B9DB56\n for <gcc-patches@gcc.gnu.org>; Mon,  4 May 2026 15:49:18 +0000 (GMT)","from mail-qt1-f197.google.com (mail-qt1-f197.google.com\n [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-496-llmRMeOSOje3VJz1o55gOA-1; Mon, 04 May 2026 11:49:16 -0400","by mail-qt1-f197.google.com with SMTP id\n d75a77b69052e-50edf01172bso117915841cf.2\n for <gcc-patches@gcc.gnu.org>; Mon, 04 May 2026 08:49:16 -0700 (PDT)","from [192.168.49.94] ([68.179.25.249])\n by smtp.gmail.com with ESMTPSA id\n d75a77b69052e-51040911ab7sm100470641cf.9.2026.05.04.08.49.12\n for <gcc-patches@gcc.gnu.org>\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Mon, 04 May 2026 08:49:12 -0700 (PDT)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org EA4794BAD158","OpenDKIM Filter v2.11.0 sourceware.org 0487B4B9DB56"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 0487B4B9DB56","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 0487B4B9DB56","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777909759; cv=none;\n b=I3kOTjwVcBrP+UqlsDyktD8PQ9/9AOg6vVgJTFIgQ0dtRAJpsd1NtCAcvhr/3TJFm76Z52WwcUgv8WdKzjtcoAJbrSCvuuIc8kHzbmXnGWUDdUwYcqFhGHpdmxL8qzHXmiTmdEJoHKxuMrYd1WAmJ8LEKunYFCBsJhJpgCdtzo4=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777909759; c=relaxed/simple;\n bh=TJ6QMjgxY3Qv7ym0bQv8btimMVazUYHQe0JBLv18hbk=;\n h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject;\n b=Mk6w/bWarp1hXfw5BGfCOOLnh6HvVY5C8m6WpTr/8jXEkPTQnJbUDSFQpmKwctMpJDrIXW2iavcFcawAWXFWucxohYF/eprdYCJWLMMqXeh2i4+f50yCMQIpwnEVyjFiz257uXs6BVnABiVzdFlywQueKN3dB8qHUxnIOPUAWH8=","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=1777909758;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:mime-version:mime-version:content-type:content-type;\n bh=rmVLMdpNSA36qj7MyNMiyF5a2FYQ76CFBTyPPMV9IKU=;\n b=Vo3MtpOJZoIIJ4cLRn5EaPBEQAgCJB/UXmr4jwiIdrt7qNheoOly/p26nJgGRvQ+/AGSsI\n SN1UDc/jMdT8LsVWDcytiTmg2mu0/xvlfbUBYz0mVmrp3S06TcxmkvwDxysrreZawiTOEB\n O6eh9rQ7YWNEfDIqSAVlmE/+a0vsVr0=","X-MC-Unique":"llmRMeOSOje3VJz1o55gOA-1","X-Mimecast-MFC-AGG-ID":"llmRMeOSOje3VJz1o55gOA_1777909755","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777909755; x=1778514555;\n h=subject:from: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=uSaw77Wm4JLg6cpvFeO7lhoNPQ6nlAKF42SdQLOD5Do=;\n b=BuF07NvWggfFW+BBVMXGwTjLBjr4HQYDlNXuZ0QaeYSdKl+ag7otDXJGhWbvsNeJOR\n KAXU/1BFa/QXMALH5c3Z92xF1vc6chP3olWibdp+F7h8rJ6aVtbXqq9MSdW6fl9wQlDy\n T5U8zwG5QUS6ezeRzxCrxoKdQm63vI+Qs0mJEd39TvLaWWR8aH/N4GHCDha+p99cL42G\n RgK+kkSKUcqDs8sT5S24gaGQKVx69wcxgaTr7TiI1ILqoFzfmoq4BWXrPWitDCi1C1SH\n mByZ4gvSlWw6HSiEE6NfPt8U+gJFF6b/VtEM8LCm+dI0Izg+l6R0z88PgznEp3qx9tpV\n dHeQ==","X-Gm-Message-State":"AOJu0YzIC+kn7XuwMA7uU4Q1ecXyAfAVhdk/i74eOxdbNOtbHh+6+lq3\n N6seZphtPNgGSA5Vxpl84N6Exc4h9N4qklmvpkZPLgf9LohrfVsbSCjEnEESqrUE7gWWav/qSDe\n S4+pnD7fSmxFwRMbkJ14yAVqhetuyY42i5JClG9g/FK347yDdu29zQqQPaEveuFve5MwfsiSHdD\n y+ugTITCuyWyAuObsEVEP14p9/yvVMgL8enXsyfU9vVHs=","X-Gm-Gg":"AeBDievImuZSVu6SW5Za6qQjP0jCjTDN1Wc8OTjnmH2yDbDJUmBho5a0Zy89XJMofWW\n /J7O6xjTh2/TEAaub/oJg642G+tp+Mmye3w5zMMWc8vDXG5Hpc6LBE7vijOBR4pnMZyL9IMYbsX\n JoKfSiV+yFbTzxQQ1Y3WBs+UyPIxrKjhlO6Z2khpC45WkNqqjMcz00d9s2cSfarMdIt/qe/F2DT\n 55Di67w1eD0J93M7jpDOAHhM1C2X/RpIFiyNH6JQMj8C6QLt8hlW0HcjxqfktZLOfsLg67bgI4q\n pD+J0OrmFMCizMBkAhcatAizmgYRr3xBmV8ogEynwhp0+ak9nqLZA2ZYrFLvKQPAekXSVfa5ho4\n bijFBbSAhgWrNI4CpHP+zKu8wSSnDG7hlKTE=","X-Received":["by 2002:ac8:5e0b:0:b0:50f:c65f:a4fb with SMTP id\n d75a77b69052e-5104bdf14e7mr152612291cf.11.1777909755276;\n Mon, 04 May 2026 08:49:15 -0700 (PDT)","by 2002:ac8:5e0b:0:b0:50f:c65f:a4fb with SMTP id\n d75a77b69052e-5104bdf14e7mr152610131cf.11.1777909753298;\n Mon, 04 May 2026 08:49:13 -0700 (PDT)"],"Message-ID":"<f37e96b4-b96e-4254-b0cb-cc6aa5f903db@redhat.com>","Date":"Mon, 4 May 2026 11:49:11 -0400","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","To":"gcc-patches <gcc-patches@gcc.gnu.org>","From":"Andrew MacLeod <amacleod@redhat.com>","Subject":"[COMMITTED 1/6] get_tree_range should check the supplied range type.","X-Mimecast-Spam-Score":"0","X-Mimecast-MFC-PROC-ID":"SAmmIdKsFOIDTIFEA0a8O_y_vtIOCirLF3FkpRGrWAc_1777909755","X-Mimecast-Originator":"redhat.com","Content-Type":"multipart/mixed; boundary=\"------------HucPM70MB1VZHrmm0ZZpJ0Qn\"","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":"get_tree_range is passed a vrange object,  but it checks if value_range \nsupports the type of the expression rather than the actual range object \nthat is passed in.  It should check the type is supported by the object \ninstead.\n\nBootstrapped on x86_64-pc-linux-gnu with no regressions.  Pushed.\n\nAndrew","diff":"From 76a487a98ed1a3047e8fee61cda4defd4f55f9af Mon Sep 17 00:00:00 2001\nFrom: Andrew MacLeod <amacleod@redhat.com>\nDate: Tue, 3 Feb 2026 11:37:57 -0500\nSubject: [PATCH 1/6] get_tree_range should check the supplied range type.\n\nget_tree_range currently checks whether value_range supports the\nrequested type which is incorrect.  It should check whether the supplied\nvrange supports the type.\n\n\t* value-query.cc (range_query::get_tree_range): Check if return\n\trange R supports the expression type.\n---\n gcc/value-query.cc | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/gcc/value-query.cc b/gcc/value-query.cc\nindex e05f728905e..5fbe8f932a6 100644\n--- a/gcc/value-query.cc\n+++ b/gcc/value-query.cc\n@@ -336,7 +336,7 @@ range_query::get_tree_range (vrange &r, tree expr, gimple *stmt,\n   else\n     type = TREE_TYPE (expr);\n \n-  if (!value_range::supports_type_p (type))\n+  if (!r.supports_type_p (type))\n     {\n       r.set_undefined ();\n       return false;\n-- \n2.45.0\n\n","prefixes":["COMMITTED","1/6"]}