make add_missing_keeps more robust in case of SwitchJumps
[libfirm] / ir / debug / debugger.c
index a12597b..1a4fa1b 100644 (file)
@@ -187,7 +187,7 @@ do {                                        \
 #define FIRM_DBG_MINOR  0
 
 /** for automatic detection of the debug extension */
-static const char firm_debug_info_string[] =
+static const char __attribute__((used)) firm_debug_info_string[] =
        API_VERSION(FIRM_DBG_MAJOR, FIRM_DBG_MINOR);
 
 int firm_debug_active(void)
@@ -464,7 +464,7 @@ static void update_hooks(breakpoint *bp)
                CASE_ON(BP_ON_NEW_ENT, new_entity);
                CASE_ON(BP_ON_NEW_TYPE, new_type);
                default:
-                       ;
+                       break;
                }
        }
        else {
@@ -477,7 +477,7 @@ static void update_hooks(breakpoint *bp)
                CASE_OFF(BP_ON_NEW_ENT, new_entity);
                CASE_OFF(BP_ON_NEW_TYPE, new_type);
                default:
-                       ;
+                       break;
                }
        }
 #undef CASE_ON
@@ -677,10 +677,10 @@ static void show_firm_object(void *firm_thing)
                fprintf(f, "BAD: (%p)\n", firm_thing);
                break;
        case k_entity:
-               dump_entity_to_file(f, firm_thing, dump_verbosity_max);
+               dump_entity_to_file(f, firm_thing);
                break;
        case k_type:
-               dump_type_to_file(f, firm_thing, dump_verbosity_max);
+               dump_type_to_file(f, firm_thing);
                break;
        case k_ir_graph:
        case k_ir_node: