Make 'newstr' a const char * to avoid a compile time warning.
authorNick Clifton <nickc@redhat.com>
Wed, 22 Nov 2000 20:51:18 +0000 (20:51 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 22 Nov 2000 20:51:18 +0000 (20:51 +0000)
From-SVN: r37672

gcc/ChangeLog
gcc/config/arm/arm.c

index 052e3490ba57426425984f9f9fd694d1eb9a2959..c89f41841b2e0486e726834864d096a98ce923c2 100644 (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.
index 3d7121e0f573db87f7f8f52b6a0a61254d572c1d..ac339dddab50606730846e26edbf72a9a27ecbee 100644 (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;