From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by sourceware.org (Postfix) with ESMTPS id 9E6433858404 for ; Mon, 25 Mar 2024 07:01:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9E6433858404 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9E6433858404 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::534 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711350075; cv=none; b=nas9bF+07RNvI80s7d/d1T78TU3l9l/IeqJF+YZ8GGIUELddMmCdOEHNoWyulWa7SA+8+Ypf30ek1CQHKhFhXQNUjOSYATMNwVXTcsWA2hm72U7QeOicZOVbbqIk5ThXSbRml+JFpbWYd5PkgY7XnXFaDelehFPSPaHCO6jtqCM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711350075; c=relaxed/simple; bh=2OYCkzWcwFvD1BQybogdrlPH8bejP0RKeeqoiu4LX14=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=mV/epSAXuhn49hzTXd0+iKOsIXYYpGQu9ZUE98EqJUu0Tjj7WsM0gDG4l6GpMjBZMhaJtS2Xp0oZzpq5YGKhsBsKW0R/WE432rIjXBvCSeF77sPtRx1u9YsBI+u1gizqa58qSzaYFIYeEyhADzyBT6Az4/VWczXHZ12H47g1bfI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-565c6cf4819so8450585a12.1 for ; Mon, 25 Mar 2024 00:01:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711350072; x=1711954872; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2OYCkzWcwFvD1BQybogdrlPH8bejP0RKeeqoiu4LX14=; b=asQoh8QDQecenE4oLNG/xdT2xH1wZHTeZx1/4y5f/nKSgxD09emGMQAY+fZEHkZKQ3 6lKwDA4Z2zc0Lycw1VyF7bDShjNWUfvkthNuwauvrmCihvr6kYo8euXjsbaMvIh8rZcx OlZ/HY5AwRtg+dMPww6LGWJ61do9LYiuTTovapah4tzS7A/2zuqwq5NN3EB0iqDYyGKv Xuj1FW4G7DfnMx2YiiSsblsjeDJV938WhET8KPXKRPaQG+9sXbIy5765Zo48A19PA6OQ /vPt+lPzSh3nFLNLEhcoDDZHX8sB1DMW2sxAe8LDkPQRs7izcwV6P5RSlegWb0ydwt23 xc9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711350072; x=1711954872; 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=2OYCkzWcwFvD1BQybogdrlPH8bejP0RKeeqoiu4LX14=; b=R70omNL2fUh5VyDvv3p0yokux1tWASklWA1Ja/C1FXKEiMfeGYL53o4G9+hXecelsq wuK9bvhF5Y+Hdc3FkwKCyBqZlhY2mWtJtRQBpH/4PnbLbXe3R5AsU37Dzz5+py02xZdf buLtiVk2OOmpVOXwAmPlnS3a6IKc/rrDgYE1TjETkimmR8AjsM4Mq7aOKvo58ySSu6Kr VcmdMobgUMgxp2gH/wcNzf6e1JbqzLAt3IcJYysxMhcfoN6Hn64tjtP1K2QQbHvb9JKd PmZmTZPnaMYy8k3DCwitIj4PNvHcAOSSYgdyT37VWonMk3e9wecW8UdMVR2vwIeFsmL3 d4Ug== X-Gm-Message-State: AOJu0YxvvdV6p3GtNnRV0eyTH61VwSu0XDpUEeTTLNFoZf4nTsLJCCiy NSGc+HqscNK/6XB1fJPGLKZzOmfZ3svb8fKSgv4vAgvgEKFVnXjWlRokqdc/i5j6ISHIc02YC02 WJo992N5epgwtNFCwk0WPGnO/e31t55zb X-Google-Smtp-Source: AGHT+IElm/sVJGNsdu1ivJPHc/AIlrPgcPgqlCCVu/1MgVVeLNDh1A2S1TQVM/NnVZpReRtNlRF/8ocy5v9UkiAqkG4= X-Received: by 2002:a17:906:ae45:b0:a4a:3b69:66a0 with SMTP id lf5-20020a170906ae4500b00a4a3b6966a0mr605075ejb.15.1711350071811; Mon, 25 Mar 2024 00:01:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: NightStrike Date: Mon, 25 Mar 2024 03:01:00 -0400 Message-ID: Subject: Re: GCC's thin lto PLEASE To: sotrdg sotrdg Cc: gcc-help Content-Type: multipart/alternative; boundary="0000000000001de4e0061476bdf8" X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,KAM_SHORT,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: --0000000000001de4e0061476bdf8 Content-Type: text/plain; charset="UTF-8" On Sun, Mar 24, 2024, 22:18 sotrdg sotrdg via Gcc-help wrote: > gosh. GCC compiles so slow compared to clang with thin lto for C++, since > the translation unit tends to be big, without thin lto, it is extremely > hard to even get code compile nowadays due to its slowness. > Did you try the option "-fno-fat-lto-objects" ? Also, to get significant speedup, use -flto=auto. That will run parallel jobs. Read https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html for more fun. The LTO section is extensive. --0000000000001de4e0061476bdf8--