[tuples] [patch] use gsi_insert_before_without_update init_tmp_var

Rafael Espindola espindola@google.com
Wed Mar 26 17:54:00 GMT 2008


When init_tmp_var runs, cfun is not set. This causes gsi_insert_before
to abort. This patch makes it use gsi_insert_before_without_update and
adds an assert that cfun != NULL down the line so that we get better
error message if it happens again.

It fixes 313 fortran tests!!

 * gcc/tree-ssa-operands.c (ssa_operands_active): Assert that cfun is not NULL.
 * gcc/tree-nested.c (init_tmp_var): Use
gsi_insert_before_without_update instead of  gsi_insert_before.

Cheers,
-- 
Rafael Avila de Espindola

Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland

Registered in Dublin, Ireland
Registration Number: 368047
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix.patch
Type: text/x-patch
Size: 825 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080326/03fadf49/attachment.bin>


More information about the Gcc-patches mailing list