This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Eliminate VMS GNAT User's Guide warnings
- From: Matt Kraai <kraai at alumni dot cmu dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 30 Jun 2003 20:09:20 -0700
- Subject: Eliminate VMS GNAT User's Guide warnings
Howdy,
The VMS flavor of the GNAT User's Guide causes makeinfo to
generate some warnings:
ada/gnat_ug_vms.texi:3580: warning: unlikely character ( in @var.
ada/gnat_ug_vms.texi:3580: warning: unlikely character , in @var.
ada/gnat_ug_vms.texi:3580: warning: unlikely character , in @var.
ada/gnat_ug_vms.texi:3580: warning: unlikely character ) in @var.
ada/gnat_ug_vms.texi:7201: warning: unlikely character [ in @var.
ada/gnat_ug_vms.texi:7201: warning: unlikely character ] in @var.
ada/gnat_ug_vms.texi:7203: warning: unlikely character [ in @var.
ada/gnat_ug_vms.texi:7203: warning: unlikely character ] in @var.
ada/gnat_ug_vms.texi:7208: warning: unlikely character [ in @var.
ada/gnat_ug_vms.texi:7208: warning: unlikely character ] in @var.
ada/gnat_ug_vms.texi:7209: warning: unlikely character [ in @var.
ada/gnat_ug_vms.texi:7209: warning: unlikely character ] in @var.
The following patch, tested both with makeinfo and by texi2dvi,
eliminates these warnings on my powerpc-unknown-linux-gnu system.
OK to commit?
--
Matt Kraai kraai@alumni.cmu.edu Debian GNU/Linux
Index: gcc/ada/gnat_ug.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/gnat_ug.texi,v
retrieving revision 1.10
diff -3 -c -p -r1.10 gnat_ug.texi
*** gcc/ada/gnat_ug.texi 5 Jun 2003 06:59:57 -0000 1.10
--- gcc/ada/gnat_ug.texi 1 Jul 2003 03:04:04 -0000
*************** temporary disabling of validity checks.
*** 4313,4319 ****
@findex Style checking
@noindent
! The -gnaty@var{^x^(option,option,..)^} switch causes the compiler to
enforce specified style rules. A limited set of style rules has been used
in writing the GNAT sources themselves. This switch allows user programs
to activate all or some of these checks. If the source program fails a
--- 4313,4319 ----
@findex Style checking
@noindent
! The -gnaty^@var{x}^(@var{option},@var{option},..)^ switch causes the compiler to
enforce specified style rules. A limited set of style rules has been used
in writing the GNAT sources themselves. This switch allows user programs
to activate all or some of these checks. If the source program fails a
*************** unless @code{^-a^/ALL_FILES^} is also sp
*** 8197,8205 ****
@item
@code{gnatmake} has been designed to make the use of Ada libraries
particularly convenient. Assume you have an Ada library organized
! as follows: @var{^obj-dir^[OBJ_DIR]^} contains the objects and ALI files for
of your Ada compilation units,
! whereas @var{^include-dir^[INCLUDE_DIR]^} contains the
specs of these units, but no bodies. Then to compile a unit
stored in @code{main.adb}, which uses this Ada library you would just type
--- 8197,8205 ----
@item
@code{gnatmake} has been designed to make the use of Ada libraries
particularly convenient. Assume you have an Ada library organized
! as follows: ^@var{obj-dir}^[@var{OBJ_DIR}]^ contains the objects and ALI files for
of your Ada compilation units,
! whereas ^@var{include-dir}^[@var{INCLUDE_DIR}]^ contains the
specs of these units, but no bodies. Then to compile a unit
stored in @code{main.adb}, which uses this Ada library you would just type
*************** stored in @code{main.adb}, which uses th
*** 8208,8215 ****
$ gnatmake -aI@var{include-dir} -aL@var{obj-dir} main
@end ifclear
@ifset vms
! $ gnatmake /SOURCE_SEARCH=@var{[INCLUDE_DIR]}
! /SKIP_MISSING=@var{[OBJ_DIR]} main
@end ifset
@end smallexample
--- 8208,8215 ----
$ gnatmake -aI@var{include-dir} -aL@var{obj-dir} main
@end ifclear
@ifset vms
! $ gnatmake /SOURCE_SEARCH=[@var{INCLUDE_DIR}]
! /SKIP_MISSING=[@var{OBJ_DIR}] main
@end ifset
@end smallexample