expr.c (store_expr): Optimize initialization of an array with STRING_CST.
commit14a43348bc523d889df7918ae8672b233b2ccf37
authorJakub Jelinek <jakub@redhat.com>
Fri, 24 Aug 2007 12:29:14 +0000 (24 14:29 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 24 Aug 2007 12:29:14 +0000 (24 14:29 +0200)
treee71678ea0f33cc3508fd3fe0dc995e4b09ea4872
parent492fc3e65ab2623ed56b8cbbcf0d8bd1c3552c12
expr.c (store_expr): Optimize initialization of an array with STRING_CST.

* expr.c (store_expr): Optimize initialization of an array
with STRING_CST.
* expr.h (builtin_strncpy_read_str): New prototype.
* builtins.c (builtin_strncpy_read_str): Remove prototype.
No longer static.

* gcc.dg/array-init-1.c: New test.

From-SVN: r127769
gcc/ChangeLog
gcc/builtins.c
gcc/expr.c
gcc/expr.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/array-init-1.c [new file with mode: 0644]