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

From-SVN: r6797
This commit is contained in:
Richard Kenner 1994-03-16 09:07:29 -05:00
parent bc69bfacd4
commit f8eb03658e

View File

@ -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) \
{ \
fprintf (FILE, "\tsprd sb,tos\n"); \
fprintf (FILE, "\taddr _GLOBAL_OFFSET_TABLE_(pc),tos\n"); \
fprintf (FILE, "\tlprd sb,tos\n"); \
if (TARGET_REGPARM) \
{ \
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"); \
} \
} \
}