/usr/src/gcc-7/debian/patches/gdc-7-doc.diff is in gcc-7-source 7.3.0-16ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | # DP: This implements D language support in the GCC back end, and adds
# DP: relevant documentation about the GDC front end (documentation part).
Index: b/src/gcc/doc/frontends.texi
===================================================================
--- a/src/gcc/doc/frontends.texi
+++ b/src/gcc/doc/frontends.texi
@@ -9,6 +9,7 @@
@cindex GNU Compiler Collection
@cindex GNU C Compiler
@cindex Ada
+@cindex D
@cindex Fortran
@cindex Go
@cindex Objective-C
@@ -16,7 +17,7 @@
GCC stands for ``GNU Compiler Collection''. GCC is an integrated
distribution of compilers for several major programming languages. These
languages currently include C, C++, Objective-C, Objective-C++,
-Fortran, Ada, Go, and BRIG (HSAIL).
+Fortran, Ada, Go, D, and BRIG (HSAIL).
The abbreviation @dfn{GCC} has multiple meanings in common use. The
current official meaning is ``GNU Compiler Collection'', which refers
Index: b/src/gcc/doc/install.texi
===================================================================
--- a/src/gcc/doc/install.texi
+++ b/src/gcc/doc/install.texi
@@ -1617,12 +1617,12 @@ their runtime libraries should be built.
grep ^language= */config-lang.in
@end smallexample
Currently, you can use any of the following:
-@code{all}, @code{ada}, @code{c}, @code{c++}, @code{fortran},
+@code{all}, @code{ada}, @code{c}, @code{c++}, @code{d}, @code{fortran},
@code{go}, @code{jit}, @code{lto}, @code{objc}, @code{obj-c++}.
Building the Ada compiler has special requirements, see below.
If you do not pass this flag, or specify the option @code{all}, then all
default languages available in the @file{gcc} sub-tree will be configured.
-Ada, Go, Jit, and Objective-C++ are not default languages. LTO is not a
+Ada, D, Go, Jit, and Objective-C++ are not default languages. LTO is not a
default language, but is built by default because @option{--enable-lto} is
enabled by default. The other languages are default languages.
Index: b/src/gcc/doc/invoke.texi
===================================================================
--- a/src/gcc/doc/invoke.texi
+++ b/src/gcc/doc/invoke.texi
@@ -1349,6 +1349,15 @@ called @dfn{specs}.
Ada source code file containing a library unit body (a subprogram or
package body). Such files are also called @dfn{bodies}.
+@item @var{file}.d
+D source code file.
+
+@item @var{file}.di
+D interface code file.
+
+@item @var{file}.dd
+D documentation code file.
+
@c GCC also knows about some suffixes for languages not yet included:
@c Pascal:
@c @var{file}.p
@@ -1384,6 +1393,7 @@ objective-c objective-c-header objecti
objective-c++ objective-c++-header objective-c++-cpp-output
assembler assembler-with-cpp
ada
+d
f77 f77-cpp-input f95 f95-cpp-input
go
brig
Index: b/src/gcc/doc/sourcebuild.texi
===================================================================
--- a/src/gcc/doc/sourcebuild.texi
+++ b/src/gcc/doc/sourcebuild.texi
@@ -106,6 +106,9 @@ The Objective-C and Objective-C++ runtim
@item libquadmath
The runtime support library for quad-precision math operations.
+@item libphobos
+The D standard runtime library.
+
@item libssp
The Stack protector runtime library.
Index: b/src/gcc/doc/standards.texi
===================================================================
--- a/src/gcc/doc/standards.texi
+++ b/src/gcc/doc/standards.texi
@@ -309,6 +309,16 @@ capability is typically utilized to impl
finalization extension for a gcc supported processor. HSA standards are
freely available at @uref{http://www.hsafoundation.com/standards/}.
+@section D language
+
+The D language is under development as of this writing; see the
+@uref{http://dlang.org/@/language-reference.html, current language
+reference}. At present the current major version of D is 2.0, and
+there is no way to describe the language supported by GCC in terms of
+a specific minor version. In general GCC follows the D frontend
+releases closely, and any given GCC release will support the current
+language as of the date that the release was frozen.
+
@section References for Other Languages
@xref{Top, GNAT Reference Manual, About This Guide, gnat_rm,
|