Mercurial > hg > CbC > CbC_gcc
changeset 100:29a62213c1d0
add "code" syntax
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 05 Feb 2012 10:24:11 +0900 |
parents | 98e1e78a6b5a |
children | 5c3ad79fc15b |
files | gcc/c-family/c-common.c gcc/c-parser.c |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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)