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 7F3153857817 for ; Thu, 9 Sep 2021 01:08:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7F3153857817 From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH 1/2] sim: ppc: drop unnecessary config includes Date: Wed, 8 Sep 2021 21:08:30 -0400 Message-Id: <20210909010831.13078-1-vapier@gentoo.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2021 01:08:45 -0000 This file is compiled for the --host & --build system which leads to including the configure generated config.h in both environments. This obviously doesn't work when the two targets don't look alike at all and can cause build failures here (e.g. a mingw host & a linux build). Since we don't actually need any config settings in this very simple file, drop the includes entirely. --- sim/ppc/filter_filename.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sim/ppc/filter_filename.c b/sim/ppc/filter_filename.c index b59ca21ca559..fb2457c0b2c2 100644 --- a/sim/ppc/filter_filename.c +++ b/sim/ppc/filter_filename.c @@ -17,10 +17,6 @@ */ -/* This must come before any other includes. */ -#include "defs.h" - -#include "ppc-config.h" #include "filter_filename.h" /* Shorten traces by eliminating the directory component to filenames. */ -- 2.33.0