public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 1/2] sim: ppc: drop unnecessary config includes
@ 2021-09-09  1:08 Mike Frysinger
  2021-09-09  1:08 ` [PATCH 2/2] sim: ppc: align format string settings with common code Mike Frysinger
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2021-09-09  1:08 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-09  1:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-09  1:08 [PATCH 1/2] sim: ppc: drop unnecessary config includes Mike Frysinger
2021-09-09  1:08 ` [PATCH 2/2] sim: ppc: align format string settings with common code Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).