mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-30 16:45:28 +08:00
Make 'newstr' a const char * to avoid a compile time warning.
From-SVN: r37672
This commit is contained in:
parent
48a08b9cab
commit
57f56af4c5
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user