From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by sourceware.org (Postfix) with ESMTPS id CC4183858C5F for ; Fri, 10 Feb 2023 08:38:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CC4183858C5F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-x232.google.com with SMTP id t5so3886156oiw.1 for ; Fri, 10 Feb 2023 00:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zrkyrtYRn8ltILjMeAwzPC+F5p3vs7z8+SWnBSYndb0=; b=OXdbXlpzlDC97bTXRk/1km8h9o5w/nf/8bRa65DFioYINlhcR5EN6pSUdU6A0dlHhd gqpcBV/JMVEch8aGc6op0j9xk/i6LytlG+8DHGLEqFtjhFMZvjdA2nhmzOjcQcYfCxnJ StwrRmTDLH7ZmyqSbsuyXD9qNQgNwaED1jYSriU320suP8xQ97h1A+WfcPpyc6I4B4Rb Ug2nz5DcV9oavhPO3I6PPpacRmIUqr7vZrDASdtDAczqxMGGXOjwjnRHWC2OZlfkDtV2 f1Zb92eaUjc89ndeKQZGg0/eHCtcnlQthLeVwqOnibR+UwutZ+ANoS4gCiJYJaIEW8yX Gtdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zrkyrtYRn8ltILjMeAwzPC+F5p3vs7z8+SWnBSYndb0=; b=4CgVocuisoEAAEKoepAxbdySVLwD/aPiJWWLpGdkLLhl5VPihGJyAB9VsUxLp5s8aX oVfJBAzgR0AxDaeUvuRU9QpUgQ3B50At08WBbr5o0F0dYkOxBhGEANd1EkFUFbMKMNid RkVYugYdjEUka/HkII5JhfvcKTkIq9i8i3zlHMZ8AFbq7SN9S5PeWmNbyQZj4U+34R1K 2Z4ICCHUI/cQxr9Rd3dO9N30NilI38TM8F2UYcHKsL2ASu7FxaTECpkR4Y+MLItbqGM4 S+tHj9bcQ9cVL4hNoNRXXUhrBpQMBm795fJHfFS0sj/0YK/JyojP/OEQedVwKayeBmBC tOmA== X-Gm-Message-State: AO0yUKXZ7LOfWUEymrMobWU2GFYITo/sSV+zkr6Un798hRXsFq//T16x Ho7usADhFm0eNOgFEPt0yUBRMXt+oeuJjw4YnocwLsgw X-Google-Smtp-Source: AK7set8FrIjbGwc/J8o+0hlgkwfsIx6D5UzBqzMohzMT6qdPuo3e/04nHZDTtESZzSJB1x84kQxFc1YlGl4NQsq75y0= X-Received: by 2002:a05:6808:482:b0:378:9226:3ce6 with SMTP id z2-20020a056808048200b0037892263ce6mr1286840oid.299.1676018287996; Fri, 10 Feb 2023 00:38:07 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Rimvydas Jasinskas Date: Fri, 10 Feb 2023 10:38:04 +0200 Message-ID: Subject: Re: Support for NOINLINE attribute To: sgk@troutmask.apl.washington.edu Cc: Rimvydas Jasinskas via Fortran Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 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 autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, Feb 10, 2023 at 10:24 AM Steve Kargl via Fortran wrote: > > would it be possible to extend gfortran attribute support to handle > > NOINLINE too? Like: "!GCC$ ATTRIBUTES noinline :: ...". > > It looks to me like you are conflating three independent topics. > What does NOINLINE have to do with WEAK? What does WEAK have > to do with NORETURN? As I wrote these are optional (different issues, quite useful to have but still easy to work around with different means), the main issue is still missing NOINLINE for -flto. > More importantly what is the effect of NOINLINE if a user > does not specify the -flto option? Does this block inlining > regardless of LTO? > > -- > steve Yes, there is no way to differentiate between LTO and non-LTO compilations (at least from what I have seen in the code). As long as subroutines/functions are in separate compilation units, this has no effect for non-LTO builds anyway. Main issue is to deal with unintentional over inlining between different compilation units with lto1 backend. Best regards, Rimvydas