From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 588AC386183F for ; Wed, 14 Oct 2020 22:22:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 588AC386183F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joseph_myers@mentor.com IronPort-SDR: Gykwj0P2lrg1iWSLV3ewwJcGE80CJ4nf4Qaiy3hzufsyK0/MY0F/rOkwuUVkzzMzpurjENAL9j ZWqLdQdnBXqXdBEKCz1Q8T1EseXUKrNxQod9op7LFH582PQOwM/xOLGn92fyiTuKquF8dlTDHi 0sv+5WqjIVnM2Ec4Lr/IAgYy3txQiV4/kl9X7t8scFgzrPGxne0A6uiBeQdxJPrcTYuWEW9Y/c YROH9xOK7U9uCZGBv4wmsOns5lB+8x5ZKVQpsnGK+giM/ZM2zvyfuSWjiiHJZuCXNJL5LXEN+k mMk= X-IronPort-AV: E=Sophos;i="5.77,376,1596528000"; d="scan'208";a="53954355" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 14 Oct 2020 14:22:47 -0800 IronPort-SDR: BwxyuPb9cFO8raeySLyf15EiwMJMPLWoaFsMjRhR6vtgZXZGliEtTTvMho4Jk8TI2bGrBfYYHM JWtvhKSvoPFdehQ466S+c4RtBeyguipADIG8nYIqaB7AAguczRTvHghXwGeINwUjv2QPVjKACW alL4MYXvWPD7AXFlWVcxhb7voJDJAh9XwqX86MpIXNuoXEjQ5ikGGNwZdczO3RYwFHS5OFct4a 2WkGRk2ClnY/NBmF2/+BCO80irIlGPYTm7NuTAqKzVV0latbOJNWW/TFT0jX3VHA+39BNaRJuB NDY= Date: Wed, 14 Oct 2020 22:22:41 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Tobias Burnus CC: Jakub Jelinek , gcc-patches Subject: Re: [RFC] Automatic linking of libatomic via gcc.c or ...? [PR81358] (dependency for libgomp on nvptx dep, configure overriddable, ...) In-Reply-To: <7d4ca8f0-246a-b759-927f-cbdafd537ea1@codesourcery.com> Message-ID: References: <7d4ca8f0-246a-b759-927f-cbdafd537ea1@codesourcery.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3126.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Wed, 14 Oct 2020 22:22:49 -0000 On Wed, 14 Oct 2020, Tobias Burnus wrote: > Question: Where do you think should it be in the driver? I think it should be somewhere in the expansion of %(link_gcc_c_sequence) (i.e. LINK_GCC_C_SEQUENCE_SPEC, which has various target-specific definitions), since that's what expands to something like -lgcc -lc -lgcc. Maybe after the first -lgcc and before the -lc, since libatomic has references to libc functions. -- Joseph S. Myers joseph@codesourcery.com