comparison gcc/c-decl.c @ 48:9907f3135723

update CbC on GCC from 4.4.2 to 4.4.3.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Sun, 07 Feb 2010 17:48:31 +0900
parents 27e6f95b2c21 3bfb6c00c1e0
children 326d9e06c2e3
comparison
equal deleted inserted replaced
45:d645ac0f55d6 48:9907f3135723
6874 if (warn_return_type 6874 if (warn_return_type
6875 && TREE_CODE (TREE_TYPE (TREE_TYPE (fndecl))) != VOID_TYPE 6875 && TREE_CODE (TREE_TYPE (TREE_TYPE (fndecl))) != VOID_TYPE
6876 && !current_function_returns_value && !current_function_returns_null 6876 && !current_function_returns_value && !current_function_returns_null
6877 /* Don't complain if we are no-return. */ 6877 /* Don't complain if we are no-return. */
6878 && !current_function_returns_abnormally 6878 && !current_function_returns_abnormally
6879 /* Don't complain if we are declared noreturn. */
6880 && !TREE_THIS_VOLATILE (fndecl)
6879 /* Don't warn for main(). */ 6881 /* Don't warn for main(). */
6880 && !MAIN_NAME_P (DECL_NAME (fndecl)) 6882 && !MAIN_NAME_P (DECL_NAME (fndecl))
6881 /* Or if they didn't actually specify a return type. */ 6883 /* Or if they didn't actually specify a return type. */
6882 && !C_FUNCTION_IMPLICIT_INT (fndecl) 6884 && !C_FUNCTION_IMPLICIT_INT (fndecl)
6883 /* Normally, with -Wreturn-type, flow will complain, but we might 6885 /* Normally, with -Wreturn-type, flow will complain, but we might