diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2010-05-16 18:46:16 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2010-05-16 18:46:16 +0000 |
commit | 203a92e3844afd5a77cd57d626dca80244a45b89 (patch) | |
tree | eb2dcfa6dc12ef6d1819ecba260320551c6fdee8 /gcc/opts.c | |
parent | afdda4b4457a0dfe621b58e6e582cbc4d5511349 (diff) | |
download | gcc-203a92e3844afd5a77cd57d626dca80244a45b89.zip gcc-203a92e3844afd5a77cd57d626dca80244a45b89.tar.gz gcc-203a92e3844afd5a77cd57d626dca80244a45b89.tar.bz2 |
opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
* opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
(decode_options): Likewise.
* Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
From-SVN: r159463
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -502,24 +502,30 @@ handle_option (int opt_index, int value, const char *arg, { if (lang_hooks.handle_option (opt_index, arg, value, kind) == 0) return false; +#ifdef ENABLE_LTO else lto_register_user_option (opt_index, arg, value, lang_mask); + #endif } if (option->flags & CL_COMMON) { if (common_handle_option (opt_index, arg, value, lang_mask, kind) == 0) return false; +#ifdef ENABLE_LTO else lto_register_user_option (opt_index, arg, value, CL_COMMON); +#endif } if (option->flags & CL_TARGET) { if (!targetm.handle_option (opt_index, arg, value)) return false; +#ifdef ENABLE_LTO else lto_register_user_option (opt_index, arg, value, CL_TARGET); +#endif } return true; } @@ -980,8 +986,10 @@ decode_options (unsigned int argc, const char **argv) flag_unwind_tables = targetm.unwind_tables_default; } +#ifdef ENABLE_LTO /* Clear any options currently held for LTO. */ lto_clear_user_options (); +#endif #ifdef OPTIMIZATION_OPTIONS /* Allow default optimizations to be specified on a per-machine basis. */ |