]> git.ipfire.org Git - thirdparty/gcc.git/commit
v2: DOCUMENTATION_ROOT_URL vs. release branches [PR114738]
authorJakub Jelinek <jakub@redhat.com>
Wed, 24 Apr 2024 16:29:12 +0000 (18:29 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 24 Apr 2024 16:29:12 +0000 (18:29 +0200)
commit97a54c05b8e338e673e1f7fb72c0e23abb571c60
tree0a4a58ad66d5caba979cb629c0b85057e5e35e5d
parentbc17a92380ff89b47b5bdc54d44368174d97d2df
v2: DOCUMENTATION_ROOT_URL vs. release branches [PR114738]

This patch moves the documentation root URL infix for release branches
from get_option_url/make_doc_url to configure, such that only the default
changes and when users specify a custom documentation root URL, they don't
have to add gcc-MAJOR.MINOR.0 subdirectories for release branches.

Tested by checking
../configure --disable-bootstrap --enable-languages=c --disable-multilib
built trunk on
void
foo (int x)
{
  __builtin_printf ("%ld\n", x);
}
testcase and looking for the URL in there, then repeating that after
changing gcc/BASE-VER to 14.1.0 and again after changing it to 14.1.1,
plus normal bootstrap/regtest.

2024-04-24  Jakub Jelinek  <jakub@redhat.com>

PR other/114738
* opts.cc (get_option_url): Revert 2024-04-17 changes.
* gcc-urlifier.cc: Don't include diagnostic-core.h.
(gcc_urlifier::make_doc_url): Revert 2024-04-17 changes.
* configure.ac (documentation-root-url): On release branches
append gcc-MAJOR.MINOR.0/ to the default DOCUMENTATION_ROOT_URL.
* doc/install.texi (--with-documentation-root-url=): Document
the change of the default.
* configure: Regenerate.
gcc/configure
gcc/configure.ac
gcc/doc/install.texi
gcc/gcc-urlifier.cc
gcc/opts.cc