Comment 8 for bug 347864

Revision history for this message
Dave Martin (dave-martin-arm) wrote : Re: GCC generates invalid instructions when building for Thumb-2 on armel

Useful to know, thanks.

gcc-snapshot (4.4.0 20090225) appears not to produce the error.

It looks like the difference may be connected with the code GCC generates for doubleword memory accesses in Thumb-2 code:

http://gcc.gnu.org/ml/gcc-patches/2009-01/msg00659.html

gcc-snapshot certainly makes more extensive use of LDRD instructions than gcc 4.3.3-5ubuntu4 for this code, though again it's hard to be certain whether that's by accident or by design.

Also, I think Ed Nevill (on subscribers list) is trying to build publishable updates for openjdk, and gcc-snapshot is not really usable for this.

Ed, is it feasible/possible to build the problem sources with different compiler options, or do we need some other solution?

For comparison purposes, I'll post the output of the two compilers with the same compilation options: