diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-12-10 00:01:15 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-12-10 00:01:15 +0100 |
commit | 0889e9bc6841c76484e029eeed31f85a35ae4e55 (patch) | |
tree | f58c3d091da63db8a731136167c34e30bcf310d2 /gcc/function.h | |
parent | 218d1c24bb8bd00b49a4c9097b5777a2c25ba231 (diff) | |
download | gcc-0889e9bc6841c76484e029eeed31f85a35ae4e55.zip gcc-0889e9bc6841c76484e029eeed31f85a35ae4e55.tar.gz gcc-0889e9bc6841c76484e029eeed31f85a35ae4e55.tar.bz2 |
re PR middle-end/38454 (memcpy folding breaks -D_FORTIFY_SOURCE=2 protection)
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.
From-SVN: r142617
Diffstat (limited to 'gcc/function.h')
-rw-r--r-- | gcc/function.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/function.h b/gcc/function.h index 16f2324..68df55e 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -578,6 +578,7 @@ struct function GTY(()) unsigned int dont_save_pending_sizes_p : 1; unsigned int after_inlining : 1; + unsigned int always_inline_functions_inlined : 1; /* Fields below this point are not set for abstract functions; see allocate_struct_function. */ |