gen: simplify branch instructions by removing o_filljmp()
commit07fdce4ae82149d4c062cf468ab2a1fe2b773e97
authorAli Gholami Rudi <ali@rudi.ir>
Fri, 9 Dec 2011 18:15:23 +0000 (9 21:45 +0330)
committerAli Gholami Rudi <ali@rudi.ir>
Fri, 9 Dec 2011 18:15:23 +0000 (9 21:45 +0330)
tree75859ddc72f0586445fc39b011c070e81853ee31
parent5cac2113243195d2ee11c30f531f8cf86e19e54c
gen: simplify branch instructions by removing o_filljmp()

Now ncc.c assumes labels are numbered from 1 and can be used
without creating them first.  The actual location of each
label is decided on the o_label() call.  o_jmp() can be called
for both defined and (yet) undefined labels.  The LABEL()
macro in ncc.c, generates unique labels in side each function.
Note that gen.c uses label 0 for storing return jump.

This change simplifies ncc.c and makes optimizations in gen.c a
bit easier.
arm.c
gen.h
ncc.c
x86.c