From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by sourceware.org (Postfix) with ESMTPS id C64F63858D39 for ; Tue, 9 Nov 2021 11:05:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C64F63858D39 Received: by mail-pg1-x531.google.com with SMTP id s136so18146110pgs.4 for ; Tue, 09 Nov 2021 03:05:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=v5Hc4n6Fd8gk/WaraG6bdh4EEKLTDW0AYecBlxTSz9E=; b=cnBU66ju86V5pns30DyWG4n8dQgOPoriw2Ls7qgVqt74gWzDotV1ukF2hV9Ru3zlL1 NqCdaDsL77+r1QK6/nkWNc1iX4+7DZH7cYCFXw+N+yxVCQWi2rkcp9k4ujbdMHfh48Pf v83HG1xOp84nM0zjJedP4ZOBRWJeKElKae2BOeRnBSo7SGTXn+ZgvEvINSp87jAZGMqE qJXMg7W6dB+G8cAcW0GWlCSzfU8Ed8BwgdofDNPCALJNOlJbRYV0ha5HiIMIx4vbbMmm gTMj4vbemMgdfpi2/SBuYPyyMmZ58Kq7ra5cKUIoTJG3WGqt+yX3ZRI+24bUfUsmRgDp 3k7w== X-Gm-Message-State: AOAM532gQLE6qPKOaRXj50XcSiypTPXyT64zSOzj+jPXpDZ7KpstB/Jn AjKS8UJhNFlv5c8U85hDJHlI0zL44ZU= X-Google-Smtp-Source: ABdhPJwNpp/9GhWZP/292YTd+bdknO3SxIrGH+PMwhvTfcvVJ/FFEODPEoPt0bleMQxe5Lacqnqrjw== X-Received: by 2002:a05:6a00:7d7:b0:494:729c:b58f with SMTP id n23-20020a056a0007d700b00494729cb58fmr6777822pfu.33.1636455912042; Tue, 09 Nov 2021 03:05:12 -0800 (PST) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id z71sm19357816pfc.19.2021.11.09.03.05.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Nov 2021 03:05:11 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 3D27C1140887; Tue, 9 Nov 2021 21:35:08 +1030 (ACDT) Date: Tue, 9 Nov 2021 21:35:08 +1030 From: Alan Modra To: Adhemerval Zanella Cc: Fangrui Song , libc-alpha@sourceware.org, Nemanja Ivanovic , Bill Schmidt , Tulio Magno Quites Machado Filho Subject: Re: [PATCH] powerpc: Define USE_PPC64_NOTOC iff compiler and linker also supports it Message-ID: References: <20211108113316.8867-1-adhemerval.zanella@linaro.org> <20211108224808.iqpddl4vgnx2gwol@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211108224808.iqpddl4vgnx2gwol@google.com> X-Spam-Status: No, score=-3032.6 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2021 11:05:14 -0000 I have a question about powerpc64/ppc-mcount.S. Why is the assembly wrapper using ENTRY and a NOTOC call? By using ENTRY you are saying that calls to _mcount must have r2 valid. Given that r2 is valid, why then use NOTOC? -- Alan Modra Australia Development Lab, IBM