[gcc r14-5048] opts.cc: fix comment about DOCUMENTATION_ROOT_URL

David Malcolm dmalcolm@gcc.gnu.org
Tue Oct 31 21:12:05 GMT 2023


https://gcc.gnu.org/g:8b4ac021cd1f63125aaf8397479602b950438385

commit r14-5048-g8b4ac021cd1f63125aaf8397479602b950438385
Author: David Malcolm <dmalcolm@redhat.com>
Date:   Tue Oct 31 17:05:41 2023 -0400

    opts.cc: fix comment about DOCUMENTATION_ROOT_URL
    
    gcc/ChangeLog:
            * opts.cc (get_option_url): Update comment; the requirement to
            pass DOCUMENTATION_ROOT_URL's value via -D was removed in
            r10-8065-ge33a1eae25b8a8.
    
    Signed-off-by: David Malcolm <dmalcolm@redhat.com>

Diff:
---
 gcc/opts.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/opts.cc b/gcc/opts.cc
index 8015cb7556a2..f54cf8305ca1 100644
--- a/gcc/opts.cc
+++ b/gcc/opts.cc
@@ -3679,9 +3679,9 @@ char *
 get_option_url (diagnostic_context *, int option_index)
 {
   if (option_index)
-    return concat (/* DOCUMENTATION_ROOT_URL should be supplied via -D by
-		      the Makefile (see --with-documentation-root-url), and
-		      should have a trailing slash.  */
+    return concat (/* DOCUMENTATION_ROOT_URL should be supplied via
+		      #include "config.h" (see --with-documentation-root-url),
+		      and should have a trailing slash.  */
 		   DOCUMENTATION_ROOT_URL,
 
 		   /* get_option_html_page will return something like


More information about the Gcc-cvs mailing list