From: Bob Wilson Date: Mon, 2 Dec 2002 21:30:12 +0000 (+0000) Subject: xtensa.c (xtensa_emit_call): Use a static buffer. X-Git-Tag: releases/gcc-3.2.2~226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8abbcdaded68a5bcee86db5f3ce0593d8124a9e5;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d31f6cedd0b5..5cc30eb55d5e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-12-02 Bob Wilson + + * 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 * builtin-types.def (BT_SIZE): Use size_type_node. diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index a3490430f624..148084a06505 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -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) diff --git a/gcc/config/xtensa/xtensa.h b/gcc/config/xtensa/xtensa.h index febe640318d6..76e7344f1e91 100644 --- a/gcc/config/xtensa/xtensa.h +++ b/gcc/config/xtensa/xtensa.h @@ -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