------- Comment #5 from mikpe at it dot uu dot se 2010-04-12 09:02 ------- (In reply to comment #4) > Isn't this just a user error then? You should have used -ffixed-20 if you use > a call saved register as global register IMHO.
gcc's documentation (I'm looking at the global register variables node in 4.5's extend.texi) states that passing -ffixed-reg is only needed if the translation unit doesn't contain a declaration of that global register variable. In this PR's test case the declaration is present, so -ffixed-20 should not be needed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43700