[Bug c++/36767] [4.3/4.4 Regression] Segmentation fault with -fprofile-arcs -O2
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jul 28 15:01:00 GMT 2008
------- Comment #12 from jakub at gcc dot gnu dot org 2008-07-28 15:00 -------
There are unneeded {} pairs, when there is just one statement in for/if, you
should just write
if (something)
DECL_CONTEXT (x) = current_function_decl;
and similar for
for (.....)
if (something)
DECL_CONTEXT (var) = current_function_decl.
Also, I think it is unnecessary to pass current_function_decl as data to the
callback, current_function_decl is accessible in the callback too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36767
More information about the Gcc-bugs
mailing list