diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-08-24 14:29:14 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2007-08-24 14:29:14 +0200 |
commit | 14a43348bc523d889df7918ae8672b233b2ccf37 (patch) | |
tree | e71678ea0f33cc3508fd3fe0dc995e4b09ea4872 /gcc/expr.h | |
parent | 492fc3e65ab2623ed56b8cbbcf0d8bd1c3552c12 (diff) | |
download | gcc-14a43348bc523d889df7918ae8672b233b2ccf37.tar.gz |
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
Diffstat (limited to 'gcc/expr.h')
-rw-r--r-- | gcc/expr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/expr.h b/gcc/expr.h index ed5b84b004e..242329a37be 100644 --- a/gcc/expr.h +++ b/gcc/expr.h @@ -341,6 +341,7 @@ extern void expand_builtin_setjmp_setup (rtx, rtx); extern void expand_builtin_setjmp_receiver (rtx); extern rtx expand_builtin_saveregs (void); extern void expand_builtin_trap (void); +extern rtx builtin_strncpy_read_str (void *, HOST_WIDE_INT, enum machine_mode); /* Functions from expr.c: */ |