[PATCH] Fix "return" target handling
commit7195dddfaafa39d61ce710733f0267095f2fb4d0
authorChristopher Li <sparse@chrisli.org>
Fri, 23 Apr 2004 06:01:46 +0000 (22 23:01 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 8 Apr 2005 04:01:40 +0000 (7 21:01 -0700)
treec0987a011f01e3bab3c8688b231f52d6f566cc28
parentb6f2b825158a67fd8efc89fe76f79b91b00746b6
[PATCH] Fix "return" target handling

This fixes the linearization of "return", to use the proper symbol
target that the front end has already set up for it:

 - linearize_statement(), case "STMT_COMPOUND" needs to create a label
   at the _end_ (aftre doing the linearization of all the other stuff) if
   "stmt->ret" is non-NULL.

 - STMT_RETURN needs to move the return expression to the return variable,
   and goto the return label.
lib.h
linearize.c
linearize.h
symbol.h