fix gcc.dg/tree-ssa/useless-1.c
Geoff Keating
geoffk@geoffk.org
Thu May 19 17:19:00 GMT 2005
On 18/05/2005, at 6:07 PM, Richard Henderson wrote:
> I'm not sure what Geoff was trying to accomplish with this change,
> but it's wrong.
>
>
'gcc -da nothing.c' crashed because execute_todo does:
if (properties & PROP_trees)
dump_function_to_file (current_function_decl,
dump_file, dump_flags);
else if (properties & PROP_cfg)
print_rtl_with_bb (dump_file, get_insns ());
else
print_rtl (dump_file, get_insns ());
and get_insns() is not available yet, we do not have RTL.
> * tree-cfg.c (pass_remove_useless): Revert last change.
> * tree-optimize.c (init_tree_optimization_passes): Initialize
> all_lowering_passes with PROP_gimple_any.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2410 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050519/2e74ff73/attachment.p7s>
More information about the Gcc-patches
mailing list