GCC 4.1.0 initializes another register than the one specified in the definition. I'm not sure it this has also something to do with bug 21596. The same testcase built with GCC 3.4.4 is correct.
-- Summary: Compiler fails to correctly initialize global reg variable Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dave dot mueller at gmx dot ch GCC host triplet: i686-gnu-linux GCC target triplet: arm-linux, powerpc-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26619