On Thu, Mar 07, 2013 at 11:12:40AM +0100, Mikael Pettersson wrote: > Mike Hommey writes: > > On Thu, Mar 07, 2013 at 01:14:03AM -0800, Andrew Pinski wrote: > > > On Thu, Mar 7, 2013 at 12:33 AM, Mike Hommey <mh-...@glandium.org> wrote: > > > > On Thu, Mar 07, 2013 at 12:28:22AM -0800, Andrew Pinski wrote: > > > >> On Thu, Mar 7, 2013 at 12:24 AM, Mike Hommey <mh-...@glandium.org> > wrote: > > > >> > Hi, > > > >> > > > > >> > At Mozilla, we've encountered a GCC 4.6 miscompilation in the ARMv6 > > > >> > build of Firefox for Android. We'd like to evaluate whether this > bug is > > > >> > hitting us in more places than the one we spotted. To that end, we'd > > > >> > need to know what particular bug in GCC leads to this > miscompilation. > > > >> > > > > >> > The attached file is the preprocessed source, slightly simplified. > I was > > > >> > able to reproduce the miscompilation with both the GCC 4.6 from the > > > >> > Android NDK r8d and 4.6.3 from Debian unstable. It apparently > happens > > > >> > for any -march, with -marm, but not -mthumb. It happens at -Os but > not > > > >> > -O2. > > > >> > > > >> No attached file. > > > > > > > > Sent it afterwards. > > > > > > Still not on the list. I bet it was too big so it was rejected by the > > > list. Try filing a bug report instead. > > > > Let's try it gzipped. If it still doesn't work, I'll file a bug. > > This test case is not self-contained. Please file a proper bug report > with a self-contained test case.
It is, as long as you don't want to make a library or program out of it: $ arm-linux-androideabi-gcc -o pkcs11.o -c -marm -Os pkcs11.i Mike