Commit 582b49a2 authored by Matthias Braun's avatar Matthias Braun
Browse files

remove obsolete/unused debug stuff in ADTs

[r28131]
parent 493bdbad
......@@ -218,7 +218,7 @@ FIRM_API void pset_break(pset *pset);
*/
FIRM_API void pset_insert_pset_ptr(pset *target, pset *src);
#define new_pset(cmp, slots) (PSET_TRACE (new_pset) ((cmp), (slots)))
#define new_pset(cmp, slots) ((new_pset) ((cmp), (slots)))
#define pset_find(pset, key, hash) \
_pset_search ((pset), (key), (hash), _pset_find)
#define pset_insert(pset, key, hash) \
......@@ -260,17 +260,6 @@ typedef enum { _pset_find, _pset_insert, _pset_hinsert } _pset_action;
FIRM_API void *_pset_search(pset *, const void *, unsigned, _pset_action);
#if defined(DEBUG) && defined(HAVE_GNU_MALLOC)
extern const char *pset_tag;
# ifdef PSET_ID
# define PSET_TRACE pset_tag = SET_ID,
# else
# define PSET_TRACE pset_tag = __FILE__,
# endif
#else /* !(DEBUG && HAVE_GNU_MALLOC) */
# define PSET_TRACE
#endif /* !(DEBUG && HAVE_GNU_MALLOC) */
#include "../end.h"
#endif
......@@ -192,7 +192,7 @@ FIRM_API void set_break(set *set);
#define foreach_set(set, type, entry) for (entry = (type) set_first(set); entry; entry = (type) set_next(set))
/* implementation specific */
#define new_set(cmp, slots) (SET_TRACE (new_set) ((cmp), (slots)))
#define new_set(cmp, slots) ((new_set) ((cmp), (slots)))
#define set_find(set, key, size, hash) \
_set_search ((set), (key), (size), (hash), _set_find)
#define set_insert(set, key, size, hash) \
......@@ -235,17 +235,6 @@ typedef enum { _set_find, _set_insert, _set_hinsert, _set_hinsert0 } _set_action
FIRM_API void *_set_search(set *, const void *, size_t, unsigned, _set_action);
#if defined(DEBUG) && defined(HAVE_GNU_MALLOC)
extern const char *set_tag;
# ifdef SET_ID
# define SET_TRACE set_tag = SET_ID,
# else
# define SET_TRACE set_tag = __FILE__,
# endif
#else /* !(DEBUG && HAVE_GNU_MALLOC) */
# define SET_TRACE
#endif /* !(DEBUG && HAVE_GNU_MALLOC) */
#include "../end.h"
#endif
......@@ -191,10 +191,6 @@ void *ir_arr_resize(void *elts, int nelts, size_t eltsize)
if (n != dp->u.allocated) {
dp = (ir_arr_descr*) xrealloc(dp, ARR_ELTS_OFFS+eltsize*n);
dp->u.allocated = n;
#if defined(DEBUG) && defined(HAVE_GNU_MALLOC)
} else {
tmalloc_tag = NULL;
#endif
}
dp->nelts = nelts;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment