diff options
author | Martin Liska <mliska@suse.cz> | 2021-04-22 16:27:19 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-05-12 11:48:35 +0200 |
commit | 7d7d925d0d799eb9dda4a6bd6162af0a7db9c98b (patch) | |
tree | edfa09340001ff615c6af55c16446c7a89b2f5b4 /gcc/opts.c | |
parent | 227a2ecf663d69972b851f51f1934d18927b62cd (diff) | |
download | gcc-7d7d925d0d799eb9dda4a6bd6162af0a7db9c98b.zip gcc-7d7d925d0d799eb9dda4a6bd6162af0a7db9c98b.tar.gz gcc-7d7d925d0d799eb9dda4a6bd6162af0a7db9c98b.tar.bz2 |
Print warning diagnostics for -flto issues.
gcc/ChangeLog:
* lto-wrapper.c (print_lto_docs_link): New function.
(run_gcc): Print warning about missing job server detection
after we know NR of partitions. Do the same for -flto{,=1}.
* opts.c (get_option_html_page): Support -flto option.
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -3243,9 +3243,13 @@ get_option_html_page (int option_index) const cl_option *cl_opt = &cl_options[option_index]; /* Analyzer options are on their own page. */ - if (strstr(cl_opt->opt_text, "analyzer-")) + if (strstr (cl_opt->opt_text, "analyzer-")) return "gcc/Static-Analyzer-Options.html"; + /* Handle -flto= option. */ + if (strstr (cl_opt->opt_text, "flto")) + return "gcc/Optimize-Options.html"; + #ifdef CL_Fortran if ((cl_opt->flags & CL_Fortran) != 0 /* If it is option common to both C/C++ and Fortran, it is documented |