From 57f56af4c574c7b7185cdf211ebe4877a0ca877a Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 22 Nov 2000 20:51:18 +0000 Subject: [PATCH] Make 'newstr' a const char * to avoid a compile time warning. From-SVN: r37672 --- gcc/ChangeLog | 3 +++ gcc/config/arm/arm.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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; -- 2.30.2