Commit 28c57785 by Michael Meissner

Fix aix 4.1 compiler warnings.

From-SVN: r10021
parent 1f4b5333
...@@ -1995,22 +1995,25 @@ toc_section () \ ...@@ -1995,22 +1995,25 @@ toc_section () \
/* Remove any trailing [DS] or the like from the symbol name. */ /* Remove any trailing [DS] or the like from the symbol name. */
#define STRIP_NAME_ENCODING(VAR,NAME) \ #define STRIP_NAME_ENCODING(VAR,NAME) \
do \ do \
{ \ { \
if ((NAME)[0] == '*') \ char *_name = (NAME); \
(VAR) = (NAME)+1; \ if (_name[0] == '*') \
else if ((NAME)[strlen (NAME) - 1] != ']') \ (VAR) = _name+1; \
(VAR) = (NAME); \ else \
else \ { \
{ \ int _len = strlen (_name); \
int _len = strlen (NAME); \ if (_name[_len - 1] != ']') \
(VAR) = alloca (_len + 1); \ (VAR) = _name; \
\ else \
strcpy ((VAR), NAME); \ { \
(VAR)[_len - 4] = '\0'; \ (VAR) = (char *) alloca (_len + 1); \
} \ strcpy ((VAR), _name); \
} \ (VAR)[_len - 4] = '\0'; \
} \
} \
} \
while (0) while (0)
/* Output something to declare an external symbol to the assembler. Most /* Output something to declare an external symbol to the assembler. Most
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment