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(-)
@@ -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
{
long rlx_forward;
long rlx_backward;
unsigned char rlx_length;
relax_substateT rlx_more;
};
struct relax_type;
typedef struct frag fragS;
@@ -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
{
long rlx_forward;
long rlx_backward;
unsigned char rlx_length;
relax_substateT rlx_more;
};
typedef struct relax_type relax_typeS;
extern const int md_reloc_size;