http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48385
--- Comment #8 from Mikael Pettersson <mikpe at it dot uu.se> 2012-11-07
19:47:58 UTC ---
This was fixed for gcc-4.6.2 in r176841, the 4.6 fix for the essentially
identical issue reported as PR49866. The generated assembly for the test case
in comment #7 changed as follows in r176841:
--- pr48385.s-r176840 2012-11-07 20:33:29.000000000 +0100
+++ pr48385.s-r176841 2012-11-07 20:37:54.000000000 +0100
@@ -205,7 +205,8 @@
popq %r15
.cfi_def_cfa_offset 8
movl $7, %esi
- jmp *$memsetb
+ movabsq $memsetb, %rax
+ jmp *%rax
.cfi_endproc
.LFE0:
.size pt_mapping_remove, .-pt_mapping_remove
The test case also works fine with gcc-4.7.2 (contrary to what the
known-to-fail line states). I think this should be closed as a duplicate of
PR49886.