Make 'newstr' a const char * to avoid a compile time warning.

From-SVN: r37672
This commit is contained in:
Nick Clifton 2000-11-22 20:51:18 +00:00 committed by Nick Clifton
parent 48a08b9cab
commit 57f56af4c5
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2000-11-22 Nick Clifton <nickc@redhat.com>
* config/arm/arm.c (arm_encode_call_attribute): Make 'newstr' a
const char * to avoid a compile time warning.
* config/arm/arm.md (define_constants): Define symbolic names for
the link register, last integer register and the fake CC register.
Update patterns to use these symbolic names.

View File

@ -1718,7 +1718,7 @@ arm_encode_call_attribute (decl, flag)
{
const char * str = XSTR (XEXP (DECL_RTL (decl), 0), 0);
int len = strlen (str);
char * newstr;
const char * newstr;
if (TREE_CODE (decl) != FUNCTION_DECL)
return;