On Wed, Sep 02, 2009 at 12:20:19PM +0800, Bean wrote: > > Hi, > > Oh, I was wrong previously, gcc does respect __attribute__ > ((__regparm__ (3))) flag (I forget to add -Os so it still uses stack > to store value). And the bug is still there ! Try this test program:
Thanks Bean. I have opened an entry in GCC bugzilla, and submitted your test program in it: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41246 Hopefully they'll fix it in later versions, and hopefully people will upgrade soon. In the meantime, we're stuck with it. -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all." _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel