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
This commit is contained in:
Ingo Weinhold
2005-11-19 21:01:04 +00:00
parent 3b60319274
commit 30d2be341d
2 changed files with 20 additions and 17 deletions

View File

@@ -605,6 +605,26 @@ void print_dependencies (void);
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;

View File

@@ -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 */