Mercurial > hg > CbC > CbC_gcc
comparison gcc/c/c-parser.c @ 125:2c7bdd5a49f6
supress return with no value, in function returning non-void warning on goto code segment in normal function
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 01 Apr 2018 14:05:45 +0900 |
parents | fd00160c1b76 |
children | 5d30d517ebed |
comparison
equal
deleted
inserted
replaced
124:c3a50d7877e8 | 125:2c7bdd5a49f6 |
---|---|
5635 TREE_TYPE(expr.value) = void_type_node; | 5635 TREE_TYPE(expr.value) = void_type_node; |
5636 /*tree env = NULL_TREE;**/ | 5636 /*tree env = NULL_TREE;**/ |
5637 CbC_IS_CbC_GOTO (expr.value) = 1; | 5637 CbC_IS_CbC_GOTO (expr.value) = 1; |
5638 CALL_EXPR_TAILCALL (expr.value) = 1; | 5638 CALL_EXPR_TAILCALL (expr.value) = 1; |
5639 add_stmt(expr.value); | 5639 add_stmt(expr.value); |
5640 bool warn_return_type_save = warn_return_type; | |
5641 bool flag_isoc99_save = flag_isoc99; | |
5642 warn_return_type = false; | |
5643 flag_isoc99 = false; | |
5640 stmt = c_finish_return(loc, NULL_TREE, NULL_TREE); /* stmt = c_finish_return (0); */ | 5644 stmt = c_finish_return(loc, NULL_TREE, NULL_TREE); /* stmt = c_finish_return (0); */ |
5645 warn_return_type = warn_return_type_save; | |
5646 flag_isoc99 = flag_isoc99_save; | |
5641 } | 5647 } |
5642 else | 5648 else |
5643 c_parser_error (parser, "expected code segment jump or %<*%>"); | 5649 c_parser_error (parser, "expected code segment jump or %<*%>"); |
5644 } | 5650 } |
5645 #else | 5651 #else |