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

« back to all changes in this revision

Viewing changes to .svn/pristine/ef/ef1ae12f9f9f9475b8bcc1c359265fd8aa98d223.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
ifneq (,$(filter yes, $(biarch64) $(biarch32) $(biarchn32) $(biarchx32) $(biarchhf) $(biarchsf)))
 
2
  arch_binaries  := $(arch_binaries) gcc-multi
 
3
endif
 
4
ifeq ($(with_plugins),yes)
 
5
  arch_binaries  := $(arch_binaries) gcc-plugindev
 
6
endif
 
7
 
 
8
arch_binaries  := $(arch_binaries) gcc
 
9
 
 
10
ifneq ($(DEB_CROSS),yes)
 
11
  ifneq ($(GFDL_INVARIANT_FREE),yes)
 
12
    indep_binaries := $(indep_binaries) gcc-doc
 
13
  endif
 
14
  ifeq ($(with_nls),yes)
 
15
    indep_binaries := $(indep_binaries) gcc-locales
 
16
  endif
 
17
endif
 
18
 
 
19
# gcc must be moved after g77 and g++
 
20
# not all files $(PF)/include/*.h are part of gcc,
 
21
# but it becomes difficult to name all these files ...
 
22
 
 
23
dirs_gcc = \
 
24
        $(docdir)/$(p_xbase)/{gcc,libssp,gomp,itm,quadmath} \
 
25
        $(PF)/bin \
 
26
        $(gcc_lexec_dir) \
 
27
        $(gcc_lib_dir)/{include,include-fixed} \
 
28
        $(PF)/share/man/man1 $(libgcc_dir)
 
29
 
 
30
# XXX: what about triarch mapping?
 
31
files_gcc = \
 
32
        $(PF)/bin/$(cmd_prefix){gcc,gcov}$(pkg_ver) \
 
33
        $(PF)/bin/$(cmd_prefix)gcc-{ar,ranlib,nm}$(pkg_ver) \
 
34
        $(PF)/share/man/man1/$(cmd_prefix)gcc-{ar,nm,ranlib}$(pkg_ver).1 \
 
35
        $(gcc_lexec_dir)/{collect2,lto1,lto-wrapper} \
 
36
        $(shell test -e $(d)/$(gcc_lib_dir)/SYSCALLS.c.X \
 
37
                && echo $(gcc_lib_dir)/SYSCALLS.c.X)
 
38
 
 
39
ifeq ($(DEB_STAGE),stage1)
 
40
    files_gcc += \
 
41
        $(gcc_lib_dir)/include \
 
42
        $(shell for h in \
 
43
                  README limits.h syslimits.h; \
 
44
                do \
 
45
                  test -e $(d)/$(gcc_lib_dir)/include-fixed/$$h \
 
46
                    && echo $(gcc_lib_dir)/include-fixed/$$h; \
 
47
                done)
 
48
endif
 
49
 
 
50
ifneq ($(GFDL_INVARIANT_FREE),yes)
 
51
    files_gcc += \
 
52
        $(PF)/share/man/man1/$(cmd_prefix){gcc,gcov}$(pkg_ver).1
 
53
endif
 
54
 
 
55
usr_doc_files = debian/README.Bugs \
 
56
        $(shell test -f $(srcdir)/FAQ && echo $(srcdir)/FAQ) \
 
57
        $(shell test -f test-summary && echo test-summary)
 
58
 
 
59
p_loc   = gcc$(pkg_ver)-locales
 
60
d_loc   = debian/$(p_loc)
 
61
 
 
62
p_gcc_m = gcc$(pkg_ver)-multilib$(cross_bin_arch)
 
63
d_gcc_m = debian/$(p_gcc_m)
 
64
 
 
65
p_pld   = gcc$(pkg_ver)-plugin-dev$(cross_bin_arch)
 
66
d_pld   = debian/$(p_pld)
 
67
 
 
68
# ----------------------------------------------------------------------
 
69
$(binary_stamp)-gcc: $(install_dependencies)
 
70
        dh_testdir
 
71
        dh_testroot
 
72
        mv $(install_stamp) $(install_stamp)-tmp
 
73
 
 
74
        rm -rf $(d_gcc)
 
75
        dh_installdirs -p$(p_gcc) $(dirs_gcc)
 
76
 
 
77
ifeq ($(with_linaro_branch),yes)
 
78
        if [ -f $(srcdir)/gcc/ChangeLog.linaro ]; then \
 
79
          cp -p $(srcdir)/gcc/ChangeLog.linaro \
 
80
                $(d_gcc)/$(docdir)/$(p_xbase)/changelog.linaro; \
 
81
        fi
 
82
endif
 
83
ifeq ($(with_libssp),yes)
 
84
        cp -p $(srcdir)/libssp/ChangeLog \
 
85
                $(d_gcc)/$(docdir)/$(p_xbase)/libssp/changelog
 
86
endif
 
87
ifeq ($(with_gomp),yes)
 
88
        mv $(d)/$(usr_lib)/libgomp*.spec $(d_gcc)/$(gcc_lib_dir)/
 
89
        cp -p $(srcdir)/libgomp/ChangeLog \
 
90
                $(d_gcc)/$(docdir)/$(p_xbase)/gomp/changelog
 
91
endif
 
92
ifeq ($(with_itm),yes)
 
93
        mv $(d)/$(usr_lib)/libitm*.spec $(d_gcc)/$(gcc_lib_dir)/
 
94
        cp -p $(srcdir)/libitm/ChangeLog \
 
95
                $(d_gcc)/$(docdir)/$(p_xbase)/itm/changelog
 
96
endif
 
97
ifeq ($(with_qmath),yes)
 
98
        cp -p $(srcdir)/libquadmath/ChangeLog \
 
99
                $(d_gcc)/$(docdir)/$(p_xbase)/quadmath/changelog
 
100
endif
 
101
 
 
102
        DH_COMPAT=2 dh_movefiles -p$(p_gcc) $(files_gcc)
 
103
 
 
104
ifneq ($(DEB_CROSS),yes)
 
105
        ln -sf gcc$(pkg_ver) \
 
106
            $(d_gcc)/$(PF)/bin/$(DEB_TARGET_GNU_TYPE)-gcc$(pkg_ver)
 
107
        ln -sf gcc$(pkg_ver) \
 
108
            $(d_gcc)/$(PF)/bin/$(TARGET_ALIAS)-gcc$(pkg_ver)
 
109
        for i in ar ranlib nm; do \
 
110
          ln -sf gcc-$$i$(pkg_ver) \
 
111
            $(d_gcc)/$(PF)/bin/$(DEB_TARGET_GNU_TYPE)-gcc-$$i$(pkg_ver); \
 
112
          ln -sf gcc-$$i$(pkg_ver) \
 
113
            $(d_gcc)/$(PF)/bin/$(TARGET_ALIAS)-gcc-$$i$(pkg_ver); \
 
114
        done
 
115
ifneq ($(GFDL_INVARIANT_FREE),yes)
 
116
        ln -sf gcc$(pkg_ver).1 \
 
117
            $(d_gcc)/$(PF)/share/man/man1/$(DEB_TARGET_GNU_TYPE)-gcc$(pkg_ver).1
 
118
        ln -sf gcc$(pkg_ver).1 \
 
119
            $(d_gcc)/$(PF)/share/man/man1/$(TARGET_ALIAS)-gcc$(pkg_ver).1
 
120
endif
 
121
endif
 
122
 
 
123
#       dh_installdebconf
 
124
        debian/dh_doclink -p$(p_gcc) $(p_xbase)
 
125
        cp -p $(usr_doc_files) $(d_gcc)/$(docdir)/$(p_xbase)/.
 
126
        if [ -f testsuite-comparision ]; then \
 
127
          cp -p testsuite-comparision $(d_gcc)/$(docdir)/$(p_xbase)/. ; \
 
128
        fi
 
129
        cp -p debian/README.ssp $(d_gcc)/$(docdir)/$(p_xbase)/
 
130
        cp -p debian/NEWS.gcc $(d_gcc)/$(docdir)/$(p_xbase)/NEWS
 
131
        cp -p debian/NEWS.html $(d_gcc)/$(docdir)/$(p_xbase)/NEWS.html
 
132
        cp -p $(srcdir)/ChangeLog $(d_gcc)/$(docdir)/$(p_xbase)/changelog
 
133
        cp -p $(srcdir)/gcc/ChangeLog \
 
134
                $(d_gcc)/$(docdir)/$(p_xbase)/gcc/changelog
 
135
        if [ -f $(builddir)/gcc/.bad_compare ]; then \
 
136
          ( \
 
137
            echo "The comparision of the stage2 and stage3 object files shows differences."; \
 
138
            echo "The Debian package was modified to ignore these differences."; \
 
139
            echo ""; \
 
140
            echo "The following files differ:"; \
 
141
            echo ""; \
 
142
            cat $(builddir)/gcc/.bad_compare; \
 
143
          ) > $(d_gcc)/$(docdir)/$(p_xbase)/BOOTSTRAP_COMPARISION_FAILURE; \
 
144
        else \
 
145
          true; \
 
146
        fi
 
147
        debian/dh_rmemptydirs -p$(p_gcc)
 
148
        dh_strip -p$(p_gcc)
 
149
        dh_compress -p$(p_gcc) -X README.Bugs
 
150
        dh_fixperms -p$(p_gcc)
 
151
        dh_shlibdeps -p$(p_gcc)
 
152
        dh_gencontrol -p$(p_gcc) -- -v$(DEB_VERSION) $(common_substvars)
 
153
        dh_installdeb -p$(p_gcc)
 
154
        dh_md5sums -p$(p_gcc)
 
155
        dh_builddeb -p$(p_gcc)
 
156
 
 
157
        trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
 
158
 
 
159
        : # remove empty directories, when all components are in place
 
160
        -find $(d) -type d -empty -delete
 
161
 
 
162
        @echo "Listing installed files not included in any package:"
 
163
        -find $(d) ! -type d
 
164
 
 
165
# ----------------------------------------------------------------------
 
166
 
 
167
$(binary_stamp)-gcc-multi: $(install_dependencies)
 
168
        dh_testdir
 
169
        dh_testroot
 
170
        mv $(install_stamp) $(install_stamp)-tmp
 
171
 
 
172
        rm -rf $(d_gcc_m)
 
173
        dh_installdirs -p$(p_gcc_m) $(docdir)
 
174
 
 
175
        debian/dh_doclink -p$(p_gcc_m) $(p_xbase)
 
176
        debian/dh_rmemptydirs -p$(p_gcc_m)
 
177
 
 
178
        dh_strip -p$(p_gcc_m)
 
179
        dh_compress -p$(p_gcc_m)
 
180
        dh_shlibdeps -p$(p_gcc_m)
 
181
        dh_fixperms -p$(p_gcc_m)
 
182
        dh_installdeb -p$(p_gcc_m)
 
183
        dh_gencontrol -p$(p_gcc_m) -- -v$(DEB_VERSION) $(common_substvars)
 
184
        dh_md5sums -p$(p_gcc_m)
 
185
        dh_builddeb -p$(p_gcc_m)
 
186
 
 
187
        trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
 
188
 
 
189
# ----------------------------------------------------------------------
 
190
$(binary_stamp)-gcc-plugindev: $(install_dependencies)
 
191
        dh_testdir
 
192
        dh_testroot
 
193
        mv $(install_stamp) $(install_stamp)-tmp
 
194
 
 
195
        rm -rf $(d_pld)
 
196
        dh_installdirs -p$(p_pld) \
 
197
                $(docdir) \
 
198
                $(gcc_lib_dir)/plugin/include/config/arm
 
199
        DH_COMPAT=2 dh_movefiles -p$(p_pld) \
 
200
                $(gcc_lib_dir)/plugin
 
201
 
 
202
        : # FIXME: see #645018, this only works for the native build :-/
 
203
        if [ $(DEB_BUILD_ARCH) = $(DEB_HOST_ARCH) ] && [ $(DEB_HOST_ARCH) = $(DEB_TARGET_ARCH) ]; then \
 
204
          cp $(builddir)/gcc/build/gengtype $(d_pld)/$(gcc_lib_dir)/; \
 
205
          cp $(builddir)/gcc/gtype.state $(d_pld)/$(gcc_lib_dir)/; \
 
206
        fi
 
207
 
 
208
        debian/dh_doclink -p$(p_pld) $(p_xbase)
 
209
        debian/dh_rmemptydirs -p$(p_pld)
 
210
 
 
211
        dh_strip -p$(p_pld)
 
212
        dh_compress -p$(p_pld)
 
213
        dh_shlibdeps -p$(p_pld)
 
214
        dh_fixperms -p$(p_pld)
 
215
        dh_installdeb -p$(p_pld)
 
216
        dh_gencontrol -p$(p_pld) -- -v$(DEB_VERSION) $(common_substvars)
 
217
        dh_md5sums -p$(p_pld)
 
218
        dh_builddeb -p$(p_pld)
 
219
 
 
220
        trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
 
221
 
 
222
# ----------------------------------------------------------------------
 
223
$(binary_stamp)-gcc-locales: $(install_dependencies)
 
224
        dh_testdir
 
225
        dh_testroot
 
226
        mv $(install_stamp) $(install_stamp)-tmp
 
227
 
 
228
        rm -rf $(d_loc)
 
229
        dh_installdirs -p$(p_loc) \
 
230
                $(docdir)
 
231
        DH_COMPAT=2 dh_movefiles -p$(p_loc) \
 
232
                $(PF)/share/locale/*/*/cpplib*.* \
 
233
                $(PF)/share/locale/*/*/gcc*.*
 
234
 
 
235
        debian/dh_doclink -p$(p_loc) $(p_xbase)
 
236
        debian/dh_rmemptydirs -p$(p_loc)
 
237
 
 
238
        dh_compress -p$(p_loc)
 
239
        dh_fixperms -p$(p_loc)
 
240
        dh_installdeb -p$(p_loc)
 
241
        dh_gencontrol -p$(p_loc) -- -v$(DEB_VERSION) $(common_substvars)
 
242
        dh_md5sums -p$(p_loc)
 
243
        dh_builddeb -p$(p_loc)
 
244
 
 
245
        trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
 
246
 
 
247
 
 
248
# ----------------------------------------------------------------------
 
249
$(binary_stamp)-gcc-doc: $(build_html_stamp) $(install_stamp)
 
250
        dh_testdir
 
251
        dh_testroot
 
252
        mv $(install_stamp) $(install_stamp)-tmp
 
253
 
 
254
        rm -rf $(d_doc)
 
255
        dh_installdirs -p$(p_doc) \
 
256
                $(docdir)/$(p_xbase) \
 
257
                $(PF)/share/info
 
258
        DH_COMPAT=2 dh_movefiles -p$(p_doc) \
 
259
                $(PF)/share/info/cpp{,internals}-* \
 
260
                $(PF)/share/info/gcc{,int}-* \
 
261
                $(PF)/share/info/lib{gomp,itm}-* \
 
262
                $(if $(with_qmath),$(PF)/share/info/libquadmath-*)
 
263
        rm -f $(d_doc)/$(PF)/share/info/gccinst*
 
264
 
 
265
ifeq ($(with_gomp),yes)
 
266
        $(MAKE) -C $(buildlibdir)/libgomp stamp-build-info
 
267
        cp -p $(buildlibdir)/libgomp/libgomp$(pkg_ver).info $(d_doc)/$(PF)/share/info/
 
268
endif
 
269
ifeq ($(with_itm),yes)
 
270
        -$(MAKE) -C $(buildlibdir)/libitm stamp-build-info
 
271
        if [ -f $(buildlibdir)/libitm/libitm$(pkg_ver).info ]; then \
 
272
          cp -p $(buildlibdir)/libitm/libitm$(pkg_ver).info $(d_doc)/$(PF)/share/info/; \
 
273
        fi
 
274
endif
 
275
 
 
276
        debian/dh_doclink -p$(p_doc) $(p_xbase)
 
277
        dh_installdocs -p$(p_doc) html/gcc.html html/gccint.html
 
278
ifeq ($(with_gomp),yes)
 
279
        cp -p html/libgomp.html $(d_doc)/usr/share/doc/$(p_doc)/
 
280
endif
 
281
ifeq ($(with_itm),yes)
 
282
        cp -p html/libitm.html $(d_doc)/usr/share/doc/$(p_doc)/
 
283
endif
 
284
ifeq ($(with_qmath),yes)
 
285
        cp -p html/libquadmath.html $(d_doc)/usr/share/doc/$(p_doc)/
 
286
endif
 
287
        rm -f $(d_doc)/$(docdir)/$(p_xbase)/copyright
 
288
        debian/dh_rmemptydirs -p$(p_doc)
 
289
 
 
290
        dh_compress -p$(p_doc)
 
291
        dh_fixperms -p$(p_doc)
 
292
        dh_installdeb -p$(p_doc)
 
293
        dh_gencontrol -p$(p_doc) -- -v$(DEB_VERSION) $(common_substvars)
 
294
        dh_md5sums -p$(p_doc)
 
295
        dh_builddeb -p$(p_doc)
 
296
 
 
297
        trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)