enable_heapanalysis="no"
fi;
if test "$enable_heapanalysis" = "no"; then
-
-cat >>confdefs.h <<\_ACEOF
-#define DO_HEAPANALYSIS 0
-_ACEOF
-
echo "$as_me:$LINENO: result: heapanalysis disabled" >&5
echo "${ECHO_T}heapanalysis disabled" >&6
else
-
-cat >>confdefs.h <<\_ACEOF
+ cat >>confdefs.h <<\_ACEOF
#define DO_HEAPANALYSIS 1
_ACEOF
fi
-
# Check whether --enable-libiberty or --disable-libiberty was given.
if test "${enable_libiberty+set}" = set; then
enableval="$enable_libiberty"
AC_ARG_ENABLE(heapanalysis, [ --enable-heapanalysis Compile with heap analysis.],
[enable_heapanalysis=$enableval], [enable_heapanalysis="no"])
if test "$enable_heapanalysis" = "no"; then
- AC_DEFINE(DO_HEAPANALYSIS, 0, [Don't compile with heap analysis])
AC_MSG_RESULT([heapanalysis disabled])
else
- AC_DEFINE(DO_HEAPANALYSIS, 1, [Compile with heap analysis])
+ AC_DEFINE(DO_HEAPANALYSIS)
AC_MSG_RESULT([heapanalysis enabled])
fi
AC_SUBST(enable_heapanalysis)
-dnl to be used!! AM_CONDITIONAL(FIRM_HEAPANALYSIS, test "$enable_heapanalysis" != "no")
-
dnl disable linking of libiberty parts (xmalloc, xprintf, obstack, ...)
dnl ----------------------
AC_ARG_ENABLE(libiberty,
# include "pmap.h"
# include "eset.h"
-#ifdef DO_HEAPANALYSIS
+#if DO_HEAPANALYSIS
void dump_chi_term(FILE *FL, ir_node *n);
void dump_state(FILE *FL, ir_node *n);
int get_opt_dump_abstvals(void);
dump_node_vcgattr(n, bad);
fprintf(F, "}\n");
dump_const_node_local(n);
-#ifdef DO_HEAPANALYSIS
+#if DO_HEAPANALYSIS
dump_chi_term(F, n);
dump_state(F, n);
#endif
fprintf(F, "\" label: \"");
dump_node_opcode(F, block);
fprintf (F, " %ld", get_irn_node_nr(block));
-#ifdef DO_HEAPANALYSIS
+#if DO_HEAPANALYSIS
if (get_opt_dump_abstvals())
fprintf (F, " seqno: %d", (int)get_Block_seqno(block));
#endif
/* Close the vcg information for the block */
fprintf(F, "}\n");
dump_const_node_local(block);
-#ifdef DO_HEAPANALYSIS
+#if DO_HEAPANALYSIS
dump_chi_term(F, block);
#endif
fprintf(F, "\n");