[tree-ssa] Treat ASM_EXPR operands as real operands [patch]

Jason Merrill jason@redhat.com
Tue Jul 22 19:38:00 GMT 2003


On 22 Jul 2003 15:20:13 -0400, Diego Novillo <dnovillo@redhat.com> wrote:

> On Tue, 2003-07-22 at 15:00, Jason Merrill wrote:
>> On 22 Jul 2003 14:15:49 -0400, Diego Novillo <dnovillo@redhat.com> wrote:
>> 
>> > On Tue, 2003-07-22 at 14:01, Jason Merrill wrote:
>> >> Hmm.  You could probably use DECL_RTL_SET_P, but that seems fragile.
>> 
>> > It's still not set when we are in the tree optimizers.
>> 
>> It sure looks like it should be for a decl with an explicit asm specifier;
>> finish_decl calls rest_of_decl_compilation, which calls make_decl_rtl if
>> there's an asmspec.
>> 
> It's definitely not the case here.  Oddly, finish_decl is *never* called
> in this program.  I set a breakpoint in cp/decl.c:finish_decl and it
> never triggered.

C++, is it?

Then cp_finish_decl should call make_rtl_for_nonlocal_decl, which either
calls make_decl_rtl directly or rest_of_decl_compilation.

Jason



More information about the Gcc-patches mailing list