Bit-field patch, part 1

Joseph S. Myers jsm@polyomino.org.uk
Thu Dec 18 19:37:00 GMT 2003


On Thu, 18 Dec 2003, Kazu Hirata wrote:

> With this patch, I get a hard error while building libiberty for
> h8300-hms because "unsigned int" is 16-bit wide on h8300 port
> depending on options.  The attached patch makes h8300 port buildable
> once again.  Does it look reasonable?  If so, should it be applied to
> CVS in sources.redhat.com?  I've never dealt with libiberty, so don't
> beat me if I am doing something stupid. :-)

As a host file in libiberty, it probably can't use unsigned long
bit-fields, as anything other than int or unsigned int is unportable - but
hosts for GNU software need at least 32-bit int.  What target code is
using this header?

-- 
Joseph S. Myers
jsm@polyomino.org.uk



More information about the Gcc-patches mailing list