build failure for ia64 (due to -Werror)

James E Wilson wilson@specifixinc.com
Sat Mar 19 09:44:00 GMT 2005


On Fri, 2005-03-18 at 17:23, Andreas Schwab wrote:
> The cast was clearly bogus, because it violated the strict aliasing
> rules.

I agree the change did something useful.   However, I disagree that the
change was required to make the file work.

It only violated strict aliasing rules because it was compiled with a
32-bit bfd_vma which is wrong.  If it was compiled with a proper 64-bit
bfd_vma, as required by the port, then there is no aliasing violation,
and hence no serious bug.  There was only a minor issue of the code not
being as clean as possible.

So the problem isn't that the code had a bogus cast.  The problem is
that it was compiled with the wrong bfd_vma type.  That is the problem
that I think should be fixed.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com




More information about the Binutils mailing list