Commit f8eb0365 by Richard Kenner

(FUNCTION_PROLOGUE): Load sb through r0 if TARGET_REGPARM is false.

From-SVN: r6797
parent bc69bfac
...@@ -601,8 +601,16 @@ enum reg_class { NO_REGS, GENERAL_REGS, FLOAT_REGS, GEN_AND_FP_REGS, ...@@ -601,8 +601,16 @@ enum reg_class { NO_REGS, GENERAL_REGS, FLOAT_REGS, GEN_AND_FP_REGS,
if (flag_pic && current_function_uses_pic_offset_table) \ if (flag_pic && current_function_uses_pic_offset_table) \
{ \ { \
fprintf (FILE, "\tsprd sb,tos\n"); \ fprintf (FILE, "\tsprd sb,tos\n"); \
fprintf (FILE, "\taddr _GLOBAL_OFFSET_TABLE_(pc),tos\n"); \ if (TARGET_REGPARM) \
fprintf (FILE, "\tlprd sb,tos\n"); \ { \
fprintf (FILE, "\taddr _GLOBAL_OFFSET_TABLE_(pc),tos\n"); \
fprintf (FILE, "\tlprd sb,tos\n"); \
} \
else \
{ \
fprintf (FILE, "\taddr _GLOBAL_OFFSET_TABLE_(pc),r0\n"); \
fprintf (FILE, "\tlprd sb,r0\n"); \
} \
} \ } \
} }
......
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