diff options
author | Richard Guenther <rguenther@suse.de> | 2012-01-18 13:10:40 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-01-18 13:10:40 +0000 |
commit | ba9b1f118f25bcb8728d8d140efe40c9c9976be0 (patch) | |
tree | 14f4b308bea58a92aaeb69ba8b4197977f649c43 /gcc/c-family | |
parent | b8cf611dad77c4a3b1dcff3e3658b8d5128a1357 (diff) | |
download | gcc-ba9b1f118f25bcb8728d8d140efe40c9c9976be0.zip gcc-ba9b1f118f25bcb8728d8d140efe40c9c9976be0.tar.gz gcc-ba9b1f118f25bcb8728d8d140efe40c9c9976be0.tar.bz2 |
c-opts.c (c_common_post_options): Reset LTO flags if we are about to generate a PCH.
2012-01-18 Richard Guenther <rguenther@suse.de>
* c-opts.c (c_common_post_options): Reset LTO flags if
we are about to generate a PCH.
From-SVN: r183272
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-family/c-opts.c | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 2746d04..c2045f9 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2012-01-18 Richard Guenther <rguenther@suse.de> + + * c-opts.c (c_common_post_options): Reset LTO flags if + we are about to generate a PCH. + 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51777 diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index 4f0d886..f2a7971 100644 --- a/gcc/c-family/c-opts.c +++ b/gcc/c-family/c-opts.c @@ -1058,6 +1058,13 @@ c_common_post_options (const char **pfilename) && flag_preprocess_only && !flag_no_line_commands) pp_dir_change (parse_in, get_src_pwd ()); + /* Disable LTO output when outputting a precompiled header. */ + if (pch_file && flag_lto) + { + flag_lto = 0; + flag_generate_lto = 0; + } + return flag_preprocess_only; } |