public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* [ada] gnat-ugn.texi incompatible with Scan_SFN_Pragmas
@ 2023-12-19  5:46 Amol Surati
  0 siblings, 0 replies; only message in thread
From: Amol Surati @ 2023-12-19  5:46 UTC (permalink / raw)
  To: gcc-help

Hello,

At least one set of sample Source_File_Name pragmas listed on
gnat-ugn.texi [1] is incompatible with those expected by the
code that parses them within Scan_SFN_Pragmas procedure [2].

For instance, the line containing
(Spec_File_Name => ".ads" . . .
must instead contain
(Spec_File_Name => "*.ads" . . .
for compilation to work.

A single asterisk, mandated by Scan_SFN_Pragmas, is missing
in the documentation.

Thank you.

[1] https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/ada/gnat_ugn.texi;hb=4759383245ac97a5c83c0272f0a831f2a26ea5c1#l1835
[2] https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/ada/sfn_scan.adb;hb=4759383245ac97a5c83c0272f0a831f2a26ea5c1#l517

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-19  5:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-19  5:46 [ada] gnat-ugn.texi incompatible with Scan_SFN_Pragmas Amol Surati

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).