summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-4.3.1/debian/gcc-d-lang.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/gcc-d-lang.dpatch')
-rw-r--r--meta/packages/gcc/gcc-4.3.1/debian/gcc-d-lang.dpatch246
1 files changed, 246 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/gcc-d-lang.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/gcc-d-lang.dpatch
new file mode 100644
index 0000000000..24267ddbb3
--- /dev/null
+++ b/meta/packages/gcc/gcc-4.3.1/debian/gcc-d-lang.dpatch
@@ -0,0 +1,246 @@
1#! /bin/sh -e
2
3# DP: Add D options and specs for the gcc driver.
4
5dir=
6if [ $# -eq 3 -a "$2" = '-d' ]; then
7 pdir="-d $3"
8 dir="$3/"
9elif [ $# -ne 1 ]; then
10 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
11 exit 1
12fi
13case "$1" in
14 -patch)
15 patch $pdir -f --no-backup-if-mismatch -p0 < $0
16 ;;
17 -unpatch)
18 patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
19 ;;
20 *)
21 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
22 exit 1
23esac
24exit 0
25
26diff -urN gcc.orig/d/lang.opt gcc/d/lang.opt
27--- gcc.orig/d/lang.opt 1970-01-01 01:00:00.000000000 +0100
28+++ gcc/d/lang.opt 2007-03-04 16:29:47.000000000 +0100
29@@ -0,0 +1,160 @@
30+; GDC -- D front-end for GCC
31+; Copyright (C) 2004 David Friedman
32+;
33+; This program is free software; you can redistribute it and/or modify
34+; it under the terms of the GNU General Public License as published by
35+; the Free Software Foundation; either version 2 of the License, or
36+; (at your option) any later version.
37+;
38+; This program is distributed in the hope that it will be useful,
39+; but WITHOUT ANY WARRANTY; without even the implied warranty of
40+; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41+; GNU General Public License for more details.
42+;
43+; You should have received a copy of the GNU General Public License
44+; along with this program; if not, write to the Free Software
45+; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
46+
47+; This is used in GCC 3.4+
48+
49+Language
50+D
51+
52+I
53+D Joined Separate
54+-I <dir> Add <dir> to the end of the main include path.
55+
56+J
57+D Joined Separate
58+-J <dir> Add <dir> to the end of the string import path.
59+
60+fdeprecated
61+D
62+Allow use of deprecated features
63+
64+fassert
65+D
66+Generate runtime code for assert()'s
67+
68+frelease
69+D
70+Compile release version
71+
72+funittest
73+D
74+Compile in unittest code
75+
76+fversion=
77+D Joined RejectNegative
78+-fversion=<level|ident> Compile in version code >= <level> or identified by <ident>
79+
80+fdebug=
81+D Joined RejectNegative
82+-fdebug,-fdebug=<level>,-fdebug=<ident> Compile in debug code, code <= level, or code identified by ident
83+
84+fdebug
85+D
86+Compile in debug code
87+
88+fdebug-c
89+D
90+With -g, generate C debug information for debugger compatibility
91+
92+fd-verbose
93+D
94+Print information about D language processing to stdout
95+
96+fd-version=1
97+D RejectNegative
98+Compile as D language version 1
99+
100+femit-templates=
101+D Joined RejectNegative
102+-femit-templates=[normal|private|all|none|auto] Control template emission
103+
104+femit-templates
105+D
106+-femit-templates Emit templates code and data even if the linker cannot merge multiple copies
107+
108+nostdinc
109+D
110+Do not search standard system include directories
111+
112+fonly=
113+D Joined RejectNegative
114+Process all modules specified on the command line, but only generate code for the module specified by the argument.
115+
116+fod=
117+D Joined RejectNegative
118+-fod=<directory> Specify the object output directory. Note: this is actually a driver option; the backend ignores it.
119+
120+fop
121+D
122+Specify that the source file's parent directories should be appended to the object output directory. Note: this is actually a driver option; the backend ignores it.
123+
124+fintfc
125+Generate D interface files
126+
127+fintfc-dir=
128+D Joined RejectNegative
129+-fintfc-dir=<dir> Write D interface files to directory <dir>
130+
131+fintfc-file=
132+D Joined RejectNegative
133+-fintfc-file=<filename> Write D interface file to <filename>
134+
135+fdoc
136+D
137+Generate documentation
138+
139+fdoc-dir=
140+D Joined RejectNegative
141+-fdoc-dir=<docdir> Write documentation file to docdir directory
142+
143+fdoc-file=
144+D Joined RejectNegative
145+-fdoc-file=<filename> Write documentation file to filename
146+
147+fdoc-inc=
148+D Joined RejectNegative
149+-fdoc-inc=<filename> Include a Ddoc macro file
150+
151+fmultilib-dir=
152+D Joined RejectNegative
153+-fmultilib-dir=<dir> Select header multilib subdirectory
154+
155+Wsign-compare
156+D
157+Warn about signed-unsigned comparisons
158+
159+fdump-source
160+D RejectNegative
161+Dump decoded UTF-8 text and source from HTML
162+
163+fbuiltin
164+D
165+Recognize built-in functions
166+
167+funsigned-char
168+D
169+Make \"char\" unsigned by default (silently ignored in D)
170+
171+fsigned-char
172+D
173+Make \"char\" signed by default (silently ignored in D)
174+
175+iprefix
176+D Joined Separate
177+-iprefix <path> Specify <path> as a prefix for next two options
178+
179+isysroot
180+D Joined Separate
181+-isysroot <dir> Set <dir> to be the system root directory
182+
183+isystem
184+D Joined Separate
185+-isystem <dir> Add <dir> to the start of the system include path
186+
187+Wall
188+D
189+Enable most warning messages
190diff -urN gcc.orig/d/lang-specs.h gcc/d/lang-specs.h
191--- gcc.orig/d/lang-specs.h 1970-01-01 01:00:00.000000000 +0100
192+++ gcc/d/lang-specs.h 2007-03-04 16:36:44.000000000 +0100
193@@ -0,0 +1,53 @@
194+/* GDC -- D front-end for GCC
195+ Copyright (C) 2004 David Friedman
196+
197+ This program is free software; you can redistribute it and/or modify
198+ it under the terms of the GNU General Public License as published by
199+ the Free Software Foundation; either version 2 of the License, or
200+ (at your option) any later version.
201+
202+ This program is distributed in the hope that it will be useful,
203+ but WITHOUT ANY WARRANTY; without even the implied warranty of
204+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
205+ GNU General Public License for more details.
206+
207+ You should have received a copy of the GNU General Public License
208+ along with this program; if not, write to the Free Software
209+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
210+*/
211+
212+#ifndef D_D_SPEC
213+#define D_D_SPEC 0
214+#endif
215+
216+/* %{!M} probably doesn't make sense because we would need
217+ to do that -- -MD and -MMD doesn't sound like a plan for D.... */
218+
219+/* %(d_options) ? */
220+
221+#if GCC_SPEC_FORMAT_4
222+#define D_D_SPEC_REST 0, 1, 0
223+#else
224+#define D_D_SPEC_REST 0
225+#endif
226+
227+#if D_DRIVER_ONLY
228+{".html", "@d", D_D_SPEC_REST },
229+{".HTML", "@d", D_D_SPEC_REST },
230+{".htm", "@d", D_D_SPEC_REST },
231+{".HTM", "@d", D_D_SPEC_REST },
232+{".xhtml", "@d", D_D_SPEC_REST },
233+{".XHTML", "@d", D_D_SPEC_REST },
234+{".d", "@d", D_D_SPEC_REST },
235+{".D", "@d", D_D_SPEC_REST },
236+{"@d",
237+ "%{!E:cc1d %i %:d-all-sources() %(cc1_options) %I %N %{nostdinc*} %{+e*} %{I*} %{J*}\
238+ %{M} %{MM} %{!fsyntax-only:%(invoke_as)}}", D_D_SPEC_REST },
239+#else
240+{".d", "@d", D_D_SPEC_REST },
241+{".D", "@d", D_D_SPEC_REST },
242+{"@d",
243+ "%{!E:cc1d %i %(cc1_options) %I %N %{nostdinc*} %{+e*} %{I*} %{J*}\
244+ %{M} %{MM} %{!fsyntax-only:%(invoke_as)}}", D_D_SPEC_REST },
245+#endif
246+