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: [PATCH - h8300] function_vector attribute in H8300 targets


On Fri, 2004-12-24 at 16:27 +0530, Asgari J. Jinia wrote:
> Hi,
>  
>  Please review the following patch to accept in FSF.
>  
> http://gcc.gnu.org/ml/gcc-patches/2004-10/msg00234.html
So how does this patch interact with the old code which had the linker
automatically putting these objects into the vector?

ie, for a symbol with the vector attribute we would generate

jsr @foo:8


The assembler would generate a suitable relocation, the linker would
then find a slot in the function vector and insert foo's address
into the vector.  The linker would then fixup the jsr instruction so
that it referenced the right entry in the function vector.

>From a quick glance, it appears your change removes that functionality
and requires the user to assign slots in the function vector explicitly.

I think it would be a *lot* better if we could support both styles.

jeff



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