diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-02-18 21:16:20 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2015-02-18 21:16:20 +0000 |
commit | 98ce9490b067e497a7ec904d2695ecd30af71bc8 (patch) | |
tree | df2082a9f5431c20971b2171803a45b082dc597f /gcc/tree-stdarg.c | |
parent | b06684b7abac241bb181ded2d045662086f53993 (diff) | |
download | gcc-98ce9490b067e497a7ec904d2695ecd30af71bc8.zip gcc-98ce9490b067e497a7ec904d2695ecd30af71bc8.tar.gz gcc-98ce9490b067e497a7ec904d2695ecd30af71bc8.tar.bz2 |
Add fstdarg-opt
2015-02-18 Tom de Vries <tom@codesourcery.com>
* common.opt (fstdarg-opt): New option.
* tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
* doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
(@item -fstdarg-opt): New item.
From-SVN: r220800
Diffstat (limited to 'gcc/tree-stdarg.c')
-rw-r--r-- | gcc/tree-stdarg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-stdarg.c b/gcc/tree-stdarg.c index 2cf0ca3..17d51a2 100644 --- a/gcc/tree-stdarg.c +++ b/gcc/tree-stdarg.c @@ -704,8 +704,9 @@ public: /* opt_pass methods: */ virtual bool gate (function *fun) { - /* This optimization is only for stdarg functions. */ - return fun->stdarg != 0; + return (flag_stdarg_opt + /* This optimization is only for stdarg functions. */ + && fun->stdarg != 0); } virtual unsigned int execute (function *); |