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] Fix miscompilation in output_constant_def


On 11/04/2009 09:59 AM, Maxim Kuvyrkov wrote:
3. Reload pass of the first function in compilation unit substitutes
(symbol_ref) for a register inside (mem), the result is (mem (reg)).

The question is, how did the MEM from the VAR_DECL escape into the rtl stream in the first place? In expand_expr_real, we have


       decl_rtl = DECL_RTL (exp);
     expand_decl_rtl:
       gcc_assert (decl_rtl);
       decl_rtl = copy_rtx (decl_rtl);

so it's not happening there...


r~



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