This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/36767] [4.3/4.4 Regression] Segmentation fault with -fprofile-arcs -O2



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]