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]

Re: Your patch to alpha.md causes bootstrap failure


On Thu, Oct 18, 2001 at 10:21:07AM -0700, Richard Henderson wrote:
> I guess we expand this by hand and ignore the loss of the LITUSE
> relocation.

Like so.


r~


        * config/alpha/alpha.md (sibcall_osf_1): Load destination
        address into $27 explicitly.
        (sibcall_value_osf_1): Likewise.

Index: gcc/config/alpha/alpha.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/alpha.md,v
retrieving revision 1.154
diff -c -p -d -r1.154 alpha.md
*** alpha.md	2001/10/16 22:44:39	1.154
--- alpha.md	2001/10/19 05:02:47
*************** fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi
*** 4848,4855 ****
    [(set_attr "type" "jsr")
     (set_attr "length" "12,*,16")])
  
! ;; Need 's' alternative for OSF/1, which implements profiling
! ;; via linker tricks.
  (define_insn "*sibcall_osf_1"
    [(call (mem:DI (match_operand:DI 0 "current_file_function_operand" "R,s"))
  	 (match_operand 1 "" ""))
--- 4848,4856 ----
    [(set_attr "type" "jsr")
     (set_attr "length" "12,*,16")])
  
! ;; Need 's' alternative for OSF/1, which implements profiling via linker
! ;; tricks.  Note that the DEC assembler expands "jmp foo" with $at, which
! ;; doesn't do what we want.
  (define_insn "*sibcall_osf_1"
    [(call (mem:DI (match_operand:DI 0 "current_file_function_operand" "R,s"))
  	 (match_operand 1 "" ""))
*************** fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi
*** 4857,4863 ****
    "TARGET_ABI_OSF"
    "@
     br $31,$%0..ng
!    jmp $31,%0"
    [(set_attr "type" "jsr")
     (set_attr "length" "*,8")])
  
--- 4858,4864 ----
    "TARGET_ABI_OSF"
    "@
     br $31,$%0..ng
!    lda $27,%0\;jmp $31,($27),%0"
    [(set_attr "type" "jsr")
     (set_attr "length" "*,8")])
  
*************** fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi
*** 6817,6823 ****
    "TARGET_ABI_OSF"
    "@
     br $31,$%1..ng
!    jmp $31,%1"
    [(set_attr "type" "jsr")
     (set_attr "length" "*,8")])
  
--- 6818,6824 ----
    "TARGET_ABI_OSF"
    "@
     br $31,$%1..ng
!    lda $27,%1\;jmp $31,($27),%1"
    [(set_attr "type" "jsr")
     (set_attr "length" "*,8")])
  


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