Commit b92b324d by David Edelsohn Committed by David Edelsohn

rs6000.md (indirect_jump): Prefer CTR over LR.

        * rs6000.md (indirect_jump): Prefer CTR over LR.
        * xcoff.h (ASM_DECLARE_FUNCTION_NAME): Handle weak function.

From-SVN: r48315
parent 682bb080
2001-12-26 David Edelsohn <edelsohn@gnu.org>
* rs6000.md (indirect_jump): Prefer CTR over LR.
* xcoff.h (ASM_DECLARE_FUNCTION_NAME): Handle weak function.
Tue Dec 25 12:04:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> Tue Dec 25 12:04:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* dwarf2out.c: Reformatting and minor code rearrangement. * dwarf2out.c: Reformatting and minor code rearrangement.
......
...@@ -13030,15 +13030,19 @@ ...@@ -13030,15 +13030,19 @@
}") }")
(define_insn "indirect_jumpsi" (define_insn "indirect_jumpsi"
[(set (pc) (match_operand:SI 0 "register_operand" "cl"))] [(set (pc) (match_operand:SI 0 "register_operand" "c,*l"))]
"TARGET_32BIT" "TARGET_32BIT"
"b%T0" "@
bctr
{br|blr}"
[(set_attr "type" "jmpreg")]) [(set_attr "type" "jmpreg")])
(define_insn "indirect_jumpdi" (define_insn "indirect_jumpdi"
[(set (pc) (match_operand:DI 0 "register_operand" "cl"))] [(set (pc) (match_operand:DI 0 "register_operand" "c,*l"))]
"TARGET_64BIT" "TARGET_64BIT"
"b%T0" "@
bctr
blr"
[(set_attr "type" "jmpreg")]) [(set_attr "type" "jmpreg")])
;; Table jump for switch statements: ;; Table jump for switch statements:
......
...@@ -345,9 +345,18 @@ toc_section () \ ...@@ -345,9 +345,18 @@ toc_section () \
SYMBOL_REF_FLAG (sym_ref) = 1; \ SYMBOL_REF_FLAG (sym_ref) = 1; \
if (TREE_PUBLIC (DECL)) \ if (TREE_PUBLIC (DECL)) \
{ \ { \
fputs ("\t.globl .", FILE); \ if (RS6000_WEAK && DECL_WEAK (decl)) \
RS6000_OUTPUT_BASENAME (FILE, NAME); \ { \
putc ('\n', FILE); \ fputs ("\t.weak .", FILE); \
RS6000_OUTPUT_BASENAME (FILE, NAME); \
putc ('\n', FILE); \
} \
else \
{ \
fputs ("\t.globl .", FILE); \
RS6000_OUTPUT_BASENAME (FILE, NAME); \
putc ('\n', FILE); \
} \
} \ } \
else \ else \
{ \ { \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment