From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id C35A93858C35 for ; Mon, 4 Dec 2023 07:03:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C35A93858C35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C35A93858C35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701673394; cv=none; b=hmE1zojOChYVdKcF07WGj1z9ZdnhJ70i2tWvjRhMSVV5/MMfR2HOyd5GXHlpVNdwSicrp6mdAqZ3CRbFfIqoakB1AYD8B8XPTwQ3Qv/o/QMNFAxv3onNd/3zVAgKFciLOMVVg///AbcIEnQQX3OBDqB4H/MHtqPKaxB3N5cPKe4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701673394; c=relaxed/simple; bh=dcHZKqSJVRPySRH5D4efBqbITbOzO40DYT430Wb6vwg=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=KAJRkdwSOP6YPYadl5u7mEfzNugdK+vG5NDvikK/bI6TdMegprafvlWWK4Ndghm16YWRXTH86Mkbsl/vVP8UWC+8bv3tQCxMIA8btRj5dBKcpiMZuDoDj/WlDcIUOsQNSK5jbuahMdLzagsv9M7sDv1I6+llaBAzOX/exbsVF3M= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 14F84335D6D; Mon, 4 Dec 2023 07:03:12 +0000 (UTC) From: Mike Frysinger To: newlib@sourceware.org Subject: [PATCH 2/2] libgloss: drop $(INCLUDES) when using $(AS) Date: Mon, 4 Dec 2023 02:03:07 -0500 Message-ID: <20231204070307.21360-2-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231204070307.21360-1-vapier@gentoo.org> References: <20231204070307.21360-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: Since $(AS) is the assembler, passing it a list of preprocessor include flags doesn't make much sense. The files aren't preprocessed which means `#include` lines aren't respected, and while it would affect `.include` usage, we never use that, and it's extremely unlikely to change. Plus, it's extremely unlikely we'd have .s files in common places to include vs contained entirely within a specific arch dir, and at that point, it can be included directly (with no flags), or the arch can add the unique set of include paths that it needs for itself. --- libgloss/config/default.mh | 2 +- libgloss/config/ppc.mh | 2 +- libgloss/epiphany/Makefile.in | 2 +- libgloss/hp74x/Makefile.in | 2 +- libgloss/pru/Makefile.in | 2 +- libgloss/spu/Makefile.in | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libgloss/config/default.mh b/libgloss/config/default.mh index 81f0920f97a8..64dc02f05c64 100644 --- a/libgloss/config/default.mh +++ b/libgloss/config/default.mh @@ -14,7 +14,7 @@ AR_FLAGS = rc .C.o: $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< .s.o: - $(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $< + $(AS) $(ASFLAGS_FOR_TARGET) $(ASFLAGS) -o $*.o $< # # GCC knows to run the preprocessor on .S files before it assembles them. diff --git a/libgloss/config/ppc.mh b/libgloss/config/ppc.mh index a3d157bb8fd7..d1bfd7588e55 100644 --- a/libgloss/config/ppc.mh +++ b/libgloss/config/ppc.mh @@ -18,7 +18,7 @@ AR_FLAGS = qc .C.o: $(CC) $(CFLAGS_FOR_TARGET) $(CFLAGS_MRELOCATABLE) -O2 $(INCLUDES) -c $(CFLAGS) $< .s.o: - $(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $< + $(AS) $(ASFLAGS_FOR_TARGET) $(ASFLAGS) -o $*.o $< # # GCC knows to run the preprocessor on .S files before it assembles them. diff --git a/libgloss/epiphany/Makefile.in b/libgloss/epiphany/Makefile.in index 6cf55e25e69e..6670b79a08f1 100644 --- a/libgloss/epiphany/Makefile.in +++ b/libgloss/epiphany/Makefile.in @@ -105,7 +105,7 @@ AR_FLAGS = qc .S.o: $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $(CFLAGS) $< .s.o: - $(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $< + $(AS) $(ASFLAGS_FOR_TARGET) $(ASFLAGS) -o $*.o $< # # GCC knows to run the preprocessor on .S files before it assembles them. diff --git a/libgloss/hp74x/Makefile.in b/libgloss/hp74x/Makefile.in index 12c51bf3bee7..0167e1c62ee3 100644 --- a/libgloss/hp74x/Makefile.in +++ b/libgloss/hp74x/Makefile.in @@ -117,7 +117,7 @@ install: .s.o: $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $< -# $(AS) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $< +# $(AS) $(CFLAGS_FOR_TARGET) -c $< .SUFFIXES: .S .c .o .s .lif # diff --git a/libgloss/pru/Makefile.in b/libgloss/pru/Makefile.in index 7a2f290a827c..fc5905a5eaf4 100644 --- a/libgloss/pru/Makefile.in +++ b/libgloss/pru/Makefile.in @@ -89,7 +89,7 @@ LDFLAGS_FOR_TARGET = ${MULTILIB} .C.o: $(CC) $(CFLAGS_FOR_TARGET) -Os $(INCLUDES) -c $(CFLAGS) $< .s.o: - $(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $< + $(AS) $(ASFLAGS_FOR_TARGET) $(ASFLAGS) -o $*.o $< # # GCC knows to run the preprocessor on .S files before it assembles them. diff --git a/libgloss/spu/Makefile.in b/libgloss/spu/Makefile.in index bc8768baf183..4be0783b9873 100644 --- a/libgloss/spu/Makefile.in +++ b/libgloss/spu/Makefile.in @@ -95,7 +95,7 @@ AR_FLAGS = qc .C.o: $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< .s.o: - $(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $< + $(AS) $(ASFLAGS_FOR_TARGET) $(ASFLAGS) -o $*.o $< # # GCC knows to run the preprocessor on .S files before it assembles them. -- 2.43.0