-
- Downloads
c-parse.in (parsing_iso_function_signature): New variable.
gcc: * c-parse.in (parsing_iso_function_signature): New variable. (extdef_1): New, copied from... (extdef): ... here. Reset parsing_iso_function_signature. (old_style_parm_decls): Reset parsing_iso_function_signature. (old_style_parm_decls_1): New, copied from old_style_parm_decls. Warn about ISO C style function definitions. (nested_function, notype_nested_function): Reset parsing_iso_function_signature. (parmlist_2): Set parsing_iso_function_signature. * doc/invoke.texi (-Wtraditional): Document new behavior. gcc/testsuite: * gcc.dg/cpp/tr-warn2.c: Use traditional C style function definitions. * gcc.dg/wtr-aggr-init-1.c: Likewise. * gcc.dg/wtr-conversion-1.c: Likewise. * gcc.dg/wtr-escape-1.c: Likewise. * gcc.dg/wtr-int-type-1.c: Likewise. * gcc.dg/wtr-label-1.c: Likewise. * gcc.dg/wtr-static-1.c: Likewise. * gcc.dg/wtr-strcat-1.c: Likewise. * gcc.dg/wtr-suffix-1.c: Likewise. * gcc.dg/wtr-switch-1.c: Likewise. * gcc.dg/wtr-unary-plus-1.c: Likewise. * gcc.dg/wtr-union-init-1.c: Likewise. * gcc.dg/wtr-union-init-2.c: Likewise. * gcc.dg/wtr-union-init-3.c: Likewise. * gcc.dg/wtr-func-def-1.c: New test. From-SVN: r55201
Showing
- gcc/ChangeLog 14 additions, 0 deletionsgcc/ChangeLog
- gcc/c-parse.in 23 additions, 1 deletiongcc/c-parse.in
- gcc/doc/invoke.texi 9 additions, 0 deletionsgcc/doc/invoke.texi
- gcc/testsuite/ChangeLog 19 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/cpp/tr-warn2.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/cpp/tr-warn2.c
- gcc/testsuite/gcc.dg/wtr-aggr-init-1.c 2 additions, 2 deletionsgcc/testsuite/gcc.dg/wtr-aggr-init-1.c
- gcc/testsuite/gcc.dg/wtr-conversion-1.c 2 additions, 2 deletionsgcc/testsuite/gcc.dg/wtr-conversion-1.c
- gcc/testsuite/gcc.dg/wtr-escape-1.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/wtr-escape-1.c
- gcc/testsuite/gcc.dg/wtr-func-def-1.c 204 additions, 0 deletionsgcc/testsuite/gcc.dg/wtr-func-def-1.c
- gcc/testsuite/gcc.dg/wtr-int-type-1.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/wtr-int-type-1.c
- gcc/testsuite/gcc.dg/wtr-label-1.c 4 additions, 2 deletionsgcc/testsuite/gcc.dg/wtr-label-1.c
- gcc/testsuite/gcc.dg/wtr-static-1.c 2 additions, 2 deletionsgcc/testsuite/gcc.dg/wtr-static-1.c
- gcc/testsuite/gcc.dg/wtr-strcat-1.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/wtr-strcat-1.c
- gcc/testsuite/gcc.dg/wtr-suffix-1.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/wtr-suffix-1.c
- gcc/testsuite/gcc.dg/wtr-switch-1.c 2 additions, 1 deletiongcc/testsuite/gcc.dg/wtr-switch-1.c
- gcc/testsuite/gcc.dg/wtr-unary-plus-1.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/wtr-unary-plus-1.c
- gcc/testsuite/gcc.dg/wtr-union-init-1.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/wtr-union-init-1.c
- gcc/testsuite/gcc.dg/wtr-union-init-2.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/wtr-union-init-2.c
- gcc/testsuite/gcc.dg/wtr-union-init-3.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/wtr-union-init-3.c
Loading
Please register or sign in to comment