diff options
author | Richard Stallman <rms@gnu.org> | 1992-10-28 21:39:12 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-10-28 21:39:12 +0000 |
commit | b0e919dea6cdbb3bad7b7fa331197a255094857c (patch) | |
tree | 5f1c53655211eb27451721457317aed6c94c4272 | |
parent | 9df7926f2cdcb7c19273b444816e1246523f16d1 (diff) | |
download | gcc-b0e919dea6cdbb3bad7b7fa331197a255094857c.zip gcc-b0e919dea6cdbb3bad7b7fa331197a255094857c.tar.gz gcc-b0e919dea6cdbb3bad7b7fa331197a255094857c.tar.bz2 |
(pushdecl): Allow redeclaring builtin as any sort of static.
From-SVN: r2639
-rw-r--r-- | gcc/c-decl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 5e8fd43..40f30d3 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -1906,9 +1906,8 @@ pushdecl (x) if (TREE_PUBLIC (name) && ! TREE_PUBLIC (x) && ! DECL_EXTERNAL (x)) { - /* Okay to declare an ANSI built-in as inline static. */ - if (t != 0 && DECL_BUILT_IN (t) - && DECL_INLINE (x)) + /* Okay to redeclare an ANSI built-in as static. */ + if (t != 0 && DECL_BUILT_IN (t)) ; /* Okay to declare a non-ANSI built-in as anything. */ else if (t != 0 && DECL_BUILT_IN_NONANSI (t)) |