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 9a] Add "__RTL" to C frontend


On Mon, 9 Jan 2017, David Malcolm wrote:

> This part of the patch adds the ability to tag a function with
> "__RTL", analogous to the "__GIMPLE" tag.
> 
> gcc/c-family/ChangeLog:
> 	* c-common.c (c_common_reswords): Add "__RTL".
> 	* c-common.h (enum rid): Add RID_RTL.
> 
> gcc/c/ChangeLog:
> 	* c-parser.c: Include "read-rtl-function.h" and
> 	"run-rtl-passes.h".
> 	(c_parser_declaration_or_fndef): Rename "gimple-pass-list" in
> 	grammar to gimple-or-rtl-pass-list.  Add rtl-function-definition
> 	production.  Update for renaming of field "gimple_pass" to
> 	"gimple_or_rtl_pass".  If __RTL was seen, call
> 	c_parser_parse_rtl_body.  Convert a timevar_push/pop pair
> 	to an auto_timevar, to cope with early exit.
> 	(c_parser_declspecs): Update RID_GIMPLE handling for renaming of
> 	field "gimple_pass" to "gimple_or_rtl_pass", and for renaming of
> 	c_parser_gimple_pass_list to c_parser_gimple_or_rtl_pass_list.
> 	Handle RID_RTL.
> 	(c_parser_parse_rtl_body): New function.
> 	* c-tree.h (enum c_declspec_word): Add cdw_rtl.
> 	(struct c_declspecs): Rename field "gimple_pass" to
> 	"gimple_or_rtl_pass".  Add field "rtl_p".
> 	* gimple-parser.c (c_parser_gimple_pass_list): Rename to...
> 	(c_parser_gimple_or_rtl_pass_list): ...this, updating accordingly.
> 	* gimple-parser.h (c_parser_gimple_pass_list): Rename to...
> 	(c_parser_gimple_or_rtl_pass_list): ...this.
> 
> gcc/ChangeLog:
> 	* function.h (struct function): Update comment for field
> 	"pass_startwith".

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


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