comparison gcc/c-parser.c @ 9:ddf292032e7d

add fastcall.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Wed, 26 Aug 2009 15:11:42 +0900
parents 7ff9aed93de8
children 26e357f6275f
comparison
equal deleted inserted replaced
8:5066dc73ff8f 9:ddf292032e7d
1522 case RID_DFLOAT128: 1522 case RID_DFLOAT128:
1523 case RID_BOOL: 1523 case RID_BOOL:
1524 case RID_FRACT: 1524 case RID_FRACT:
1525 case RID_ACCUM: 1525 case RID_ACCUM:
1526 case RID_SAT: 1526 case RID_SAT:
1527 #ifndef noCbC
1528 case RID_CbC_CODE:
1529 #endif
1530 if (!typespec_ok) 1527 if (!typespec_ok)
1531 goto out; 1528 goto out;
1532 attrs_ok = true; 1529 attrs_ok = true;
1533 seen_type = true; 1530 seen_type = true;
1534 if (c_dialect_objc ()) 1531 if (c_dialect_objc ())
1536 t.kind = ctsk_resword; 1533 t.kind = ctsk_resword;
1537 t.spec = c_parser_peek_token (parser)->value; 1534 t.spec = c_parser_peek_token (parser)->value;
1538 declspecs_add_type (specs, t); 1535 declspecs_add_type (specs, t);
1539 c_parser_consume_token (parser); 1536 c_parser_consume_token (parser);
1540 break; 1537 break;
1538 #ifndef noCbC
1539 case RID_CbC_CODE:
1540 if (!typespec_ok)
1541 goto out;
1542 attrs_ok = true;
1543 seen_type = true;
1544 if (c_dialect_objc ())
1545 parser->objc_need_raw_identifier = true;
1546 t.kind = ctsk_resword;
1547 t.spec = c_parser_peek_token (parser)->value;
1548 declspecs_add_type (specs, t);
1549
1550 attrs = get_identifier("fastcall");
1551 attrs = build_tree_list(attrs, NULL_TREE);
1552 declspecs_add_attrs(specs, attrs);
1553
1554 c_parser_consume_token (parser);
1555 break;
1556 #endif
1541 case RID_ENUM: 1557 case RID_ENUM:
1542 if (!typespec_ok) 1558 if (!typespec_ok)
1543 goto out; 1559 goto out;
1544 attrs_ok = true; 1560 attrs_ok = true;
1545 seen_type = true; 1561 seen_type = true;