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


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

Currently gcc does not generate correct assembly source for a symbol 
with vector attribute i.e it should generate '@@foo' instead of '@foo'.
I have updated patch for this and to accept function_vector attribute 
with and without parameter. This will keep old behavior and also give 
user flexibility to explicitly assign vector address.

For example, if foo is declared as
void foo (void) __attribute__ ((function_vector));
compiler will generate 'jsr @@_foo' and linker will allocate vector number.

and if foo is declared as
void foo (void) __attribute__ ((function_vector(16)));
compiler will generate 'jsr @@16:8' and linker will keep the same address.

Please review the attached patch.

Regards,
Asgari Jinia
KPIT Cummins InfoSystems Ltd.
Pune, India
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH and H8 Series.
The following site also offers free technical support to its users. 
Visit http://www.kpitgnutools.com for details. 
Latest versions of KPIT GNU tools are released on October 1, 2004.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

Attachment: func_vect.txt
Description: func_vect.txt


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