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: C ASSEMBLER_NAME patch



On Thursday, July 24, 2003, at 01:50 PM, Bob Wilson wrote:


The second problem is that the aliased definition doesn't use the modified name. GCC emits the following:

        .type   init.0, @function
init.0:
	[ instructions deleted ]
        .size   init.0, .-init.0
        .global _init
        .set    _init,init

The last line should be ".set _init,init.0". I think that fixing this second problem would fix my glibc build, but it seems that the first problem ought to be fixed as well, since otherwise your patch isn't really doing what it's supposed to do.

It turns out that the 'alias' attribute wants the *assembler name* of the function, so the code generated was "correct". IMHO, this is less than useful functionality in this context...

I will fix the other problem you mentioned shortly.


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