]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
xtensa.c (xtensa_emit_call): Use a static buffer.
authorBob Wilson <bob.wilson@acm.org>
Mon, 2 Dec 2002 21:30:12 +0000 (21:30 +0000)
committerBob Wilson <bwilson@gcc.gnu.org>
Mon, 2 Dec 2002 21:30:12 +0000 (21:30 +0000)
        * config/xtensa/xtensa.c (xtensa_emit_call): Use a static buffer.
        * config/xtensa/xtensa.h (MAX_WCHAR_TYPE_SIZE): Delete.

From-SVN: r59742

gcc/ChangeLog
gcc/config/xtensa/xtensa.c
gcc/config/xtensa/xtensa.h

index d31f6cedd0b50835639fc473cf3b1f21d2f8ac56..5cc30eb55d5e79437b3f726d2cc1b3c6d143b07b 100644 (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.
index a3490430f624beadda722be3c9eb4b5a4c16918e..148084a0650594206c268dc5752576a257c4adf8 100644 (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)
index febe640318d6c1f9cc35777bff049123ee98dae5..76e7344f1e91a5420dd449ed3d1ab3abf4edf6cf 100644 (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