Skip to content

Commit

Permalink
remove some duplicate #include's.
Browse files Browse the repository at this point in the history
  • Loading branch information
amodra committed Jun 7, 2006
1 parent 9622b05 commit ebd1c87
Show file tree
Hide file tree
Showing 70 changed files with 143 additions and 253 deletions.
73 changes: 73 additions & 0 deletions gas/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,76 @@
2006-06-07 Alan Modra <[email protected]>
Ladislav Michl <[email protected]>

* app.c: Don't include headers already included by as.h.
* as.c: Likewise.
* atof-generic.c: Likewise.
* cgen.c: Likewise.
* dwarf2dbg.c: Likewise.
* expr.c: Likewise.
* input-file.c: Likewise.
* input-scrub.c: Likewise.
* macro.c: Likewise.
* output-file.c: Likewise.
* read.c: Likewise.
* sb.c: Likewise.
* config/bfin-lex.l: Likewise.
* config/obj-coff.h: Likewise.
* config/obj-elf.h: Likewise.
* config/obj-som.h: Likewise.
* config/tc-arc.c: Likewise.
* config/tc-arm.c: Likewise.
* config/tc-avr.c: Likewise.
* config/tc-bfin.c: Likewise.
* config/tc-cris.c: Likewise.
* config/tc-d10v.c: Likewise.
* config/tc-d30v.c: Likewise.
* config/tc-dlx.h: Likewise.
* config/tc-fr30.c: Likewise.
* config/tc-frv.c: Likewise.
* config/tc-h8300.c: Likewise.
* config/tc-hppa.c: Likewise.
* config/tc-i370.c: Likewise.
* config/tc-i860.c: Likewise.
* config/tc-i960.c: Likewise.
* config/tc-ip2k.c: Likewise.
* config/tc-iq2000.c: Likewise.
* config/tc-m32c.c: Likewise.
* config/tc-m32r.c: Likewise.
* config/tc-maxq.c: Likewise.
* config/tc-mcore.c: Likewise.
* config/tc-mips.c: Likewise.
* config/tc-mmix.c: Likewise.
* config/tc-mn10200.c: Likewise.
* config/tc-mn10300.c: Likewise.
* config/tc-msp430.c: Likewise.
* config/tc-mt.c: Likewise.
* config/tc-ns32k.c: Likewise.
* config/tc-openrisc.c: Likewise.
* config/tc-ppc.c: Likewise.
* config/tc-s390.c: Likewise.
* config/tc-sh.c: Likewise.
* config/tc-sh64.c: Likewise.
* config/tc-sparc.c: Likewise.
* config/tc-tic30.c: Likewise.
* config/tc-tic4x.c: Likewise.
* config/tc-tic54x.c: Likewise.
* config/tc-v850.c: Likewise.
* config/tc-vax.c: Likewise.
* config/tc-xc16x.c: Likewise.
* config/tc-xstormy16.c: Likewise.
* config/tc-xtensa.c: Likewise.
* config/tc-z80.c: Likewise.
* config/tc-z8k.c: Likewise.
* macro.h: Don't include sb.h or ansidecl.h.
* sb.h: Don't include stdio.h or ansidecl.h.
* cond.c: Include sb.h.
* itbl-lex.l: Include as.h instead of other system headers.
* itbl-parse.y: Likewise.
* itbl-ops.c: Similarly.
* itbl-ops.h: Don't include as.h or ansidecl.h.
* config/bfin-defs.h: Don't include bfd.h or as.h.
* config/bfin-parse.y: Include as.h instead of other system headers.

2006-06-06 Ben Elliston <[email protected]>
Anton Blanchard <[email protected]>

Expand Down
5 changes: 2 additions & 3 deletions gas/app.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This is the Assembler Pre-Processor
Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003
1999, 2000, 2001, 2002, 2003, 2006
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
Expand All @@ -26,8 +26,7 @@
# <number> <filename> <garbage> into a .line <number>\n.file <filename>
pair. This needs better error-handling. */

#include <stdio.h>
#include "as.h" /* For BAD_CASE() only. */
#include "as.h"

#if (__STDC__ != 1)
#ifndef const
Expand Down
5 changes: 1 addition & 4 deletions gas/as.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* as.c - GAS main program.
Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004, 2005
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
Expand Down Expand Up @@ -31,8 +31,6 @@
Since no-one else says they will support them in future: I
don't support them now. */

#include "ansidecl.h"

#define COMMON

#include "as.h"
Expand All @@ -42,7 +40,6 @@
#include "macro.h"
#include "dwarf2dbg.h"
#include "dw2gencfi.h"
#include "hash.h"
#include "bfdver.h"

#ifdef HAVE_ITBL_CPU
Expand Down
4 changes: 1 addition & 3 deletions gas/atof-generic.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* atof_generic.c - turn a string of digits into a Flonum
Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000,
2001, 2003, 2005 Free Software Foundation, Inc.
2001, 2003, 2005, 2006 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
Expand All @@ -19,8 +19,6 @@
Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */

#include <string.h>

#include "as.h"
#include "safe-ctype.h"

Expand Down
9 changes: 3 additions & 6 deletions gas/cgen.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* GAS interface for targets using CGEN: Cpu tools GENerator.
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
Expand All @@ -19,12 +19,9 @@
Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */

#include <setjmp.h>
#include "ansidecl.h"
#include "libiberty.h"
#include "bfd.h"
#include "as.h"
#include "symcat.h"
#include "cgen-desc.h"
#include "as.h"
#include "subsegs.h"
#include "cgen.h"
#include "dwarf2dbg.h"
Expand Down
3 changes: 2 additions & 1 deletion gas/cond.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* cond.c - conditional assembly pseudo-ops, and .include
Copyright 1990, 1991, 1992, 1993, 1995, 1997, 1998, 2000, 2001, 2002,
2003 Free Software Foundation, Inc.
2003, 2006 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
Expand All @@ -20,6 +20,7 @@
02110-1301, USA. */

#include "as.h"
#include "sb.h"
#include "macro.h"

#include "obstack.h"
Expand Down
5 changes: 1 addition & 4 deletions gas/config/bfin-defs.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* bfin-defs.h ADI Blackfin gas header file
Copyright 2005
Copyright 2005, 2006
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
Expand All @@ -22,9 +22,6 @@
#ifndef BFIN_PARSE_H
#define BFIN_PARSE_H

#include <bfd.h>
#include "as.h"

#define PCREL 1
#define CODE_FRAG_SIZE 4096 /* 1 page. */

Expand Down
6 changes: 2 additions & 4 deletions gas/config/bfin-lex.l
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* bfin-lex.l ADI Blackfin lexer
Copyright 2005
Copyright 2005, 2006
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
Expand All @@ -20,11 +20,9 @@
02110-1301, USA. */
%{

#include <stdlib.h>
#include <string.h>
#include "as.h"
#include "bfin-defs.h"
#include "bfin-parse.h"
#include "as.h"

static long parse_int (char **end);
static int parse_halfreg (Register *r, int cl, char *hr);
Expand Down
5 changes: 2 additions & 3 deletions gas/config/bfin-parse.y
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* bfin-parse.y ADI Blackfin parser
Copyright 2005
Copyright 2005, 2006
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
Expand All @@ -20,8 +20,7 @@
02110-1301, USA. */
%{

#include <stdio.h>
#include <stdarg.h>
#include "as.h"
#include <obstack.h>

#include "bfin-aux.h" // opcode generating auxiliaries
Expand Down
4 changes: 1 addition & 3 deletions gas/config/obj-coff.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* coff object file format
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004, 2005
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This file is part of GAS.
Expand All @@ -27,8 +27,6 @@

#include "targ-cpu.h"

#include "bfd.h"

/* This internal_lineno crap is to stop namespace pollution from the
bfd internal coff headerfile. */
#define internal_lineno bfd_internal_lineno
Expand Down
6 changes: 1 addition & 5 deletions gas/config/obj-elf.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* ELF object file format.
Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
2002, 2003, 2004 Free Software Foundation, Inc.
2002, 2003, 2004, 2006 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
Expand Down Expand Up @@ -34,8 +34,6 @@
#define OUTPUT_FLAVOR bfd_target_elf_flavour
#endif

#include "bfd.h"

#define BYTES_IN_WORD 4 /* for now */
#include "bfd/elf-bfd.h"

Expand Down Expand Up @@ -90,8 +88,6 @@ struct elf_obj_sy
#define TARGET_SYMBOL_FIELDS ELF_TARGET_SYMBOL_FIELDS
#endif

/* #include "targ-cpu.h" */

#ifndef FALSE
#define FALSE 0
#define TRUE !FALSE
Expand Down
3 changes: 1 addition & 2 deletions gas/config/obj-som.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* SOM object file format.
Copyright 1993, 1994, 1995, 1998, 2000, 2004, 2005
Copyright 1993, 1994, 1995, 1998, 2000, 2004, 2005, 2006
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
Expand Down Expand Up @@ -27,7 +27,6 @@

#define OBJ_SOM 1

#include "bfd.h"
#include "bfd/som.h"
#include "targ-cpu.h"

Expand Down
2 changes: 0 additions & 2 deletions gas/config/tc-arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */

#include <stdio.h>
#include "libiberty.h"
#include "as.h"
#include "struc-symbol.h"
#include "safe-ctype.h"
Expand Down
8 changes: 1 addition & 7 deletions gas/config/tc-arm.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* tc-arm.c -- Assemble for the ARM
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005
2004, 2005, 2006
Free Software Foundation, Inc.
Contributed by Richard Earnshaw ([email protected])
Modified by David Taylor ([email protected])
Expand All @@ -25,18 +25,12 @@
Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */

#include <string.h>
#include <limits.h>
#define NO_RELOC 0
#include "as.h"
#include "safe-ctype.h"

/* Need TARGET_CPU. */
#include "config.h"
#include "subsegs.h"
#include "obstack.h"
#include "symbols.h"
#include "listing.h"

#include "opcode/arm.h"

Expand Down
2 changes: 0 additions & 2 deletions gas/config/tc-avr.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@
the Free Software Foundation, 51 Franklin Street - Fifth Floor,
Boston, MA 02110-1301, USA. */

#include <stdio.h>
#include "as.h"
#include "safe-ctype.h"
#include "subsegs.h"
#include "libiberty.h"

struct avr_opcodes_s
{
Expand Down
7 changes: 1 addition & 6 deletions gas/config/tc-bfin.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tc-bfin.c -- Assembler for the ADI Blackfin.
Copyright 2005
Copyright 2005, 2006
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
Expand All @@ -21,7 +21,6 @@

#include "as.h"
#include "struc-symbol.h"
#include "obj-elf.h"
#include "bfin-defs.h"
#include "obstack.h"
#include "safe-ctype.h"
Expand Down Expand Up @@ -940,11 +939,7 @@ bfin_start_line_hook ()

/* Special extra functions that help bfin-parse.y perform its job. */

#include <stdio.h>
#include <assert.h>
#include <obstack.h>
#include <bfd.h>
#include "bfin-defs.h"

struct obstack mempool;

Expand Down
4 changes: 2 additions & 2 deletions gas/config/tc-cris.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* tc-cris.c -- Assembler code for the CRIS CPU core.
Copyright 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
Copyright 2000, 2001, 2002, 2003, 2004, 2006
Free Software Foundation, Inc.
Contributed by Axis Communications AB, Lund, Sweden.
Originally written for GAS 1.38.1 by Mikael Asker.
Expand All @@ -22,7 +23,6 @@
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */

#include <stdio.h>
#include "as.h"
#include "safe-ctype.h"
#include "subsegs.h"
Expand Down
3 changes: 1 addition & 2 deletions gas/config/tc-d10v.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tc-d10v.c -- Assembler code for the Mitsubishi D10V
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
Expand All @@ -19,7 +19,6 @@
the Free Software Foundation, 51 Franklin Street - Fifth Floor,
Boston, MA 02110-1301, USA. */

#include <stdio.h>
#include "as.h"
#include "safe-ctype.h"
#include "subsegs.h"
Expand Down
Loading

0 comments on commit ebd1c87

Please sign in to comment.