xtensa.c (xtensa_emit_call): Use a static buffer.

* config/xtensa/xtensa.c (xtensa_emit_call): Use a static buffer.
        * config/xtensa/xtensa.h (MAX_WCHAR_TYPE_SIZE): Delete.

From-SVN: r59742
This commit is contained in:
Bob Wilson 2002-12-02 21:30:12 +00:00 committed by Bob Wilson
parent 95c16bfe36
commit 8abbcdaded
3 changed files with 6 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2002-12-02 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.c (xtensa_emit_call): Use a static buffer.
* config/xtensa/xtensa.h (MAX_WCHAR_TYPE_SIZE): Delete.
2002-12-01 Mark Mitchell <mark@codesourcery.com>
* builtin-types.def (BT_SIZE): Use size_type_node.

View File

@ -1660,7 +1660,7 @@ xtensa_emit_call (callop, operands)
int callop;
rtx *operands;
{
char *result = (char *) malloc (64);
static char result[64];
rtx tgt = operands[callop];
if (GET_CODE (tgt) == CONST_INT)

View File

@ -262,13 +262,6 @@ extern unsigned xtensa_current_frame_size;
#define LONG_DOUBLE_TYPE_SIZE 64
#define POINTER_SIZE 32
/* Tell the preprocessor the maximum size of wchar_t. */
#ifndef MAX_WCHAR_TYPE_SIZE
#ifndef WCHAR_TYPE_SIZE
#define MAX_WCHAR_TYPE_SIZE MAX_INT_TYPE_SIZE
#endif
#endif
/* Allocation boundary (in *bits*) for storing pointers in memory. */
#define POINTER_BOUNDARY 32