Patcht to allow backends to chose the default section of a decl
Jeffrey A Law
Sun Aug 30 19:22:00 GMT 1998
In message < 199808110033.RAA32060@elmo.cygnus.com >you write:
> I would like to submit the following patch. This patch creates a
> new macro definable in the target specific header file called
> SET_DEFAULT_SECTION_NAME. If defined the macro contains a C
> expression which can be used to set the 'section_name' field of
> the provided decl. This would prove useful for the v850 port.
> Fri Aug 7 17:25:29 1998 Nick Clifton <email@example.com>
> * c-decl.c (start_decl): Add use of SET_DEFAULT_SECTION_NAME, if
> (start_function): Add use of SET_DEFAULT_SECTION_NAME, if defined.
> * tm.texi (SET_DEFAULT_SECTION_NAME): New macro. Allows backend
> to setup the section name of a decl when it is created.
Why can't this be done as part of SET_DEFAULT_DECL_ATTRIBUTES? Especially
since sections are supposed to be set via attributes.
More information about the Gcc-patches