This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: code generation bug in x86 PIC
- To: rth at redhat dot com
- Subject: Re: code generation bug in x86 PIC
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sat, 25 Nov 2000 19:15:21 -0800
- Cc: drepper at cygnus dot com, gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <m3vgtb6g0r.fsf@otr.mynet.cygnus.com><20001125164013.A24951@redhat.com>
>>>>> "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