>From f9fa8ce97e28adfc2e239e67207b1427df616925 Mon Sep 17 00:00:00 2001
From: Pietro Monteiro <[email protected]>
Date: Thu, 11 Dec 2025 15:30:33 -0500
Subject: [PATCH] algol68: Document -L option
Add a simple explanation for the -L option. Expand the -I option
documentation to note it is also used for module interface-definitions.
gcc/algol68/ChangeLog:
* ga68.texi (@opindex I): Expand.
(@oindex L): New.
* lang.opt.urls: Regenerate.
gcc/ChangeLog:
* common.opt.urls: Regenerate.
gcc/go/ChangeLog:
* lang.opt.urls: Regenerate.
gcc/m2/ChangeLog:
* lang.opt.urls: Regenerate.
gcc/rust/ChangeLog:
* lang.opt.urls: Regenerate.
Signed-off-by: Pietro Monteiro <[email protected]>
---
gcc/algol68/ga68.texi | 15 +++++++++++++--
gcc/algol68/lang.opt.urls | 3 +++
gcc/common.opt.urls | 2 +-
gcc/go/lang.opt.urls | 2 +-
gcc/m2/lang.opt.urls | 2 +-
gcc/rust/lang.opt.urls | 2 +-
6 files changed, 20 insertions(+), 6 deletions(-)
diff --git a/gcc/algol68/ga68.texi b/gcc/algol68/ga68.texi
index 96ebef67965..d3b86b2ac67 100644
--- a/gcc/algol68/ga68.texi
+++ b/gcc/algol68/ga68.texi
@@ -207,9 +207,20 @@ other parts of the compiler:
@opindex I
@item -I@var{dir}
Add the directory @var{dir} to the list of directories to be searched
-for files when processing the @ref{pragmat include}. Multiple
+for files when processing the @ref{pragmat include}. Multiple
@option{-I} options can be used, and the directories specified are
-scanned in left-to-right order, as with @command{gcc}.
+scanned in left-to-right order, as with @command{gcc}. The directory
+will also be added to the list of directories to be searched for module
+interface-definitions @ref{Module activation}.
+
+@opindex L
+@item -L@var{dir}
+Add the directory @var{dir} to the list of directories to be searched
+for module interface-definitions @ref{Module activation}. Multiple
+@option{-L} options can be used, and the directories specified are
+scanned in left-to-right order, as with @command{gcc}. The directory
+will also be added to the list of library search directories, as with
+@command{gcc}.
@end table
diff --git a/gcc/algol68/lang.opt.urls b/gcc/algol68/lang.opt.urls
index 3fea50a3fde..ab88dab9588 100644
--- a/gcc/algol68/lang.opt.urls
+++ b/gcc/algol68/lang.opt.urls
@@ -3,6 +3,9 @@
I
UrlSuffix(gcc/Directory-Options.html#index-I)
LangUrlSuffix_D(gdc/Directory-Options.html#index-I)
LangUrlSuffix_Algol68(ga68/Directory-options.html#index-I)
+L
+UrlSuffix(gcc/Directory-Options.html#index-L)
LangUrlSuffix_D(gdc/Directory-Options.html#index-L)
LangUrlSuffix_Algol68(ga68/Directory-options.html#index-L)
+
Wextensions
LangUrlSuffix_Algol68(ga68/Warnings-options.html#index-Wextensions)
diff --git a/gcc/common.opt.urls b/gcc/common.opt.urls
index f1109d7b3dc..06139ff0eed 100644
--- a/gcc/common.opt.urls
+++ b/gcc/common.opt.urls
@@ -14,7 +14,7 @@ UrlSuffix(gcc/Directory-Options.html#index-B)
LangUrlSuffix_D(gdc/Directory-Opti
; duplicate: 'gcc/Overall-Options.html#index-E'
L
-UrlSuffix(gcc/Directory-Options.html#index-L)
LangUrlSuffix_D(gdc/Directory-Options.html#index-L)
+UrlSuffix(gcc/Directory-Options.html#index-L)
LangUrlSuffix_D(gdc/Directory-Options.html#index-L)
LangUrlSuffix_Algol68(ga68/Directory-options.html#index-L)
N
UrlSuffix(gcc/Link-Options.html#index-N)
diff --git a/gcc/go/lang.opt.urls b/gcc/go/lang.opt.urls
index 4b93c4919ac..af888902d98 100644
--- a/gcc/go/lang.opt.urls
+++ b/gcc/go/lang.opt.urls
@@ -4,7 +4,7 @@ I
UrlSuffix(gcc/Directory-Options.html#index-I)
LangUrlSuffix_D(gdc/Directory-Options.html#index-I)
LangUrlSuffix_Algol68(ga68/Directory-options.html#index-I)
L
-UrlSuffix(gcc/Directory-Options.html#index-L)
LangUrlSuffix_D(gdc/Directory-Options.html#index-L)
+UrlSuffix(gcc/Directory-Options.html#index-L)
LangUrlSuffix_D(gdc/Directory-Options.html#index-L)
LangUrlSuffix_Algol68(ga68/Directory-options.html#index-L)
; skipping UrlSuffix for 'Wall' due to multiple URLs:
; duplicate: 'gcc/Standard-Libraries.html#index-Wall-1'
diff --git a/gcc/m2/lang.opt.urls b/gcc/m2/lang.opt.urls
index f7751fe4a3c..7d87bc10084 100644
--- a/gcc/m2/lang.opt.urls
+++ b/gcc/m2/lang.opt.urls
@@ -41,7 +41,7 @@ I
UrlSuffix(gcc/Directory-Options.html#index-I)
LangUrlSuffix_D(gdc/Directory-Options.html#index-I)
LangUrlSuffix_Algol68(ga68/Directory-options.html#index-I)
L
-UrlSuffix(gcc/Directory-Options.html#index-L)
LangUrlSuffix_D(gdc/Directory-Options.html#index-L)
+UrlSuffix(gcc/Directory-Options.html#index-L)
LangUrlSuffix_D(gdc/Directory-Options.html#index-L)
LangUrlSuffix_Algol68(ga68/Directory-options.html#index-L)
M
UrlSuffix(gcc/Preprocessor-Options.html#index-M)
LangUrlSuffix_D(gdc/Code-Generation.html#index-M)
diff --git a/gcc/rust/lang.opt.urls b/gcc/rust/lang.opt.urls
index 09cfede8143..e55a0a1f0a3 100644
--- a/gcc/rust/lang.opt.urls
+++ b/gcc/rust/lang.opt.urls
@@ -4,7 +4,7 @@ I
UrlSuffix(gcc/Directory-Options.html#index-I)
LangUrlSuffix_D(gdc/Directory-Options.html#index-I)
LangUrlSuffix_Algol68(ga68/Directory-options.html#index-I)
L
-UrlSuffix(gcc/Directory-Options.html#index-L)
LangUrlSuffix_D(gdc/Directory-Options.html#index-L)
+UrlSuffix(gcc/Directory-Options.html#index-L)
LangUrlSuffix_D(gdc/Directory-Options.html#index-L)
LangUrlSuffix_Algol68(ga68/Directory-options.html#index-L)
; skipping UrlSuffix for 'Wall' due to multiple URLs:
; duplicate: 'gcc/Standard-Libraries.html#index-Wall-1'
--
2.52.0