1
# DP: Allow transformations on info file names. Reference the
2
# DP: transformed info file names in the texinfo files.
5
2004-02-17 Matthias Klose <doko@debian.org>
8
* Makefile.in: Allow transformations on info file names.
9
Define MAKEINFODEFS, macros to pass transformated info file
11
* doc/cpp.texi: Use macros defined in MAKEINFODEFS for references.
12
* doc/cppinternals.texi: Likewise.
13
* doc/extend.texi: Likewise.
14
* doc/gcc.texi: Likewise.
15
* doc/gccint.texi: Likewise.
16
* doc/invoke.texi: Likewise.
17
* doc/libgcc.texi: Likewise.
18
* doc/makefile.texi: Likewise.
19
* doc/passes.texi: Likewise.
20
* doc/sourcebuild.texi: Likewise.
21
* doc/standards.texi: Likewise.
22
* doc/trouble.texi: Likewise.
24
gcc/fortran/ChangeLog:
25
* Make-lang.in: Allow transformations on info file names.
26
Pass macros of transformated info file defined in MAKEINFODEFS
28
* gfortran.texi: Use macros defined in MAKEINFODEFS for references.
31
* Make-lang.in: Allow transformations on info file names.
32
Pass macros of transformated info file defined in MAKEINFODEFS
34
Index: b/src/gcc/fortran/gfortran.texi
35
===================================================================
36
--- a/src/gcc/fortran/gfortran.texi
37
+++ b/src/gcc/fortran/gfortran.texi
40
@dircategory Software development
42
-* gfortran: (gfortran). The GNU Fortran Compiler.
43
+* @value{fngfortran}: (@value{fngfortran}). The GNU Fortran Compiler.
45
This file documents the use and the internals of
46
the GNU Fortran compiler, (@command{gfortran}).
47
Index: b/src/gcc/fortran/Make-lang.in
48
===================================================================
49
--- a/src/gcc/fortran/Make-lang.in
50
+++ b/src/gcc/fortran/Make-lang.in
52
cd $(srcdir)/fortran; etags -o TAGS.sub *.c *.h; \
53
etags --include TAGS.sub --include ../TAGS.sub
55
-fortran.info: doc/gfortran.info doc/gfc-internals.info
56
+INFO_FORTRAN_NAME = $(shell echo gfortran|sed '$(program_transform_name)')
57
+fortran.info: doc/$(INFO_FORTRAN_NAME).info
58
fortran.dvi: doc/gfortran.dvi doc/gfc-internals.dvi
60
F95_HTMLFILES = $(build_htmldir)/gfortran
62
$(srcdir)/doc/include/gcc-common.texi \
65
-doc/gfortran.info: $(GFORTRAN_TEXI)
66
+doc/$(INFO_FORTRAN_NAME).info: $(GFORTRAN_TEXI)
67
if [ x$(BUILD_INFO) = xinfo ]; then \
68
rm -f doc/gfortran.info-*; \
69
- $(MAKEINFO) -I $(srcdir)/doc/include -I $(srcdir)/fortran \
70
+ $(MAKEINFO) $(MAKEINFODEFS) -I $(srcdir)/doc/include -I $(srcdir)/fortran \
76
fortran.install-plugin:
78
-fortran.install-info: $(DESTDIR)$(infodir)/gfortran.info
79
+fortran.install-info: $(DESTDIR)$(infodir)/$(INFO_FORTRAN_NAME).info
81
fortran.install-man: $(DESTDIR)$(man1dir)/$(GFORTRAN_INSTALL_NAME)$(man1ext)
84
rm -rf $(DESTDIR)$(bindir)/$(GFORTRAN_INSTALL_NAME)$(exeext); \
85
rm -rf $(DESTDIR)$(man1dir)/$(GFORTRAN_INSTALL_NAME)$(man1ext); \
86
rm -rf $(DESTDIR)$(bindir)/$(GFORTRAN_TARGET_INSTALL_NAME)$(exeext); \
87
- rm -rf $(DESTDIR)$(infodir)/gfortran.info*
88
+ rm -rf $(DESTDIR)$(infodir)/$(INFO_FORTRAN_NAME).info*
92
Index: b/src/gcc/Makefile.in
93
===================================================================
94
--- a/src/gcc/Makefile.in
95
+++ b/src/gcc/Makefile.in
96
@@ -4266,8 +4266,31 @@
98
doc: $(BUILD_INFO) $(GENERATED_MANPAGES)
100
-INFOFILES = doc/cpp.info doc/gcc.info doc/gccint.info \
101
- doc/gccinstall.info doc/cppinternals.info
102
+INFO_CPP_NAME = $(shell echo cpp|sed '$(program_transform_name)')
103
+INFO_GCC_NAME = $(shell echo gcc|sed '$(program_transform_name)')
104
+INFO_GXX_NAME = $(shell echo g++|sed '$(program_transform_name)')
105
+INFO_GCCINT_NAME = $(shell echo gccint|sed '$(program_transform_name)')
106
+INFO_GCCINSTALL_NAME = $(shell echo gccinstall|sed '$(program_transform_name)')
107
+INFO_CPPINT_NAME = $(shell echo cppinternals|sed '$(program_transform_name)')
109
+INFO_FORTRAN_NAME = $(shell echo gfortran|sed '$(program_transform_name)')
110
+INFO_GCJ_NAME = $(shell echo gcj|sed '$(program_transform_name)')
111
+INFO_GCCGO_NAME = $(shell echo gccgo|sed '$(program_transform_name)')
113
+INFOFILES = doc/$(INFO_CPP_NAME).info doc/$(INFO_GCC_NAME).info \
114
+ doc/$(INFO_GCCINT_NAME).info \
115
+ doc/$(INFO_GCCINSTALL_NAME).info doc/$(INFO_CPPINT_NAME).info
117
+MAKEINFODEFS = -D 'fncpp $(INFO_CPP_NAME)' \
118
+ -D 'fngcc $(INFO_GCC_NAME)' \
119
+ -D 'fngcov $(INFO_GCC_NAME)' \
120
+ -D 'fngxx $(INFO_GXX_NAME)' \
121
+ -D 'fngccint $(INFO_GCCINT_NAME)' \
122
+ -D 'fngccinstall $(INFO_GCCINSTALL_NAME)' \
123
+ -D 'fncppint $(INFO_CPPINT_NAME)' \
124
+ -D 'fngfortran $(INFO_FORTRAN_NAME)' \
125
+ -D 'fngcj $(INFO_GCJ_NAME)' \
126
+ -D 'fngccgo $(INFO_GCCGO_NAME)'
128
info: $(INFOFILES) lang.info @GENINSRC@ srcinfo lang.srcinfo
130
@@ -4313,7 +4336,19 @@
131
if [ -n "$(PKGVERSION)" ]; then \
132
echo "@set VERSION_PACKAGE $(PKGVERSION)" >> $@T; \
134
- echo "@set BUGURL $(BUGURL_TEXI)" >> $@T; \
135
+ echo "@set BUGURL $(BUGURL_TEXI)" >> $@T
137
+ echo '@set fncpp $(INFO_CPP_NAME)'; \
138
+ echo '@set fngcc $(INFO_GCC_NAME)'; \
139
+ echo '@set fngcov $(INFO_GCC_NAME)'; \
140
+ echo '@set fngxx $(INFO_GXX_NAME)'; \
141
+ echo '@set fngccint $(INFO_GCCINT_NAME)'; \
142
+ echo '@set fngccinstall $(INFO_GCCINSTALL_NAME)'; \
143
+ echo '@set fncppint $(INFO_CPPINT_NAME)'; \
144
+ echo '@set fngfortran $(INFO_FORTRAN_NAME)'; \
145
+ echo '@set fngcj $(INFO_GCJ_NAME)'; \
146
+ echo '@set fngccgo $(INFO_GCCGO_NAME)'; \
151
@@ -4321,21 +4356,41 @@
152
# patterns. To use them, put each of the specific targets with its
153
# specific dependencies but no build commands.
155
-doc/cpp.info: $(TEXI_CPP_FILES)
156
-doc/gcc.info: $(TEXI_GCC_FILES)
157
-doc/gccint.info: $(TEXI_GCCINT_FILES)
158
-doc/cppinternals.info: $(TEXI_CPPINT_FILES)
160
+# Generic entry to handle info files, which are not renamed (currently Ada)
162
if [ x$(BUILD_INFO) = xinfo ]; then \
163
$(MAKEINFO) $(MAKEINFOFLAGS) -I . -I $(gcc_docdir) \
164
-I $(gcc_docdir)/include -o $@ $<; \
167
+doc/$(INFO_CPP_NAME).info: $(TEXI_CPP_FILES)
168
+ if [ x$(BUILD_INFO) = xinfo ]; then \
169
+ $(MAKEINFO) $(MAKEINFOFLAGS) $(MAKEINFODEFS) -I $(gcc_docdir) \
170
+ -I $(gcc_docdir)/include -o $@ $<; \
173
+doc/$(INFO_GCC_NAME).info: $(TEXI_GCC_FILES)
174
+ if [ x$(BUILD_INFO) = xinfo ]; then \
175
+ $(MAKEINFO) $(MAKEINFOFLAGS) $(MAKEINFODEFS) -I $(gcc_docdir) \
176
+ -I $(gcc_docdir)/include -o $@ $<; \
179
+doc/$(INFO_GCCINT_NAME).info: $(TEXI_GCCINT_FILES)
180
+ if [ x$(BUILD_INFO) = xinfo ]; then \
181
+ $(MAKEINFO) $(MAKEINFOFLAGS) $(MAKEINFODEFS) -I $(gcc_docdir) \
182
+ -I $(gcc_docdir)/include -o $@ $<; \
185
+doc/$(INFO_CPPINT_NAME).info: $(TEXI_CPPINT_FILES)
186
+ if [ x$(BUILD_INFO) = xinfo ]; then \
187
+ $(MAKEINFO) $(MAKEINFOFLAGS) $(MAKEINFODEFS) -I $(gcc_docdir) \
188
+ -I $(gcc_docdir)/include -o $@ $<; \
191
# Duplicate entry to handle renaming of gccinstall.info
192
-doc/gccinstall.info: $(TEXI_GCCINSTALL_FILES)
193
+doc/$(INFO_GCCINSTALL_NAME).info: $(TEXI_GCCINSTALL_FILES)
194
if [ x$(BUILD_INFO) = xinfo ]; then \
195
- $(MAKEINFO) $(MAKEINFOFLAGS) -I $(gcc_docdir) \
196
+ $(MAKEINFO) $(MAKEINFOFLAGS) $(MAKEINFODEFS) -I $(gcc_docdir) \
197
-I $(gcc_docdir)/include -o $@ $<; \
200
@@ -4701,11 +4756,11 @@
201
# $(INSTALL_DATA) might be a relative pathname, so we can't cd into srcdir
203
install-info:: doc installdirs \
204
- $(DESTDIR)$(infodir)/cpp.info \
205
- $(DESTDIR)$(infodir)/gcc.info \
206
- $(DESTDIR)$(infodir)/cppinternals.info \
207
- $(DESTDIR)$(infodir)/gccinstall.info \
208
- $(DESTDIR)$(infodir)/gccint.info \
209
+ $(DESTDIR)$(infodir)/$(INFO_CPP_NAME).info \
210
+ $(DESTDIR)$(infodir)/$(INFO_GCC_NAME).info \
211
+ $(DESTDIR)$(infodir)/$(INFO_CPPINT_NAME).info \
212
+ $(DESTDIR)$(infodir)/$(INFO_GCCINSTALL_NAME).info \
213
+ $(DESTDIR)$(infodir)/$(INFO_GCCINT_NAME).info \
216
$(DESTDIR)$(infodir)/%.info: doc/%.info installdirs
217
@@ -4912,8 +4967,11 @@
218
-rm -rf $(DESTDIR)$(bindir)/$(GCOV_INSTALL_NAME)$(exeext)
219
-rm -rf $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext)
220
-rm -rf $(DESTDIR)$(man1dir)/cpp$(man1ext)
221
- -rm -f $(DESTDIR)$(infodir)/cpp.info* $(DESTDIR)$(infodir)/gcc.info*
222
- -rm -f $(DESTDIR)$(infodir)/cppinternals.info* $(DESTDIR)$(infodir)/gccint.info*
223
+ -rm -f $(DESTDIR)$(infodir)/$(INFO_CPP_NAME).info*
224
+ -rm -f $(DESTDIR)$(infodir)/$(INFO_GCC_NAME).info*
225
+ -rm -f $(DESTDIR)$(infodir)/$(INFO_CPPINT_NAME).info*
226
+ -rm -f $(DESTDIR)$(infodir)/$(INFO_GCCINT_NAME).info*
227
+ -rm -f $(DESTDIR)$(infodir)/$(INFO_GCCINSTALL_NAME).info*
228
for i in ar nm ranlib ; do \
229
install_name=`echo gcc-$$i|sed '$(program_transform_name)'`$(exeext) ;\
230
target_install_name=$(target_noncanonical)-`echo gcc-$$i|sed '$(program_transform_name)'`$(exeext) ; \
231
Index: b/src/gcc/java/gcj.texi
232
===================================================================
233
--- a/src/gcc/java/gcj.texi
234
+++ b/src/gcc/java/gcj.texi
237
@dircategory Software development
239
-* Gcj: (gcj). Ahead-of-time compiler for the Java language
240
+* @value{fngcj}: (@value{fngcj}). Ahead-of-time compiler for the Java language
243
@dircategory Individual utilities
245
-* jcf-dump: (gcj)Invoking jcf-dump.
246
+* jcf-dump: (@value{fngcj}) Invoking jcf-dump.
247
Print information about Java class files
248
-* gij: (gcj)Invoking gij. GNU interpreter for Java bytecode
249
-* gcj-dbtool: (gcj)Invoking gcj-dbtool.
250
+* gij: (@value{fngcj}) Invoking gij. GNU interpreter for Java bytecode
251
+* gcj-dbtool: (@value{fngcj}) Invoking gcj-dbtool.
252
Tool for manipulating class file databases.
253
-* jv-convert: (gcj)Invoking jv-convert.
254
+* jv-convert: (@value{fngcj}) Invoking jv-convert.
255
Convert file from one encoding to another
256
-* grmic: (gcj)Invoking grmic.
257
+* grmic: (@value{fngcj}) Invoking grmic.
258
Generate stubs for Remote Method Invocation.
259
-* gc-analyze: (gcj)Invoking gc-analyze.
260
+* gc-analyze: (@value{fngcj}) Invoking gc-analyze.
261
Analyze Garbage Collector (GC) memory dumps.
262
-* aot-compile: (gcj)Invoking aot-compile.
263
+* aot-compile: (@value{fngcj})Invoking aot-compile.
264
Compile bytecode to native and generate databases.
265
-* rebuild-gcj-db: (gcj)Invoking rebuild-gcj-db.
266
+* rebuild-gcj-db: (@value{fngcj})Invoking rebuild-gcj-db.
267
Merge the per-solib databases made by aot-compile
268
into one system-wide database.
272
As @command{gcj} is just another front end to @command{gcc}, it supports many
273
of the same options as gcc. @xref{Option Summary, , Option Summary,
274
-gcc, Using the GNU Compiler Collection (GCC)}. This manual only documents the
275
+@value{fngcc}, Using the GNU Compiler Collection (GCC)}. This manual only documents the
276
options specific to @command{gcj}.
279
Index: b/src/gcc/java/Make-lang.in
280
===================================================================
281
--- a/src/gcc/java/Make-lang.in
282
+++ b/src/gcc/java/Make-lang.in
284
etags --include TAGS.sub --include ../TAGS.sub
287
-java.info: doc/gcj.info
288
+INFO_GCJ_NAME = $(shell echo gcj|sed '$(program_transform_name)')
289
+java.info: doc/$(INFO_GCJ_NAME).info
291
-java.srcinfo: doc/gcj.info
292
+java.srcinfo: doc/$(INFO_GCJ_NAME).info
293
-cp -p $^ $(srcdir)/doc
295
java.dvi: doc/gcj.dvi
297
-rm -rf $(DESTDIR)$(man1dir)/aot-compile$(man1ext)
298
-rm -rf $(DESTDIR)$(man1dir)/rebuild-gcj-db$(man1ext)
300
-java.install-info: $(DESTDIR)$(infodir)/gcj.info
301
+java.install-info: $(DESTDIR)$(infodir)/$(INFO_GCJ_NAME).info
303
java.install-pdf: $(JAVA_PDFFILES)
305
@@ -339,10 +340,10 @@
309
-doc/gcj.info: $(TEXI_JAVA_FILES)
310
+doc/$(INFO_GCJ_NAME).info: $(TEXI_JAVA_FILES)
311
if test "x$(BUILD_INFO)" = xinfo; then \
312
- rm -f doc/gcj.info*; \
313
- $(MAKEINFO) $(MAKEINFOFLAGS) -I $(gcc_docdir) \
314
+ rm -f doc/$(INFO_GCJ_NAME).info*; \
315
+ $(MAKEINFO) $(MAKEINFOFLAGS) $(MAKEINFODEFS) -I $(gcc_docdir) \
316
-I $(gcc_docdir)/include -o $@ $<; \
319
Index: b/src/gcc/ada/gnat-style.texi
320
===================================================================
321
--- a/src/gcc/ada/gnat-style.texi
322
+++ b/src/gcc/ada/gnat-style.texi
325
@dircategory Software development
327
-* gnat-style: (gnat-style). GNAT Coding Style
328
+* gnat-style: (gnat-style-4.8). GNAT Coding Style
331
@macro syntax{element}
332
Index: b/src/gcc/ada/gnat_rm.texi
333
===================================================================
334
--- a/src/gcc/ada/gnat_rm.texi
335
+++ b/src/gcc/ada/gnat_rm.texi
338
@dircategory GNU Ada tools
340
-* GNAT Reference Manual: (gnat_rm). Reference Manual for GNU Ada tools.
341
+* GNAT Reference Manual: (gnat_rm-4.8). Reference Manual for GNU Ada tools.
345
Index: b/src/gcc/doc/invoke.texi
346
===================================================================
347
--- a/src/gcc/doc/invoke.texi
348
+++ b/src/gcc/doc/invoke.texi
349
@@ -9886,7 +9886,7 @@
350
@option{-nodefaultlibs} is @file{libgcc.a}, a library of internal subroutines
351
which GCC uses to overcome shortcomings of particular machines, or special
352
needs for some languages.
353
-(@xref{Interface,,Interfacing to GCC Output,gccint,GNU Compiler
354
+(@xref{Interface,,Interfacing to GCC Output,@value{fngccint},GNU Compiler
355
Collection (GCC) Internals},
356
for more discussion of @file{libgcc.a}.)
357
In most cases, you need @file{libgcc.a} even when you want to avoid
358
@@ -9895,7 +9895,7 @@
359
This ensures that you have no unresolved references to internal GCC
361
(An example of such an internal subroutine is @samp{__main}, used to ensure C++
362
-constructors are called; @pxref{Collect2,,@code{collect2}, gccint,
363
+constructors are called; @pxref{Collect2,,@code{collect2}, @value{fngccint},
364
GNU Compiler Collection (GCC) Internals}.)
367
@@ -20722,7 +20722,7 @@
368
@option{-B}, @option{-I} and @option{-L} (@pxref{Directory Options}). These
369
take precedence over places specified using environment variables, which
370
in turn take precedence over those specified by the configuration of GCC@.
371
-@xref{Driver,, Controlling the Compilation Driver @file{gcc}, gccint,
372
+@xref{Driver,, Controlling the Compilation Driver @file{gcc}, @value{fngccint},
373
GNU Compiler Collection (GCC) Internals}.
376
@@ -20882,7 +20882,7 @@
378
A precompiled header file is searched for when @code{#include} is
379
seen in the compilation. As it searches for the included file
380
-(@pxref{Search Path,,Search Path,cpp,The C Preprocessor}) the
381
+(@pxref{Search Path,,Search Path,@value{fncpp},The C Preprocessor}) the
382
compiler looks for a precompiled header in each directory just before it
383
looks for the include file in that directory. The name searched for is
384
the name specified in the @code{#include} with @samp{.gch} appended. If
385
Index: b/src/gcc/doc/extend.texi
386
===================================================================
387
--- a/src/gcc/doc/extend.texi
388
+++ b/src/gcc/doc/extend.texi
389
@@ -15327,7 +15327,7 @@
390
test for the GNU compiler the same way as for C programs: check for a
391
predefined macro @code{__GNUC__}. You can also use @code{__GNUG__} to
392
test specifically for GNU C++ (@pxref{Common Predefined Macros,,
393
-Predefined Macros,cpp,The GNU C Preprocessor}).
394
+Predefined Macros,@value{fncpp},The GNU C Preprocessor}).
397
* C++ Volatiles:: What constitutes an access to a volatile object.
398
Index: b/src/gcc/doc/standards.texi
399
===================================================================
400
--- a/src/gcc/doc/standards.texi
401
+++ b/src/gcc/doc/standards.texi
403
GNAT Reference Manual}, for information on standard
404
conformance and compatibility of the Ada compiler.
406
-@xref{Standards,,Standards, gfortran, The GNU Fortran Compiler}, for details
407
+@xref{Standards,,Standards, @value{fngfortran}, The GNU Fortran Compiler}, for details
408
of standards supported by GNU Fortran.
410
-@xref{Compatibility,,Compatibility with the Java Platform, gcj, GNU gcj},
411
+@xref{Compatibility,,Compatibility with the Java Platform, @value{fngcj}, GNU gcj},
412
for details of compatibility between @command{gcj} and the Java Platform.
413
Index: b/src/gcc/doc/libgcc.texi
414
===================================================================
415
--- a/src/gcc/doc/libgcc.texi
416
+++ b/src/gcc/doc/libgcc.texi
418
GCC will also generate calls to C library routines, such as
419
@code{memcpy} and @code{memset}, in some cases. The set of routines
420
that GCC may possibly use is documented in @ref{Other
421
-Builtins,,,gcc, Using the GNU Compiler Collection (GCC)}.
422
+Builtins,,,@value{fngcc}, Using the GNU Compiler Collection (GCC)}.
424
These routines take arguments and return values of a specific machine
425
mode, not a specific C type. @xref{Machine Modes}, for an explanation
426
Index: b/src/gcc/doc/gccint.texi
427
===================================================================
428
--- a/src/gcc/doc/gccint.texi
429
+++ b/src/gcc/doc/gccint.texi
432
@dircategory Software development
434
-* gccint: (gccint). Internals of the GNU Compiler Collection.
435
+* @value{fngccint}: (@value{fngccint}). Internals of the GNU Compiler Collection.
437
This file documents the internals of the GNU compilers.
440
@value{VERSION_PACKAGE}
442
version @value{version-GCC}. The use of the GNU compilers is documented in a
443
-separate manual. @xref{Top,, Introduction, gcc, Using the GNU
444
+separate manual. @xref{Top,, Introduction, @value{fngcc}, Using the GNU
445
Compiler Collection (GCC)}.
447
This manual is mainly a reference manual rather than a tutorial. It
448
Index: b/src/gcc/doc/cpp.texi
449
===================================================================
450
--- a/src/gcc/doc/cpp.texi
451
+++ b/src/gcc/doc/cpp.texi
454
@dircategory Software development
456
-* Cpp: (cpp). The GNU C preprocessor.
457
+* @value{fncpp}: (@value{fncpp}). The GNU C preprocessor.
461
Index: b/src/gcc/doc/passes.texi
462
===================================================================
463
--- a/src/gcc/doc/passes.texi
464
+++ b/src/gcc/doc/passes.texi
466
@item Mudflap declaration registration
468
If mudflap (@pxref{Optimize Options,,-fmudflap -fmudflapth
469
--fmudflapir,gcc,Using the GNU Compiler Collection (GCC)}) is
470
+-fmudflapir,@value{fngcc},Using the GNU Compiler Collection (GCC)}) is
471
enabled, we generate code to register some variable declarations with
472
the mudflap runtime. Specifically, the runtime tracks the lifetimes of
473
those variable declarations that have their addresses taken, or whose
474
Index: b/src/gcc/doc/gcc.texi
475
===================================================================
476
--- a/src/gcc/doc/gcc.texi
477
+++ b/src/gcc/doc/gcc.texi
480
@dircategory Software development
482
-* gcc: (gcc). The GNU Compiler Collection.
483
-* g++: (gcc). The GNU C++ compiler.
484
-* gcov: (gcc) Gcov. @command{gcov}---a test coverage program.
485
+* @value{fngcc}: (@value{fngcc}). The GNU Compiler Collection.
486
+* @value{fngxx}: (@value{fngcc}). The GNU C++ compiler.
487
+* @value{fngcov}: (@value{fngcc}) Gcov. @command{gcov}---a test coverage program.
489
This file documents the use of the GNU compilers.
492
The internals of the GNU compilers, including how to port them to new
493
targets and some information about how to write front ends for new
494
languages, are documented in a separate manual. @xref{Top,,
495
-Introduction, gccint, GNU Compiler Collection (GCC) Internals}.
496
+Introduction, @value{fngccint}, GNU Compiler Collection (GCC) Internals}.
499
* G++ and GCC:: You can compile C or C++ programs.
500
Index: b/src/gcc/doc/makefile.texi
501
===================================================================
502
--- a/src/gcc/doc/makefile.texi
503
+++ b/src/gcc/doc/makefile.texi
505
Builds a compiler with profiling feedback information. In this case,
506
the second and third stages are named @samp{profile} and @samp{feedback},
507
respectively. For more information, see
508
-@ref{Building,,Building with profile feedback,gccinstall,Installing GCC}.
509
+@ref{Building,,Building with profile feedback,@value{fngccinstall},Installing GCC}.
512
Restart a bootstrap, so that everything that was not built with
513
Index: b/src/gcc/doc/install.texi
514
===================================================================
515
--- a/src/gcc/doc/install.texi
516
+++ b/src/gcc/doc/install.texi
519
@dircategory Software development
521
-* gccinstall: (gccinstall). Installing the GNU Compiler Collection.
522
+* @value{fngccinstall}: (@value{fngccinstall}). Installing the GNU Compiler Collection.
525
@c Part 3 Titlepage and Copyright
526
Index: b/src/gcc/doc/cppinternals.texi
527
===================================================================
528
--- a/src/gcc/doc/cppinternals.texi
529
+++ b/src/gcc/doc/cppinternals.texi
532
@dircategory Software development
534
-* Cpplib: (cppinternals). Cpplib internals.
535
+* @value{fncppint}: (@value{fncppint}). Cpplib internals.
539
Index: b/src/libgomp/libgomp.texi
540
===================================================================
541
--- a/src/libgomp/libgomp.texi
542
+++ b/src/libgomp/libgomp.texi
545
@dircategory GNU Libraries
547
-* libgomp: (libgomp). GNU OpenMP runtime library
548
+* @value{fnlibgomp}: (@value{fnlibgomp}). GNU OpenMP runtime library
551
This manual documents the GNU implementation of the OpenMP API for
552
Index: b/src/libgomp/Makefile.in
553
===================================================================
554
--- a/src/libgomp/Makefile.in
555
+++ b/src/libgomp/Makefile.in
558
# AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO])
559
@BUILD_INFO_TRUE@STAMP_BUILD_INFO = stamp-build-info
560
-CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) libgomp.info
561
+INFO_LIBGOMP_NAME = $(shell echo libgomp|sed '$(program_transform_name)')
562
+CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) $(INFO_LIBGOMP_NAME).info
563
MAINTAINERCLEANFILES = $(srcdir)/libgomp.info
565
$(MAKE) $(AM_MAKEFLAGS) all-recursive
566
@@ -1092,15 +1093,16 @@
569
all-local: $(STAMP_GENINSRC)
571
-stamp-geninsrc: libgomp.info
572
- cp -p $(top_builddir)/libgomp.info $(srcdir)/libgomp.info
573
+stamp-geninsrc: $(INFO_LIBGOMP_NAME).info
574
+ cp -p $(top_builddir)/$(INFO_LIBGOMP_NAME).info $(srcdir)/libgomp.info
577
-libgomp.info: $(STAMP_BUILD_INFO)
578
+libgomp.info: $(INFO_LIBGOMP_NAME).info
579
+ [ "$(INFO_LIBGOMP_NAME).info" = libgomp.info ] || cp $(INFO_LIBGOMP_NAME).info libgomp.info
580
+$(INFO_LIBGOMP_NAME).info: $(STAMP_BUILD_INFO)
582
stamp-build-info: libgomp.texi
583
- $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libgomp.info $(srcdir)/libgomp.texi
584
+ $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -D 'fnlibgomp $(INFO_LIBGOMP_NAME)' -I $(srcdir) -o $(INFO_LIBGOMP_NAME).info $(srcdir)/libgomp.texi
587
# Tell versions [3.59,3.63) of GNU make to not export all variables.
588
Index: b/src/libgomp/Makefile.am
589
===================================================================
590
--- a/src/libgomp/Makefile.am
591
+++ b/src/libgomp/Makefile.am
592
@@ -111,16 +111,19 @@
594
all-local: $(STAMP_GENINSRC)
596
-stamp-geninsrc: libgomp.info
597
- cp -p $(top_builddir)/libgomp.info $(srcdir)/libgomp.info
598
+INFO_LIBGOMP_NAME = $(shell echo libgomp|sed '$(program_transform_name)')
599
+stamp-geninsrc: $(INFO_LIBGOMP_NAME).info
600
+ cp -p $(top_builddir)/$(INFO_LIBGOMP_NAME).info $(srcdir)/libgomp.info
603
-libgomp.info: $(STAMP_BUILD_INFO)
604
+libgomp.info: $(INFO_LIBGOMP_NAME).info
605
+ cp $(INFO_LIBGOMP_NAME).info libgomp.info
606
+$(INFO_LIBGOMP_NAME).info: $(STAMP_BUILD_INFO)
608
stamp-build-info: libgomp.texi
609
- $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libgomp.info $(srcdir)/libgomp.texi
610
+ $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -D 'fnlibgomp $(INFO_LIBGOMP_NAME)' -I $(srcdir) -o $(INFO_LIBGOMP_NAME).info $(srcdir)/libgomp.texi
614
-CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) libgomp.info
615
+CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) $(INFO_LIBGOMP_NAME).info
616
MAINTAINERCLEANFILES = $(srcdir)/libgomp.info
617
Index: b/src/libitm/libitm.texi
618
===================================================================
619
--- a/src/libitm/libitm.texi
620
+++ b/src/libitm/libitm.texi
623
@dircategory GNU Libraries
625
-* libitm: (libitm). GNU Transactional Memory Library
626
+* @value{fnlibitm}: (@value{fnlibitm}). GNU Transactional Memory Library
629
This manual documents the GNU Transactional Memory Library.
630
Index: b/src/libitm/Makefile.am
631
===================================================================
632
--- a/src/libitm/Makefile.am
633
+++ b/src/libitm/Makefile.am
634
@@ -105,14 +105,17 @@
636
all-local: $(STAMP_GENINSRC)
638
-stamp-geninsrc: libitm.info
639
- cp -p $(top_builddir)/libitm.info $(srcdir)/libitm.info
640
+INFO_LIBITM_NAME = $(shell echo libitm|sed '$(program_transform_name)')
641
+stamp-geninsrc: $(INFO_LIBITM_NAME).info
642
+ cp -p $(top_builddir)/$(INFO_LIBITM_NAME).info $(srcdir)/libitm.info
645
-libitm.info: $(STAMP_BUILD_INFO)
646
+libitm.info: $(INFO_LIBITM_NAME).info
647
+ cp $(INFO_LIBITM_NAME).info libitm.info
648
+$(INFO_LIBITM_NAME).info: $(STAMP_BUILD_INFO)
650
stamp-build-info: libitm.texi
651
- $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libitm.info $(srcdir)/libitm.texi
652
+ $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -D 'fnlibitm $(INFO_LIBITM_NAME)'-o $(INFO_LIBITM_NAME).info $(srcdir)/libitm.texi
656
Index: b/src/libitm/Makefile.in
657
===================================================================
658
--- a/src/libitm/Makefile.in
659
+++ b/src/libitm/Makefile.in
660
@@ -1055,14 +1055,17 @@
662
all-local: $(STAMP_GENINSRC)
664
-stamp-geninsrc: libitm.info
665
- cp -p $(top_builddir)/libitm.info $(srcdir)/libitm.info
666
+INFO_LIBITM_NAME = $(shell echo libitm|sed '$(program_transform_name)')
667
+stamp-geninsrc: $(INFO_LIBITM_NAME).info
668
+ cp -p $(top_builddir)/$(INFO_LIBITM_NAME).info $(srcdir)/libitm.info
671
-libitm.info: $(STAMP_BUILD_INFO)
672
+libitm.info: $(INFO_LIBITM_NAME).info
673
+ cp $(INFO_LIBITM_NAME).info libitm.info
674
+$(INFO_LIBITM_NAME).info: $(STAMP_BUILD_INFO)
676
stamp-build-info: libitm.texi
677
- $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libitm.info $(srcdir)/libitm.texi
678
+ $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -D 'fnlibitm $(INFO_LIBITM_NAME)' -o $(INFO_LIBITM_NAME).info $(srcdir)/libitm.texi
681
# Tell versions [3.59,3.63) of GNU make to not export all variables.
682
Index: b/src/gcc/go/Make-lang.in
683
===================================================================
684
--- a/src/gcc/go/Make-lang.in
685
+++ b/src/gcc/go/Make-lang.in
687
$(gcc_docdir)/include/gcc-common.texi \
690
-doc/gccgo.info: $(GO_TEXI_FILES)
691
+INFO_GCCGO_NAME = $(shell echo gccgo|sed '$(program_transform_name)')
692
+doc/$(INFO_GCCGO_NAME).info: $(GO_TEXI_FILES)
693
if test "x$(BUILD_INFO)" = xinfo; then \
694
- rm -f doc/gccgo.info*; \
695
- $(MAKEINFO) $(MAKEINFOFLAGS) -I $(gcc_docdir) \
696
+ rm -f doc/$(INFO_GCCGO_NAME).info*; \
697
+ $(MAKEINFO) $(MAKEINFOFLAGS) $(MAKEINFODEFS) -I $(gcc_docdir) \
698
-I $(gcc_docdir)/include -o $@ $<; \
702
go.all.cross: gccgo-cross$(exeext)
703
go.start.encap: gccgo$(exeext)
705
-go.info: doc/gccgo.info
706
+go.info: doc/$(INFO_GCCGO_NAME).info
707
go.dvi: doc/gccgo.dvi
708
go.pdf: doc/gccgo.pdf
709
go.html: $(build_htmldir)/go/index.html
714
-go.install-info: $(DESTDIR)$(infodir)/gccgo.info
715
+go.install-info: $(DESTDIR)$(infodir)/$(INFO_GCCGO_NAME).info
717
go.install-pdf: doc/gccgo.pdf
720
rm -rf $(DESTDIR)$(bindir)/$(GCCGO_INSTALL_NAME)$(exeext)
721
rm -rf $(DESTDIR)$(man1dir)/$(GCCGO_INSTALL_NAME)$(man1ext)
722
rm -rf $(DESTDIR)$(bindir)/$(GCCGO_TARGET_INSTALL_NAME)$(exeext)
723
- rm -rf $(DESTDIR)$(infodir)/gccgo.info*
724
+ rm -rf $(DESTDIR)$(infodir)/$(INFO_GCCGO_NAME).info*
728
Index: b/src/gcc/go/gccgo.texi
729
===================================================================
730
--- a/src/gcc/go/gccgo.texi
731
+++ b/src/gcc/go/gccgo.texi
734
@dircategory Software development
736
-* Gccgo: (gccgo). A GCC-based compiler for the Go language
737
+* @value{fngccgo}: (@value{fngccgo}). A GCC-based compiler for the Go language
743
The @command{gccgo} command is a frontend to @command{gcc} and
744
supports many of the same options. @xref{Option Summary, , Option
745
-Summary, gcc, Using the GNU Compiler Collection (GCC)}. This manual
746
+Summary, @value{fngcc}, Using the GNU Compiler Collection (GCC)}. This manual
747
only documents the options specific to @command{gccgo}.
749
The @command{gccgo} command may be used to compile Go source code into
750
Index: b/src/libquadmath/libquadmath.texi
751
===================================================================
752
--- a/src/libquadmath/libquadmath.texi
753
+++ b/src/libquadmath/libquadmath.texi
756
@dircategory GNU Libraries
758
-* libquadmath: (libquadmath). GCC Quad-Precision Math Library
759
+* @value{fnlibquadmath}: (@value{fnlibquadmath}). GCC Quad-Precision Math Library
762
This manual documents the GCC Quad-Precision Math Library API.
763
Index: b/src/libquadmath/Makefile.am
764
===================================================================
765
--- a/src/libquadmath/Makefile.am
766
+++ b/src/libquadmath/Makefile.am
767
@@ -132,22 +132,24 @@
769
all-local: $(STAMP_GENINSRC)
771
-stamp-geninsrc: libquadmath.info
772
- cp -p $(top_builddir)/libquadmath.info $(srcdir)/libquadmath.info
773
+INFO_LIBQMATH_NAME = $(shell echo libquadmath|sed '$(program_transform_name)')
775
+stamp-geninsrc: $(INFO_LIBQMATH_NAME).info
776
+ cp -p $(top_builddir)/$(INFO_LIBQMATH_NAME).info $(srcdir)/libquadmath.info
779
stamp-build-info: libquadmath.texi $(libquadmath_TEXINFOS)
780
- $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libquadmath.info $(srcdir)/libquadmath.texi
781
+ $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o $(INFO_LIBQMATH_NAME).info $(srcdir)/libquadmath.texi
784
-CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) libquadmath.info
785
-MAINTAINERCLEANFILES = $(srcdir)/libquadmath.info
786
+CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) $(INFO_LIBQMATH_NAME).info
787
+MAINTAINERCLEANFILES = $(srcdir)/$(INFO_LIBQMATH_NAME).info
789
endif BUILD_LIBQUADMATH
791
# Unconditionally override this target, so that automake's definition
792
# does not wrongly interfere.
793
-libquadmath.info: $(STAMP_BUILD_INFO)
794
+$(INFO_LIBQMATH_NAME).info: $(STAMP_BUILD_INFO)
797
# Automake Documentation:
798
Index: b/src/libquadmath/Makefile.in
799
===================================================================
800
--- a/src/libquadmath/Makefile.in
801
+++ b/src/libquadmath/Makefile.in
806
-INFO_DEPS = libquadmath.info
807
+INFO_LIBQMATH_NAME = $(shell echo libquadmath|sed '$(program_transform_name)')
808
+INFO_DEPS = $(INFO_LIBQMATH_NAME).info
809
am__TEXINFO_TEX_DIR = $(srcdir)/../gcc/doc/include
810
DVIS = libquadmath.dvi
811
PDFS = libquadmath.pdf
814
# AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO])
815
@BUILD_INFO_TRUE@@BUILD_LIBQUADMATH_TRUE@STAMP_BUILD_INFO = stamp-build-info
816
-@BUILD_LIBQUADMATH_TRUE@CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) libquadmath.info
817
-@BUILD_LIBQUADMATH_TRUE@MAINTAINERCLEANFILES = $(srcdir)/libquadmath.info
818
+@BUILD_LIBQUADMATH_TRUE@CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) $(INFO_LIBQMATH_NAME).info
819
+@BUILD_LIBQUADMATH_TRUE@MAINTAINERCLEANFILES = $(srcdir)/$(INFO_LIBQMATH_NAME).info
821
# Automake Documentation:
822
# If your package has Texinfo files in many directories, you can use the
823
@@ -1464,17 +1465,17 @@
825
@BUILD_LIBQUADMATH_TRUE@all-local: $(STAMP_GENINSRC)
827
-@BUILD_LIBQUADMATH_TRUE@stamp-geninsrc: libquadmath.info
828
-@BUILD_LIBQUADMATH_TRUE@ cp -p $(top_builddir)/libquadmath.info $(srcdir)/libquadmath.info
829
+@BUILD_LIBQUADMATH_TRUE@stamp-geninsrc: $(INFO_LIBQMATH_NAME).info
830
+@BUILD_LIBQUADMATH_TRUE@ cp -p $(top_builddir)/$(INFO_LIBQMATH_NAME).info $(srcdir)/$(INFO_LIBQMATH_NAME).info
831
@BUILD_LIBQUADMATH_TRUE@ @touch $@
833
@BUILD_LIBQUADMATH_TRUE@stamp-build-info: libquadmath.texi $(libquadmath_TEXINFOS)
834
-@BUILD_LIBQUADMATH_TRUE@ $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libquadmath.info $(srcdir)/libquadmath.texi
835
+@BUILD_LIBQUADMATH_TRUE@ $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o $(INFO_LIBQMATH_NAME).info $(srcdir)/libquadmath.texi
836
@BUILD_LIBQUADMATH_TRUE@ @touch $@
838
# Unconditionally override this target, so that automake's definition
839
# does not wrongly interfere.
840
-libquadmath.info: $(STAMP_BUILD_INFO)
841
+$(INFO_LIBQMATH_NAME).info: $(STAMP_BUILD_INFO)
843
libquadmath-vers.texi:
844
echo "@set BUGURL $(REPORT_BUGS_TEXI)" > $@