From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by sourceware.org (Postfix) with ESMTPS id B5B903857836 for ; Thu, 28 Apr 2022 16:27:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B5B903857836 Received: by mail-pg1-x530.google.com with SMTP id i62so4394297pgd.6 for ; Thu, 28 Apr 2022 09:27:50 -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=bH9LK5vOqxiu5BAMgcXQvUi6pQL6dehWnkDnxwR73Jk=; b=iCwQeOyFuqS59uDq+p2BOt+5/Owro6J45QWincCd1062nlz2z9DmVwcbp4G75xJRo6 uLJyGXpSqrg3IuUa6viUKt/z5AomQWcsqWREWE6gn87E9aG5zVCe4NNlDXW7qITPgVQF YsD+kLUbWytpuVNWVZQTZZwqpdOnan5FHhYp499vsfUmIAkYuSL85WOytq2EYcMfCXdC CI0C3AgJZstPnF/xLO6bV20KfhvjTCBX/Q0HvPzFwrq/oad/2qfAZ3kXllXBZjLR2JMG NmjtgtYMITqws/RsHEGbOqVNH2HvIlOxaU1klCU/WMgPrnmKaWZ75T6Nwj8VbpccfzCK WlrQ== X-Gm-Message-State: AOAM532AD3o9C3dAno651Ag3BGbdFx228HtD5ITvEJm6lp7cKL+ZBrEm w32/V/fg2UXM+f/XsnHorpLHw+kQA6dfHM9yxmA= X-Google-Smtp-Source: ABdhPJwhyRnc6GGk3JFkZYQWbinmSfTrG2swtuNV3q7zHx6tTpj1ycTa8SIKhtAevr5+MEa67vouk/R5K7u7CzgnTus= X-Received: by 2002:a62:d155:0:b0:50d:3c4e:37ec with SMTP id t21-20020a62d155000000b0050d3c4e37ecmr22733990pfl.60.1651163269450; Thu, 28 Apr 2022 09:27:49 -0700 (PDT) MIME-Version: 1.0 References: <16a40e11-e97f-59bd-9990-9b7e6dee39c9@gmail.com> In-Reply-To: <16a40e11-e97f-59bd-9990-9b7e6dee39c9@gmail.com> From: "H.J. Lu" Date: Thu, 28 Apr 2022 09:27:13 -0700 Message-ID: Subject: Re: [committed] Fix more problems with new linker warnings To: Jeff Law Cc: GCC Patches Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3019.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: 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: Thu, 28 Apr 2022 16:27:52 -0000 On Thu, Apr 28, 2022 at 9:10 AM Jeff Law via Gcc-patches wrote: > > As I mentioned in the original thread, my change to pr94157_0 was an > attempt to avoid these warnings by passing a magic flag to the linker. > Of course we may not be using GNU ld. Or we may be on a non-elf target > where the flag I used doesn't exist. Or we may even be on a ELF target > where those bits weren't added to the linker (frv). Furthermore, we > need fixes to all the nested function tests as well. > > So even though I initially resisted pruning the warning, that seems like > the best course of action. So this patch removes my recent change to > pr94157_0 and instead uses our pruning facilities. > > I'll be pushing this to the trunk and gcc-12 branch. > Can you backport it to other release branches? Thanks. -- H.J.