From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 7E5873858C52 for ; Mon, 4 Jul 2022 08:42:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7E5873858C52 Received: by mail-wr1-x433.google.com with SMTP id z12so2783259wrq.7 for ; Mon, 04 Jul 2022 01:42:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EaVsAT2OeVGDx7ZsoY8qQobSwYwuscpQ8cFn0SNHkIc=; b=T+Q3Lrf9rLWq5juunIvcFlsF13KVy2mSAZLADxVMb/REWpTQI38cXwDGR9XQbfvuCT eT8Zc/vzOQSK/qjhqWrSzE+C2Xn08B+qGXR01mWPzbR5Q1wimLSZKgWA2CE5BXQ45ly4 m1onG1ClJyOUCNzniKW0CoXyB46PQs7re6wf0rHcUgZPQGRRIgIHkARAT+SttHEIdJRv tovvriUEK/VVhXUheE0MhkkvM7IV9jpJkOFVeHi26FLPbsTdotSXMuXCaGcAgH06u9CX fc3ObrHBV3T7V4e8+Y6crjpqf11YrCHXYYcXKtFiZtd7U/CIzQjQQUURZlETx3e4d2ZV qQIw== X-Gm-Message-State: AJIora/5lY6/00lvgj2w4kTIaHAktVHp7t4Bo7+0AbbSNZ9ql0+6pdrr 7mHYEMRKbWkNhfhq6y3aJl4y9w== X-Google-Smtp-Source: AGRyM1ty0mRjDz1o7z1IRrQ8T0olk5AZzhLUJsi24X8suUAKKJj9Gotqyh8PLtg8SO9DBAFmIuzD6w== X-Received: by 2002:a05:6000:15c1:b0:21b:ad5e:2798 with SMTP id y1-20020a05600015c100b0021bad5e2798mr25847304wry.237.1656924158348; Mon, 04 Jul 2022 01:42:38 -0700 (PDT) Received: from fomalhaut.localnet ([2a01:e0a:8d5:d990:e654:e8ff:fe8f:2ce6]) by smtp.gmail.com with ESMTPSA id h2-20020adff4c2000000b0021d221daccfsm16892870wrp.78.2022.07.04.01.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 01:42:37 -0700 (PDT) From: Eric Botcazou X-Google-Original-From: Eric Botcazou To: Richard Biener Cc: GCC Patches Subject: Re: [PATCH] Use default lower bound for vector types in debug info Date: Mon, 04 Jul 2022 10:42:36 +0200 Message-ID: <3176742.aeNJFYEL58@fomalhaut> In-Reply-To: References: <4409263.LvFx2qVVIh@fomalhaut> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2022 08:42:41 -0000 > For late generated vector types this might result in inconsistencies with > early (user) generated types when using LTO. Is that a problem? That's no different with regular array types. > Is there context available somehow so we can do like the is_ overloads > on a decl and use a default according to that? Not sure, the only safe thing to do would be to return -1 as the default lower bound if flag_generate_lto. -- Eric Botcazou