This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Your patch to alpha.md causes bootstrap failure
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>, gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Subject: Re: Your patch to alpha.md causes bootstrap failure
- From: Richard Henderson <rth at redhat dot com>
- Date: Thu, 18 Oct 2001 22:11:22 -0700
- References: <10110181057.AA18034@vlsi1.ultra.nyu.edu> <20011018102107.C7985@redhat.com>
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")])