This is the mail archive of the gcc@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: Code transformation and optimization


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


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