re PR c/36507 (ISO C99 inline semantics doesn't play together with nested functions)
authorJakub Jelinek <jakub@redhat.com>
Fri, 13 Jun 2008 09:38:31 +0000 (11:38 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 13 Jun 2008 09:38:31 +0000 (11:38 +0200)
commit6cf598659e764d8955a1a90c32d2519ab689cea0
tree5af24d70e0a73823535ae8c8ff4e6923ffecee6a
parent6a4533e55451309198c5d36558a4b875b5555c88
re PR c/36507 (ISO C99 inline semantics doesn't play together with nested functions)

PR c/36507
* c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
nested inline functions.
(start_decl, start_function): Don't invert DECL_EXTERNAL
for nested inline functions.

* gcc.dg/inline-28.c: New test.
* gcc.dg/inline-29.c: New test.
* gcc.dg/inline-30.c: New test.

From-SVN: r136745
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/inline-28.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/inline-29.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/inline-30.c [new file with mode: 0644]