This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Removal of gotos from cfg based ir


> Why not wrap any trapping instruction like this in a new IL expression
> which woirks like a COND_EXPR does..
> so
>	call foo(blah, blah, blah)
>	fallthru_code
> becomes
>	ABNORM (call foo (blah, blah, blah))  (fallthru, trap_label)
>fallthru:
>	fallthru_code
>trap_label:
>	trap code

This is _exactly_ what we do in LLVM...

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]