code generation bug in x86 PIC

Mark Mitchell mark@codesourcery.com
Sat Nov 25 19:15:00 GMT 2000


>>>>> "Richard" == Richard Henderson <rth@redhat.com> writes:

    Richard> Frankly, the treatment of DECL_ASSEMBLER_NAME throughout
    Richard> the compiler is confusing to me.  Why would we normally
    Richard> set it at all for a local variable?  Why should
    Richard> build_decl automatically set it?

You have found two things that have been bugging me for a while: the
hard register thingy, and the fact that DECL_ASSEMBLER_NAME is set to
DECL_NAME, rather than NULL, when it is not really being used.

Your patch should be fine (it would be great if you could file a bug
about the C++ problem).

Ideally, DECL_ASSEMBLER_NAME would be NULL for all cases where we
don't need a name.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


More information about the Gcc-bugs mailing list