diff options
-rw-r--r-- | cgthumb2was.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cgthumb2was.c b/cgthumb2was.c index 5c17e24..555bf1d 100644 --- a/cgthumb2was.c +++ b/cgthumb2was.c @@ -60,7 +60,6 @@ static void w_as_define_local_data_label (int label_number) static void w_as_define_internal_label (int label_number) { - w_as_instruction_without_parameters (".thumb_func"); fprintf (assembly_file,"i_%d:\n",label_number); } @@ -394,8 +393,11 @@ static void w_as_define_code_label (LABEL *label) w_as_newline(); } - w_as_instruction_without_parameters (".align"); - w_as_instruction_without_parameters (".thumb_func"); + if (label->label_flags & NODE_ENTRY_LABEL) { + w_as_instruction_without_parameters (".align"); + w_as_instruction_without_parameters (".thumb_func"); + } + w_as_label (label->label_name); w_as_colon(); w_as_newline(); |