1
# DP: This implements D language support in the GCC back end, and adds
2
# DP: relevant documentation about the GDC front end (code part).
4
Index: b/src/gcc/config/rs6000/rs6000.c
5
===================================================================
6
--- a/src/gcc/config/rs6000/rs6000.c
7
+++ b/src/gcc/config/rs6000/rs6000.c
8
@@ -24977,7 +24977,8 @@ rs6000_output_function_epilogue (FILE *f
9
either, so for now use 0. */
10
if (! strcmp (language_string, "GNU C")
11
|| ! strcmp (language_string, "GNU GIMPLE")
12
- || ! strcmp (language_string, "GNU Go"))
13
+ || ! strcmp (language_string, "GNU Go")
14
+ || ! strcmp (language_string, "GNU D"))
16
else if (! strcmp (language_string, "GNU F77")
17
|| ! strcmp (language_string, "GNU Fortran"))
18
Index: b/src/gcc/dwarf2out.c
19
===================================================================
20
--- a/src/gcc/dwarf2out.c
21
+++ b/src/gcc/dwarf2out.c
22
@@ -18909,6 +18909,8 @@ gen_compile_unit_die (const char *filena
23
language = DW_LANG_C89;
24
if (strcmp (language_string, "GNU C++") == 0)
25
language = DW_LANG_C_plus_plus;
26
+ else if (strcmp (language_string, "GNU D") == 0)
27
+ language = DW_LANG_D;
28
else if (strcmp (language_string, "GNU F77") == 0)
29
language = DW_LANG_Fortran77;
30
else if (strcmp (language_string, "GNU Pascal") == 0)
31
Index: b/src/gcc/gcc.c
32
===================================================================
35
@@ -1003,6 +1003,7 @@ static const struct compiler default_com
36
{".java", "#Java", 0, 0, 0}, {".class", "#Java", 0, 0, 0},
37
{".zip", "#Java", 0, 0, 0}, {".jar", "#Java", 0, 0, 0},
38
{".go", "#Go", 0, 1, 0},
39
+ {".d", "#D", 0, 1, 0}, {".dd", "#D", 0, 1, 0}, {".di", "#D", 0, 1, 0},
40
/* Next come the entries for C. */
41
{".c", "@c", 0, 0, 1},