From patchwork Tue Nov 9 19:37:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 47334 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 08BBA3858433 for ; Tue, 9 Nov 2021 19:37:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 08BBA3858433 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1636486660; bh=acAewvjyUcgdwPRMkS2cYrMr2N0kra6EoU7YPjbqfMY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=iVHhp9qzillvKMGKaW9R+aJ8NtHHlfhObaNa5TPk9d/ek/BVC7Sw2iSpsBSFbmYcT /zwp201aLhpux7ueFj/gVQU+SpAUuxivJ5JvNdC5fUaieMOa3GWtNpg/SYYEd+I4vs PxUqE86qGZqwuf65HV0v/C2pajdgrcCmh4sKbnKo= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id AB9043858404 for ; Tue, 9 Nov 2021 19:37:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AB9043858404 Received: by mail-pl1-x629.google.com with SMTP id u17so408095plg.9 for ; Tue, 09 Nov 2021 11:37:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=acAewvjyUcgdwPRMkS2cYrMr2N0kra6EoU7YPjbqfMY=; b=rYDhIkS9WHIkpQnusaAKwdoehlmT2UIYx/AZFOS1gScDnwJOJU7qQf4xfSD/KJkQ0k gKivPBfVOG8H5a0awgHhkOT0NfB9dLATaUdsgWG0ZmE760MEzpnx0kuvC2Sk+YFsckVd 5JQ8L+gu+L2gpg4zfqYNK6j3ernIex4hmGftXc5ykz4lZkrEx0sgijH/AJqBwLoiNUeN gaazTTfuY5H+TkApQr0XiEvtwsPy52lOSXevJ0euAymr7aVIF/G2FpGhrI76PI9YrVhu hfPvcV7BISEuJb5jRUeNb24z0wTKGEC1OhnTFa3mTA4VVmZymR/jl3Wx5J3wDyp1alem qkkg== X-Gm-Message-State: AOAM532+jB2rs3N78lGuaIZiZ7vu/8RkRkEdd3Z6B8LS43v3zsc089pm DjRMyZEf6blQ0f/c5fss5L/MzHjGElU= X-Google-Smtp-Source: ABdhPJxeF4dwK2M/oaoygfsm8ECy+qpnGeXMF7eM8gma5pzdX1bjytm20GXvDrJ/sOn4DEX3CTRvYw== X-Received: by 2002:a17:90a:b382:: with SMTP id e2mr9959696pjr.119.1636486636451; Tue, 09 Nov 2021 11:37:16 -0800 (PST) Received: from gnu-cfl-2.localdomain ([172.58.35.133]) by smtp.gmail.com with ESMTPSA id y8sm2451804pfi.56.2021.11.09.11.37.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Nov 2021 11:37:16 -0800 (PST) Received: from gnu-cfl-2.lan (localhost [IPv6:::1]) by gnu-cfl-2.localdomain (Postfix) with ESMTP id 046FE1A015A for ; Tue, 9 Nov 2021 11:37:15 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH v3] Remove the unused +mkdep/+make-deps/s-proto.S/s-proto-cancel.S Date: Tue, 9 Nov 2021 11:37:14 -0800 Message-Id: <20211109193714.2079954-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3030.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: "H.J. Lu via Libc-alpha" From: "H.J. Lu" Reply-To: "H.J. Lu" Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" Since commit d73f5331ce5370ca5a879229e3842f5de98689cd Author: Roland McGrath Date: Fri May 2 02:20:45 2003 +0000 2003-05-01 Roland McGrath dependency is generated by passing -MD -MF to compiler. Remove the unused +mkdep, +make-deps, s-proto.S and s-proto-cancel.S. --- Makeconfig | 7 ------- Makerules | 9 --------- sysdeps/unix/Makefile | 4 ---- sysdeps/unix/s-proto-cancel.S | 5 ----- sysdeps/unix/s-proto.S | 4 ---- 5 files changed, 29 deletions(-) delete mode 100644 sysdeps/unix/s-proto-cancel.S delete mode 100644 sysdeps/unix/s-proto.S diff --git a/Makeconfig b/Makeconfig index 2fa0884b4e..3fa2f13003 100644 --- a/Makeconfig +++ b/Makeconfig @@ -873,13 +873,6 @@ define elide-stack-protector $(if $(filter $(@F),$(patsubst %,%$(1),$(2))), $(no-stack-protector)) endef -# This is the program that generates makefile dependencies from C source files. -# The -MP flag tells GCC >= 3.2 (which we now require) to produce dummy -# targets for headers so that removed headers don't break the build. -ifndef +mkdep -+mkdep = $(CC) -M -MP -endif - # The program that makes Emacs-style TAGS files. ETAGS := etags diff --git a/Makerules b/Makerules index 3503605a8e..8db0ca1296 100644 --- a/Makerules +++ b/Makerules @@ -459,15 +459,6 @@ compile-stdin.c = $(COMPILE.c) -o $@ -x c - $(compile-mkdep-flags) # get the wrong predefines. S-CPPFLAGS = -DASSEMBLER $(asm-CPPFLAGS) -define +make-deps -$(make-target-directory) -$(+mkdep) $< $(if $(filter %.c,$<),$(CFLAGS)) \ - $(CPPFLAGS) $($(patsubst .%,%,$(suffix $( $(@:.d=.T) -mv -f $(@:.d=.T) $@ -endef - ifneq (,$(objpfx)) # Continuation lines here are dangerous because they introduce spaces! define sed-remove-objpfx diff --git a/sysdeps/unix/Makefile b/sysdeps/unix/Makefile index 2ee3be7237..582baa4bd8 100644 --- a/sysdeps/unix/Makefile +++ b/sysdeps/unix/Makefile @@ -104,10 +104,6 @@ $(common-objpfx)sysd-syscalls: $(..)sysdeps/unix/make-syscalls.sh \ mv -f $@T $@ endif -$(common-objpfx)s-%.d: $(..)sysdeps/unix/s-%.S \ - $(wildcard $(+sysdep_dirs:%=%/syscalls.list)) - $(+make-deps) - postclean-generated += sysd-syscalls endif diff --git a/sysdeps/unix/s-proto-cancel.S b/sysdeps/unix/s-proto-cancel.S deleted file mode 100644 index 042be3c8df..0000000000 --- a/sysdeps/unix/s-proto-cancel.S +++ /dev/null @@ -1,5 +0,0 @@ -/* This file exists just to have its dependencies determined. - Those dependencies are then used for the objects of the cancellable - system calls. */ - -#include diff --git a/sysdeps/unix/s-proto.S b/sysdeps/unix/s-proto.S deleted file mode 100644 index 52a197036c..0000000000 --- a/sysdeps/unix/s-proto.S +++ /dev/null @@ -1,4 +0,0 @@ -/* This file exists just to have its dependencies determined. - Those dependencies are then used for the simple system call objects. */ - -#include