diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-02 09:43:58 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-02 09:43:58 +0000 |
commit | adfa94a2fd2fc89238ce64e7de86d546f1934c48 (patch) | |
tree | c5486dba41350c97d49f1cf898860311befccd52 /gcc/ada/projects.texi | |
parent | 7beef224a4d678673a0fc98d8ec9dfdd0ea41787 (diff) | |
download | gcc-adfa94a2fd2fc89238ce64e7de86d546f1934c48.tar.gz |
2011-09-02 Vincent Celier <celier@adacore.com>
* prj-nmsc.db: (Check_Stand_Alone_Library): For SALs, allow
only library names with the syntax of Ada identifiers, to avoid errors
when compiling the binder generated files.
* projects.texi: Document restriction on SAL library names
2011-09-02 Thomas Quinot <quinot@adacore.com>
* a-chtgbo.adb: Minor comment fix.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178455 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/projects.texi')
-rw-r--r-- | gcc/ada/projects.texi | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ada/projects.texi b/gcc/ada/projects.texi index 40f085d4849..46f149721ee 100644 --- a/gcc/ada/projects.texi +++ b/gcc/ada/projects.texi @@ -1,6 +1,7 @@ @set gprconfig GPRconfig @c ------ projects.texi +@c Copyright (C) 2002-2011, Free Software Foundation, Inc. @c This file is shared between the GNAT user's guide and gprbuild. It is not @c compilable on its own, you should instead compile the other two manuals. @c For that reason, there is no toplevel @menu @@ -1525,10 +1526,11 @@ front of the @code{project} keyword. @item @b{Library_Name}: @cindex @code{Library_Name} This attribute is the name of the library to be built. There is no - restriction on the name of a library imposed by the project manager; - however, there may be system specific restrictions on the name. - In general, it is recommended to stick to alphanumeric characters - (and possibly underscores) to help portability. + restriction on the name of a library imposed by the project manager, except + for stand-alone libraries whose names must follow the syntax of Ada + identifiers; however, there may be system specific restrictions on the name. + In general, it is recommended to stick to alphanumeric characters (and + possibly single underscores) to help portability. @item @b{Library_Dir}: @cindex @code{Library_Dir} @@ -1749,6 +1751,9 @@ transparent. However, stand-alone libraries are also useful when the main is in Ada: they provide a means for minimizing relinking & redeployment of complex systems when localized changes are made. +The name of a stand-alone library, specified with attribute +@code{Library_Name}, must have the syntax of an Ada identifier. + The most prominent characteristic of a stand-alone library is that it offers a distinction between interface units and implementation units. Only the former are visible to units outside the library. A stand-alone library project is thus |