I came across the following problem when trying to instrument the program.

If I take the address of trees using build_fold_addr_expr at O2 the
compiled programs
crash (segmentation fault) at runtime. They run OK at O0. In this
particular case I only took
the addresses of var_decl and parm_decl nodes. What optimization could
I be interfering with?

In fact I did not perform instrumentation for I noticed that the
moment build_fold_addr_expr is
called and it set the TREE_ADDRESSABLE flag the program would crash.

thanks.
-- dasarath

Reply via email to