From 63bea6c02bc23bdd1f63f2847bc180bdaeecb461 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 2 Apr 2007 17:35:32 +0000 Subject: [PATCH] no strange stuff for including alloca anymore, use xmalloc.h [r12646] --- ir/be/bearch.c | 9 +-------- ir/be/bechordal.c | 8 -------- ir/be/becopyheur.c | 8 +------- ir/be/becopyilp_t.h | 8 +------- ir/be/becopyopt.c | 7 ------- ir/be/beifg.c | 13 +------------ ir/be/beirgmod.c | 8 +------- ir/be/belower.c | 8 +------- ir/be/beraextern.c | 8 +------- ir/be/bespillbelady.c | 9 +-------- ir/be/bessadestrsimple.c | 10 +--------- 11 files changed, 9 insertions(+), 87 deletions(-) diff --git a/ir/be/bearch.c b/ir/be/bearch.c index 101c6e4c6..8a104eb5a 100644 --- a/ir/be/bearch.c +++ b/ir/be/bearch.c @@ -9,19 +9,12 @@ #include "config.h" #endif -#ifdef HAVE_ALLOCA_H -#include -#endif - -#ifdef HAVE_MALLOC_H -#include -#endif - #include #include "bearch.h" #include "ircons_t.h" #include "irnode_t.h" +#include "xmalloc.h" #include "bitset.h" #include "pset.h" diff --git a/ir/be/bechordal.c b/ir/be/bechordal.c index be76923e4..ad144c488 100644 --- a/ir/be/bechordal.c +++ b/ir/be/bechordal.c @@ -11,14 +11,6 @@ #include "config.h" #endif -#ifdef HAVE_MALLOC_H -#include -#endif - -#ifdef HAVE_ALLOCA_H -#include -#endif - #include #include "obst.h" diff --git a/ir/be/becopyheur.c b/ir/be/becopyheur.c index 28205e560..886b45e97 100644 --- a/ir/be/becopyheur.c +++ b/ir/be/becopyheur.c @@ -16,13 +16,6 @@ #include "config.h" #endif -#ifdef HAVE_ALLOCA_H -#include -#endif -#ifdef HAVE_MALLOC_H -#include -#endif - #include "debug.h" #include "xmalloc.h" #include "becopyopt_t.h" @@ -30,6 +23,7 @@ #include "benodesets.h" #include "bitset.h" #include "raw_bitset.h" +#include "xmalloc.h" DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;) diff --git a/ir/be/becopyilp_t.h b/ir/be/becopyilp_t.h index 56377fc92..b9bc9f249 100644 --- a/ir/be/becopyilp_t.h +++ b/ir/be/becopyilp_t.h @@ -13,16 +13,10 @@ #include "firm_config.h" -#ifdef HAVE_ALLOCA_H -#include -#endif -#ifdef HAVE_MALLOC_H -#include -#endif - #include "irnode_t.h" #include "pset.h" #include "becopyopt_t.h" +#include "xmalloc.h" /****************************************************************************** _____ _ _ _ _ diff --git a/ir/be/becopyopt.c b/ir/be/becopyopt.c index 57a381f6a..2de15920a 100644 --- a/ir/be/becopyopt.c +++ b/ir/be/becopyopt.c @@ -8,13 +8,6 @@ #include "config.h" #endif -#ifdef HAVE_ALLOCA_H -#include -#endif -#ifdef HAVE_MALLOC_H -#include -#endif - #include "execfreq.h" #include "xmalloc.h" #include "debug.h" diff --git a/ir/be/beifg.c b/ir/be/beifg.c index 312c557d4..821809e21 100644 --- a/ir/be/beifg.c +++ b/ir/be/beifg.c @@ -12,18 +12,6 @@ #include -#ifdef HAVE_MALLOC_H -#include -#endif - -#ifdef __linux__ -#include -#endif /* __linux__ */ - -#ifdef HAVE_ALLOCA_H -#include -#endif - #include #include #include @@ -41,6 +29,7 @@ #include "irphase_t.h" #include "bechordal.h" #include "error.h" +#include "xmalloc.h" #include "becopystat.h" #include "becopyopt.h" diff --git a/ir/be/beirgmod.c b/ir/be/beirgmod.c index 626821dec..1a9f768ad 100644 --- a/ir/be/beirgmod.c +++ b/ir/be/beirgmod.c @@ -18,13 +18,6 @@ #include -#ifdef HAVE_MALLOC_H - #include -#endif -#ifdef HAVE_ALLOCA_H - #include -#endif - #include "hashptr.h" #include "pdeq.h" #include "pset.h" @@ -32,6 +25,7 @@ #include "util.h" #include "debug.h" #include "error.h" +#include "xmalloc.h" #include "irflag_t.h" #include "ircons_t.h" diff --git a/ir/be/belower.c b/ir/be/belower.c index 1e544cfe0..6a16a0b6c 100644 --- a/ir/be/belower.c +++ b/ir/be/belower.c @@ -16,6 +16,7 @@ #include "ircons.h" #include "debug.h" #include "irhooks.h" +#include "xmalloc.h" #include "bearch.h" #include "belower.h" @@ -29,13 +30,6 @@ #include "iredges_t.h" #include "irgwalk.h" -#ifdef HAVE_MALLOC_H - #include -#endif -#ifdef HAVE_ALLOCA_H - #include -#endif - #undef KEEP_ALIVE_COPYKEEP_HACK /* associates op with it's copy and CopyKeep */ diff --git a/ir/be/beraextern.c b/ir/be/beraextern.c index c53987525..d3464508f 100644 --- a/ir/be/beraextern.c +++ b/ir/be/beraextern.c @@ -58,13 +58,6 @@ alloc ::= node-nr reg-nr . #include "config.h" #endif -#ifdef HAVE_MALLOC_H - #include -#endif -#ifdef HAVE_ALLOCA_H - #include -#endif - #include #include #include @@ -76,6 +69,7 @@ alloc ::= node-nr reg-nr . #include "pmap.h" #include "bitset.h" #include "raw_bitset.h" +#include "xmalloc.h" #include "irprintf_t.h" #include "irnode_t.h" diff --git a/ir/be/bespillbelady.c b/ir/be/bespillbelady.c index 49e85b7b6..c3e250881 100644 --- a/ir/be/bespillbelady.c +++ b/ir/be/bespillbelady.c @@ -9,14 +9,6 @@ #include "config.h" #endif -#ifdef HAVE_ALLOCA_H -#include -#endif - -#ifdef HAVE_MALLOC_H -#include -#endif - #include "obst.h" #include "set.h" #include "pset.h" @@ -29,6 +21,7 @@ #include "iredges_t.h" #include "ircons_t.h" #include "irprintf.h" +#include "xmalloc.h" #include "beutil.h" #include "bearch.h" diff --git a/ir/be/bessadestrsimple.c b/ir/be/bessadestrsimple.c index 8c84b2011..a8db0ff82 100644 --- a/ir/be/bessadestrsimple.c +++ b/ir/be/bessadestrsimple.c @@ -5,19 +5,10 @@ * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. * */ - - #ifdef HAVE_CONFIG_H #include "config.h" #endif -#ifdef HAVE_MALLOC_H - #include -#endif -#ifdef HAVE_ALLOCA_H - #include -#endif - #include #include #include @@ -26,6 +17,7 @@ #include "pset.h" #include "pmap.h" #include "bitset.h" +#include "xmalloc.h" #include "irprintf_t.h" #include "irnode_t.h" -- 2.20.1