From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by sourceware.org (Postfix) with ESMTPS id 5732C3858C52 for ; Mon, 4 Jul 2022 09:09:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5732C3858C52 Received: by mail-qk1-x736.google.com with SMTP id z12so6399596qki.3 for ; Mon, 04 Jul 2022 02:09:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XI3lcGjPUX3gee3D5ZrjsmhE6aXew8LA1oRZb3ijPqc=; b=q9ujaR0N2KnYcfAi4HR5vmNqpUa4yA1D5fJK7qjSvHPA2zZYwMrRWp8JH1vBJLpHaB rsBlDmm7DFvX9bXzjaUSEtMCMDC/RrM0gPJu6MtnsKTTTilvd3/cj9989QWV7F71zPcw y8jBW1k6bKtaqb3IEpzWXEfV3JTo0LcywnB26fHSXEtfq4Y59eOuUe03ohHzhNU6q0+0 63fT90/7fWJUmDEr/A6wklkegcEPZPN/7k7Z70aORYVV1BCZqNIlkFiDo5iqefXc+xmr ZclGwnFiptSLjjg4RmSWgt8RCcU3d2bwppiTkfg6Q+Vz+i4Arydmg3kLTNWQ0XFdM+k2 ie8w== X-Gm-Message-State: AJIora/+J5kEhE8dxeWYhu1OSDYpgUcKEguc68AugxvXkS82tCPCMUJz EJMuAREn2gDizFEz1Jfo/cNkN7WyNBEf3jKffzQHv1gb X-Google-Smtp-Source: AGRyM1sPmCbgogyijsfMYH3PT4mZx+9h9pZfC1iDNtuF7Ka/QfNNs3uHP3RXKqLcXB0n/aSAiXh/IPOdMMYXyFr3g1w= X-Received: by 2002:a05:620a:1919:b0:6af:20e6:346c with SMTP id bj25-20020a05620a191900b006af20e6346cmr19450601qkb.627.1656925744658; Mon, 04 Jul 2022 02:09:04 -0700 (PDT) MIME-Version: 1.0 References: <4409263.LvFx2qVVIh@fomalhaut> <3176742.aeNJFYEL58@fomalhaut> In-Reply-To: <3176742.aeNJFYEL58@fomalhaut> From: Richard Biener Date: Mon, 4 Jul 2022 11:08:53 +0200 Message-ID: Subject: Re: [PATCH] Use default lower bound for vector types in debug info To: Eric Botcazou Cc: GCC Patches Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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 09:09:06 -0000 On Mon, Jul 4, 2022 at 10:42 AM Eric Botcazou wrote: > > > 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. I'm not sure - almost all types the user can actually inspect should have early debug info. > > 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. Rather if in_lto_p, but yes, this sounds like a good thing to do. OTOH if the used language is uniform LTO will pick that, it will "merge" C/C++ and otherwise use C as fallback in a mixed environment. So the patch is quite likely OK as-is. Which means .. OK. Thanks, Richard. > -- > Eric Botcazou > >