diff options
author | Richard Guenther <rguenther@suse.de> | 2009-11-04 09:40:15 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-11-04 09:40:15 +0000 |
commit | e3b8749b11ce6763e1b413958b15955095ffd099 (patch) | |
tree | 4e0f40347c54926e23c511d26a4a282449a2ee8c /gcc/c-opts.c | |
parent | 00ffc97dfaff36299281e8f6641c137c86ba1b42 (diff) | |
download | gcc-e3b8749b11ce6763e1b413958b15955095ffd099.zip gcc-e3b8749b11ce6763e1b413958b15955095ffd099.tar.gz gcc-e3b8749b11ce6763e1b413958b15955095ffd099.tar.bz2 |
c-opts.c (c_common_post_options): Move LTO option processing code ...
2009-11-04 Richard Guenther <rguenther@suse.de>
* c-opts.c (c_common_post_options): Move LTO option processing
code ...
* opts.c (decode_options): ... here.
fortran/
* options.c (gfc_post_options): Rely on common code processing
LTO options. Only enable -fwhole-file here.
From-SVN: r153889
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 6c2f5a5..e026fd9 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -1033,29 +1033,6 @@ c_common_post_options (const char **pfilename) C_COMMON_OVERRIDE_OPTIONS; #endif - if (flag_lto || flag_whopr) - { -#ifdef ENABLE_LTO - flag_generate_lto = 1; - - /* When generating IL, do not operate in whole-program mode. - Otherwise, symbols will be privatized too early, causing link - errors later. */ - flag_whole_program = 0; - - /* FIXME lto. Disable var-tracking until debug information - is properly handled in free_lang_data. */ - flag_var_tracking = 0; -#else - error ("LTO support has not been enabled in this configuration"); -#endif - } - - /* Reconcile -flto and -fwhopr. Set additional flags as appropriate and - check option consistency. */ - if (flag_lto && flag_whopr) - error ("-flto and -fwhopr are mutually exclusive"); - /* Excess precision other than "fast" requires front-end support. */ if (c_dialect_cxx ()) |