diff options
Diffstat (limited to 'sysdeps/unix/sparc/sysdep.h')
-rw-r--r-- | sysdeps/unix/sparc/sysdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/unix/sparc/sysdep.h b/sysdeps/unix/sparc/sysdep.h index 10d561e789..1a095cc6c2 100644 --- a/sysdeps/unix/sparc/sysdep.h +++ b/sysdeps/unix/sparc/sysdep.h @@ -39,6 +39,9 @@ __sparc_get_pc_thunk.reg: \ .previous; \ .endif; +/* Even when v9 we use a call sequence instead of using "rd %pc" because + RDPC is extremely expensive and incurs a full pipeline flush. */ + #define SETUP_PIC_REG(reg) \ SPARC_PIC_THUNK(reg) \ sethi %hi(_GLOBAL_OFFSET_TABLE_-4), %##reg; \ |