From patchwork Fri Dec 13 16:19:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Hainque X-Patchwork-Id: 1209256 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-515906-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="mfQDsZmz"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47ZG8S5G6Xz9sPT for ; Sat, 14 Dec 2019 03:19:34 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:subject:date:message-id:cc:to:mime-version; q=dns; s=default; b=DuavQUzi8NDTGAV2JH2rboBoftqD79gx08UJ1deKazOalU4YMu UVOXwTRNXmApLfumyJZ5UuuKn9gq1JhlJlnw7xdUMubSQfgwHQ/SoK5b9jlGGVHk iWHhcQHf9iO+wUaUlZ4thJHGZgDtDHa1ck2PZhl3jzwwWEdmGpxfh08nQ= 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:from :content-type:subject:date:message-id:cc:to:mime-version; s= default; bh=71eNLXLPTSzDgh45tz0Zua9DUxw=; b=mfQDsZmz3Q/Yi3dPC4df 6+6SjvMcf/hDBRfmmSau59uFjvvAx87FL4vsSKtKgOV+mlsfvbG9P7BXPpVulPVM QXbeoglwb2+KBpfQP6tzu+4uG3ATW52ri5NlQa+YpUUb1BatbIa41PTmi0AVMzWY omUGjdn6HdfSEB9+H13taEA= Received: (qmail 60939 invoked by alias); 13 Dec 2019 16:19:27 -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 60928 invoked by uid 89); 13 Dec 2019 16:19:26 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Dec 2019 16:19:25 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 585FE81A12; Fri, 13 Dec 2019 17:19:23 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12pzNHCIz3H9; Fri, 13 Dec 2019 17:19:23 +0100 (CET) Received: from [192.168.0.12] (bny92-4-82-228-126-192.fbx.proxad.net [82.228.126.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 12281818D7; Fri, 13 Dec 2019 17:19:22 +0100 (CET) From: Olivier Hainque Subject: [patch] Simplify the compilation commands for config/vxworks.c Date: Fri, 13 Dec 2019 17:19:22 +0100 Message-Id: <0BE7DF1F-3463-4B63-BA66-BE6B71AF8070@adacore.com> Cc: Olivier Hainque , Joel Brobecker To: GCC Patches Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) The patch by Joel setting up TARGET_C_PREINCLUDE exposed a possibility to simplify/robustify the compilation commands use for another source in the t-vxworks Makefile fragment. We now leverage $(COMPILE) and $(POSTCOMPILE) instead of replicating them manually for vxworks.c. Tested in accordance with the description in https://gcc.gnu.org/ml/gcc-patches/2019-12/msg00911.html Committing to mainline. Olivier 2019-12-13 Olivier Hainque * config/t-vxworks: Rework the vxworks.o compilation rules to use $(COMPILE). gcc/config/t-vxworks | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/t-vxworks b/gcc/config/t-vxworks index 69b3a2e3199..ce30338ed13 100644 --- a/gcc/config/t-vxworks +++ b/gcc/config/t-vxworks @@ -16,9 +16,9 @@ # along with GCC; see the file COPYING3. If not see # . -vxworks.o: $(srcdir)/config/vxworks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ - $(TARGET_H) output.h $(TM_H) - $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< +vxworks.o: $(srcdir)/config/vxworks.c + $(COMPILE) $< + $(POSTCOMPILE) vxworks-c.o: $(srcdir)/config/vxworks-c.c $(COMPILE) $<