[PATCH] Small fix for make_decl_rtl_for_debug
Jeff Law
law@redhat.com
Mon Mar 22 16:32:00 GMT 2010
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
More information about the Gcc-patches
mailing list