svn commit: r190404 - head/contrib/gcc
David Schultz
das at FreeBSD.org
Tue Mar 24 22:10:33 PDT 2009
Author: das
Date: Wed Mar 25 05:10:32 2009
New Revision: 190404
URL: http://svn.freebsd.org/changeset/base/190404
Log:
Merge an important change that I mistakenly left out when merging C99
inline function support. This should fix instances where gcc
spuriously reports the following error:
error: nested function 'foo' declared but never defined
Modified:
head/contrib/gcc/c-decl.c
Modified: head/contrib/gcc/c-decl.c
==============================================================================
--- head/contrib/gcc/c-decl.c Wed Mar 25 03:42:49 2009 (r190403)
+++ head/contrib/gcc/c-decl.c Wed Mar 25 05:10:32 2009 (r190404)
@@ -798,7 +798,9 @@ pop_scope (void)
&& DECL_ABSTRACT_ORIGIN (p) != p)
TREE_ADDRESSABLE (DECL_ABSTRACT_ORIGIN (p)) = 1;
if (!DECL_EXTERNAL (p)
- && DECL_INITIAL (p) == 0)
+ && DECL_INITIAL (p) == 0
+ && scope != file_scope
+ && scope != external_scope)
{
error ("nested function %q+D declared but never defined", p);
undef_nested_function = true;
More information about the svn-src-head
mailing list