This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Error handling after gimple statement insert.
- From: Matt Davis <mattdavis9 at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 15 Aug 2012 10:54:37 +1000
- Subject: Error handling after gimple statement insert.
Hello,
In my compiler pass, I am inserting a new gimple call statement, and
then replacing the next call. This usually works fine, and after I do
this, the gimple dump looks as I expect. However, in one case, I
trigger gcc to abort in "remove_unreachable_handlers, at
tree-eh.c:3524" this is for gcc 4.7.1. When I perform the
gsi_insert() and gsi_replace() I maintain the EH data via setting the
'update_eh_info' argument to 'true' in the latter function call. The
latter also updates the gimple statement, so I am really not sure what
else I should be doing. Usually this works, but in one of my cases it
is failing. I have not been able to pinpoint what is unique about the
failing case. I am just looking for any insight.
Thanks!
-Matt