This is the mail archive of the gcc-patches@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]

Re: [PATCH] Small fix for make_decl_rtl_for_debug


On 03/22/10 03:29, Jakub Jelinek wrote:
Hi!

As already mentioned by me in the VTA alias set discrepancy
thread, flag_mudflap is another thing that is IMHO undesirable
to have set during make_decl_rtl make_decl_rtl_for_debug calls,
as that means we register the decl in different places with -g0
vs. -g.  make_decl_rtl ends with:
   /* Make this function static known to the mudflap runtime.  */
   if (flag_mudflap&&  TREE_CODE (decl) == VAR_DECL)
     mudflap_enqueue_decl (decl);
and that code pushes the decl into a vector which is later on used for code
generation.  Fixed thusly, ok for trunk?

2010-03-22 Jakub Jelinek<jakub@redhat.com>

* varasm.c (make_decl_rtl_for_debug): Also clear
flag_mudflap for the duration of make_decl_rtl call.
OK.
Jeff


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