c-decl.c (build_compound_literal): Defer compound literal decls until until file...
authorJakub Jelinek <jakub@redhat.com>
Mon, 22 Jul 2002 10:11:16 +0000 (12:11 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 22 Jul 2002 10:11:16 +0000 (12:11 +0200)
commitcf3c4f5609b982b1e640f5ac5a51b07711ec29de
tree3ea4f8ebfcd8cea35de19665d6ffa3cbdf453ef4
parent9f8da5fad69532eca570bb5420c23fbe41e4dc4d
c-decl.c (build_compound_literal): Defer compound literal decls until until file end to emit them only if...

* c-decl.c (build_compound_literal): Defer compound literal decls
until until file end to emit them only if they are actually used.

* gcc.dg/gnu89-init-2.c: New test.

From-SVN: r55645
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gnu89-init-2.c [new file with mode: 0644]