This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fix -pg for alpha explicit relocs


One more place explicit relocs need special handling.


r~



        * config/alpha/alpha.md (prologue_mcount): Update for explicit relocs.

Index: alpha.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/alpha.md,v
retrieving revision 1.169
diff -c -p -d -r1.169 alpha.md
*** alpha.md	2001/12/21 00:22:39	1.169
--- alpha.md	2001/12/21 00:32:14
*************** fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi
*** 6470,6476 ****
  (define_insn "prologue_mcount"
    [(unspec_volatile [(const_int 0)] UNSPECV_MCOUNT)]
    ""
!   "lda $28,_mcount\;jsr $28,($28),_mcount"
    [(set_attr "type" "multi")
     (set_attr "length" "8")])
  
--- 6470,6481 ----
  (define_insn "prologue_mcount"
    [(unspec_volatile [(const_int 0)] UNSPECV_MCOUNT)]
    ""
! {
!   if (TARGET_EXPLICIT_RELOCS)
!     return "ldq $28,_mcount($29)\t\t!literal!%#\;jsr $28,($28),_mcount\t\t!lituse_jsr!%#";
!   else
!     return "lda $28,_mcount\;jsr $28,($28),_mcount";
! }
    [(set_attr "type" "multi")
     (set_attr "length" "8")])
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]