~ubuntu-branches/debian/sid/gcc-4.8/sid

« back to all changes in this revision

Viewing changes to .svn/pristine/15/1579bfe0db10c09c8fab392f52e7f5ba4582eed8.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-12-19 19:48:34 UTC
  • Revision ID: package-import@ubuntu.com-20141219194834-4dz1q7rrn5pad823
Tags: 4.8.4-1
* GCC 4.8.4 release.
  - Fix PR target/61407 (darwin), PR middle-end/58624 (ice),
    PR sanitizer/64265 (wrong code).
* Require recent binutils to pass go test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Update the gdc driver to use the up-to-date system zlib
 
2
 
 
3
--- a/src/gcc/d/d-spec.c        2011-07-24 15:48:55.820035782 +0100
 
4
+++ b/src/gcc/d/d-spec.c        2011-07-24 18:12:57.750888801 +0100
 
5
@@ -119,7 +119,7 @@
 
6
     /* The number of arguments being added to what's in argv, other than
 
7
        libraries.  We use this to track the number of times we've inserted
 
8
        -xd/-xnone.  */
 
9
-    int added = 0;
 
10
+    int added = 1; /* -lz */
 
11
 
 
12
     /* The new argument list will be contained in this.  */
 
13
     struct cl_decoded_option *new_decoded_options;
 
14
@@ -505,6 +505,11 @@
 
15
     {
 
16
         /* Handled in gcc.c  */
 
17
         need_pthreads = 1;
 
18
+        /* Use the up-to-date system zlib with libphobos */
 
19
+        generate_option (OPT_l, "z", 1, CL_DRIVER,
 
20
+                         &new_decoded_options[j]);
 
21
+        added_libraries++;
 
22
+        j++;
 
23
     }
 
24
 
 
25
     if (saw_librt)
 
26
--- a/src/gcc/d/phobos2/etc/c/zlib.d    2011-07-24 15:48:57.068041974 +0100
 
27
+++ b/src/gcc/d/phobos2/etc/c/zlib.d    2011-07-24 18:14:18.775290585 +0100
 
28
@@ -35,8 +35,8 @@
 
29
 
 
30
 extern (C):
 
31
 
 
32
-const char[] ZLIB_VERSION = "1.2.3";
 
33
-const ZLIB_VERNUM = 0x1230;
 
34
+const char[] ZLIB_VERSION = "1.2.3.4";
 
35
+const ZLIB_VERNUM = 0x1234;
 
36
 
 
37
 /*
 
38
      The 'zlib' compression library provides in-memory compression and
 
39
--- a/src/gcc/d/phobos2/Makefile.am     2011-07-24 15:48:57.004041665 +0100
 
40
+++ b/src/gcc/d/phobos2/Makefile.am     2011-07-24 18:16:01.115798057 +0100
 
41
@@ -288,7 +288,7 @@
 
42
 std/stream.t.o: std/stream.d $(D_PREREQ_SRCS)
 
43
        $(GDC) -o $@ $(ALL_DFLAGS) -fdeprecated -c $<
 
44
 
 
45
-ALL_PHOBOS_OBJS = $(D_EXTRA_OBJS) $(MAIN_OBJS) $(ZLIB_OBJS)
 
46
+ALL_PHOBOS_OBJS = $(D_EXTRA_OBJS) $(MAIN_OBJS)
 
47
 
 
48
 
 
49
 libgphobos2.a : libgdruntime.a $(ALL_PHOBOS_OBJS)
 
50
--- a/src/gcc/d/phobos2/Makefile.in     2011-07-24 15:48:57.016041704 +0100
 
51
+++ b/src/gcc/d/phobos2/Makefile.in     2011-07-24 18:16:08.787836103 +0100
 
52
@@ -379,7 +379,7 @@
 
53
             std/windows/charset.o std/windows/iunknown.o std/windows/registry.o \
 
54
             std/windows/syserror.o std/__fileinit.o 
 
55
 
 
56
-ALL_PHOBOS_OBJS = $(D_EXTRA_OBJS) $(MAIN_OBJS) $(ZLIB_OBJS)
 
57
+ALL_PHOBOS_OBJS = $(D_EXTRA_OBJS) $(MAIN_OBJS)
 
58
 
 
59
 # Work around what appears to be a GNU make bug handling MAKEFLAGS
 
60
 # values defined in terms of make variables, as is the case for CC and