diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2003-10-28 01:05:12 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2003-10-28 01:05:12 +0000 |
commit | 40fe4dd5a817b469030aaa517fcd999bf42c52ef (patch) | |
tree | e2e7c968d673c29bb4eddd6154f27b01f32110d7 /gcc/c-decl.c | |
parent | f4d0b3d4fdd117b33d8172082f799631aa729310 (diff) | |
download | gcc-40fe4dd5a817b469030aaa517fcd999bf42c52ef.zip gcc-40fe4dd5a817b469030aaa517fcd999bf42c52ef.tar.gz gcc-40fe4dd5a817b469030aaa517fcd999bf42c52ef.tar.bz2 |
* c-decl.c (pushdecl): Clarify comment.
From-SVN: r72998
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 93ce347..96fb4bb 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -1712,10 +1712,10 @@ pushdecl (tree x) if (DECL_EXTERNAL (x) || scope == global_scope) { /* Find and check against a previous, not-in-scope, external - decl for this identifier. (C99 s???: If two declarations - with external linkage, referring to the same object, have - incompatible types, the behavior is undefined). */ - tree ext = any_external_decl (name); + decl for this identifier. (C99 6.2.7p2: All declarations + that refer to the same object or function shall have + compatible type; otherwise, the behavior is undefined.) */ + tree ext = any_external_decl (name); if (ext) { if (duplicate_decls (x, ext, scope != global_scope, |