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

« back to all changes in this revision

Viewing changes to .svn/pristine/3f/3f9bede072c7a12c99caa487900622779082b778.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: Omit the subminor number from the go libdir
 
2
 
 
3
Index: b/src/gcc/go/Make-lang.in
 
4
===================================================================
 
5
--- a/src/gcc/go/Make-lang.in
 
6
+++ b/src/gcc/go/Make-lang.in
 
7
@@ -244,7 +244,9 @@
 
8
        $(TM_H) $(RTL_H) $(TREE_H) $(TM_P_H) output.h $(TARGET_H) \
 
9
        $(COMMON_TARGET_H)
 
10
 
 
11
-CFLAGS-go/go-lang.o += -DDEFAULT_TARGET_VERSION=\"$(version)\" \
 
12
+short_version := $(shell echo $(version) | sed -r 's/([0-9]+\.[0-9]+).*/\1/')
 
13
+
 
14
+CFLAGS-go/go-lang.o += -DDEFAULT_TARGET_VERSION=\"$(short_version)\" \
 
15
        -DDEFAULT_TARGET_MACHINE=\"$(target_noncanonical)\"
 
16
 go/go-lang.o: go/go-lang.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(OPTS_H) \
 
17
                $(TREE_H) $(GIMPLE_H) $(GGC_H) $(TOPLEV_H) debug.h options.h \
 
18
Index: b/src/libgo/Makefile.in
 
19
===================================================================
 
20
--- a/src/libgo/Makefile.in
 
21
+++ b/src/libgo/Makefile.in
 
22
@@ -431,14 +431,14 @@
 
23
 SUFFIXES = .c .go .gox .o .obj .lo .a
 
24
 @LIBGO_IS_RTEMS_TRUE@subdirs = testsuite
 
25
 SUBDIRS = ${subdirs}
 
26
-gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
 
27
+short_version := $(shell sed -r 's/([0-9]+\.[0-9]+)\..*/\1/' $(top_srcdir)/../gcc/BASE-VER)
 
28
 MAINT_CHARSET = latin1
 
29
 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
 
30
 PWD_COMMAND = $${PWDCMD-pwd}
 
31
 STAMP = echo timestamp >
 
32
 toolexecdir = $(glibgo_toolexecdir)
 
33
 toolexeclibdir = $(glibgo_toolexeclibdir)
 
34
-toolexeclibgodir = $(nover_glibgo_toolexeclibdir)/go/$(gcc_version)/$(target_alias)
 
35
+toolexeclibgodir = $(nover_glibgo_toolexeclibdir)/go/$(short_version)
 
36
 WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
 
37
 
 
38
 # -I/-D flags to pass when compiling.
 
39
Index: b/src/libgo/Makefile.am
 
40
===================================================================
 
41
--- a/src/libgo/Makefile.am
 
42
+++ b/src/libgo/Makefile.am
 
43
@@ -15,7 +15,7 @@
 
44
 
 
45
 SUBDIRS = ${subdirs}
 
46
 
 
47
-gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
 
48
+short_version := $(shell sed -r 's/([0-9]+\.[0-9]+)\..*/\1/' $(top_srcdir)/../gcc/BASE-VER)
 
49
 
 
50
 MAINT_CHARSET = latin1
 
51
 
 
52
@@ -25,7 +25,7 @@
 
53
 
 
54
 toolexecdir = $(glibgo_toolexecdir)
 
55
 toolexeclibdir = $(glibgo_toolexeclibdir)
 
56
-toolexeclibgodir = $(nover_glibgo_toolexeclibdir)/go/$(gcc_version)/$(target_alias)
 
57
+toolexeclibgodir = $(nover_glibgo_toolexeclibdir)/go/$(short_version)
 
58
 
 
59
 LIBFFI = @LIBFFI@
 
60
 LIBFFIINCS = @LIBFFIINCS@