Don't include bfd/sysdep.h for gas files

Message ID 20210331124548.GB5425@bubble.grove.modra.org
State New
Headers show
Series
  • Don't include bfd/sysdep.h for gas files
Related show

Commit Message

Alan Modra via Binutils March 31, 2021, 12:45 p.m.
* itbl-lex-wrapper.c: Include as.h not sysdep.h.
	* config/bfin-lex-wrapper.c: Likewise.
	* itbl-lex.l: Don't include as.h.
	* config/bfin-lex.l: Likewise.


-- 
Alan Modra
Australia Development Lab, IBM

Patch

diff --git a/gas/config/bfin-lex-wrapper.c b/gas/config/bfin-lex-wrapper.c
index 010c37cbba2..9c08e8c48cf 100644
--- a/gas/config/bfin-lex-wrapper.c
+++ b/gas/config/bfin-lex-wrapper.c
@@ -18,8 +18,8 @@ 
    02110-1301, USA.  */
 
 /* The C source file generated by flex includes stdio.h before any of
-   the C code in bfin-lex.l.  Make sure we include sysdep.h first, so
+   the C code in bfin-lex.l.  Make sure we include as.h first, so
    that config.h can set the correct values for various things.  */
 
-#include "sysdep.h"
+#include "as.h"
 #include "config/bfin-lex.c"
diff --git a/gas/config/bfin-lex.l b/gas/config/bfin-lex.l
index be72a18e934..eaaaf742703 100644
--- a/gas/config/bfin-lex.l
+++ b/gas/config/bfin-lex.l
@@ -20,8 +20,6 @@ 
    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
    02110-1301, USA.  */
 %{
-
-#include "as.h"
 #include "bfin-defs.h"
 #include "config/bfin-parse.h"
 
diff --git a/gas/itbl-lex-wrapper.c b/gas/itbl-lex-wrapper.c
index 385caddd924..01ee7a0c071 100644
--- a/gas/itbl-lex-wrapper.c
+++ b/gas/itbl-lex-wrapper.c
@@ -18,8 +18,8 @@ 
    02110-1301, USA.  */
 
 /* The C source file generated by flex includes stdio.h before any of
-   the C code in itbl-lex.l.  Make sure we include sysdep.h first, so
+   the C code in itbl-lex.l.  Make sure we include as.h first, so
    that config.h can set the correct values for various things.  */
 
-#include "sysdep.h"
+#include "as.h"
 #include "itbl-lex.c"
diff --git a/gas/itbl-lex.l b/gas/itbl-lex.l
index 9b1e6f0d131..03ef518a01f 100644
--- a/gas/itbl-lex.l
+++ b/gas/itbl-lex.l
@@ -21,7 +21,6 @@ 
    02110-1301, USA.  */
 
 %{
-#include "as.h"
 #include "itbl-lex.h"
 #include <itbl-parse.h>