Mercurial > hg > CbC > CbC_gcc
changeset 74:f26ecf70364b
modify c-decl.c, c-parser.c, c-tree.h and tree.h
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 22 Aug 2011 03:31:39 +0900 |
parents | ce75bd9117e4 |
children | 3c5ea37d9068 |
files | gcc/c-decl.c gcc/c-parser.c gcc/c-tree.h gcc/tree.h |
diffstat | 4 files changed, 12 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gcc/c-decl.c Mon Aug 22 01:54:47 2011 +0900 +++ b/gcc/c-decl.c Mon Aug 22 03:31:39 2011 +0900 @@ -2844,7 +2844,7 @@ return x; } - + static void implicit_decl_warning (tree id, tree olddecl) {
--- a/gcc/c-parser.c Mon Aug 22 01:54:47 2011 +0900 +++ b/gcc/c-parser.c Mon Aug 22 03:31:39 2011 +0900 @@ -4414,6 +4414,7 @@ static void c_parser_statement_after_labels (c_parser *parser) { + struct c_expr expr; location_t loc = c_parser_peek_token (parser)->location; tree stmt = NULL_TREE; bool in_if_block = parser->in_if_block; @@ -4451,8 +4452,6 @@ if (c_parser_next_token_is (parser, CPP_NAME)) { #endif - if (c_parser_next_token_is (parser, CPP_NAME)) - { stmt = c_finish_goto_label (loc, c_parser_peek_token (parser)->value); c_parser_consume_token (parser);
--- a/gcc/c-tree.h Mon Aug 22 01:54:47 2011 +0900 +++ b/gcc/c-tree.h Mon Aug 22 03:31:39 2011 +0900 @@ -199,6 +199,9 @@ cts_float, cts_int128, cts_double, +#ifndef noCbC + cts_CbC_code, +#endif cts_dfloat32, cts_dfloat64, cts_dfloat128, @@ -450,7 +453,13 @@ struct c_declspecs *, tree, tree *); extern tree groktypename (struct c_type_name *, tree *, bool *); extern tree grokparm (const struct c_parm *); + +#ifndef noCbC +extern tree implicitly_declare (location_t, tree, int); +#else extern tree implicitly_declare (location_t, tree); +#endif + extern void keep_next_level (void); extern void pending_xref_error (void); extern void c_push_function_context (void);
--- a/gcc/tree.h Mon Aug 22 01:54:47 2011 +0900 +++ b/gcc/tree.h Mon Aug 22 03:31:39 2011 +0900 @@ -1707,6 +1707,7 @@ */ #define CALL_EXPR_FN(NODE) TREE_OPERAND (CALL_EXPR_CHECK (NODE), 1) #define CALL_EXPR_STATIC_CHAIN(NODE) TREE_OPERAND (CALL_EXPR_CHECK (NODE), 2) +#define CALL_EXPR_ARGS(NODE) call_expr_arglist (NODE) #define CALL_EXPR_ARG(NODE, I) TREE_OPERAND (CALL_EXPR_CHECK (NODE), (I) + 3) #define call_expr_nargs(NODE) (VL_EXP_OPERAND_LENGTH(NODE) - 3)