Mercurial > hg > CbC > CbC_gcc
diff 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 |
line wrap: on
line diff
--- a/gcc/c-decl.c Fri Jan 29 12:18:08 2010 +0900 +++ b/gcc/c-decl.c Sun Feb 07 17:48:31 2010 +0900 @@ -6876,6 +6876,8 @@ && !current_function_returns_value && !current_function_returns_null /* Don't complain if we are no-return. */ && !current_function_returns_abnormally + /* Don't complain if we are declared noreturn. */ + && !TREE_THIS_VOLATILE (fndecl) /* Don't warn for main(). */ && !MAIN_NAME_P (DECL_NAME (fndecl)) /* Or if they didn't actually specify a return type. */