Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/binutils/2.19.1: 01_all_binutils-2.19-gcc-4.4.patch README.history
Date: Wed, 09 Sep 2009 06:36:50
Message-Id: E1MlGnQ-0006Uw-Od@stork.gentoo.org
1 vapier 09/09/09 06:36:48
2
3 Modified: README.history
4 Added: 01_all_binutils-2.19-gcc-4.4.patch
5 Log:
6 add patch from upstream for building gold with gcc-4.4 #269260
7
8 Revision Changes Path
9 1.3 src/patchsets/binutils/2.19.1/README.history
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/binutils/2.19.1/README.history?rev=1.3&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/binutils/2.19.1/README.history?rev=1.3&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/binutils/2.19.1/README.history?r1=1.2&r2=1.3
14
15 Index: README.history
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo/src/patchsets/binutils/2.19.1/README.history,v
18 retrieving revision 1.2
19 retrieving revision 1.3
20 diff -u -r1.2 -r1.3
21 --- README.history 14 Mar 2009 11:37:46 -0000 1.2
22 +++ README.history 9 Sep 2009 06:36:48 -0000 1.3
23 @@ -1,3 +1,6 @@
24 +1.2 09.09.2009
25 + + 01_all_binutils-2.19-gcc-4.4.patch
26 +
27 1.1 14.03.2009
28 + 10_all_binutils-2.18-strip-common.patch
29 + 11_all_binutils-2.18-strip-symbol-table.patch
30
31
32
33 1.1 src/patchsets/binutils/2.19.1/01_all_binutils-2.19-gcc-4.4.patch
34
35 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/binutils/2.19.1/01_all_binutils-2.19-gcc-4.4.patch?rev=1.1&view=markup
36 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/binutils/2.19.1/01_all_binutils-2.19-gcc-4.4.patch?rev=1.1&content-type=text/plain
37
38 Index: 01_all_binutils-2.19-gcc-4.4.patch
39 ===================================================================
40 fix from upstream for building gold with gcc-4.4
41
42 http://sourceware.org/ml/binutils/2009-01/msg00355.html
43 http://bugs.gentoo.org/269260
44
45 --- binutils-2.19.1/gold/gold.h
46 +++ binutils-2.19.1/gold/gold.h
47 @@ -27,6 +27,8 @@
48 #include "ansidecl.h"
49
50 #include <cstddef>
51 +#include <cstring>
52 +#include <stdint.h>
53 #include <sys/types.h>
54
55 #ifndef ENABLE_NLS
56 --- binutils-2.19.1/gold/reduced_debug_output.cc
57 +++ binutils-2.19.1/gold/reduced_debug_output.cc
58 @@ -68,19 +68,15 @@
59 }
60
61 template <int valsize>
62 -void Insert_into_vector(std::vector<unsigned char>* destination,
63 +void insert_into_vector(std::vector<unsigned char>* destination,
64 typename elfcpp::Valtype_base<valsize>::Valtype value)
65 {
66 - union
67 - {
68 - unsigned char buffer[valsize / 8];
69 - long long align;
70 - } u;
71 + unsigned char buffer[valsize / 8];
72 if (parameters->target().is_big_endian())
73 - elfcpp::Swap<valsize, true>::writeval(u.buffer, value);
74 + elfcpp::Swap_unaligned<valsize, true>::writeval(buffer, value);
75 else
76 - elfcpp::Swap<valsize, false>::writeval(u.buffer, value);
77 - destination->insert(destination->end(), u.buffer, u.buffer + valsize / 8);
78 + elfcpp::Swap_unaligned<valsize, false>::writeval(buffer, value);
79 + destination->insert(destination->end(), buffer, buffer + valsize / 8);
80 }
81
82 template <int valsize>
83 @@ -356,15 +352,15 @@
84 return;
85 }
86
87 - Insert_into_vector<32>(&this->data_, 0xFFFFFFFF);
88 - Insert_into_vector<32>(&this->data_, 0);
89 - Insert_into_vector<64>(
90 + insert_into_vector<32>(&this->data_, 0xFFFFFFFF);
91 + insert_into_vector<32>(&this->data_, 0);
92 + insert_into_vector<64>(
93 &this->data_,
94 (11 + get_length_as_unsigned_LEB_128(abbreviation_number)
95 + die_end - debug_info));
96 - Insert_into_vector<16>(&this->data_, version);
97 - Insert_into_vector<64>(&this->data_, 0);
98 - Insert_into_vector<8>(&this->data_, address_size);
99 + insert_into_vector<16>(&this->data_, version);
100 + insert_into_vector<64>(&this->data_, 0);
101 + insert_into_vector<8>(&this->data_, address_size);
102 write_unsigned_LEB_128(&this->data_, abbreviation_number);
103 this->data_.insert(this->data_.end(), debug_info, die_end);
104 }
105 @@ -398,13 +394,13 @@
106 return;
107 }
108
109 - Insert_into_vector<32>(
110 + insert_into_vector<32>(
111 &this->data_,
112 (7 + get_length_as_unsigned_LEB_128(abbreviation_number)
113 + die_end - debug_info));
114 - Insert_into_vector<16>(&this->data_, version);
115 - Insert_into_vector<32>(&this->data_, 0);
116 - Insert_into_vector<8>(&this->data_, address_size);
117 + insert_into_vector<16>(&this->data_, version);
118 + insert_into_vector<32>(&this->data_, 0);
119 + insert_into_vector<8>(&this->data_, address_size);
120 write_unsigned_LEB_128(&this->data_, abbreviation_number);
121 this->data_.insert(this->data_.end(), debug_info, die_end);
122 }
123 --- binutils-2.19.1/gold/version.cc
124 +++ binutils-2.19.1/gold/version.cc
125 @@ -23,6 +23,7 @@
126 #include "gold.h"
127
128 #include <string>
129 +#include <cstdio>
130
131 #include "../bfd/bfdver.h"