From 0a86bcc9251e57dcb5dd33601171b456ef493cd5 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 25 Sep 2007 19:29:23 +0000 Subject: [PATCH] trans.c: Fix misplaced #define. * trans.c: Fix misplaced #define. From-SVN: r128771 --- gcc/ada/ChangeLog | 4 ++++ gcc/ada/trans.c | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 7913e4a37be..29056874599 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2007-09-25 Eric Botcazou + + * trans.c: Fix misplaced #define. + 2007-09-22 Eric Botcazou * utils2.c (build_unary_op) [INDIRECT_REF]: Propagate diff --git a/gcc/ada/trans.c b/gcc/ada/trans.c index 1a4067c8639..e6f9ef8f8d6 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; }; -- 2.30.2