⛏️ index : buildtools.git

author Ingo Weinhold <ingo_weinhold@gmx.de> 2005-11-19 21:01:04.0 +00:00:00
committer Ingo Weinhold <ingo_weinhold@gmx.de> 2005-11-19 21:01:04.0 +00:00:00
commit
30d2be341da96855a8dde506ffd1b0b99c4c2498 [patch]
tree
4f757bac0cb30b74150c31ad71649162055d7f2f
parent
3b60319274d696c0988d86b34e6eaad306b486cf
download
30d2be341da96855a8dde506ffd1b0b99c4c2498.tar.gz

Patch by Oliver to allow allow building with gcc 4.

git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15035 a95241bf-73f2-0310-859d-f6bbb57e9c96

Diff

 binutils/gas/as.h | 20 ++++++++++++++++++++
 binutils/gas/tc.h | 17 -----------------
 2 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/binutils/gas/as.h b/binutils/gas/as.h
index 890ecd8..531c943 100644
--- a/binutils/gas/as.h
+++ b/binutils/gas/as.h
@@ -605,6 +605,26 @@
struct expressionS;
struct fix;
typedef struct symbol symbolS;

/* JF moved this here [tc.h] from as.h under the theory that nobody except 
   MACHINE.c and write.c care about it anyway.  */
/* [zooey]: the above no longer holds with gcc4, as it keeps bugging about
            incomplete element types in arrays, if relax_type isn't defined
            here. So I moved the definition back from tc.h to here. */
struct relax_type
{
  /* Forward reach. Signed number. > 0.  */
  long rlx_forward;
  /* Backward reach. Signed number. < 0.  */
  long rlx_backward;

  /* Bytes length of this address.  */
  unsigned char rlx_length;

  /* Next longer relax-state.  0 means there is no 'next' relax-state.  */
  relax_substateT rlx_more;
};

struct relax_type;
typedef struct frag fragS;

diff --git a/binutils/gas/tc.h b/binutils/gas/tc.h
index f4a2826..6340263 100644
--- a/binutils/gas/tc.h
+++ b/binutils/gas/tc.h
@@ -24,23 +24,6 @@

extern const pseudo_typeS md_pseudo_table[];

/* JF moved this here from as.h under the theory that nobody except MACHINE.c
   and write.c care about it anyway.  */

struct relax_type
{
  /* Forward reach. Signed number. > 0.  */
  long rlx_forward;
  /* Backward reach. Signed number. < 0.  */
  long rlx_backward;

  /* Bytes length of this address.  */
  unsigned char rlx_length;

  /* Next longer relax-state.  0 means there is no 'next' relax-state.  */
  relax_substateT rlx_more;
};

typedef struct relax_type relax_typeS;

extern const int md_reloc_size;	/* Size of a relocation record */