aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ada/ChangeLog4
-rw-r--r--gcc/ada/trans.c10
2 files changed, 9 insertions, 5 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 7913e4a..2905687 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,7 @@
+2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
+
+ * trans.c: Fix misplaced #define.
+
2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
* utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
diff --git a/gcc/ada/trans.c b/gcc/ada/trans.c
index 1a4067c..e6f9ef8 100644
--- a/gcc/ada/trans.c
+++ b/gcc/ada/trans.c
@@ -57,6 +57,11 @@
#include "ada-tree.h"
#include "gigi.h"
+/* We should avoid allocating more than ALLOCA_THRESHOLD bytes via alloca,
+ for fear of running out of stack space. If we need more, we use xmalloc
+ instead. */
+#define ALLOCA_THRESHOLD 1000
+
/* Let code below know whether we are targetting VMS without need of
intrusive preprocessor directives. */
#ifndef TARGET_ABI_OPEN_VMS
@@ -101,11 +106,6 @@ DEF_VEC_ALLOC_P(parm_attr,gc);
struct language_function GTY(())
{
-/* We should avoid allocating more than ALLOCA_THRESHOLD bytes via alloca, for
- fear of running out of stack space. If we need more, we use xmalloc/free
- instead. */
-#define ALLOCA_THRESHOLD 1000
-
VEC(parm_attr,gc) *parm_attr_cache;
};