summaryrefslogtreecommitdiff
path: root/debian/patches/gdc-driver-nophobos.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-05-13 13:54:49 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-05-13 13:54:49 +0300
commit42156b5190f4fa150e1fab6777eb81e69d4db8c9 (patch)
tree3bf47de81cf1f89892789535a036d2d55d93a136 /debian/patches/gdc-driver-nophobos.diff
downloadgcc-6-42156b5190f4fa150e1fab6777eb81e69d4db8c9.tar.gz
Imported gcc-6 (6.3.0-17)debian/6.3.0-17debian
Diffstat (limited to 'debian/patches/gdc-driver-nophobos.diff')
-rw-r--r--debian/patches/gdc-driver-nophobos.diff28
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/gdc-driver-nophobos.diff b/debian/patches/gdc-driver-nophobos.diff
new file mode 100644
index 0000000..1f076e2
--- /dev/null
+++ b/debian/patches/gdc-driver-nophobos.diff
@@ -0,0 +1,28 @@
+# DP: Modify gdc driver to have no libphobos by default.
+
+Index: b/src/gcc/d/d-lang.cc
+===================================================================
+--- a/src/gcc/d/d-lang.cc
++++ b/src/gcc/d/d-lang.cc
+@@ -198,7 +198,7 @@ static void
+ d_init_options_struct(gcc_options *opts)
+ {
+ // GCC options
+- opts->x_flag_exceptions = 1;
++ opts->x_flag_exceptions = 0;
+
+ // Avoid range issues for complex multiply and divide.
+ opts->x_flag_complex_method = 2;
+Index: b/src/gcc/d/d-spec.c
+===================================================================
+--- a/src/gcc/d/d-spec.c
++++ b/src/gcc/d/d-spec.c
+@@ -62,7 +62,7 @@ static int library = 0;
+
+ /* If true, use the standard D runtime library when linking with
+ standard libraries. */
+-static bool need_phobos = true;
++static bool need_phobos = false;
+
+ void
+ lang_specific_driver (cl_decoded_option **in_decoded_options,