This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: build failure for ia64 (due to -Werror)


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]