binutils/gas compilation problems on i386.

From: Eygene Ryabinkin <rea-fbsd_at_codelabs.ru>
Date: Mon, 25 Jun 2007 17:50:08 +0400
Good day.

Checked out today's -CURRENT and noticed that the gas
utility fails to be built.  The problem is in config/tc-i386.h:451
(and all files are relative to /usr/src/contrib/binutils/gas):
-----
extern const struct relax_type md_relax_table[];
-----
'struct relax_type' is opaque when only as.h is used (line 608):
-----
struct relax_type;
-----
And, for example, file app.c uses only "as.h", but not the tc.h.

Commenting the line 451 in config/tc-i386.h and adding the line
-----
extern const relax_typeS TC_GENERIC_RELAX_TABLE[];
-----
to the write.c:2024 seems to solve the problem, but it looks
like a hack.

Any comments on this?
-- 
Eygene
Received on Mon Jun 25 2007 - 11:50:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:13 UTC