From patchwork Mon Feb 19 10:11:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 128783 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3328193ljc; Mon, 19 Feb 2018 02:11:53 -0800 (PST) X-Google-Smtp-Source: AH8x227OcE6PVQne4QiIGezjc0yheJcCgAD3bLFB8vDUDU+nraEk+AIseb36FCfJx1Q7hCiDpjik X-Received: by 10.98.89.85 with SMTP id n82mr211242pfb.233.1519035112884; Mon, 19 Feb 2018 02:11:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519035112; cv=none; d=google.com; s=arc-20160816; b=piehLjT09CM1a6QF6/BRabKH5hTi49FsE1TuSxfirCJBBbkdc6YdCEkKIsWIBM+HVo hKbHD11yY0q7IDueehAn3M1uLF4AUZfdYEwYiBwzK3i4Tilu/imaM9VvGegBATyXiPiD CXhCzdAr0yY62M5aM+Midc43fLnLbJSWKmqjlK+4ePiDg0DWF+KkdTT8KOk2f1tyAKt4 k17NvlmrMuwnyfdzlDflqn4rkPxC7Pje0LfUOE5CJ/xU/V4Ubiys+cDjk1lpesnzgMrq KLaZl0kSqT5zHnC2X8MqCxIFXlBr1t0oGjyygdfQrEQyoqpu6yS2+n88fRHzJR9hhbrm LABg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:delivered-to:sender :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=hBedJvDoArbqrGjKUe06E3KWx1llVf4O8WjiTZt8VT0=; b=nwlkCrA72eL8cz2DaFj4MP/ePbqkBrZQpofxlkRLN7FVx2fbm9a4yK20OODzF6ZKBT /57jk65HRAkF4SsY3dbU2K+tXcZO/84gCPkWaLoid0r8x8wPiFT2wISvJa/TAv0F9E6n 0gLrGWZhwld8xfPAB2/IDM5xNGOZF6wfJO6uYfip4iPGHhSwe4GnnTN0sSA/fUrWU4s3 YK/c06Rju5Vg7EMnQph0Xl0mASlOKQ9RCN3YnPEwlppuwLgFH2gU5eDs31JQAHr3Vq1x TWdE8gYC2Pcf1N1cW9C/L9Ypjr8+CyHT941NTqhFwLvWqiWLArHDVhzmm1s0VLoAGrSN iJIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=rrTDmXWo; spf=pass (google.com: domain of gcc-patches-return-473523-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-473523-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id 1-v6si3959822plx.93.2018.02.19.02.11.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 02:11:52 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-473523-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=rrTDmXWo; spf=pass (google.com: domain of gcc-patches-return-473523-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-473523-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=ocAb2Gx6idOi3m+yHo9WxxnmkJspiAqOYsbsyD9Q2oI61x KdQSUHDybT2XPyCgx9oOSNBoUQS2U7mT82LR4RD+mBnnE+L69bWAdGC9+fGrUsLi XgbRKcoWx7FI7rTHQ2/ivlvDsKvzTmUhXzNq/fLJyx8tSx4VIfWzlbNp9K9F8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=tnn6amvWEnukAsTSVMQ4kXmosc8=; b=rrTDmXWoPwM2U0ifa905 XjFUez5U+wnaSYwjW86lj+4rmnOfBeSXwQRsBE5GEQm7hXqW37wr3yJ1u4wRVkwl oQsSGmHuM0sJqjezz5vrq6S5HX1GVHeogb36ffAbj+O8jS3BFF+CjZ02rCOKAL+q KouEhruGWH0JbwKfBF5qSeA= Received: (qmail 126051 invoked by alias); 19 Feb 2018 10:11:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 126010 invoked by uid 89); 19 Feb 2018 10:11:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=t X-HELO: mail-ua0-f171.google.com Received: from mail-ua0-f171.google.com (HELO mail-ua0-f171.google.com) (209.85.217.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 19 Feb 2018 10:11:39 +0000 Received: by mail-ua0-f171.google.com with SMTP id x4so5772594uaj.11 for ; Mon, 19 Feb 2018 02:11:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=2nvRdvuErIDWAtVxQD8w1PwVZjJIFm7bEXcH/mOGEnc=; b=OExTqRQYhDs95M9m1yGvtjHIgllfg+bLu7SpxLrzvsG//IRR2GvYVTKilmkOsoVOFB UQrUJhZ4UUCkRRhav24a9cDq3s+g3jDXGNbJQsXdgd9uglS3NNj4tcEpn6I/HnBF0BSO Oaq1yKJOg2n+4d8Ekl0dlkVYaB1ByDF4OsMkBLeAGkaZRv4qn4wo9opdUOACcG4MrJ+f +PGi6X77+tKgwybkKX9Djsn1XaQaj6cgodHqjtGSTKVNkUorD2BQwiaGLz3iIIo6Tgi4 U863YG335KYLH9YJ406QW0EaoQjt4S2/trBaaPvUVOIKocOyFtOYPa04d0HclqVw2ZdR PfZg== X-Gm-Message-State: APf1xPAfrSFalQDUIGKotUIJmZZpi0suuOE6J/+WNwEKIS6xabpCfY8e 6tdH9G1NA0mW0/H5hEsyn0+zBxjYWLusFQp1jXJfR5ed X-Received: by 10.176.33.83 with SMTP id t19mr10086249ual.168.1519035097233; Mon, 19 Feb 2018 02:11:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.136.10 with HTTP; Mon, 19 Feb 2018 02:11:36 -0800 (PST) From: Christophe Lyon Date: Mon, 19 Feb 2018 11:11:36 +0100 Message-ID: Subject: [Patch] Fix lto-wrapper link flags To: gcc Patches X-IsSubscribed: yes Hi, I think there's a typo in gcc/Makefile.in, where lto-wrapper is linked using $(ALL_COMPILERFLAGS) while it should be $(ALL_LINKERFLAGS). I noticed this while playing with linker flags, and not seeing them when linking lto-wrapper. It seems obvious, but maybe I'm missing something? OK for trunk? Thanks, Christophe gcc/ChangeLog: 2018-02-19 Christophe Lyon * Makefile.in (lto-wrapper): Use ALL_LINKERFLAGS. diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 6c37e46..c91499d 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -2151,7 +2151,7 @@ CFLAGS-collect2.o += -DTARGET_MACHINE=\"$(target_noncanonical)\" \ LTO_WRAPPER_OBJS = lto-wrapper.o collect-utils.o ggc-none.o lto-wrapper$(exeext): $(LTO_WRAPPER_OBJS) libcommon-target.a $(LIBDEPS) - +$(LINKER) $(ALL_COMPILERFLAGS) $(LDFLAGS) -o T$@ \ + +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o T$@ \ $(LTO_WRAPPER_OBJS) libcommon-target.a $(LIBS) mv -f T$@ $@