diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-10 19:18:44 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-10 19:18:44 +0000 |
commit | e40d1c7f12944e7d96eceb97eaf8624e9bc7a64c (patch) | |
tree | 4383095378b28e6e45d09150681fc6915e9273b9 | |
parent | 3a7ca9df23e499cb422225146c32b41c7b2a18ad (diff) | |
download | gcc-e40d1c7f12944e7d96eceb97eaf8624e9bc7a64c.tar.gz |
* c-decl.c (store_parm_decls_newstyle): Correct test for a
nested function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81677 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/c-decl.c | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 36330b7e02d..43f568264f4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-05-10 Zack Weinberg <zack@codesourcery.com> + + * c-decl.c (store_parm_decls_newstyle): Correct test for a + nested function. + 2004-05-10 Richard Sandiford <rsandifo@redhat.com> * read-rtl.c (read_rtx): Allow 's' and 'T' strings to be omitted, @@ -35,7 +40,7 @@ * config/rs6000/rs6000.c (function_arg_boundary): Align for ABI_V4 when size is 8 bytes. (function_arg_advance): Account for stack space used by AltiVec - args when -mabi=altivec. Simplify alignment calculations. For + args when -mabi=altivec. Simplify alignment calculations. For ABI_V4, pass AltiVec vectors by reference when -mabi=no-altivec. (function_arg): Similarly. (function_arg_pass_by_reference): True for ABI_V4 AltiVec when diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 3889726d492..b03ba809e3c 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -5828,8 +5828,7 @@ store_parm_decls_newstyle (tree fndecl, tree arg_info) warning if we got here because ARG_INFO_TYPES was error_mark_node (this happens when a function definition has just an ellipsis in its parameter list). */ - else if (warn_traditional && !in_system_header - && !current_scope->outer_function + else if (warn_traditional && !in_system_header && !current_function_scope && ARG_INFO_TYPES (arg_info) != error_mark_node) warning ("%Jtraditional C rejects ISO C style function definitions", fndecl); |