From: Nick Clifton Date: Wed, 22 Nov 2000 20:51:18 +0000 (+0000) Subject: Make 'newstr' a const char * to avoid a compile time warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57f56af4c574c7b7185cdf211ebe4877a0ca877a;p=gcc.git Make 'newstr' a const char * to avoid a compile time warning. From-SVN: r37672 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 052e3490ba5..c89f41841b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2000-11-22 Nick Clifton + * 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. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 3d7121e0f57..ac339dddab5 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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;