Commit 86ecdfb6 by Andrew Pinski Committed by Andrew Pinski

i386.c (legitimate_pic_address_disp_p): Change the strstr with $pb to a…

i386.c (legitimate_pic_address_disp_p): Change the strstr with $pb to a strcompare with "<pic base>"

2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>

        * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
        strstr with $pb to a strcompare with "<pic base>"
        (ix86_output_addr_diff_elt): Output the real pic base.

From-SVN: r70569
parent 7f5d157f
2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
* config/i386/i386.c (legitimate_pic_address_disp_p): Change the
strstr with $pb to a strcompare with "<pic base>"
(ix86_output_addr_diff_elt): Output the real pic base.
2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net> 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
* langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling. * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
......
...@@ -5715,7 +5715,7 @@ legitimate_pic_address_disp_p (register rtx disp) ...@@ -5715,7 +5715,7 @@ legitimate_pic_address_disp_p (register rtx disp)
if (GET_CODE (XEXP (disp, 1)) == SYMBOL_REF) if (GET_CODE (XEXP (disp, 1)) == SYMBOL_REF)
{ {
const char *sym_name = XSTR (XEXP (disp, 1), 0); const char *sym_name = XSTR (XEXP (disp, 1), 0);
if (strstr (sym_name, "$pb") != 0) if (! strcmp (sym_name, "<pic base>"))
return 1; return 1;
} }
} }
...@@ -8027,8 +8027,11 @@ ix86_output_addr_diff_elt (FILE *file, int value, int rel) ...@@ -8027,8 +8027,11 @@ ix86_output_addr_diff_elt (FILE *file, int value, int rel)
fprintf (file, "%s%s%d@GOTOFF\n", ASM_LONG, LPREFIX, value); fprintf (file, "%s%s%d@GOTOFF\n", ASM_LONG, LPREFIX, value);
#if TARGET_MACHO #if TARGET_MACHO
else if (TARGET_MACHO) else if (TARGET_MACHO)
fprintf (file, "%s%s%d-%s\n", ASM_LONG, LPREFIX, value, {
machopic_function_base_name () + 1); fprintf (file, "%s%s%d-", ASM_LONG, LPREFIX, value);
machopic_output_function_base_name (file);
fprintf(file, "\n");
}
#endif #endif
else else
asm_fprintf (file, "%s%U%s+[.-%s%d]\n", asm_fprintf (file, "%s%U%s+[.-%s%d]\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