[pushed] opts.cc: fix comment about DOCUMENTATION_ROOT_URL

Message ID 20231031211556.1907893-1-dmalcolm@redhat.com
State Accepted
Headers
Series [pushed] opts.cc: fix comment about DOCUMENTATION_ROOT_URL |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

David Malcolm Oct. 31, 2023, 9:15 p.m. UTC
  Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
Pushed to trunk as r14-5048-g8b4ac021cd1f63.

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.
---
 gcc/opts.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
  

Patch

diff --git a/gcc/opts.cc b/gcc/opts.cc
index 8015cb7556a..f54cf8305ca 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