Patcht to allow backends to chose the default section of a decl

Jeffrey A Law law@cygnus.com
Sun Aug 30 19:22:00 GMT 1998


  In message < 199808110033.RAA32060@elmo.cygnus.com >you write:
  > Hi,
  > 
  >   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.
  > 
  > Cheers
  > 	Nick
  > 
  > 
  > Fri Aug  7 17:25:29 1998  Nick Clifton  <nickc@cygnus.com>
  > 
  > 	* c-decl.c (start_decl): Add use of SET_DEFAULT_SECTION_NAME, if
  > 	defined. 
  > 	(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.

jeff



More information about the Gcc-patches mailing list