From ff16a8159b6d3149a98c9dc0d49884e2324fcd87 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 27 Jan 2006 17:56:05 +0000 Subject: [PATCH] more debug output on failure [r7286] --- ir/tr/trvrfy.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ir/tr/trvrfy.c b/ir/tr/trvrfy.c index f3ec6b4a5..47fd88d77 100644 --- a/ir/tr/trvrfy.c +++ b/ir/tr/trvrfy.c @@ -276,8 +276,11 @@ static int constant_on_wrong_irg(ir_node *n) { return ! env.res; } -/* +/** * Check if constants node are NOT on the constant IR graph. + * + * @return NON-zero if an entity initializer constant is NOT on + * the current_ir_graph's obstack. */ static int constants_on_wrong_irg(entity *ent) { if (get_entity_variability(ent) == variability_uninitialized) return 0; @@ -319,7 +322,11 @@ int check_entity(entity *ent) { ir_type *owner = get_entity_owner(ent); current_ir_graph = get_const_code_irg(); - ASSERT_AND_RET(constants_on_wrong_irg(ent) == 0, "Contants placed on wrong IRG", error_const_on_wrong_irg); + ASSERT_AND_RET_DBG( + constants_on_wrong_irg(ent) == 0, + "Contants placed on wrong IRG", + error_const_on_wrong_irg, + ir_fprintf(stderr, "%+e not on %+F\n", ent, current_ir_graph)); rem_vpi = get_visit_pseudo_irgs(); set_visit_pseudo_irgs(1); -- 2.20.1