(hppa_encode_label): Change function name encoding to
preserve leading '*' if there is one.
(function_label_operand): Use FUNCTION_NAME_P macro.
From-SVN: r2618
int len = strlen (str);
char *newstr = obstack_alloc (saveable_obstack, len + 2) ;
+ if (str[0] == '*')
+ *newstr++ = *str++;
strcpy (newstr + 1, str);
- newstr[0] = '@';
+ *newstr = '@';
XSTR (sym,0) = newstr;
}
rtx op;
enum machine_mode mode;
{
- return GET_CODE (op) == SYMBOL_REF && (XSTR (op, 0))[0] == '@';
+ return GET_CODE (op) == SYMBOL_REF && FUNCTION_NAME_P (XSTR (op, 0));
}