This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Code transformation and optimization
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: "Vincent R." <forumer at smartmobili dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 20 Feb 2009 16:59:13 +0000
- Subject: Re: Code transformation and optimization
- References: <1501038ecbffa5e9b3245c83cdcf409d@mail.smartmobili.com>
Vincent R. wrote:
> To make things clear let's say that I would like to declare a new keyword
> called special_else for instance.
This is about SEH __try/__except/__finally really, isn't it? ;-)
> For now we manage to do some transformation, the problem is with
> optimization because the code
> just after goto shouldn't be discarded even if it appears to be stupid
> because it cannot be executed.
You'll need to have an abnormal/EH edge coming into it, if I understand
things correctly, for dataflow to realise it can be invoked by some
non-standard path. Take a look in tree-eh.c; seems what you're doing is
pretty similar to how C++ try/except is implemented.
cheers,
DaveK