How can I add a keyword in gcc?

My goal is to analyze and study the details of compiler development methods. Here I want to add a keyword in gcc and see how it works.

+4
source share
1 answer

You need to add an entry in c_common_reswords , in c-common.c . You will need to select the new constant RID_ for this and process it in accordance with the semantics that you want to give.

+7
source

All Articles