summaryrefslogtreecommitdiff
path: root/gcc/builtins.h
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-04 08:49:49 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-04 08:49:49 +0000
commite788f20270758f8a8eaef4bf3efc2a90367da439 (patch)
treebab79632c35294405cd297e6c0e8d2b1e9be1150 /gcc/builtins.h
parent20f7edc1f548860cb8204db668da305f44c5c6e8 (diff)
downloadgcc-e788f20270758f8a8eaef4bf3efc2a90367da439.tar.gz
2014-12-04 Richard Biener <rguenther@suse.de>
* builtins.c (target_newline): Export. (target_percent_s_newline): Likewise. (fold_builtin_1): Do not fold printf functions here. (fold_builtin_2): Likewise. (fold_builtin_3): Likewise, do not fold strncat. (fold_builtin_strncat): Move to gimple-fold.c. (fold_builtin_printf): Likewise. * builtins.h (target_newline): Declare. (target_percent_s_newline): Likewise. * gimple-fold.c (gimple_fold_builtin_strncat): Move from builtins.c and gimplify. (gimple_fold_builtin_printf): Likewise. (gimple_fold_builtin): Fold strncat, printf, printf_unlocked, vprintf, printf_chk and vprintf_chk here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218343 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.h')
-rw-r--r--gcc/builtins.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/builtins.h b/gcc/builtins.h
index c857c94063c..661397c3f2d 100644
--- a/gcc/builtins.h
+++ b/gcc/builtins.h
@@ -89,8 +89,10 @@ extern bool is_inexpensive_builtin (tree);
extern bool readonly_data_expr (tree exp);
extern const char *c_getstr (tree);
extern bool init_target_chars (void);
+extern unsigned HOST_WIDE_INT target_newline;
extern unsigned HOST_WIDE_INT target_percent;
extern char target_percent_s[3];
extern char target_percent_c[3];
+extern char target_percent_s_newline[4];
#endif