OSDN Git Service

* tsystem.h (alloca): Provide a default definition.
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Sep 2004 22:23:12 +0000 (22:23 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Sep 2004 22:23:12 +0000 (22:23 +0000)
Revert:
2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
    * unwind-dw2.c: Call __builtin_alloca, not alloca.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87775 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tsystem.h
gcc/unwind-dw2.c

index 40b125e..9190594 100644 (file)
@@ -1,3 +1,11 @@
+2004-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * tsystem.h (alloca): Provide a default definition.
+
+       Revert:
+       2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+           * unwind-dw2.c: Call __builtin_alloca, not alloca.
+
 2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>
 
        PR tree-opt/17558
index 7928b31..7ccdf4c 100644 (file)
@@ -117,4 +117,8 @@ extern int errno;
 #define NULL 0
 #endif
 
+/* GCC always provides __builtin_alloca(x).  */
+#undef alloca
+#define alloca(x) __builtin_alloca(x)
+
 #endif /* ! GCC_TSYSTEM_H */
index eb36e20..67b8d1c 100644 (file)
@@ -840,7 +840,7 @@ execute_cfa_program (const unsigned char *insn_ptr,
                unused_rs = unused_rs->prev;
              }
            else
-             new_rs = __builtin_alloca (sizeof (struct frame_state_reg_info));
+             new_rs = alloca (sizeof (struct frame_state_reg_info));
 
            *new_rs = fs->regs;
            fs->regs.prev = new_rs;