git.iko.soy/typeable/nixpkgs
on master help sign in
gcc-4.6: bump to 4.6.4

The dropped patch was applied upstream within the update.

commit9cdd231ad3c8fdfcff20c7a9f42a7180dc8fabb0 authorVladimír Čunát <vcunat@gmail.com> dateSun 14 Dec 2014, 16:16 (12 years ago) parentdb44486
3 files changed+9−227
pkgs/development/compilers/gcc/4.6/default.nix+2−5 pkgs/development/compilers/gcc/4.6/siginfo_t_fix.patch−211 pkgs/development/compilers/gcc/4.6/sources.nix+7−11
pkgs/development/compilers/gcc/4.6/default.nix+2−5
@@ -46,15 +46,12 @@ assert stdenv.isDarwin -> gnused != null;
4646with stdenv.lib;
4747with builtins;
4848
49−let version = "4.6.3";
49+let version = "4.6.4";
5050
5151 # Whether building a cross-compiler for GNU/Hurd.
5252 crossGNU = cross != null && cross.config == "i586-pc-gnu";
5353
54− patches =
55− [ # Fix building on Glibc 2.16.
56− ./siginfo_t_fix.patch
57− ]
54+ patches = [ ]
5855 ++ optional (cross != null) ./libstdc++-target.patch
5956 ++ optional noSysDirs ./no-sys-dirs.patch
6057 # The GNAT Makefiles did not pay attention to CFLAGS_FOR_TARGET for its
pkgs/development/compilers/gcc/4.6/siginfo_t_fix.patchdeleted−211
@@ -1,211 +0,0 @@
1−Partly taken from:
2−http://gcc.gnu.org/git/?p=gcc.git;a=patch;h=5617a3db5d04630d0bfb71a3578894b4442f266d
3−
4−Adapted to gcc 4.6.3. Original commit text follows.
5−
6−From 5617a3db5d04630d0bfb71a3578894b4442f266d Mon Sep 17 00:00:00 2001
7−From: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
8−Date: Fri, 20 Apr 2012 07:44:50 +0000
9−Subject: [PATCH] struct siginfo vs. siginfo_t
10−
11−gcc/
12− * config/alpha/linux-unwind.h (alpha_fallback_frame_state): Use
13− siginfo_t instead of struct siginfo.
14− * config/bfin/linux-unwind.h (bfin_fallback_frame_state): Likewise.
15− * config/i386/linux-unwind.h (x86_fallback_frame_state): Likewise.
16− * config/ia64/linux-unwind.h (ia64_fallback_frame_state)
17− (ia64_handle_unwabi): Likewise.
18− * config/mips/linux-unwind.h (mips_fallback_frame_state): Likewise.
19− * config/pa/linux-unwind.h (pa32_fallback_frame_state): Likewise.
20− * config/sh/linux-unwind.h (shmedia_fallback_frame_state)
21− (sh_fallback_frame_state): Likewise.
22− * config/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Likewise.
23−
24−git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186610 138bc75d-0d04-0410-961f-82ee72b054a4
25−
26−diff --git a/gcc/config/alpha/linux-unwind.h b/gcc/config/alpha/linux-unwind.h
27−index 4c811dc..8c04b3b 100644
28−--- a/gcc/config/alpha/linux-unwind.h
29−+++ b/gcc/config/alpha/linux-unwind.h
30−@@ -1,5 +1,5 @@
31− /* DWARF2 EH unwinding support for Alpha Linux.
32−- Copyright (C) 2004, 2005, 2009, 2011 Free Software Foundation, Inc.
33−+ Copyright (C) 2004, 2005, 2009, 2011, 2012 Free Software Foundation, Inc.
34−
35− This file is part of GCC.
36−
37−@@ -49,7 +49,7 @@ alpha_fallback_frame_state (struct _Unwind_Context *context,
38− else if (pc[1] == 0x201f015f) /* lda $0,NR_rt_sigreturn */
39− {
40− struct rt_sigframe {
41−- struct siginfo info;
42−+ siginfo_t info;
43− struct ucontext uc;
44− } *rt_ = context->cfa;
45− sc = &rt_->uc.uc_mcontext;
46−diff --git a/gcc/config/bfin/linux-unwind.h b/gcc/config/bfin/linux-unwind.h
47−index 88c8285..15bb2f1 100644
48−--- a/gcc/config/bfin/linux-unwind.h
49−+++ b/gcc/config/bfin/linux-unwind.h
50−@@ -1,5 +1,5 @@
51− /* DWARF2 EH unwinding support for Blackfin.
52−- Copyright (C) 2007, 2009 Free Software Foundation, Inc.
53−+ Copyright (C) 2007, 2009, 2012 Free Software Foundation, Inc.
54−
55− This file is part of GCC.
56−
57−@@ -48,10 +48,10 @@ bfin_fallback_frame_state (struct _Unwind_Context *context,
58− {
59− struct rt_sigframe {
60− int sig;
61−- struct siginfo *pinfo;
62−+ siginfo_t *pinfo;
63− void *puc;
64− char retcode[8];
65−- struct siginfo info;
66−+ siginfo_t info;
67− struct ucontext uc;
68− } *rt_ = context->cfa;
69−
70−diff --git a/gcc/config/i386/linux-unwind.h b/gcc/config/i386/linux-unwind.h
71−index ad0ccfa..02b1897 100644
72−--- a/gcc/config/i386/linux-unwind.h
73−+++ b/gcc/config/i386/linux-unwind.h
74−@@ -136,9 +136,9 @@ x86_fallback_frame_state (struct _Unwind_Context *context,
75− {
76− struct rt_sigframe {
77− int sig;
78−- struct siginfo *pinfo;
79−+ siginfo_t *pinfo;
80− void *puc;
81−- struct siginfo info;
82−+ siginfo_t info;
83− struct ucontext uc;
84− } *rt_ = context->cfa;
85− /* The void * cast is necessary to avoid an aliasing warning.
86−diff --git a/gcc/config/ia64/linux-unwind.h b/gcc/config/ia64/linux-unwind.h
87−index 93f762d..da31259 100644
88−--- a/gcc/config/ia64/linux-unwind.h
89−+++ b/gcc/config/ia64/linux-unwind.h
90−@@ -1,5 +1,5 @@
91− /* DWARF2 EH unwinding support for IA64 Linux.
92−- Copyright (C) 2004, 2005, 2009 Free Software Foundation, Inc.
93−+ Copyright (C) 2004, 2005, 2009, 2012 Free Software Foundation, Inc.
94−
95− This file is part of GCC.
96−
97−@@ -47,7 +47,7 @@ ia64_fallback_frame_state (struct _Unwind_Context *context,
98− struct sigframe {
99− char scratch[16];
100− unsigned long sig_number;
101−- struct siginfo *info;
102−+ siginfo_t *info;
103− struct sigcontext *sc;
104− } *frame_ = (struct sigframe *)context->psp;
105− struct sigcontext *sc = frame_->sc;
106−@@ -137,7 +137,7 @@ ia64_handle_unwabi (struct _Unwind_Context *context, _Unwind_FrameState *fs)
107− struct sigframe {
108− char scratch[16];
109− unsigned long sig_number;
110−- struct siginfo *info;
111−+ siginfo_t *info;
112− struct sigcontext *sc;
113− } *frame = (struct sigframe *)context->psp;
114− struct sigcontext *sc = frame->sc;
115−diff --git a/gcc/config/mips/linux-unwind.h b/gcc/config/mips/linux-unwind.h
116−index 02f7cd5..094ff58 100644
117−--- a/gcc/config/mips/linux-unwind.h
118−+++ b/gcc/config/mips/linux-unwind.h
119−@@ -1,5 +1,6 @@
120− /* DWARF2 EH unwinding support for MIPS Linux.
121−- Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
122−+ Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2012 Free Software
123−+ Foundation, Inc.
124−
125− This file is part of GCC.
126−
127−@@ -75,7 +76,7 @@ mips_fallback_frame_state (struct _Unwind_Context *context,
128− struct rt_sigframe {
129− u_int32_t ass[4]; /* Argument save space for o32. */
130− u_int32_t trampoline[2];
131−- struct siginfo info;
132−+ siginfo_t info;
133− _sig_ucontext_t uc;
134− } *rt_ = context->cfa;
135− sc = &rt_->uc.uc_mcontext;
136−diff --git a/gcc/config/pa/linux-unwind.h b/gcc/config/pa/linux-unwind.h
137−index a0560e9..38b4eda 100644
138−--- a/gcc/config/pa/linux-unwind.h
139−+++ b/gcc/config/pa/linux-unwind.h
140−@@ -1,5 +1,5 @@
141− /* DWARF2 EH unwinding support for PA Linux.
142−- Copyright (C) 2004, 2005, 2009 Free Software Foundation, Inc.
143−+ Copyright (C) 2004, 2005, 2009, 2012 Free Software Foundation, Inc.
144−
145− This file is part of GCC.
146−
147−@@ -63,7 +63,7 @@ pa32_fallback_frame_state (struct _Unwind_Context *context,
148− int i;
149− struct sigcontext *sc;
150− struct rt_sigframe {
151−- struct siginfo info;
152−+ siginfo_t info;
153− struct ucontext uc;
154− } *frame;
155−
156−diff --git a/gcc/config/sh/linux-unwind.h b/gcc/config/sh/linux-unwind.h
157−index 94ed95d..5a78e31 100644
158−--- a/gcc/config/sh/linux-unwind.h
159−+++ b/gcc/config/sh/linux-unwind.h
160−@@ -1,5 +1,6 @@
161− /* DWARF2 EH unwinding support for SH Linux.
162−- Copyright (C) 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
163−+ Copyright (C) 2004, 2005, 2006, 2007, 2009, 2012 Free Software Foundation,
164−+ Inc.
165−
166− This file is part of GCC.
167−
168−@@ -80,9 +81,9 @@ shmedia_fallback_frame_state (struct _Unwind_Context *context,
169− && (*(unsigned long *) (pc+11) == 0x6ff0fff0))
170− {
171− struct rt_sigframe {
172−- struct siginfo *pinfo;
173−+ siginfo_t *pinfo;
174− void *puc;
175−- struct siginfo info;
176−+ siginfo_t info;
177− struct ucontext uc;
178− } *rt_ = context->cfa;
179− /* The void * cast is necessary to avoid an aliasing warning.
180−@@ -179,7 +180,7 @@ sh_fallback_frame_state (struct _Unwind_Context *context,
181− && (*(unsigned short *) (pc+14) == 0x00ad))))
182− {
183− struct rt_sigframe {
184−- struct siginfo info;
185−+ siginfo_t info;
186− struct ucontext uc;
187− } *rt_ = context->cfa;
188− /* The void * cast is necessary to avoid an aliasing warning.
189−diff --git a/gcc/config/xtensa/linux-unwind.h b/gcc/config/xtensa/linux-unwind.h
190−index 32e9349..2456497 100644
191−--- a/gcc/config/xtensa/linux-unwind.h
192−+++ b/gcc/config/xtensa/linux-unwind.h
193−@@ -1,5 +1,5 @@
194− /* DWARF2 EH unwinding support for Xtensa.
195−- Copyright (C) 2008, 2009 Free Software Foundation, Inc.
196−+ Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
197−
198− This file is part of GCC.
199−
200−@@ -62,7 +62,7 @@ xtensa_fallback_frame_state (struct _Unwind_Context *context,
201− struct sigcontext *sc;
202−
203− struct rt_sigframe {
204−- struct siginfo info;
205−+ siginfo_t info;
206− struct ucontext uc;
207− } *rt_;
208−
209−--
210−1.7.3.4
211−
pkgs/development/compilers/gcc/4.6/sources.nix+7−11
@@ -1,31 +1,27 @@
11/* Automatically generated by `update-gcc.sh', do not edit.
2− For GCC 4.6.3. */
2+ For GCC 4.6.4. */
33{ fetchurl, optional, version, langC, langCC, langFortran, langJava, langAda,
44 langGo }:
55
6−assert version == "4.6.3";
6+assert version == "4.6.4";
77optional /* langC */ true (fetchurl {
88 url = "mirror://gcc/releases/gcc-${version}/gcc-core-${version}.tar.bz2";
9− sha256 = "283e00881c0de258fafc5170843e4d9b14ee2a7dc4426f0d426e6be0400251c1";
9+ sha256 = "48b566f1288f099dff8fba868499a320f83586245ec69b8c82a9042566a5bf62";
1010}) ++
1111optional langCC (fetchurl {
1212 url = "mirror://gcc/releases/gcc-${version}/gcc-g++-${version}.tar.bz2";
13− sha256 = "b3e0c733e900e99096b0c5480f57e22e3e583ec3d83596cc2cb9986bd64b29e8";
13+ sha256 = "4eaa347f9cd3ab7d5e14efbb9c5c03009229cd714b558fc55fa56e8996b74d42";
1414}) ++
1515optional langFortran (fetchurl {
1616 url = "mirror://gcc/releases/gcc-${version}/gcc-fortran-${version}.tar.bz2";
17− sha256 = "fe1bdf3485f33e6d0a998ff7bcb42526fbf3083dbfc107c3d95a88c00739eadb";
17+ sha256 = "4f402e0d27995a02354570f0a63047f27463c72c62f1ba3c08ef5a7c6c9c3d1c";
1818}) ++
1919optional langJava (fetchurl {
2020 url = "mirror://gcc/releases/gcc-${version}/gcc-java-${version}.tar.bz2";
21− sha256 = "d0f9aafbd8fe95fdee5797cd02a9a734de0078aa62a9a249b0752adabf76d6e6";
21+ sha256 = "4441d0c3cc04f2162f981c6b4bf29cdd9f6c16d294ce24c6bc4a05d8277abf28";
2222}) ++
2323optional langAda (fetchurl {
2424 url = "mirror://gcc/releases/gcc-${version}/gcc-ada-${version}.tar.bz2";
25− sha256 = "7bb213ec3948646df72720580fcba3489c84aa452bd0e4238712607ef83cbdf6";
26−}) ++
27−optional langGo (fetchurl {
28− url = "mirror://gcc/releases/gcc-${version}/gcc-go-${version}.tar.bz2";
29− sha256 = "7589c16f33ad383769510bb5b9c1aeb7f865f3ae0b89b07b2370d988a4c1fe6d";
25+ sha256 = "2a09bbf942b2557839722d4807e67559123037356f5cb1a3b12f44539968d0ad";
3026}) ++
3127[]