PR middle-end/38454
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Dec 2008 23:01:15 +0000 (23:01 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Dec 2008 23:01:15 +0000 (23:01 +0000)
commit198622c0a6c4cc57deb6e8bd6ab8ff0f0ffcf451
treef58c3d091da63db8a731136167c34e30bcf310d2
parentd7e5a0b1957182502b292d13c2374fe644d0c6c4
PR middle-end/38454
* function.h (struct function): Add always_inline_functions_inlined.
* ipa-inline.c (cgraph_early_inlining): Set it to true.
* tree-optimize.c (execute_fixup_cfg): Likewise.
* builtins.c (avoid_folding_inline_builtin): New function.
(fold_call_expr): Don't optimize always_inline builtins before
inlining.
(fold_call_stmt): Likewise.
(fold_builtin_call_array): Likewise.  Don't call
fold_builtin_varargs for BUILT_IN_MD builtins.

* gcc.dg/memset-1.c: New test.
* gcc.dg/memcpy-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142617 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/function.h
gcc/ipa-inline.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/memcpy-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/memset-1.c [new file with mode: 0644]
gcc/tree-optimize.c