summaryrefslogtreecommitdiff
path: root/debian/patches/gdc-driver-nophobos.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-11-18 15:53:29 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-11-18 15:53:29 +0300
commit8f6c4b0033c72f8ac14694c419a99458339dd6a9 (patch)
tree06c106e622a58100aa85a381b9b65d222b076df4 /debian/patches/gdc-driver-nophobos.diff
parent42156b5190f4fa150e1fab6777eb81e69d4db8c9 (diff)
downloadgcc-9-debian.tar.gz
Import gcc-9 (9.2.1-19)debian/9.2.1-19debian
Diffstat (limited to 'debian/patches/gdc-driver-nophobos.diff')
-rw-r--r--debian/patches/gdc-driver-nophobos.diff20
1 files changed, 8 insertions, 12 deletions
diff --git a/debian/patches/gdc-driver-nophobos.diff b/debian/patches/gdc-driver-nophobos.diff
index 1f076e2..799ee8d 100644
--- a/debian/patches/gdc-driver-nophobos.diff
+++ b/debian/patches/gdc-driver-nophobos.diff
@@ -1,26 +1,22 @@
# 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)
+@@ -315,7 +315,7 @@ static void
+ d_init_options_struct (gcc_options *opts)
{
- // GCC options
+ /* GCC options. */
- opts->x_flag_exceptions = 1;
+ opts->x_flag_exceptions = 0;
- // Avoid range issues for complex multiply and divide.
+ /* 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;
+--- a/src/gcc/d/d-spec.cc
++++ b/src/gcc/d/d-spec.cc
+@@ -70,7 +70,7 @@ static phobos_action phobos_library = PH
/* If true, use the standard D runtime library when linking with
- standard libraries. */
+ standard libraries. */
-static bool need_phobos = true;
+static bool need_phobos = false;