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

Re: code generation bug in x86 PIC


>>>>> "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

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