# HG changeset patch # User Nobuyasu Oshiro # Date 1328405051 -32400 # Node ID 29a62213c1d0442ebeba65a28f864bb6b1b8d2aa # Parent 98e1e78a6b5a97dd5f293be367259056e768b2eb add "code" syntax diff -r 98e1e78a6b5a -r 29a62213c1d0 gcc/c-family/c-common.c --- a/gcc/c-family/c-common.c Tue Jan 24 18:11:15 2012 +0900 +++ b/gcc/c-family/c-common.c Sun Feb 05 10:24:11 2012 +0900 @@ -423,6 +423,7 @@ #ifndef noCbC /* CbC project */ { "__code", RID_CbC_CODE, 0 }, + { "code", RID_CbC_CODE, 0 }, { "__rectype", RID_CbC_REC, 0}, { "selftype", RID_CbC_SELFTYPE, 0}, #endif diff -r 98e1e78a6b5a -r 29a62213c1d0 gcc/c-parser.c --- a/gcc/c-parser.c Tue Jan 24 18:11:15 2012 +0900 +++ b/gcc/c-parser.c Sun Feb 05 10:24:11 2012 +0900 @@ -2480,7 +2480,7 @@ decls = c_parser_struct_declaration (parser); #ifndef noCbC - /* If tree type of d_type is selftype, d_type modify to RECORD_TYPE: (d_type = type). */ + /* If tree type of tmptype is selftype, tmptype modify to RECORD_TYPE of struct [CPP_NAME]. */ if(TREE_CODE(decls) == FIELD_DECL && TREE_CODE(type) == RECORD_TYPE) { tree tmptype = decls; while(TREE_CODE (TREE_TYPE (tmptype)) == POINTER_TYPE)