------- Comment #15 from amodra at gmail dot com 2010-05-28 13:16 ------- Created an attachment (id=20768) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20768&action=view) gcc-4.4 patch
The underlying problem is that the load_toc_v4_PIC_1b rtl doesn't properly describe that its output depends both on the value of a symbol, _GLOBAL_OFFSET_TABLE_, and on its location. This could be fixed by using an unspec_volatile rather than unspec. I chose instead to add a label to the rtl. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44169