1 2011-08-22 Jakub Jelinek <jakub@redhat.com>
4 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
5 innerdecl is a VAR_DECL.
7 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
9 * config/i386/avx2intrin.h: New file.
10 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
11 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
12 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
13 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
14 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
15 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
16 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
17 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
18 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
19 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
20 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
21 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
22 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
23 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
24 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
25 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
26 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
27 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
28 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
29 VOID_FTYPE_PV8SI_V8SI_V8SI,
30 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
31 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
32 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
33 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
34 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
35 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
36 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
37 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
38 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
39 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
40 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
41 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
42 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
43 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
44 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
45 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
46 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
47 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
48 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
49 V4DI_FTYPE_V4DI_INT_CONVERT,
50 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
51 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
52 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
53 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
54 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
55 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
56 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
57 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
58 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
59 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
60 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
61 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
62 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
63 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
64 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
65 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
66 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
67 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
68 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
69 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
70 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
71 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
72 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
73 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
74 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
75 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
76 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
77 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
78 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
79 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
80 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
81 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
82 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
83 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
84 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
85 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
86 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
87 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
88 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
89 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
90 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
91 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
92 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
93 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
94 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
95 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
96 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
97 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
98 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
99 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
100 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
101 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
102 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
103 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
104 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
105 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
106 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
107 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
108 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
109 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
110 IX86_BUILTIN_VBROADCASTSS_PS256,
111 IX86_BUILTIN_VBROADCASTSD_PD256,
112 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
113 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
114 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
115 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
116 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
117 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
118 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
119 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
120 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
121 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
122 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
123 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
124 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
125 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
126 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
127 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
128 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
129 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
130 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
131 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
132 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
133 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
134 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
135 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
136 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
137 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
138 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
139 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
140 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
141 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
142 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
143 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
144 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
145 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
146 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
147 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
148 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
149 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
150 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
151 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
152 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
153 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
154 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
155 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
156 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
157 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
158 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
159 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
160 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
161 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
162 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
163 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
164 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
165 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
166 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
167 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
168 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
169 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
170 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
171 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
172 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
173 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
174 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
175 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
176 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
177 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
178 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
179 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
180 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
181 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
182 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
183 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
184 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
185 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
186 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
187 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
188 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
189 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
190 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
191 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
192 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
193 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
194 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
195 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
196 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
197 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
198 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
199 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
200 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
201 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
202 IX86_BUILTIN_VBROADCASTSD_PD256,
203 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
204 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
205 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
206 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
207 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
208 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
209 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
210 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
211 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
212 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
213 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
214 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
215 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
216 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
217 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
218 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
219 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
220 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
221 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
222 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
223 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
224 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
225 IX86_BUILTIN_GATHERDIV8SI.
226 (ix86_preferred_simd_mode): Support AVX2 modes.
227 (ix86_expand_args_builtin): Support AVX2 built-ins.
228 (ix86_expand_special_args_builtin): Likewise.
229 (ix86_expand_builtin): Likewise.
230 * config/i386/i386.md (UNSPEC_VPERMSI): New.
231 (UNSPEC_VPERMDF): Likewise.
232 (UNSPEC_VPERMSF): Likewise.
233 (UNSPEC_VPERMDI): Likewise.
234 (UNSPEC_VPERMTI): Likewise.
235 (UNSPEC_GATHER): Likewise.
236 (ssemodesuffix): Extend.
237 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
239 * config/i386/predicates.md (const1248_operand): New.
240 * config/i386/sse.md (VI_AVX2):
241 (VI1_AVX2): Likewise.
242 (VI2_AVX2): Likewise.
243 (VI4_AVX2): Likewise.
244 (VI8_AVX2): Likewise.
245 (VIMAX_AVX2): Likewise.
246 (SSESCALARMODE): Likewise.
247 (VI12_AVX2): Likewise.
248 (VI24_AVX2): Likewise.
249 (VI124_AVX2): Likeuse_submit_for_speed = 1
251 (VI248_AVX2): Likewise.
252 (VI48_AVX2): Likewise.
253 (VI4SD_AVX2): Likewise.
254 (V48_AVX2): Likewise.
255 (avx2modesuffix): Likewise.
256 (sse_avx2): Likewise.
257 (sse2_avx2): Likewise.
258 (ssse3_avx2): Likewise.
259 (sse4_1_avx2): Likewise.
260 (avx_avx2): Likewise.
261 (lshift)<code_oterator>: Likewise.
262 (lshift_insn): Likewise.
263 (lshift)<code_attr>: Likewise.
264 (SSESHORTMODE): Likewise.
265 (SSELONGMODE): Likewise.
266 (SSEBYTEMODE): Likewise.
267 (AVXTOSSEMODE): Likewise.
268 (shortmode): Likewise.
269 (ssescalarmodesuffix): Update.
270 (sseunpackmode): Likewise.
271 (ssepackmode): Likewise.
273 (AVX256MODE124): Likewise.
274 (AVX256MODE1248): Likewise.
275 (AVX256MODE248): Likewise.
276 (AVXMODE48P_SI): Likewise.
277 (AVXMODE48P_SI): Likewise.
278 (AVXMODE48P_DI): Likewise.
279 (AVXMODE48P_DI): Likewise.
280 (gthrfirstp): Likewise.
281 (gthrlastp): Likewise.
283 (ssevecsize): Likewise.
284 (ssedoublesizemode): Likewise.
285 (avxvecmode): Likewise.
286 (avxvecsize): Likewise.
287 (avxhalfvecmode): Likewise.
288 (avxscalarmode): Likewise.
289 (avxpermvecmode): Likewise.
290 (avxmodesuffixp): Likewise.
291 (avxmodesuffix): Likewise.
292 (avx2_vec_dupv4sf): New.
293 (avx2_vec_dupv8sf): Likewise.
294 (avx2_interleave_highv4di): Likewise.
295 (avx2_interleave_lowv4di): Likewise.
296 (<plusminus_insn><mode>3): Update.
297 (*<plusminus_insn><mode>3): Likewise.
298 (sse2_<plusminus_insn><mode>3): Rename to ...
299 ("<sse2_avx2>_<plusminus_insn><mode>3): ... this. updated.
300 (*sse2_<plusminus_insn><mode>3): Likewise.
301 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
302 (mulv8hi3): Likewise.
303 (mul<mode>3): Likewise.
304 (*mulv8hi3): Likewise.
305 (*mul<mode>3): Likewise.
306 (<s>mulv8hi3_highpart): Likewise.
307 (<s>mul<mode>3_highpart): Likewise.
308 (*<s>mulv8hi3_highpart): Likewise.
309 (*<s>mul<mode>3_highpart): Likewise.
310 (avx2_umulv4siv4di3): Likewise.
311 (*avx_umulv4siv4di3): Likewise.
312 (sse4_1_mulv2siv2di3): Likewise.
313 (<sse4_1_avx2>_mul<shortmode><mode>3): Likewise.
314 (*sse4_1_mulv2siv2di3): Likewise.
315 (*<sse4_1_avx2>_mulv2siv2di3): Likewise.
317 (*avx2_pmaddwd): Likewise.
318 (mulv4si3): Rename to ...
319 (mul<mode>3): ... this. Update.
320 (*sse4_1_mulv4si3): Likewise.
321 (*<sse4_1_avx2>_mul<mode>3): Likewise.
322 (ashr<mode>3): Update.
323 (avx2_lshrqv4di3): New.
324 (lshr<mode>3): Update.
325 (avx2_lshlqv4di3): New.
326 (avx2_lshl<mode>3): Likewise.
327 (sse2_ashlv1ti3): Rename to ...
328 (<sse2_avx2>_ashl<mode>3): ... this. Update.
329 (avx2_<code><mode>3)<umaxmin>: New.
330 (*avx2_<code><mode>3)<umaxmin>: Likewise.
331 (avx2_<code><mode>3)<smaxmin>: New.
332 (*avx2_<code><mode>3)<smaxmin>: Likewise.
333 (avx2_eq<mode>3): Likewise.
334 (*avx2_eq<mode>3): Likewise.
335 (avx2_gt<mode>3): Likewise.
336 (sse2_andnot<mode>3): Rename to ...
337 (<sse2_avx2>_andnot<mode>3): ... this. Update.
338 (*andnot<mode>3): Update.
339 (<code><mode>3)<any_logic>: Update.
340 (*<code><mode>3)<any_logic>: Likewise.
341 (sse2_packsswb): Rename to ...
342 (<sse2_avx2>_packsswb): ... this. Update.
343 (sse2_packssdw): Likewise.
344 (<sse2_avx2>_packssdw): Likewise.
345 (sse2_packuswb): Likewise.
346 (<sse2_avx2>_packuswb): Likewise.
347 (avx2_interleave_highv32qi): New.
348 (avx2_interleave_lowv32qi): Likewise.
349 (avx2_interleave_highv16hi): Likewise.
350 (avx2_interleave_lowv16hi): Likewise.
351 (avx2_interleave_highv8si): Likewise.
352 (avx2_interleave_lowv8si): Likewise.
354 (avx2_pshufd_1): Likewise.
355 (avx2_pshuflwv3): Likewise.
356 (avx2_pshuflw_1): Likewise.
357 (avx2_pshufhwv3): Likewise.
358 (avx2_pshufhw_1): Likewise.
359 (avx2_uavgv32qi3): Likewise.
360 (*avx2_uavgv32qi3): Likewise.
361 (avx2_uavgv16hi3): Likewise.
362 (*avx2_uavgv16hi3): Likewise.
363 (sse2_psadbw): Rename to ...
364 (<sse2_avx2>_psadbw): ... this. Update.
365 (avx2_pmovmskb): New.
366 (avx2_phaddwv16hi3): Likewise.
367 (avx2_phadddv8si3): Likewise.
368 (avx2_phaddswv16hi3): Likewise.
369 (avx2_phsubwv16hi3): Likewise.
370 (avx2_phsubdv8si3): Likewise.
371 (avx2_phsubswv16hi3): Likewise.
372 (avx2_pmaddubsw256): Likewise.
373 (avx2_umulhrswv16hi3): Likewise.
374 (*avx2_umulhrswv16hi3): Likewise.
375 (ssse3_pshufbv16qi3): Rename to ...
376 (<ssse3_avx2>_pshufb<mode>3): ... this. Update.
377 (ssse3_psign<mode>3): Likewise.
378 (<ssse3_avx2>_psign<mode>3): Likewise.
379 (ssse3_palignrti): Likewise.
380 (<ssse3_avx2>_palignr<mode>): Likewise.
381 (abs<mode>2): Likewise.
382 (sse4_1_movntdqa): Rename to ...
383 (<sse4_1_avx2>_movntdqa): ... this. Update.
384 (sse4_1_mpsadbw): Likewise.
385 (<sse4_1_avx2>_mpsadbw): Likewise.
386 (avx2_packusdw): New.
387 (sse4_1_pblendvb): Rename to ...
388 (<sse4_1_avx2>_pblendvb): ... this. Update.
389 (sse4_1_pblendw): Likewise.
390 (<sse4_1_avx2>_pblendw): Likewise.
391 (avx2_pblendd<mode>): New.
392 (avx2_<code>v16qiv16hi2): Likewise.
393 (avx2_<code>v8qiv8si2): Likewise.
394 (avx2_<code>v8hiv8si2): Likewise.
395 (avx2_<code>v4qiv4di2): Likewise.
396 (avx2_<code>v4hiv4di2): Likewise.
397 (avx2_<code>v4siv4di2): Likewise.
398 (avx2_pbroadcast<mode>): Likewise.
399 (avx2_permvarv8si): Likewise.
400 (avx2_permv4df): Likewise.
401 (avx2_permvarv8sf): Likewise.
402 (avx2_permv4di): Likewise.
403 (avx2_permv2ti): Likewise.
404 (avx2_vec_dupv4df): Likewise.
405 (avx2_vbroadcasti128_<mode>): Likewise.
406 (avx2_vec_set_lo_v4di): Likewise.
407 (avx2_vec_set_hi_v4di): Likewise.
408 (avx_maskload<ssemodesuffix><avxsizesuffix>): Rename to ...
409 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): ... this.
411 (avx_maskstore<ssemodesuffix><avxsizesuffix>): Likewise.
412 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Likewise.
413 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): New.
414 (avx2_extracti128): Likewise.
415 (avx2_inserti128): Likewise.
416 (avx2_ashrvv8si): Likewise.
417 (avx2_ashrvv4si): Likewise.
418 (avx2_<lshift>vv8si): Likewise.
419 (avx2_<lshift>v<mode>): Likewise.
420 (avx2_<lshift>vv2di): Likewise.
421 (avx2_gathersi<mode>): Likewise.
422 (*avx2_gathersi<mode>): Likewise.
423 (avx2_gatherdi<mode>): Likewise.
424 (*avx2_gatherdi<mode>): Likewise.
425 (avx2_gatherdi<mode>256): Likewise.
426 (*avx2_gatherdi<mode>256): Likewise.
427 * doc/extend.texi: Document AVX2 built-in functions.
428 * doc/invoke.texi: Document -mavx2.
430 2011-08-22 Matthias Klose <doko@debian.org>
433 2011-07-11 Arthur Loiret <aloiret@debian.org>
434 Matthias Klose <doko@debian.org>
435 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
436 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
438 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
440 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
443 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
444 to #ifndef HONOR_REG_ALLOC_ORDER block.
446 2011-08-21 Richard Henderson <rth@redhat.com>
448 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
449 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
450 * resource.c (next_insn_no_annul): Likewise.
451 (mark_set_resources): Likewise.
452 * reorg.c (delete_from_delay_slot): Likewise.
453 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
454 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
456 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
458 * config/i386/i386.md (any_div): Remove.
459 (sgnprefix): Update for removal.
462 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
464 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
465 for ira_reg_class_max_nregs. Increase pressure by 1.
466 (mark_pseudo_regno_subword_dead): Use allocno class
467 for ira_reg_class_max_nregs.
469 2011-08-20 Richard Henderson <rth@redhat.com>
471 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
472 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
473 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
474 config/c6x/ltf.c: Adjust include path for soft-fp.
476 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
479 * config.gcc (tm_file): Add initfini-array.h if
480 .init_arrary/.fini_array are supported.
482 * crtstuff.c: Don't generate .ctors nor .dtors sections if
483 USE_INITFINI_ARRAY is defined.
485 * output.h (default_elf_init_array_asm_out_constructor): New.
486 (default_elf_fini_array_asm_out_destructor): Likewise.
487 * varasm.c (elf_init_array_section): Likewise.
488 (elf_fini_array_section): Likewise.
489 (get_elf_initfini_array_priority_section): Likewise.
490 (default_elf_init_array_asm_out_constructor): Likewise.
491 (default_elf_fini_array_asm_out_destructor): Likewise.
493 * config/initfini-array.h: New.
495 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
497 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
498 OK for ST_REGS and FP_REGS before taking those classes into account.
500 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
502 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
503 before checking for annulled branches.
505 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
507 * config/i386/i386.c (ix86_binary_operator_ok): Use
508 satisfies_constraint_L.
510 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
511 Michael Matz <matz@suse.de>
513 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
514 trunc (a + copysign (nextafter (0.5, 0.0), a)).
516 2011-08-20 Anatoly Sokolov <aesok@post.ru>
518 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
519 * doc/tm.texi: Regenerate.
520 * targhooks.c (default_preferred_output_reload_class): Don't use
521 PREFERRED_OUTPUT_RELOAD_CLASS macro.
522 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
524 2011-08-20 Jakub Jelinek <jakub@redhat.com>
526 PR tree-optimization/48739
527 * tree-ssa.c: Include cfgloop.h.
528 (execute_update_addresses_taken): When updating ssa, if in loop closed
529 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
530 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
532 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
534 PR rtl-optimization/49936
535 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
536 for calculation of max register move costs.
538 2011-08-19 Joseph Myers <joseph@codesourcery.com>
540 * c-parser.c (c_parser_postfix_expression): Convert operands of
541 __builtin_complex to their semantic types.
543 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
546 * explow.c (convert_memory_address_addr_space): Also permute the
547 conversion and addition of constant for zero-extend.
549 2011-08-19 Joseph Myers <joseph@codesourcery.com>
551 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
552 * doc/extend.texi (__builtin_complex): Document.
554 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
556 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
558 (convert_mult_to_widen): Convert constant inputs to the right type.
559 (convert_plusminus_to_widen): Don't automatically reject inputs that
561 Convert constant inputs to the right type.
563 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
565 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
568 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
570 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
571 unsigned inputs of different modes.
572 (convert_plusminus_to_widen): Likewise.
574 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
576 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
578 Use 'type' from caller, not inferred from 'rhs'.
579 Don't reject non-conversion statements. Do return lhs in this case.
580 (is_widening_mult_p): Add new argument 'type'.
581 Use 'type' from caller, not inferred from 'stmt'.
582 Pass type to is_widening_mult_rhs_p.
583 (convert_mult_to_widen): Pass type to is_widening_mult_p.
584 (convert_plusminus_to_widen): Likewise.
586 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
588 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
589 Ensure the the larger type is the first operand.
591 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
593 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
594 unsupported unsigned multiplies to signed.
595 (convert_plusminus_to_widen): Likewise.
597 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
599 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
600 conversion statement separating multiply-and-accumulate.
602 2011-08-19 Richard Guenther <rguenther@suse.de>
604 PR tree-optimization/50067
605 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
606 offset only if we accounted for it.
608 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
610 * config/arm/arm.md (maddhidi4): Remove '*' from name.
611 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
612 * optabs.c (find_widening_optab_handler_and_mode): New function.
613 (expand_widen_pattern_expr): Use find_widening_optab_handler.
614 (expand_binop_directly): Likewise.
615 (expand_binop): Likewise.
616 * optabs.h (find_widening_optab_handler): New macro define.
617 (find_widening_optab_handler_and_mode): New prototype.
618 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
619 type precision rules.
620 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
621 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
622 (is_widening_mult_rhs_p): Allow widening by more than one mode.
623 Explicitly disallow mis-matched input types.
624 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
625 input types to fit the new handler.
626 (convert_plusminus_to_widen): Likewise.
628 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
630 * expr.c (expand_expr_real_2): Use widening_optab_handler.
631 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
632 (gen_insn): $N now means $a must be wider than $b, not consecutive.
633 * optabs.c (widened_mode): New function.
634 (expand_widen_pattern_expr): Use widening_optab_handler.
635 (expand_binop_directly): Likewise.
636 (expand_binop): Likewise.
637 * optabs.h (widening_optab_handlers): New struct.
638 (optab_d): New member, 'widening'.
639 (widening_optab_handler): New function.
640 (set_widening_optab_handler): New function.
641 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
642 widening_optab_handler.
643 (convert_plusminus_to_widen): Likewise.
645 2011-08-19 Joseph Myers <joseph@codesourcery.com>
647 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
649 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
650 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
652 2011-08-19 Joseph Myers <joseph@codesourcery.com>
654 * opth-gen.awk: Do not declare target save/restore structures and
655 functions if IN_RTS defined.
657 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
660 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
661 when stack was realigned in interrupt handler prologue.
663 2011-08-18 Joseph Myers <joseph@codesourcery.com>
665 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
666 (quals_from_declspecs): Assert _Noreturn not present.
667 (grokdeclarator): Handle _Noreturn.
668 (build_null_declspecs): Initialize noreturn_p.
669 (declspecs_add_scspec): Handle RID_NORETURN.
670 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
671 (c_parser_attributes): Handle RID_NORETURN.
672 * c-tree.h (struct c_declspecs): Add noreturn_p.
673 * ginclude/stdnoreturn.h: New.
674 * Makefile.in (USER_H): Add stdnoreturn.h.
676 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
678 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
679 (OPTION_MASK_ISA_AVX_UNSET): Update.
680 (OPTION_MASK_ISA_AVX2_UNSET): New.
681 (ix86_handle_option): Handle OPT_mavx2 case.
682 * config/i386/cpuid.h (bit_AVX2): New.
683 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
685 * config/i386/i386-c.c (ix86_target_macros_internal):
686 Conditionally define __AVX2__.
687 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
688 Define "core-avx2" processor alias. Handle avx2 option.
689 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
690 * config/i386/i386.h (TARGET_AVX2): New.
691 * config/i386/i386.opt (mavx2): New.
692 * doc/invoke.texi: Document -mavx2.
694 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
696 PR rtl-optimization/49890
697 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
698 subclasses of class which is superset of a pressure class.
700 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
701 Igor Zamyatin <igor.zamyatin@intel.com>
703 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
704 with HOST_WIDE_INT for isa_flag.
705 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
708 * config/i386/i386.c (ix86_target_string): Replace int with
709 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
710 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
711 (pta_flags): Removed.
712 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
713 (pta): Use HOST_WIDE_INT on flags.
714 (builtin_isa): Use HOST_WIDE_INT on isa.
715 (ix86_add_new_builtins): Likewise.
716 (def_builtin): Use HOST_WIDE_INT on mask.
717 (def_builtin_const): Likewise.
718 (builtin_description): Likewise.
720 * config/i386/i386.opt (ix86_isa_flags): Replace int with
722 (ix86_isa_flags_explicit): Likewise.
723 (x_ix86_isa_flags_explicit): Likewise.
725 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
727 PR rtl-optimization/50107
728 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
729 (ira_hard_reg_in_set_p): New.
731 * ira-color.c (calculate_saved_nregs): New.
732 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
734 (allocno_reload_assign, fast_allocation): Use
735 ira_hard_reg_set_intersection_p instead of
736 ira_hard_reg_not_in_set_p.
738 * ira.c (setup_reg_renumber): Use
739 ira_hard_reg_set_intersection_p instead of
740 ira_hard_reg_not_in_set_p.
741 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
742 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
744 * ira-costs.c (ira_tune_allocno_costs): Use
745 ira_hard_reg_set_intersection_p instead of
746 ira_hard_reg_not_in_set_p.
748 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
749 Igor Zamyatin <igor.zamyatin@intel.com>
751 * hwint.h (HOST_WIDE_INT_1): New.
753 * opt-functions.awk (switch_bit_fields): Initialize the
755 (host_wide_int_var_name): New.
756 (var_type_struct): Check and return HOST_WIDE_INT.
758 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
760 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
762 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
763 check masks for HOST_WIDE_INT.
765 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
766 (option_enabled): Likewise.
767 (get_option_state): Likewise.
769 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
772 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
773 Marc Glisse <marc.glisse@normalesup.org>
776 * target.def (decl_mangling_context): New C++ hook.
777 * doc/tm.texi: Regenerate.
778 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
779 * config/sol2-protos.h: Group by source file.
780 (solaris_cxx_decl_mangling_context): Declare.
781 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
782 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
784 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
785 Add sol2-stubs.o to extra_objs.
787 2011-08-18 Jakub Jelinek <jakub@redhat.com>
790 * stor-layout.c (update_alignment_for_field): Don't ICE on
791 packed flexible array members if ms_bitfield_layout_p.
794 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
795 on the result before returning it.
798 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
799 is a debug stmt, use location of the first non-debug stmt after it.
801 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
803 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
804 (arm_size_rtx_costs): Likewise.
806 2011-08-18 Richard Guenther <rguenther@suse.de>
808 * tree.h (tree_int_cst_msb): Remove.
809 * tree.c (tree_int_cst_msb): Likewise.
810 (tree_int_cst_sign_bit): Move from ...
811 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
813 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
815 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
816 * doc/tm.texi: Regenerate.
817 * target.def (rtx_costs): Add an opno parameter.
818 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
819 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
820 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
821 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
822 * cse.c (COST_IN): Add an opno parameter.
823 (notreg_cost): Likewise. Update call to rtx_cost.
824 (COST, fold_rtx): Update accordingly.
825 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
826 * expmed.c (emit_store_flag): Likewise.
827 * optabs.c (avoid_expensive_constant): Add an opno parameter.
828 Update call to rtx_cost.
829 (expand_binop_directly, expand_binop): Likewise.
830 (expand_twoval_binop, prepare_cmp_insn): Likewise.
831 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
832 (set_src_cost, get_full_set_src_cost): Update accordingly.
833 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
835 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
836 (default_adress_cost): Update calls to rtx_cost.
838 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
839 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
840 (arm_rtx_costs): Add an opno parameter.
841 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
842 adjust any recursive rtx-cost calls.
843 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
844 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
845 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
846 * config/cris/cris.c (cris_rtx_costs): Likewise.
847 * config/frv/frv.c (frv_rtx_costs): Likewise.
848 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
849 * config/i386/i386.c (ix86_rtx_costs): Likewise.
850 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
851 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
852 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
853 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
854 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
855 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
856 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
857 * config/mep/mep.c (mep_rtx_cost): Likewise.
858 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
859 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
860 (mips_zero_extend_cost): Add an opno parameter.
861 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
862 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
864 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
866 * config/pa/pa.c (hppa_rtx_costs): Likewise.
867 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
868 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
869 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
870 (rs6000_debug_rtx_costs): Likewise.
871 * config/s390/s390.c (s390_rtx_costs): Likewise.
872 * config/score/score-protos.h (score_rtx_costs): Likewise.
873 * config/score/score.c (score_rtx_costs): Likewise.
874 * config/sh/sh.c (andcosts): Update call to rtx_cost.
875 (sh_rtx_costs): Add an opno parameter.
876 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
877 * config/spu/spu.c (spu_rtx_costs): Likewise.
878 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
879 * config/v850/v850.c (v850_rtx_costs): Likewise.
880 * config/vax/vax.c (vax_rtx_costs): Likewise.
881 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
883 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
885 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
886 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
888 * calls.c (precompute_register_parameters): Likewise.
889 * combine.c (expand_compound_operation, make_extraction): Likewise.
890 (force_to_mode, distribute_and_simplify_rtx): Likewise.
891 * dse.c (find_shift_sequence): Likewise.
892 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
893 * expr.c (compress_float_constant): Likewise.
894 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
895 * gcse.c (want_to_gcse_p): Likewise.
896 * ifcvt.c (noce_try_sign_mask): Likewise.
897 * loop-doloop.c (doloop_optimize): Likewise.
898 * loop-invariant.c (create_new_invariant): Likewise.
899 * optabs.c (avoid_expensive_constant): Likewise.
900 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
901 (try_replace_in_use, reload_cse_move2add): Likewise.
902 * reload1.c (calculate_elim_costs_all_insns): Likewise.
903 (note_reg_elim_costly): Likewise.
904 * rtlanal.c (insn_rtx_cost): Likewise.
905 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
906 * stmt.c (lshift_cheap_p): Likewise.
907 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
908 * config/avr/avr.c (final_prescan_insn): Likewise.
909 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
910 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
912 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
914 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
915 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
916 * cfgloopanal.c (seq_cost): Likewise.
917 * loop-invariant.c (create_new_invariant): Likewise.
918 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
919 (reload_cse_move2add): Use get_full_set_rtx_cost.
921 2011-08-18 Richard Guenther <rguenther@suse.de>
923 * expr.c (get_inner_reference): Fix typo in last change.
925 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
926 Joseph Myers <joseph@codesourcery.com>
928 PR tree-optimization/49963
929 * hwint.c (absu_hwi): Define.
930 * hwint.h (absu_hwi): Declare.
931 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
933 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
934 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
936 2011-08-18 Richard Guenther <rguenther@suse.de>
938 * expr.c (get_inner_reference): Sign-extend the constant
939 twos-complement offset before doing arbitrary precision
941 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
942 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
943 to get_constraint_for_ptr_offset.
945 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
948 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
950 2011-08-17 Richard Guenther <rguenther@suse.de>
952 * tree.h (convert_to_ptrofftype_loc): New function.
953 (convert_to_ptrofftype): Define.
954 * builtins.c (expand_builtin_bzero): Use size_type_node.
955 (fold_builtin_bzero): Likewise.
956 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
957 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
958 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
959 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
960 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
961 * fold-const.c (build_range_check): Negate using the original type.
962 (fold_unary_loc): Use fold_build_pointer_plus_loc.
963 * gimple-fold.c (gimple_adjust_this_by_delta): Use
964 convert_to_ptrofftype.
965 * gimplify.c (gimplify_self_mod_expr): Likewise.
966 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
967 (graphite_create_new_loop_guard): Likewise.
968 * graphite-sese-to-poly.c (my_long_long): Remove.
969 (scop_ivs_can_be_represented): Adjust.
970 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
971 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
972 * tree-loop-distribution.c (build_size_arg_loc): Use
974 (generate_memset_zero): Simplify.
975 * tree-mudflap.c: Use fold_convert, not convert.
976 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
978 (determine_offset): Likewise for DR_STEP.
979 (valid_initializer_p): Likewise.
980 * tree-profile.c (prepare_instrumented_value): Convert the pointer
981 to an integer type of same size.
982 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
983 to sizetype without need.
984 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
985 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
986 * tree-ssa-loop-manip.c (create_iv): Likewise.
987 (determine_exit_conditions): Adjust comment.
988 * tree-ssa-pre.c (create_expression_by_pieces): Use
989 convert_to_ptrofftype.
990 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
991 * varasm.c (array_size_for_constructor): Compute using double_ints.
993 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
995 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
996 when generating an integer result where possible. Short-cut
997 comparison against 0 also for QImode.
999 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1001 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
1002 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
1004 * config/spu/spu.c (spu_legitimize_reload_address): New function.
1005 (spu_legitimate_address_p): Do not check displacement if the base
1006 is an eliminable stack register.
1008 2011-08-16 Anatoly Sokolov <aesok@post.ru>
1010 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
1011 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
1012 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
1013 m32c_preferred_output_reload_class): Remove.
1014 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
1015 Change rclass argument and return types to reg_class_t. Use
1016 reg_class_subset_p instead of class_sizes.
1017 (m32c_preferred_output_reload_class): Make static. Change rclass
1018 argument and return types to reg_class_t.
1019 (TARGET_PREFERRED_RELOAD_CLASS,
1020 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1022 2011-08-16 Kai Tietz <ktietz@redhat.com>
1024 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
1026 2011-08-16 Richard GUenther <rguenther@suse.de>
1028 PR tree-optimization/50082
1029 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
1030 warnings here, instead of ...
1031 (ssa_forward_propagate_and_combine): ... here.
1032 (forward_propagate_into_comparison_1): Adjust.
1033 (forward_propagate_into_comparison): Likewise.
1034 (forward_propagate_into_gimple_cond): Likewise.
1035 (forward_propagate_into_cond): Likewise.
1037 2011-08-16 Andreas Schwab <schwab@redhat.com>
1039 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
1040 instead of ggc_alloc_zone_vec_rtvec_def.
1042 2011-08-16 Richard Guenther <rguenther@suse.de>
1044 * tree.h (ptrofftype_p): New helper function.
1045 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
1046 offset verification.
1047 (verify_gimple_assign_binary): Likewise.
1048 * tree.c (build2_stat): Likewise.
1049 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
1050 (reset_evolution_in_loop): Likewise.
1051 * tree-chrec.h (build_polynomial_chrec): Likewise.
1053 2011-08-16 Liang Wang <lwang1@marvell.com>
1055 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
1056 ggc_alloc_zone_vec_rtvec_def.
1058 2011-08-16 Richard Guenther <rguenther@suse.de>
1060 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
1061 helper factored out from ...
1062 (extract_range_from_binary_expr_1): ... here. Re-structure
1063 to not glob handling too different tree codes.
1065 2011-08-15 Richard Henderson <rth@redhat.com>
1068 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
1069 setting out to include allocate_stack named pattern as well.
1070 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
1071 * stmt.c (expand_stack_restore): Likewise.
1073 2011-08-15 Richard Guenther <rguenther@suse.de>
1076 * fold-const.c (maybe_canonicalize_comparison_1): Properly
1077 convert the modified operand to the other operand type.
1078 (fold_comparison): Call maybe_canonicalize_comparison_1 with
1079 useless conversions stripped from comparison operands.
1081 2011-08-15 Richard Guenther <rguenther@suse.de>
1083 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
1084 (extract_range_from_unary_expr_1): Restructure.
1086 2011-08-15 Richard Guenther <rguenther@suse.de>
1088 PR tree-optimization/50058
1089 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
1092 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1095 * config/arm/arm.c (output_move_double): Add 2 parameters
1096 to count the number of insns emitted and whether to emit or not.
1097 Use the flag to decide when to emit and count number of instructions
1098 that will be emitted.
1099 Handle case where output_move_double might be called for calculating
1100 lengths with an invalid constant.
1101 (arm_count_output_move_double_insns): Define.
1102 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
1103 (output_move_double): Adjust prototype.
1104 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
1106 ("*movdi_vfp_cortexa8"): Likewise and add attribute
1108 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
1109 ("*movdf_soft_insn"): Likewise.
1110 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
1111 ("*cirrus_thumb2_movdi"): Likewise.
1112 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
1113 ("*cirrus_movdf_hard_insn"): Likewise.
1114 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
1115 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
1116 ("mov<mode>_internal VMMX"): Likewise.
1117 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
1119 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
1121 * config/i386/i386.c (ix86_expand_round_sse4): New function.
1122 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
1123 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
1126 (rint<mode>2): Simplify TARGET_ROUND check.
1127 (floor<mode>2): Ditto.
1128 (ceil<mode>2): Ditto.
1129 (btrunc<mode>2): Ditto.
1131 2011-08-14 Anatoly Sokolov <aesok@post.ru>
1133 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
1134 as mmix_preferred_output_reload_class.
1136 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
1139 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
1140 (branch_unspec): New insn.
1141 (branch): Beauty farm.
1142 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
1144 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
1145 New static functions.
1146 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
1147 Use CONST_INT_P. Beauty.
1149 2011-08-12 Richard Henderson <rth@redhat.com>
1152 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
1153 * sched-deps.c (init_deps): Clear it.
1154 (deps_analyze_insn): Consume it.
1155 (sched_analyze_insn): Fill it.
1157 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1160 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
1161 for tbh instructions.
1163 2011-08-12 Diego Novillo <dnovillo@google.com>
1165 * data-streamer.h (streamer_write_zero): Rename from output_zero.
1166 (streamer_write_uhwi): Rename from lto_output_uleb128.
1167 (streamer_write_hwi): Rename from output_sleb128.
1168 (streamer_write_string): Rename from lto_output_string.
1169 (streamer_string_index): Rename from lto_string_index.
1170 (streamer_write_string_with_length): Rename from
1171 lto_output_string_with_length.
1172 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
1173 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
1174 (streamer_read_string): Rename from lto_input_string.
1175 (streamer_read_indexed_string): Rename from input_string_internal.
1176 (streamer_read_uhwi): Rename from lto_input_uleb128.
1177 (streamer_read_hwi): Rename from lto_input_sleb128.
1178 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
1179 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
1180 (streamer_write_enum): Rename from lto_output_enum.
1181 (streamer_read_enum): Rename from lto_input_enum.
1182 (streamer_write_record_start): Rename from output_record_start.
1183 (streamer_read_record_start): Rename from input_record_start.
1184 (streamer_write_bitpack): Rename from lto_output_bitpack.
1185 (streamer_read_bitpack): Rename from lto_input_bitpack.
1186 (streamer_write_char_stream): Rename from lto_output_1_stream.
1187 (streamer_read_uchar): Rename from lto_input_1_unsigned.
1188 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
1189 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
1190 (streamer_read_string_cst): Rename from input_string_cst.
1191 (streamer_read_chain): Rename from lto_input_chain.
1192 (streamer_alloc_tree): Rename from lto_materialize_tree.
1193 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
1194 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
1195 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
1196 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
1197 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
1198 (streamer_write_chain): Rename from lto_output_chain.
1199 (streamer_write_tree_header): Rename from lto_output_tree_header.
1200 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
1201 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
1202 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
1203 (streamer_write_builtin): Rename from lto_output_builtin_tree.
1204 (streamer_check_handled_ts_structures): Rename from
1205 check_handled_ts_structures.
1206 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
1207 (streamer_tree_cache_insert_at): Rename from
1208 lto_streamer_cache_insert_at.
1209 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
1210 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
1211 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
1212 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
1213 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
1214 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
1215 (write_identifier): Rename from output_identifier.
1216 (write_ts_common_tree_pointers): Rename from
1217 lto_output_ts_common_tree_pointers.
1218 (write_ts_vector_tree_pointers): Rename from
1219 lto_output_ts_vector_tree_pointers.
1220 (write_ts_complex_tree_pointers): Rename from
1221 lto_output_ts_complex_tree_pointers.
1222 (write_ts_decl_minimal_tree_pointers): Rename from
1223 lto_output_ts_decl_minimal_tree_pointers.
1224 (write_ts_decl_common_tree_pointers): Rename from
1225 lto_output_ts_decl_common_tree_pointers.
1226 (write_ts_decl_non_common_tree_pointers): Rename from
1227 lto_output_ts_decl_non_common_tree_pointers.
1228 (write_ts_decl_with_vis_tree_pointers): Rename from
1229 lto_output_ts_decl_with_vis_tree_pointers.
1230 (write_ts_field_decl_tree_pointers): Rename from
1231 lto_output_ts_field_decl_tree_pointers.
1232 (write_ts_function_decl_tree_pointers): Rename from
1233 lto_output_ts_function_decl_tree_pointers.
1234 (write_ts_type_common_tree_pointers): Rename from
1235 lto_output_ts_type_common_tree_pointers.
1236 (write_ts_type_non_common_tree_pointers): Rename from
1237 lto_output_ts_type_non_common_tree_pointers.
1238 (write_ts_list_tree_pointers): Rename from
1239 lto_output_ts_list_tree_pointers.
1240 (write_ts_vec_tree_pointers): Rename from
1241 lto_output_ts_vec_tree_pointers.
1242 (write_ts_exp_tree_pointers): Rename from
1243 lto_output_ts_exp_tree_pointers.
1244 (write_ts_block_tree_pointers): Rename from
1245 lto_output_ts_block_tree_pointers.
1246 (write_ts_binfo_tree_pointers): Rename from
1247 lto_output_ts_binfo_tree_pointers.
1248 (write_ts_constructor_tree_pointers): Rename from
1249 lto_output_ts_constructor_tree_pointers.
1250 (write_ts_target_option): Rename from lto_output_ts_target_option.
1251 (write_ts_translation_unit_decl_tree_pointers): Rename from
1252 lto_output_ts_translation_unit_decl_tree_pointers.
1253 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1254 Rename from lto_streamer_cache_add_to_node_array.
1255 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
1256 (record_common_node): Rename from lto_record_common_node.
1258 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
1260 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
1262 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
1264 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
1265 (ipa-reference.o): Likewise.
1266 * lto-section-out.c: Include data-streamer.h.
1267 * ipa-reference.c: Include data-streamer.h.
1269 2011-08-12 Nick Clifton <nickc@redhat.com>
1271 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
1272 * doc/md.texi (cmpstrn): Note that the comparison stops if both
1273 fetched bytes are zero.
1275 (cmpmem): Note that the comparison does not stop if both of the
1276 fetched bytes are zero.
1278 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
1280 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
1281 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
1282 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
1283 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
1284 to integer_type_node.
1285 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
1286 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
1287 * builtins.c (expand_builtin_in): Ditto.
1288 (mathfn_built_in_1): Ditto.
1289 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
1291 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
1293 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
1294 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
1295 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
1297 2011-08-12 Richard Guenther <rguenther@suse.de>
1299 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
1301 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
1303 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
1305 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
1307 * config/arm/arm.c (get_label_padding): New function.
1308 (create_fix_barrier, arm_reorg): Use it.
1310 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
1313 * config/i386/i386.md (*lea_5_zext): New.
1314 (*lea_6_zext): Ditto.
1315 * config/i386/predicates.md (const_32bit_mask): New predicate.
1316 (lea_address_operand): Reject AND.
1317 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
1318 const_32bit_mask immediate.
1319 (ix86_print_operand_address): Handle AND.
1320 (memory_address_length): Ditto.
1322 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
1323 Brian Hackett <bhackett1024@gmail.com>
1325 * plugin.def: Add event for finish_decl.
1326 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
1327 * c-decl.c (finish_decl): Invoke callbacks on above event.
1328 * doc/plugins.texi: Document above event.
1330 2011-08-11 Richard Guenther <rguenther@suse.de>
1332 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
1333 lookups, make looking through aggregate copies stronger.
1335 2011-08-11 Richard Henderson <rth@redhat.com>
1338 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
1340 2011-08-11 Richard Guenther <rguenther@suse.de>
1342 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
1343 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
1344 (vrp_visit_stmt): Likewise.
1346 2011-08-11 Richard Guenther <rguenther@suse.de>
1349 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
1350 load of the other piece with TREE_NO_WARNING.
1351 * tree-flow.h (warn_uninit): Adjust prototype.
1352 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
1353 the base variable and the expression that is used separately.
1354 Properly query all TREE_NO_WARNING flags.
1355 (struct walk_data): Remove.
1356 (warn_uninitialized_var): Likewise.
1357 (warn_uninitialized_vars): Do not walk gimple pieces but simply
1358 look at all SSA uses of the statement. Handle unused memory
1360 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
1362 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
1364 * config/rx/rx.md (movsicc): Allow register to register transfers.
1365 (*movsicc): Likewise.
1366 (*stcc): Restrict this pattern to EQ and NE compares.
1367 (*stcc_reg): New pattern. Works for any comparison but only for
1370 2011-08-11 Diego Novillo <dnovillo@google.com>
1372 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
1373 Call stream_write_tree instead of output_record_start.
1374 (lto_output_ts_binfo_tree_pointers): Likewise.
1376 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
1377 Convert it to a macro.
1378 (stream_read_tree): Likewise.
1380 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
1381 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
1383 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
1384 and tree_read_bitfields.
1385 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
1386 (lto_write_tree): Call it.
1387 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
1388 * streamer-hooks.h (struct streamer_hooks): Remove fields
1389 name, is_streamable and alloc_tree. Update all users.
1390 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
1391 (lto_materialize_tree): ... here.
1392 Handle CALL_EXPR codes.
1393 Remove call to lto_streamer_cache_append.
1394 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
1395 * tree-streamer.h (tree_read_bitfields): Declare.
1397 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
1398 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
1399 * tree-streamer.h (stream_read_tree): New. Replace all calls
1400 to lto_input_tree with it.
1401 (stream_write_tree): New. Replace all calls to lto_output_tree,
1402 lto_output_tree_ref and lto_output_tree_or_ref with it.
1403 * lto-streamer-in.c (lto_read_tree): Inline code from
1404 lto_streamer_read_tree.
1405 (lto_input_tree): Move from tree-streamer-in.c.
1406 * lto-streamer-out.c (lto_output_tree_ref): Make static.
1407 Remove handling of NULL values for EXPR.
1408 Do not handle EXPRs that are not indexable.
1409 (lto_write_tree): Move from tree-streamer-out.c.
1410 Inline lto_streamer_write_tree.
1411 (lto_output_tree): Move from tree-streamer-out.c.
1412 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
1413 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
1414 (lto_preload_common_nodes): Likewise.
1415 Remove assertions and adjustments for nodes
1416 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
1417 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
1418 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
1419 * lto-streamer.h (lto_input_tree): Declare.
1420 (lto_output_tree_ref): Remove.
1421 * streamer-hooks.h (struct streamer_hooks): Remove fields
1422 preload_common_nodes, indexable_with_decls_p,
1423 pack_value_fields, unpack_value_fields and output_tree_header.
1425 * tree-streamer-in.c (lto_materialize_tree): Make extern.
1426 (lto_input_tree_pointers): Likewise.
1427 (lto_read_tree): Move to lto-streamer-in.c.
1428 (lto_input_integer_cst): Make extern.
1429 (lto_get_pickled_tree): Likewise.
1430 (lto_get_builtin_tree): Likewise.
1431 (lto_input_tree): Move to lto-streamer-in.c.
1432 * tree-streamer-out.c (pack_value_fields): Make extern.
1433 (lto_output_tree_or_ref): Remove. Replace all callers with
1434 calls to stream_write_tree.
1435 (lto_output_builtin_tree): Make extern.
1436 (lto_streamer_write_tree): Inline into lto_write_tree.
1437 (lto_output_tree_pointers): Make extern.
1438 (lto_output_tree_header): Likewise.
1439 (lto_output_integer_cst): Likewise.
1440 (lto_write_tree): Move to lto-streamer-out.c.
1441 (lto_output_tree): Likewise.
1442 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
1443 (preload_common_nodes): Likewise.
1444 (lto_streamer_cache_create): Call it.
1445 * tree-streamer.h: Include streamer-hooks.h.
1446 (stream_write_tree): New.
1447 (stream_read_tree): New.
1448 (lto_input_tree): Remove.
1449 (lto_materialize_tree): Declare.
1450 (lto_input_tree_pointers): Declare.
1451 (lto_get_pickled_tree): Declare.
1452 (lto_get_builtin_tree): Declare.
1453 (lto_input_integer_cst): Declare.
1454 (lto_output_tree_header): Declare.
1455 (pack_value_fields): Declare.
1456 (lto_output_tree_pointers): Declare.
1457 (lto_output_integer_cst): Declare.
1458 (lto_output_builtin_tree): Declare.
1460 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1462 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
1463 only if producer writes to the register given by regno.
1465 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1466 Alexander Monakov <amonakov@ispras.ru>
1468 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
1469 (sched_get_condition_with_rev_uncached): ... this. Factor out
1470 condition caching logic into ...
1471 (sched_get_condition_with_rev): ... this. Reimplement. Do not
1472 attempt to use cache for instructions with zero luid.
1473 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
1474 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
1476 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1478 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
1479 get_seqno_for_a_jump. Update the caller.
1480 (get_seqno_by_succs): New. Use it ...
1481 (get_seqno_for_a_jump): ... here to find a seqno if looking at
1482 predecessors was not sufficient.
1483 (get_seqno_by_preds): Include head in iteration range, exclude insn.
1485 2011-08-11 Dmitry Melnik <dm@ispras.ru>
1487 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
1489 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1491 * sel-sched-ir.h (register_unavailable_p): Declare.
1492 * sel-sched-ir.c (register_unavailable_p): New. Use it...
1493 (set_unavailable_target_for_expr): ... here to properly test
1494 availability of a register.
1495 (speculate_expr): Ditto.
1496 * sel-sched.c (substitute_reg_in_expr): Ditto.
1497 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
1499 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1501 * sel-sched.c (verify_target_availability): Fix usage of
1504 2011-08-11 Dmitry Melnik <dm@ispras.ru>
1506 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
1507 recognized by cannot_copy_insn_p hook and volatile instructions.
1509 2011-08-11 Dmitry Melnik <dm@ispras.ru>
1511 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
1513 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
1515 * doc/md.texi (define_bypass): Say that the instruction names can
1516 be filename-style globs.
1517 * Makefile.in (FNMATCH_H): Define.
1518 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
1519 * genattrtab.c: Include fnmatch.h.
1520 (bypass_list): Change field name from "insn" to "pattern".
1521 (gen_bypass_1): Update accordingly.
1522 (process_bypasses): Use fnmatch to check for matches between
1523 insn reservations and define_bypasses.
1524 * genautomata.c: Include fnmatch.h.
1525 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
1526 and out_pattern respectively.
1527 (gen_bypass, insert_bypass): Update accordingly.
1528 (for_each_matching_insn, process_bypass_2, process_bypass_1)
1529 (process_bypass): New functions.
1530 (process_decls): Use process_bypass. Update after field name changes.
1532 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
1535 * config/avr/avr.md (smulqi3_highpart): New insn.
1536 (umulqi3_highpart): New insn.
1537 (*subqi3.ashiftrt7): New insn.
1538 (smulhi3_highpart): New expander.
1539 (umulhi3_highpart): Nex expander.
1540 (*smulhi3_highpart_call): New insn.
1541 (*umulhi3_highpart_call): New insn.
1542 (extend_u): New code attribute.
1543 (extend_prefix): Rename code attribute to extend_su.
1544 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
1545 widening QI/HI multiply.
1547 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
1549 PR tree-optimization/50039
1550 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
1551 that DEF_STMT has a stmt_vec_info.
1553 2011-08-10 Richard Guenther <rguenther@suse.de>
1555 * tree.h (can_trust_pointer_alignment): Remove.
1556 * builtins.c (can_trust_pointer_alignment): Remove.
1558 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1560 * c-typeck.c (scalar_to_vector): New function. Try scalar to
1562 (stv_conv): New enum for scalar_to_vector return type.
1563 (build_binary_op): Adjust.
1564 * doc/extend.texi: Description of scalar to vector expansion.
1566 2011-08-10 Richard Guenther <rguenther@suse.de>
1568 * tree.h (get_pointer_alignment): Remove max-align argument.
1569 (get_object_alignment): Likewise.
1570 * builtins.c (get_object_alignment_1): Adjust.
1571 (get_object_alignment): Remove max-align argument.
1572 (get_pointer_alignment): Likewise.
1573 (expand_builtin_strlen): Adjust.
1574 (expand_builtin_memcpy): Likewise.
1575 (expand_builtin_mempcpy_args): Likewise.
1576 (expand_builtin_strncpy): Likewise.
1577 (expand_builtin_memset_args): Likewise.
1578 (expand_builtin_memcmp): Likewise.
1579 (expand_builtin_strcmp): Likewise.
1580 (expand_builtin_strncmp): Likewise.
1581 (get_builtin_sync_mem): Likewise.
1582 (fold_builtin_memset): Likewise.
1583 (fold_builtin_memory_op): Likewise.
1584 (expand_builtin_memory_chk): Likewise.
1585 * emit-rtl.c (get_mem_align_offset): Likewise.
1586 (set_mem_attributes_minus_bitpos): Likewise.
1587 * expr.c (expand_assignment): Likewise.
1588 (expand_expr_real_1): Likewise.
1589 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
1590 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
1591 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
1592 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1593 * value-prof.c (gimple_stringops_transform): Likewise.
1595 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
1597 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
1598 * doc/tm.texi: Regenerate.
1600 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
1603 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
1604 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
1605 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
1606 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
1607 shift target is unused.
1609 2011-08-10 Richard Guenther <rguenther@suse.de>
1611 PR tree-optimization/49937
1612 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
1613 using get_object_alignment_1.
1615 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
1617 * config/i386/i386.c (ix86_emit_i387_round): New function.
1618 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
1619 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
1620 Use ix86_emit_i387_round to expand round function for i387 math.
1621 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
1622 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
1624 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1626 * config/sync.c: Move to ../libgcc.
1627 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
1628 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
1631 2011-08-09 Anatoly Sokolov <aesok@post.ru>
1633 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
1634 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
1635 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
1636 Change 'from' and 'to' arguments type to reg_class_t.
1637 (TARGET_REGISTER_MOVE_COST): Define.
1639 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
1643 PR rtl-optimization/49990
1644 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
1645 ignore classes which can not change mode.
1646 (find_costs_and_classes): Ditto.
1648 2011-08-09 Richard Guenther <rguenther@suse.de>
1650 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
1651 information for ranges with only negative values.
1652 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
1653 BIT_AND_EXPR handling to handle ranges with negative values.
1655 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
1657 * config/i386/i386.c: Remove traling spaces.
1658 * config/i386/sse.md: Likewise.
1659 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
1660 (*fma_fmsub_<mode>): Likewise.
1661 (*fma_fnmadd_<mode>): Likewise.
1662 (*fma_fnmsub_<mode>): Likewise.
1664 2011-08-09 Nick Clifton <nickc@redhat.com>
1666 * config/rx/rx.md: Disable extender peepholes at -O3.
1668 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
1671 * config/i386/i386.md (reload_noff_load): New.
1672 (reload_noff_store): Ditto.
1673 * config/i386/i386.c (ix86_secondary_reload): Use
1674 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
1675 double-word moves from/to non-offsetable addresses instead of
1676 generating XMM temporary.
1678 2011-08-09 Anatoly Sokolov <aesok@post.ru>
1680 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
1682 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
1684 PR tree-optimization/50014
1685 * tree-vect-loop.c (vectorizable_reduction): Get def type before
1686 calling vect_get_vec_def_for_stmt_copy ().
1688 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
1690 PR rtl-optimization/49990
1691 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
1692 ignore classes which can not change mode.
1693 (find_costs_and_classes): Ditto.
1695 2011-08-08 Richard Henderson <rth@redhat.com>
1698 * config/i386/i386.c (ix86_expand_prologue): Call
1699 for SEH target gen_prologue_use instead of gen_blockage
1702 2011-08-08 Martin Jambor <mjambor@suse.cz>
1705 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
1708 2011-08-08 Diego Novillo <dnovillo@google.com>
1710 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
1711 (DATA_STREAMER_H): New.
1712 (GIMPLE_STREAMER_H): New.
1713 (TREE_STREAMER_H): New.
1714 (STREAMER_HOOKS_H): New.
1715 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
1716 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
1717 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
1718 (data-streamer.o): New.
1719 (data-streamer-in.o): New.
1720 (data-streamer-out.o): New.
1721 (gimple-streamer-in.o): New.
1722 (gimple-streamer-out.o): New.
1723 (streamer-hooks.o): New.
1724 (tree-streamer.o): New.
1725 (tree-streamer-in.o): New.
1726 (tree-streamer-out.o): New.
1727 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
1728 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
1729 GIMPLE_STREAMER_H and TREE_STREAMER_H.
1730 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
1731 GIMPLE_STREAMER_H and TREE_STREAMER_H.
1732 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
1733 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
1734 (ipa-inline-analysis.o): Likewise.
1735 (ipa-pure-const.o): Likewise.
1736 * data-streamer-in.c: New.
1737 * data-streamer-out.c: New.
1738 * data-streamer.c: New.
1739 * data-streamer.h: New.
1740 * gimple-streamer-in.c: New.
1741 * gimple-streamer-out.c: New.
1742 * gimple-streamer.h: New.
1743 * ipa-inline-analysis.c: Include data-streamer.h.
1744 * ipa-prop.c: Include data-streamer.h.
1745 * ipa-pure-const.c: Include data-streamer.h.
1746 * lto-cgraph.c: Include data-streamer.h.
1747 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
1748 (lto_input_widest_uint_uleb128): Likewise.
1749 (lto_input_sleb128): Likewise.
1750 (bp_unpack_var_len_unsigned): Likewise.
1751 (bp_unpack_var_len_int): Likewise.
1752 * lto-section-out.c (lto_output_uleb128_stream): Move to
1753 data-streamer-out.c.
1754 (lto_output_widest_uint_uleb128_stream): Likewise.
1755 (lto_output_sleb128_stream): Likewise.
1756 (bp_pack_var_len_unsigned): Likewise.
1757 (bp_pack_var_len_int): Likewise.
1758 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
1759 (struct string_slot): Remove. Update all users.
1760 (lto_tag_check_set): Make extern.
1761 (lto_tag_check_range): Move to lto-streamer.h.
1762 (lto_tag_check): Likewise.
1763 (hash_string_slot_node): Remove. Update all users.
1764 (eq_string_slot_node): Remove. Update all users.
1765 (string_for_index): Move to data-streamer-in.c
1766 (input_string_internal): Likewise.
1767 (input_string_cst): Move to tree-streamer-in.c.
1768 (input_identifier): Likewise.
1769 (lto_input_string): Move to data-streamer-in.c
1770 (input_record_start): Move to data-streamer.h
1771 (canon_file_name): Use new definition of struct string_slot
1772 from data-streamer.h. Set S_SLOT.LEN.
1773 (lto_input_location): Make extern.
1774 (lto_input_chain): Move to tree-streamer-in.c.
1775 (lto_init_eh): Make extern.
1776 (input_phi): Move to gimple-streamer-in.c.
1777 (input_gimple_stmt): Likewise.
1778 (input_bb): Likewise.
1779 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
1780 (unpack_ts_real_cst_value_fields): Likewise.
1781 (unpack_ts_fixed_cst_value_fields): Likewise.
1782 (unpack_ts_decl_common_value_fields): Likewise.
1783 (unpack_ts_decl_wrtl_value_fields): Likewise.
1784 (unpack_ts_decl_with_vis_value_fields): Likewise.
1785 (unpack_ts_function_decl_value_fields): Likewise.
1786 (unpack_ts_type_common_value_fields): Likewise.
1787 (unpack_ts_block_value_fields): Likewise.
1788 (unpack_ts_translation_unit_decl_value_fields): Likewise.
1789 (unpack_value_fields): Likewise.
1790 (lto_materialize_tree): Likewise.
1791 (lto_input_ts_common_tree_pointers): Likewise.
1792 (lto_input_ts_vector_tree_pointers): Likewise.
1793 (lto_input_ts_complex_tree_pointers): Likewise.
1794 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
1795 (lto_input_ts_decl_common_tree_pointers): Likewise.
1796 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
1797 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
1798 (lto_input_ts_field_decl_tree_pointers): Likewise.
1799 (lto_input_ts_function_decl_tree_pointers): Likewise.
1800 (lto_input_ts_type_common_tree_pointers): Likewise.
1801 (lto_input_ts_type_non_common_tree_pointers): Likewise.
1802 (lto_input_ts_list_tree_pointers): Likewise.
1803 (lto_input_ts_vec_tree_pointers): Likewise.
1804 (lto_input_ts_exp_tree_pointers): Likewise.
1805 (lto_input_ts_block_tree_pointers): Likewise.
1806 (lto_input_ts_binfo_tree_pointers): Likewise.
1807 (lto_input_ts_constructor_tree_pointers): Likewise.
1808 (lto_input_ts_target_option): Likewise.
1809 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
1810 (lto_input_tree_pointers): Likewise.
1811 (lto_get_pickled_tree): Likewise.
1812 (lto_get_builtin_tree): Likewise.
1813 (lto_read_tree): Likewise.
1814 (lto_input_integer_cst): Likewise.
1815 (lto_input_tree): Likewise.
1816 * lto-streamer-out.c: Include data-streamer.h,
1817 gimple-streamer.h and streamer-hooks.h.
1818 (struct string_slot): Move to data-streamer.h.
1819 (hash_string_slot_node): Likewise.
1820 (eq_string_slot_node): Likewise.
1821 (lto_string_index): Move to data-streamer-out.c.
1822 (lto_output_string_with_length): Likewise.
1823 (lto_output_string): Likewise.
1824 (output_string_cst): Move to tree-streamer-out.c.
1825 (output_identifier): Likewise.
1826 (output_zero): Move to data-streamer-out.c
1827 (output_uleb128): Likewise.
1828 (output_sleb128): Likewise.
1829 (output_record_start): Move to data-streamer.h
1830 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
1831 (pack_ts_real_cst_value_fields): Likewise.
1832 (pack_ts_fixed_cst_value_fields): Likewise.
1833 (pack_ts_decl_common_value_fields): Likewise.
1834 (pack_ts_decl_wrtl_value_fields): Likewise.
1835 (pack_ts_decl_with_vis_value_fields): Likewise.
1836 (pack_ts_function_decl_value_fields): Likewise.
1837 (pack_ts_type_common_value_fields): Likewise.
1838 (pack_ts_block_value_fields): Likewise.
1839 (pack_ts_translation_unit_decl_value_fields): Likewise.
1840 (pack_value_fields): Likewise.
1841 (lto_output_chain): Likewise.
1842 (lto_output_ts_common_tree_pointers): Likewise.
1843 (lto_output_ts_vector_tree_pointers): Likewise.
1844 (lto_output_ts_complex_tree_pointers): Likewise.
1845 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
1846 (lto_output_ts_decl_common_tree_pointers): Likewise.
1847 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
1848 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
1849 (lto_output_ts_field_decl_tree_pointers): Likewise.
1850 (lto_output_ts_function_decl_tree_pointers): Likewise.
1851 (lto_output_ts_type_common_tree_pointers): Likewise.
1852 (lto_output_ts_type_non_common_tree_pointers): Likewise.
1853 (lto_output_ts_list_tree_pointers): Likewise.
1854 (lto_output_ts_vec_tree_pointers): Likewise.
1855 (lto_output_ts_exp_tree_pointers): Likewise.
1856 (lto_output_ts_block_tree_pointers): Likewise.
1857 (lto_output_ts_binfo_tree_pointers): Likewise.
1858 (lto_output_ts_constructor_tree_pointers): Likewise.
1859 (lto_output_ts_target_option): Likewise.
1860 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
1861 (lto_output_tree_pointers): Likewise.
1862 (lto_output_tree_header): Likewise.
1863 (lto_output_builtin_tree): Likewise.
1864 (lto_write_tree): Likewise.
1865 (lto_output_integer_cst): Likewise.
1866 (lto_output_tree): Likewise.
1867 (output_phi): Move to gimple-streamer-out.c.
1868 (output_gimple_stmt): Likewise.
1869 (output_bb): Likewise.
1870 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
1871 (streamer_hooks): Move to streamer-hooks.c.
1872 (check_handled_ts_structures): Move to tree-streamer.c
1873 (lto_streamer_cache_add_to_node_array): Likewise.
1874 (lto_streamer_cache_insert_1): Likewise.
1875 (lto_streamer_cache_insert): Likewise.
1876 (lto_streamer_cache_insert_at): Likewise.
1877 (lto_streamer_cache_append): Likewise.
1878 (lto_streamer_cache_lookup): Likewise.
1879 (lto_streamer_cache_get): Likewise.
1880 (lto_record_common_node): Likewise.
1881 (lto_preload_common_nodes): Likewise.
1882 (lto_streamer_cache_create): Likewise.
1883 (lto_streamer_cache_delete): Likewise.
1884 (streamer_hooks_init): Move to streamer-hooks.c.
1885 * lto-streamer.h: Include diagnostic.h
1886 (struct output_block, struct lto_input_block,
1887 struct data_in, struct bitpack_d): Remove forward declarations.
1888 (struct bitpack_d): Move to data-streamer.h.
1889 (struct lto_streamer_cache_d): Move to tree-streamer.h.
1890 (struct streamer_hooks): Move to streamer-hooks.h.
1891 (bp_pack_var_len_unsigned): Move to data-streamer.h.
1892 (bp_pack_var_len_int): Likewise.
1893 (bp_unpack_var_len_unsigned): Likewise.
1894 (bp_unpack_var_len_int): Likewise.
1895 (lto_input_location): Declare.
1896 (lto_tag_check_set): Declare.
1897 (lto_init_eh): Declare.
1898 (lto_output_tree_ref): Declare.
1899 (lto_output_location): Declare.
1900 (bitpack_create): Move to data-streamer.h.
1901 (bp_pack_value): Likewise.
1902 (lto_output_bitpack): Likewise.
1903 (lto_input_bitpack): Likewise.
1904 (bp_unpack_value): Likewise.
1905 (lto_output_1_stream): Likewise.
1906 (lto_input_1_unsigned): Likewise.
1907 (lto_output_int_in_range): Likewise.
1908 (lto_input_int_in_range): Likewise.
1909 (bp_pack_int_in_range): Likewise.
1910 (bp_unpack_int_in_range): Likewise.
1911 (lto_output_enum): Likewise.
1912 (lto_input_enum): Likewise.
1913 (bp_pack_enum): Likewise.
1914 (bp_unpack_enum): Likewise.
1915 * streamer-hooks.c: New.
1916 * streamer-hooks.h: New.
1917 * tree-streamer-in.c: New.
1918 * tree-streamer-out.c: New.
1919 * tree-streamer.c: New.
1920 * tree-streamer.h: New.
1922 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1924 * gthr-posix95.h: Remove.
1925 * gthr.h [_PTHREADS95]: Remove.
1926 * configure.ac (enable_threads): Remove posix95.
1927 * configure: Regenerate.
1928 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
1930 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
1933 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
1935 (ix86_print_operand_address): Handle zero-extended addresses.
1936 (memory_address_length): Add length of addr32 prefix for
1937 zero-extended addresses.
1938 (ix86_secondary_reload): Handle moves to/from double-word general
1939 registers from/to zero-extended addresses.
1940 * config/i386/predicates.md (lea_address_operand): Reject
1941 zero-extended operands.
1943 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
1946 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
1948 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
1949 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
1951 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
1952 (_Unwind_Context_Reg_Val): Likewise.
1953 (_Unwind_Get_Unwind_Word): Likewise.
1954 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
1955 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
1956 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
1957 for EXTENDED_CONTEXT_BIT.
1958 (__frame_state_for): Likewise.
1959 (uw_init_context_1): Likewise.
1960 (_Unwind_GetGR): Updated.
1961 (_Unwind_SetGR): Likewise.
1962 (_Unwind_GetGRPtr): Likewise.
1963 (_Unwind_SetGRPtr): Likewise.
1964 (_Unwind_SetGRValue): Likewise.
1965 (_Unwind_GRByValue): Likewise.
1966 (uw_install_context_1): Likewise.
1968 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
1969 ASSUME_EXTENDED_UNWIND_CONTEXT.
1970 * doc/tm.texi: Regenerated.
1972 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1974 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
1976 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1978 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
1980 (DEC Alpha Options, -mtune): Likewise.
1981 (MIPS Options, -march): native is supported on IRIX.
1983 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1985 * config/sparc/driver-sparc.c: New file.
1986 * config/sparc/x-sparc: New file.
1987 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
1988 * config/sparc/sparc.opt (native): New value for enum processor_type.
1989 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
1990 * config/sparc/sparc.c (sparc_option_override): Abort if
1991 PROCESSOR_NATIVE gets here.
1992 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
1993 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
1994 DRIVER_SELF_SPECS): Define.
1995 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
1996 (SPARC Options, -mtune): Likewise.
1997 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
1999 * configure: Regenerate.
2000 * Makefile.in (EXTRA_GCC_LIBS): Set.
2001 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
2002 (cpp$(exeext)): Likewise.
2004 2011-08-08 Richard Guenther <rguenther@suse.de>
2006 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
2008 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
2011 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
2013 PR tree-optimization/50005
2014 * ipa-inline-analysis (remap_predicate): Add cast to
2015 silence signed/unsigned comparison warning.
2017 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
2019 * modulo-sched.c (get_sched_window): Use a table for the debug output.
2020 Print the current ii.
2021 (sms_schedule_by_order): Reduce whitespace in dump line.
2023 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
2025 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
2026 and one loop for successors. Fix upper bound of memory range.
2028 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
2031 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
2032 (TARGET_INSTANTIATE_DECLS): New define.
2034 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
2035 Mikael Morin <mikael.morin@sfr.fr>
2037 * Makefile.in (INCLUDES_FOR_TARGET): New.
2038 (LIBGCC2_CFLAGS): Use it.
2039 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
2041 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
2043 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
2044 frame->save_regs_using_mov calculation.
2046 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
2048 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
2049 * config/i386/sse.md (castmode): New mode attribute.
2050 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
2051 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
2053 2011-08-05 Jan Hubicka <jh@suse.cz>
2056 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
2058 2011-08-05 Jan Hubicka <jh@suse.cz>
2061 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
2063 (create_emultls_var):New function.
2064 (ipa_lower_emutls): Handle aliases correctly.
2066 2011-08-05 Jan Hubicka <jh@suse.cz>
2069 * ipa-inline.c (recursive_inlining): Look through aliases.
2071 2011-08-05 Jason Merrill <jason@redhat.com>
2073 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
2074 declarations to beginning of function.
2076 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
2078 PR rtl-optimization/49900
2079 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
2080 ensure basic blocks stay in the same order.
2082 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
2084 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
2086 (s390_expand_atomic): Same.
2088 2011-08-05 Richard Henderson <rth@redhat.com>
2091 * dwarf2cfi.c (scan_insn_after): Split out of ...
2092 (scan_trace): ... here. Correctly place notes wrt sequences.
2094 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
2095 Richard Henderson <rth@redhat.com>
2098 * expr.c (fixup_args_size_notes): Look through no-op moves.
2100 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
2102 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
2103 of "m" for operand 0. Add type and mode attribute.
2104 (*pushxf_nointeger"): Use "<" constraint for operand 0.
2105 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
2106 constraint instead of "o" for opreand 1.
2107 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
2108 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
2109 operand 0, alternative 4.
2110 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
2112 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
2114 * config/i386/predicates.md (lea_address_operand): Rename from
2115 no_seg_address_operand.
2116 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
2117 (*lea_1_zext): Ditto.
2119 (*lea_2_zext): Ditto.
2121 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
2123 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
2124 parts.base and parts.index.
2125 * config/i386/predicates.md (aligned_operand): Ditto.
2126 (cmpxchg8b_pic_memory_operand): Ditto.
2128 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2130 * config/soft-fp: Move to ../libgcc.
2131 * Makefile.in (SFP_MACHINE): Remove.
2132 (libgcc-support): Remove $(SFP_MACHINE) dependency.
2133 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
2134 * config/arm/t-arm-softfp: Move to
2135 ../libgcc/config/arm/t-softfp.
2136 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
2137 * config/c6x/t-c6x-softfp: Remove.
2138 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
2139 * config/i386/t-fprules-softfp: Move to
2140 ../libgcc/config/t-softfp-tf.
2141 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
2142 * config/ia64/t-fprules-softfp: Remove.
2143 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
2144 * config/lm32/t-fprules-softfp: Remove.
2145 * config/moxie/sfp-machine.h: Remove.
2146 * config/moxie/t-moxie-softfp: Remove.
2147 * config/rs6000/darwin-ldouble-format: Move to
2148 ../libgcc/config/rs6000/ibm-ldouble-format.
2149 * config/rs6000/darwin-ldouble.c: Move to
2150 ../libgcc/config/rs6000/ibm-ldouble.c
2151 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
2152 * config/rs6000/libgcc-ppc64.ver: Likewise.
2153 * config/rs6000/sfp-machine.h: Likewise.
2154 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
2155 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
2156 (LIB2FUNCS_EXTRA): Remove.
2157 (TARGET_LIBGCC2_CFLAGS): Remove.
2158 * config/rs6000/t-aix52: Likewise
2159 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
2160 $(srcdir)/config/rs6000/darwin-ldouble.c.
2161 (SHLIB_MAPFILES): Remove.
2162 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
2163 $(srcdir)/config/rs6000/darwin-ldouble.c.
2164 * config/rs6000/t-fprules-softfp: Move to
2165 ../libgcc/config/t-softfp-sfdf.
2166 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
2167 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
2168 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
2169 $(srcdir)/config/rs6000/darwin-ldouble.c.
2170 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
2171 * config/score/t-score-softfp: Remove.
2172 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
2173 soft-fp/t-softfp from tmake_file.
2174 (arm*-*-uclinux*): Likewise.
2175 (arm*-*-ecos-elf): Likewise.
2176 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
2177 (arm*-*-rtems*): Likewise.
2178 (arm*-*-elf): Likewise.
2179 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
2181 (moxie-*-uclinux*): Likewise.
2182 (moxie-*-rtems*): Likewise.
2183 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
2185 (lm32-*-rtems*): Likewise.
2186 (lm32-*-uclinux*): Likewise.
2187 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
2188 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
2189 (powerpc-*-linux*, powerpc64-*-linux*): Remove
2190 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
2191 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
2193 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
2195 (tic6x-*-uclinux): Likewise.
2196 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
2197 soft-fp/t-softfp from tmake_file.
2198 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
2199 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
2200 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
2201 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
2202 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
2204 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2206 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
2207 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
2208 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
2210 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
2211 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
2213 * config/arm/t-vxworks: Likewise.
2214 * config/arm/t-wince-pe: Likewise.
2215 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
2216 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2217 * config/bfin/t-bfin-elf: Likewise.
2218 * config/bfin/t-bfin-linux: Likewise.
2219 * config/bfin/t-bfin-uclinux: Likewise.
2220 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
2222 * config/fr30/t-fr30: Likewise.
2223 * config/frv/t-frv: Likewise.
2224 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
2225 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2226 * config/m32c/t-m32c: Likewise.
2227 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
2228 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2229 * config/mcore/t-mcore: Likewise.
2230 * config/mep/t-mep: Likewise.
2231 * config/microblaze/t-microblaze: Likewise.
2232 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
2233 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2234 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
2235 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2236 * config/mn10300/t-linux: Remove.
2237 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2238 * config/pdp11/t-pdp11: Likewise.
2239 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
2240 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
2241 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2242 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
2243 * config/rs6000/t-aix52: Likewise.
2244 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
2245 $(srcdir)/config/rs6000/ppc64-fp.c.
2246 * config/rs6000/t-fprules-fpbit: Remove.
2247 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
2248 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2249 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
2250 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2251 * config/sparc/t-elf: Likewise.
2252 * config/sparc/t-leon: Likewise.
2253 * config/sparc/t-leon3: Likewise.
2254 * config/spu/t-spu-elf: Likewise.
2255 (DPBIT_FUNCS): Remove.
2256 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2257 * config/v850/t-v850: Likewise.
2258 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
2259 (avr-*-*): Likewise.
2260 (h8300-*-rtems*): Set libgcc_tm_file.
2261 (h8300-*-elf*): Likewise.
2262 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
2264 (powerpc-*-eabisim*): Likewise.
2265 (powerpc-*-elf*): Likewise.
2266 (powerpc-*-eabialtivec*): Likewise.
2267 (powerpc-xilinx-eabi*): Likewise.
2268 (powerpc-*-eabi*): Likewise.
2269 (powerpc-*-rtems*): Likewise.
2270 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
2271 (powerpcle-*-elf*): Likewise.
2272 (powerpcle-*-eabisim*): Likewise.
2273 (powerpcle-*-eabi*): Likewise.
2274 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
2275 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
2276 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
2279 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2281 * Makefile.in (UNWIND_H): Remove.
2282 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
2283 ../libgcc/Makefile.in.
2284 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
2285 (LIBUNWINDDEP): Remove.
2286 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
2287 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
2288 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
2289 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
2290 Don't copy $(UNWIND_H).
2291 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
2292 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
2293 * aclocal.m4: Regenerate.
2294 * configure: Regenerate.
2295 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
2296 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
2297 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
2298 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
2299 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
2300 * config/arm/libunwind.S, config/arm/pr-support.c,
2301 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
2302 ../libgcc/config/arm.
2303 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
2304 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
2305 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
2306 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
2307 ($(T)frvend$(objext)): Likewise.
2308 * config/ia64/t-glibc (LIB2ADDEH): Remove.
2309 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
2310 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
2311 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
2312 ../libgcc/config/ia64.
2313 * config/ia64/t-hpux (LIB2ADDEH): Remove.
2314 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
2315 * config/ia64/t-vms (LIB2ADDEH): Remove.
2316 * config/ia64/vms.h (UNW_IVMS_MODE,
2317 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
2318 * config/picochip/t-picochip (LIB2ADDEH): Remove.
2319 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
2320 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
2321 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
2322 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
2323 $(srcdir)/../libgcc to refer to unwinder sources.
2324 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
2325 * config/t-darwin (LIB2ADDEH): Remove.
2326 * config/t-freebsd (LIB2ADDEH): Remove.
2327 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
2328 * config/t-libunwind-elf: Move to ../libgcc/config.
2329 * config/t-linux (LIB2ADDEH): Remove.
2330 * config/t-sol2 (LIB2ADDEH): Remove.
2331 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
2332 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
2334 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
2336 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
2338 * doc/invoke.texi: Document core-avx-i.
2340 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2342 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
2344 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
2346 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
2347 result of multiple results reduction when extracting the final
2348 value using scalar code.
2350 2011-08-05 Richard Guenther <rguenther@suse.de>
2352 PR tree-optimization/49984
2353 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
2355 2011-08-05 Richard Guenther <rguenther@suse.de>
2357 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
2358 return true for constant integer ranges.
2359 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
2360 BIT_IOR_EXPR handling.
2362 2011-08-04 Kai Tietz <ktietz@redhat.com>
2364 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
2365 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
2367 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
2369 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
2370 pattern def statement, and its access macro.
2371 (NUM_PATTERNS): Set to 5.
2372 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2373 pattern def statement.
2374 (vect_transform_loop): Likewise.
2375 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
2376 function vect_recog_over_widening_pattern ().
2377 (vect_operation_fits_smaller_type): New function.
2378 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
2380 (vect_pattern_recog_1): Move the code that marks pattern
2381 statements to vect_mark_pattern_stmts (), and call it. Update
2383 * tree-vect-stmts.c (vect_supportable_shift): New function.
2384 (vect_analyze_stmt): Handle pattern def statement.
2385 (new_stmt_vec_info): Initialize pattern def statement.
2387 2011-08-04 Richard Henderson <rth@redhat.com>
2390 * config/i386/i386.c (ix86_expand_call): Don't create nested
2391 PARALLELs for TARGET_VZEROUPPER.
2392 (ix86_split_call_vzeroupper): Fix extraction of the original call.
2393 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
2394 recognize nested PARALLELs.
2395 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
2396 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
2397 *sibcall_value_pop_vzeroupper): Likewise.
2399 2011-08-04 Richard Henderson <rth@redhat.com>
2402 * calls.c (expand_call): Use fixup_args_size_notes for
2404 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
2405 in non-standard modes.
2407 2011-08-04 Jakub Jelinek <jakub@redhat.com>
2409 * gcc.c (self_spec): New variable.
2410 (static_specs): Add self_spec.
2411 (main): Call do_self_spec on "self_spec" specs after reading
2412 user specs files. Move compare_debug handling right after that.
2414 2011-08-04 Richard Guenther <rguenther@suse.de>
2416 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
2417 (value_range_nonnegative_p): New function.
2418 (ssa_name_nonnegative_p): Use it.
2419 (value_range_constant_singleton): New function.
2420 (op_with_constant_singleton_value_range): Use it.
2421 (extract_range_from_binary_expr_1): New function, split out from ...
2422 (extract_range_from_binary_expr): ... this. Remove fallback
2423 constant folding done here.
2425 2011-08-04 Richard Guenther <rguenther@suse.de>
2427 PR tree-optimization/49806
2428 * tree-vrp.c (op_with_boolean_value_range_p): New function.
2429 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
2430 a new statement for a final conversion to bool.
2432 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
2434 * gengtype-state.c: Include "bconfig.h" if
2435 GENERATOR_FILE is defined, "config.h" otherwise.
2436 * gengtype.c: Likewise.
2437 * gengtype-lex.l: Likewise.
2438 * gengtype-parse.c: Likewise.
2439 * Makefile.in (gengtype-lex.o-warn): New variable.
2440 (plugin_resourcesdir): Likewise.
2441 (plugin_bindir): Likewise.
2442 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
2443 (MOSTLYCLEANFILES): Add gengtype$(exeext).
2444 (native): Depend on gengtype$(exeext) is $enable_plugin
2446 (gtype.state): Depend on s-gtype. Use temporary file.
2447 (gengtype-lex.o): New rule.
2448 (gengtype-parse.o): Likewise.
2449 (gengtype-state.o): Likewise.
2450 (gengtype$(exeext)): Likewise.
2451 (install-gengtype): Likewise.
2452 (gengtype.o): Likewise.
2453 (build/gengtype.o): Depend on version.h.
2454 (build/gengtype-state): Depend on double-int.h, version.h,
2455 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
2456 (install-plugin): Depend on install-gengtype.
2458 2011-08-04 Jakub Jelinek <jakub@redhat.com>
2461 * tree.h (init_attributes): New prototype.
2462 * attribs.c (init_attributes): No longer static.
2464 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2466 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
2469 2011-08-03 David Li <davidxl@google.com>
2471 * tree-optimize.c (execute_fixup_cfg): Fix up entry
2472 outgoing edge counts after inlining.
2474 2011-08-03 David Li <davidxl@google.com>
2476 * profile.c (compute_branch_probabilities): Compute
2477 function frequency after profile annotation.
2479 2011-08-04 Alan Modra <amodra@gmail.com>
2481 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
2482 use_backchain_to_restore_sp initialisation.
2483 (rs6000_legitimate_offset_address_p): Simplify offset test.
2485 2011-08-03 Richard Henderson <rth@redhat.com>
2487 * config/spu/spu.md: Use define_c_enum instead of define_constants.
2488 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
2491 2011-08-03 Richard Henderson <rth@redhat.com>
2494 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
2496 2011-08-03 Jakub Jelinek <jakub@redhat.com>
2498 PR tree-optimization/49948
2499 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
2501 2011-08-03 Anatoly Sokolov <aesok@post.ru>
2503 * config/m32c/m32c.c (class_sizes): Remove.
2504 (reduce_class): Change arguments and return type to reg_class_t.
2505 Change type cc var to HARD_REG_SET. Change type best var to
2506 reg_class_t. Change type best_size var to unsigned int. Remove
2507 initialization class_sizes var. Use reg_class_size array instead
2508 of class_sizes. Use reg_class_contents array instead
2511 2011-08-03 Richard Guenther <rguenther@suse.de>
2514 * fold-const.c (fold_binary_loc): Only associate
2515 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
2518 2011-08-03 Alan Modra <amodra@gmail.com>
2520 PR rtl-optimization/49941
2521 * jump.c (mark_jump_label): Comment.
2522 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
2523 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
2524 (mark_used_flags): Don't mark RETURN.
2526 2011-08-03 Richard Guenther <rguenther@suse.de>
2528 PR tree-optimization/49938
2529 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
2530 deal with a POLYNOMIAL_CHREC.
2532 2011-08-03 Revital Eres <revital.eres@linaro.org>
2534 * modulo-sched.c (calculate_stage_count,
2535 calculate_must_precede_follow, get_sched_window,
2536 try_scheduling_node_in_cycle, remove_node_from_ps): Add
2538 (update_node_sched_params, set_must_precede_follow, optimize_sc):
2540 (reset_sched_times): Call update_node_sched_params.
2541 (sms_schedule): Call optimize_sc.
2542 (get_sched_window): Change function arguments.
2543 (sms_schedule_by_order): Update call to get_sched_window.
2544 Call set_must_precede_follow.
2545 (calculate_stage_count): Add function argument.
2547 2011-08-02 Richard Henderson <rth@redhat.com>
2551 * reg-notes.def (REG_ARGS_SIZE): New.
2552 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
2553 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
2554 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
2555 different stack levels.
2556 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
2557 (maybe_move_args_size_note): New.
2558 (combine_stack_adjustments_for_block): Use it.
2559 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
2560 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
2561 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
2562 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
2564 (queued_args_size): Remove.
2565 (add_cfi_args_size): Assert size is non-negative.
2566 (stack_adjust_offset, dwarf2out_args_size): Remove.
2567 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
2568 (notice_args_size, notice_eh_throw): New.
2569 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
2570 (dwarf2out_frame_debug_adjust_cfa): Likewise.
2571 (dwarf2out_frame_debug_cfa_offset): Likewise.
2572 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
2573 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
2574 (change_cfi_row): Don't emit args_size.
2575 (maybe_record_trace_start_abnormal): Split out from ...
2576 (maybe_record_trace_start): Here. Set args_size_undefined.
2577 (create_trace_edges): Update to match.
2578 (scan_trace): Handle REG_ARGS_SIZE.
2579 (connect_traces): Connect args_size between EH insns.
2580 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
2581 * explow.c (suppress_reg_args_size): New.
2582 (adjust_stack_1): Split out from ...
2583 (adjust_stack): ... here.
2584 (anti_adjust_stack): Use it.
2585 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
2586 * expr.c (mem_autoinc_base): New.
2587 (fixup_args_size_notes): New.
2588 (emit_single_push_insn_1): Rename from emit_single_push_insn.
2589 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
2590 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
2591 * reload1.c (reload_as_needed): Likewise.
2592 * rtl.h (fixup_args_size_notes): Declare.
2594 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
2597 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
2599 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2600 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2602 2011-08-02 Richard Henderson <rth@redhat.com>
2604 * config/h8300/h8300.c (push, pop): Return the insn.
2605 (h8300_swap_into_er6): Generate correct unwind info.
2606 (h8300_swap_out_of_er6): Likewise.
2607 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
2608 complex cfa expression.
2609 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
2611 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2613 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2615 2011-08-02 Richard Henderson <rth@redhat.com>
2618 * config/h8300/h8300.c (h8300_move_ok): New.
2619 * config/h8300/h8300-protos.h: Declare it.
2620 * config/h8300/h8300.md (P): New mode iterator.
2621 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
2622 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
2623 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
2624 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
2625 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
2626 and pushqi1_h8300hs_normal; use PRE_MODIFY and
2627 register_no_sp_elim_operand.
2628 (*pushhi1_h8300hs_<P>): Similarly.
2629 (pushqi1, pushhi1, pushhi1_h8300): Remove.
2630 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
2632 2011-08-02 Richard Henderson <rth@redhat.com>
2635 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
2637 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2639 * c-parser.c (enum c_parser_prec): New enum, moved from within
2640 c_parser_binary_expression.
2641 (c_parser_binary_expression): Add PREC argument. Stop parsing
2642 if operator has lower or equal precedence than PREC.
2643 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
2645 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
2646 Adjust c_finish_omp_atomic caller.
2647 (c_parser_omp_taskyield): New function.
2648 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
2649 (c_parser_omp_clause_name): Handle final and mergeable clauses.
2650 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
2652 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
2653 and PRAGMA_OMP_CLAUSE_MERGEABLE.
2654 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
2655 (c_parser_omp_clause_reduction): Handle min and max.
2656 * c-typeck.c (c_finish_omp_clauses): Don't complain about
2657 const qualified predetermined vars in firstprivate clause.
2658 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2659 Handle MIN_EXPR and MAX_EXPR.
2660 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
2661 and OMP_CLAUSE_MERGEABLE.
2662 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
2663 and OMP_ATOMIC_CAPTURE_NEW.
2664 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
2665 OMP_CLAUSE_MERGEABLE.
2666 (omp_clause_code_name): Likewise.
2667 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2668 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
2669 and OMP_CLAUSE_MERGEABLE.
2670 (OMP_CLAUSE_FINAL_EXPR): Define.
2671 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
2672 OMP_CLAUSE_MERGEABLE.
2673 (expand_task_call): Likewise.
2674 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
2675 (expand_omp_atomic_fetch_op): Handle cases where old or new
2676 value is needed afterwards.
2677 (expand_omp_atomic): Call expand_omp_atomic_load resp.
2678 expand_omp_atomic_store.
2679 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
2680 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
2681 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
2682 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2683 * tree-nested.c (convert_nonlocal_omp_clauses,
2684 convert_local_omp_clauses): Likewise.
2685 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
2686 OMP_ATOMIC_CAPTURE_NEW): New.
2687 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
2688 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
2690 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
2691 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
2692 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2694 2011-08-02 Kai Tietz <ktietz@redhat.com>
2696 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
2698 (ssa_forward_propagate_and_combine): Interprete result of
2699 forward_propagate_comparison.
2700 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
2701 boolean-typed operands for comparisons.
2703 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
2705 * config/avr/libgcc.S: Gather related function in the
2707 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
2708 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
2710 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
2711 __udivmodsi4, __divmodsi4, __prologue_saves__,
2712 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
2713 __do_copy_data, __do_clear_bss, __do_global_ctors,
2714 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
2716 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
2719 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
2720 (stack_protect_test): The pattern compares ptr_mode value.
2722 2011-08-02 Alan Modra <amodra@gmail.com>
2724 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
2725 note for save_LR_around_toc_setup sequence.
2727 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2729 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
2731 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
2732 Joseph Myers <joseph@codesourcery.com>
2734 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
2735 * hwint.c: Include diagnostic-core.h.
2737 (gcd): Moved here...
2740 (least_common_multiple): Moved here...
2741 * hwint.h (gcd): ... from here.
2742 (least_common_multiple): ... from here.
2743 (HOST_WIDE_INT_MIN): New.
2744 (HOST_WIDE_INT_MAX): New.
2745 (abs_hwi): Declared.
2747 (pos_mul_hwi): Declared.
2748 (mul_hwi): Declared.
2749 (least_common_multiple): Declared.
2750 * omega.c (check_pos_mul): Removed.
2751 (check_mul): Removed.
2752 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
2753 mul_hwi instead of check_mul.
2755 2011-08-01 Richard Henderson <rth@redhat.com>
2758 * config/avr/avr.h (PUSH_ROUNDING): New.
2759 * config/avr/avr.md (pushqi1): Rename from *pushqi.
2760 (*pushhi, *pushsi, *pushsf): Remove.
2761 (MPUSH): New mode iterator.
2762 (push<MPUSH>1): New expander.
2764 2011-08-01 Anatoly Sokolov <aesok@post.ru>
2766 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
2767 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2768 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
2769 mmix_preferred_output_reload_class): Remove.
2770 * config/mmix/mmix.c (mmix_preferred_reload_class,
2771 mmix_preferred_output_reload_class): Make static. Change rclass
2772 argument and return type to reg_class_t.
2773 (TARGET_PREFERRED_RELOAD_CLASS,
2774 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2776 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
2778 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
2781 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2784 * config/i386/i386.md (PTR): New.
2785 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
2786 (stack_protect_test): Likewise.
2787 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
2788 (stack_tls_protect_set_<mode>): Likewise.
2789 (stack_tls_protect_test_<mode>): Likewise.
2791 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
2794 * config/i386/i386.c (ix86_address_subreg_operand): New.
2795 (ix86_decompose_address): Use ix86_address_subreg_operand.
2796 (ix86_legitimate_address_p): Do not assert that subregs satisfy
2797 register_no_elim_operand in DImode.
2799 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
2801 PR tree-optimization/49926
2802 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
2803 in a chain doesn't have uses both inside and outside the loop.
2805 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
2807 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
2808 * config/avr/avr-devices.c (avr_mcu_types): Use it.
2809 * config/avr/avr-mcus.def (AVR_MCU): Use it.
2810 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
2811 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
2812 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
2813 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
2814 to detect if XJMP must not be skipped.
2816 2011-08-02 Alan Modra <amodra@gmail.com>
2818 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
2820 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
2821 (rs6000_emit_prologue): Don't prematurely return when
2822 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
2823 save_toc_in_prologue case.
2824 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
2827 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
2829 * config/avr/avr-devices.c: Delete SVN property svn:executable.
2830 * config/avr/predicates.md: Ditto.
2831 * config/avr/driver-avr.c: Ditto.
2832 * config/avr/genopt.sh: Set SVN property svn:executable to *.
2834 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2836 * calls.c (emit_library_call_value_1): Declare size only if
2837 BLOCK_REG_PADDING is defined.
2839 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
2842 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
2843 (x86_64-*-*): Likewise.
2844 * config/i386/i386.opt (mlzcnt): New.
2845 * config/i386/abmintrin.h: File removed.
2846 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
2847 * config/i386/lzcntintrin.h: ... here. New file.
2848 (__lzcnt): Rename to ...
2849 (__lzcnt32): ... this.
2850 * config/i386/bmiintrin.h (head): Update copyright year.
2851 (__lzcnt_u16): Removed.
2852 (__lzcnt_u32): Likewise.
2853 (__lzcnt_u64): Likewise.
2854 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
2855 is defined, remove abmintrin.h.
2856 * config/i386/cpuid.h (bit_LZCNT): New.
2857 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2859 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2860 __LZCNT__ if needed.
2861 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
2862 (ix86_option_override_internal): Handle LZCNT option.
2863 (ix86_valid_target_attribute_inner_p): Likewise.
2864 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
2865 * config/i386/i386.h (TARGET_LZCNT): New.
2866 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
2867 * config/i386/i386.md (clz<mode>2): Update insn constraint.
2868 (clz<mode>2_lzcnt): Likewise.
2869 * doc/invoke.texi: Mention -mlzcnt option.
2870 * doc/extend.texi: Likewise.
2872 2011-08-01 Julian Brown <julian@codesourcery.com>
2874 * configure.ac (fixed-point): Add ARM support.
2875 * configure: Regenerate.
2876 * config/arm/arm.c (arm_fixed_mode_set): New struct.
2877 (arm_set_fixed_optab_libfunc): New.
2878 (arm_set_fixed_conv_libfunc): New.
2879 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
2881 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
2882 return values in SImode.
2883 (arm_return_in_msb): Return fixed-point types in the msb.
2884 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
2886 (arm_scalar_mode_supported_p): Support fixed-point modes.
2887 (arm_vector_mode_supported_p): Support vector fixed-point modes.
2888 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
2889 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
2890 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
2891 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
2892 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
2894 (qaddsub_suf): New mode attribute.
2895 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
2897 * config/arm/predicates.md (sat_shift_operator): New predicate.
2898 * config/arm/arm-fixed.md: New.
2899 * config/arm/arm.md: Include arm-fixed.md.
2900 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
2902 2011-08-01 Julian Brown <julian@codesourcery.com>
2904 * calls.c (emit_library_call_value_1): Support padding for libcall
2905 arguments and return values.
2906 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
2907 downwards in big-endian mode.
2909 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2912 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
2913 * config/sol2-protos.h: Likewise.
2914 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
2916 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
2917 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
2919 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
2921 2011-08-01 Julian Brown <julian@codesourcery.com>
2923 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
2925 2011-08-01 Julian Brown <julian@codesourcery.com>
2927 * final.c (output_addr_const): Print fixed-point constants as
2930 2011-08-01 Richard Guenther <rguenther@suse.de>
2932 * stor-layout.c (initialize_sizetypes): Properly sign-extend
2933 bitsiztype TYPE_MAX_VALUE.
2935 2011-08-01 Julian Brown <julian@codesourcery.com>
2937 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
2940 2011-07-31 Richard Henderson <rth@redhat.com>
2942 * config/h8300/crti.asm: Add flags to .section directive.
2943 * config/h8300/crtn.asm: Likewise.
2945 2011-07-31 Richard Henderson <rth@redhat.com>
2947 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
2948 * tree.c (build_common_tree_nodes): Likewise.
2950 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
2953 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
2954 (divsi3_i1): Likewise.
2956 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2958 PR tree-optimization/49749
2959 * tree-ssa-reassoc.c (get_rank): New forward declaration.
2960 (PHI_LOOP_BIAS): New macro.
2961 (phi_rank): New function.
2962 (loop_carried_phi): Likewise.
2963 (propagate_rank): Likewise.
2964 (get_rank): Add calls to phi_rank and propagate_rank.
2966 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
2968 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
2970 (PTRDIFF_TYPE): Likewise.
2972 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
2975 * config/i386/i386.md (strset): Do not expand strset_singleop
2976 when %eax or $edi are fixed.
2977 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
2978 (*strsetsi_1): Ditto.
2979 (*strsethi_1): Ditto.
2980 (*strsetqi_1): Ditto.
2981 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
2982 (*rep_stossi): Ditto.
2983 (*rep_stosqi): Ditto.
2984 (*strlenqi_1): Ditto.
2985 (cmpstrnsi): Also fail when %ecx is fixed.
2986 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
2987 (*cmpstrnqi_1): Ditto.
2988 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
2989 (*strmovsi_1): Ditto.
2990 (*strmovhi_1): Ditto.
2991 (*strmovqi_1): Ditto.
2992 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
2993 (*rep_movsi): Ditto.
2994 (*rep_movqi): Ditto.
2996 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
2999 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
3000 Disable instruction scheduling for non-ColdFire targets.
3001 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3003 2011-07-31 Revital Eres <revital.eres@linaro.org>
3005 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
3006 of anti-dep edge from a branch.
3007 (add_cross_iteration_register_deps): Create anti-dep edge from
3010 2011-07-31 Revital Eres <revital.eres@linaro.org>
3012 * modulo-sched.c: Change comment.
3013 (reset_sched_times): Fix print message.
3014 (print_partial_schedule): Add print info.
3016 2011-07-31 Tom de Vries <tom@codesourcery.com>
3019 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
3020 get_object_alignment and TYPE_ALIGN.
3022 2011-07-30 Tom de Vries <tom@codesourcery.com>
3025 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
3026 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
3028 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3030 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
3032 (cpu_types): New array.
3033 (cputype): New function.
3034 (host_detect_local_cpu): Only define buf, f if !__sgi__.
3035 Use scaninvent instead of /proc/cpuinfo if __sgi__.
3036 * config.host: Also use driver-native.o, mips/x-native on
3038 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
3039 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
3040 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
3042 2011-07-29 Jakub Jelinek <jakub@redhat.com>
3046 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
3047 in nested parallel and outer is a gimple_reg, mark it as addressable
3048 and set its bit in task_shared_vars bitmap too.
3050 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
3052 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
3054 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3056 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
3057 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
3058 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
3059 AMASK_LOCKPFTCHOK): Define.
3060 (host_detect_local_cpu): Remove buf, f, cpu_names.
3061 Define cpu_types, implver, amask.
3062 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
3064 * config.host: Also use driver-alpha.o, alpha/x-alpha on
3066 * config/alpha/osf5.h [__alpha__ || __alpha]
3067 (host_detect_local_cpu): Declare.
3068 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
3069 (DRIVER_SELF_SPECS): Define.
3071 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
3074 * config/i386/i386.md (*load_tp_x32): New.
3075 (*load_tp_x32_zext): Ditto.
3076 (*add_tp_x32): Ditto.
3077 (*add_tp_x32_zext): Ditto.
3078 (*load_tp_<mode>): Disable for TARGET_X32 targets.
3079 (*add_tp_<mode>): Ditto.
3080 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
3081 ptr_mode and convert to Pmode if needed.
3083 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
3086 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
3087 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
3088 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
3089 Add X to register footprint: Clobber r26/r27.
3091 2011-07-29 Richard Guenther <rguenther@suse.de>
3093 * builtins.c (fold_builtin_signbit): Build the comparison
3096 2011-07-29 Richard Guenther <rguenther@suse.de>
3098 PR tree-optimization/49893
3099 * tree-predcom.c (suitable_reference_p): Volatile references
3102 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
3105 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
3106 (__ctzsi2): Result for 0 may be undefined.
3107 (__ctzhi2): Result for 0 may be undefined.
3108 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
3109 (__popcountsi2): Ditto. And don't clobber r26.
3110 (__popcountdi2): Ditto. And don't clobber r27.
3111 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
3112 (parityhi2): New expand.
3113 (paritysi2): New expand.
3114 (popcounthi2): New expand.
3115 (popcountsi2): New expand.
3116 (clzhi2): New expand.
3117 (clzsi2): New expand.
3118 (ctzhi2): New expand.
3119 (ctzsi2): New expand.
3120 (ffshi2): New expand.
3121 (ffssi2): New expand.
3122 (copysignsf3): New insn.
3123 (bswapsi2): New expand.
3124 (*parityhi2.libgcc): New insn.
3125 (*parityqihi2.libgcc): New insn.
3126 (*paritysihi2.libgcc): New insn.
3127 (*popcounthi2.libgcc): New insn.
3128 (*popcountsi2.libgcc): New insn.
3129 (*popcountqi2.libgcc): New insn.
3130 (*popcountqihi2.libgcc): New insn-and-split.
3131 (*clzhi2.libgcc): New insn.
3132 (*clzsihi2.libgcc): New insn.
3133 (*ctzhi2.libgcc): New insn.
3134 (*ctzsihi2.libgcc): New insn.
3135 (*ffshi2.libgcc): New insn.
3136 (*ffssihi2.libgcc): New insn.
3137 (*bswapsi2.libgcc): New insn.
3139 2011-07-29 Richard Guenther <rguenther@suse.de>
3141 * tree-vrp.c (get_value_range): Only set parameter default
3142 definitions to varying, leave others at undefined.
3143 (extract_range_from_binary_expr): Fix undefined handling.
3144 (vrp_visit_phi_node): Handle merged undefined state.
3146 2011-07-29 Wei Guozhi <carrot@google.com>
3148 PR rtl-optimization/49799
3149 * combine.c (make_compound_operation): Check if the bit field is valid
3150 before change it to bit field extraction.
3152 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
3154 PR rtl-optimization/49891
3155 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
3156 newly created returnjumps.
3158 2011-07-28 DJ Delorie <dj@redhat.com>
3160 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
3161 local frame in a naked function, and produce a suitable error for
3164 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
3165 registers to be reloaded in HI classes when the target is HI.
3167 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
3169 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
3170 bound_one, bound_two.
3172 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
3175 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
3177 (translate_clast): Same.
3178 (translate_clast_assignment): New.
3180 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
3182 PR tree-optimization/49876
3183 * sese.c (rename_uses): Do not return false on gloog_error: set
3184 the new_expr to integer_zero_node and continue code generation.
3185 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
3187 2011-07-28 Jakub Jelinek <jakub@redhat.com>
3190 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
3191 arguments also check if they aren't initialized with a MODE_INT
3192 mode of the same size.
3194 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
3196 * expr.c (get_bit_range): Handle *MEM_REF's.
3198 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
3200 * rtlanal.c (tablejump_p): False for returns.
3201 * reorg.c (first_active_target_insn): New static function.
3202 (find_end_label): Set JUMP_LABEL for a new returnjump.
3203 (optimize_skip, get_jump_flags, rare_destination,
3204 mostly_true_jump, get_branch_condition,
3205 steal_delay_list_from_target, own_thread_p,
3206 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
3207 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
3208 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
3209 * jump.c (delete_related_insns): Likewise.
3210 (jump_to_label_p): New function.
3211 (redirect_target): New static function.
3212 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
3213 (redirect_jump_1): Assert that the new label is nonnull.
3214 (redirect_jump): Likewise.
3215 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
3216 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
3218 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
3219 changed. Ensure that the right label is passed to redirect_jump.
3220 * function.c (emit_return_into_block,
3221 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
3222 ret_rtx in their JUMP_LABEL.
3223 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
3224 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
3225 pass ret_rtx as label.
3226 * cfglayout.c (fixup_reorder_chain): Use
3227 force_nonfallthru_and_redirect rather than force_nonfallthru.
3228 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
3229 * rtl.h (ANY_RETURN_P): New macro.
3230 (jump_to_label_p): Declare.
3231 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
3233 (mark_target_live_regs): Likewise.
3234 * basic-block.h (force_nonfallthru_and_redirect): Declare.
3235 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
3236 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
3237 alpha_tablejump_best_label): Remove functions.
3238 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
3239 alpha_tablejump_best_label): Remove declarations.
3240 * config/sh/sh.c (barrier_align, split_branches): Adjust for
3241 ret_rtx in JUMP_LABELs.
3242 * config/arm/arm.c (is_jump_table): Likewise.
3244 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
3246 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
3247 special predicate. Remove explicit mode checks.
3249 2011-07-28 Jakub Jelinek <jakub@redhat.com>
3251 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
3252 DW_AT_data_member_location containing just DW_OP_plus_uconst.
3255 * dwarf2out.c (size_of_die, value_format, output_die): Use
3256 DW_FORM_udata instead of DW_FORM_data[48] for
3257 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
3259 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
3261 * config/i386/i386.md (*tls_global_dynamic_64): Update
3264 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
3267 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
3268 tls_symbolic_operand check. Update code sequence for TARGET_X32.
3269 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
3270 (tls_dynamic_gnu2_64): Ditto.
3271 (*tls_dynamic_gnu2_lea_64): Ditto.
3272 (*tls_dynamic_gnu2_call_64): Ditto.
3273 (*tls_dynamic_gnu2_combine_64): Ditto.
3275 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
3277 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
3279 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
3282 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
3284 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3286 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
3287 before the core constraints. Adjust attributes.
3288 ("*thumb2_movdf_vfp"): Likewise.
3290 2011-07-28 Kai Tietz <ktietz@redhat.com>
3292 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
3293 (simplify_truth_ops_using_ranges): Likewise.
3294 (build_assert_expr_for): Likewise.
3295 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
3296 and handle BIT_NOT_EXPR for truth-operation.
3298 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
3301 Undo r176835 from trunk
3302 2011-07-27 Georg-Johann Lay
3304 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
3307 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
3308 Add _muluhisi3, _mulshisi3, _usmulhisi3.
3309 * config/avr/libgcc.S (__mulsi3): Rewrite.
3310 (__mulhisi3): Rewrite.
3311 (__umulhisi3): Rewrite.
3312 (__usmulhisi3): New.
3316 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
3318 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
3319 (pseudo_register_or_const_int_operand): New.
3320 (combine_pseudo_register_operand): New.
3324 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
3325 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
3326 (any_extend, any_extend2): New code iterators.
3327 (extend_prefix): New code attribute.
3328 (mulsi3): Rewrite. Turn insn to expander.
3331 (usmulhisi3): New expander.
3332 (*mulsi3): New insn-and-split.
3333 (mulu<mode>si3): New insn-and-split.
3334 (muls<mode>si3): New insn-and-split.
3335 (mulohisi3): New insn-and-split.
3336 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
3337 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
3338 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
3339 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
3341 (*mulsi3_call): Rewrite.
3342 (*mulhisi3_call): Rewrite.
3343 (*umulhisi3_call): Rewrite.
3344 (*usmulhisi3_call): New insn.
3345 (*muluhisi3_call): New insn.
3346 (*mulshisi3_call): New insn.
3347 (*mulohisi3_call): New insn.
3348 (extendqihi2): Use combine_pseudo_register_operand as predicate
3350 (extendqisi2): Ditto.
3351 (zero_extendqihi2): Ditto.
3352 (zero_extendqisi2): Ditto.
3353 (zero_extendhisi2): Ditto.
3354 (extendhisi2): Ditto. Don't early-clobber operand 0.
3356 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
3358 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
3360 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
3362 PR tree-optimization/49471
3363 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
3364 iv only when the largest type is unsigned. Do not call
3365 lang_hooks.types.type_for_size.
3367 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
3370 * graphite-poly.c (apply_poly_transforms): Disable legality check
3371 after an openscop read.
3373 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
3376 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
3377 copy_bb_and_scalar_dependences.
3378 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
3379 (graphite_copy_stmts_from_block): Update call to rename_uses.
3380 (copy_bb_and_scalar_dependences): Update call to
3381 graphite_copy_stmts_from_block.
3382 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
3384 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
3387 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
3388 (__ctzsi2): Result for 0 may be undefined.
3389 (__ctzhi2): Result for 0 may be undefined.
3390 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
3391 (__popcountsi2): Ditto. And don't clobber r26.
3392 (__popcountdi2): Ditto. And don't clobber r27.
3393 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
3394 (parityhi2): New expand.
3395 (paritysi2): New expand.
3396 (popcounthi2): New expand.
3397 (popcountsi2): New expand.
3398 (clzhi2): New expand.
3399 (clzsi2): New expand.
3400 (ctzhi2): New expand.
3401 (ctzsi2): New expand.
3402 (ffshi2): New expand.
3403 (ffssi2): New expand.
3404 (copysignsf3): New insn.
3405 (bswapsi2): New expand.
3406 (*parityhi2.libgcc): New insn.
3407 (*parityqihi2.libgcc): New insn.
3408 (*paritysihi2.libgcc): New insn.
3409 (*popcounthi2.libgcc): New insn.
3410 (*popcountsi2.libgcc): New insn.
3411 (*popcountqi2.libgcc): New insn.
3412 (*popcountqihi2.libgcc): New insn-and-split.
3413 (*clzhi2.libgcc): New insn.
3414 (*clzsihi2.libgcc): New insn.
3415 (*ctzhi2.libgcc): New insn.
3416 (*ctzsihi2.libgcc): New insn.
3417 (*ffshi2.libgcc): New insn.
3418 (*ffssihi2.libgcc): New insn.
3419 (*bswapsi2.libgcc): New insn.
3421 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
3423 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
3424 the mode of symbolic_opreand RTXes.
3426 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
3428 * config/i386/predicates.md (x86_64_movabs_operand): Return false
3429 for pic_32bit_operand RTXes.
3430 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
3433 2011-07-27 Kai Tietz <ktietz@redhat.com>
3435 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
3437 (ix86_handle_abi_attribute): Allow function attributes
3438 ms_abi/sysv_abi in 32-bit mode, too.
3439 * doc/extend.texi: Adjust attribute documentation.
3441 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
3442 expression handling.
3443 (and_var_with_comparison_1): Likewise.
3445 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
3447 * params.h (ALLOW_STORE_DATA_RACES): New.
3448 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
3449 * Makefile.in (expr.o): Depend on PARAMS_H.
3450 * machmode.h (get_best_mode): Add argument.
3451 * fold-const.c (optimize_bit_field_compare): Add argument to
3453 (fold_truthop): Same.
3454 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
3455 * expr.c (emit_group_store): Same.
3456 (copy_blkmode_from_reg): Same.
3457 (write_complex_part): Same.
3458 (optimize_bitfield_assignment_op): Add argument.
3459 Add argument to get_best_mode.
3460 (get_bit_range): New.
3461 (expand_assignment): Calculate maxbits and pass it down accordingly.
3462 (store_field): New argument.
3463 (expand_expr_real_2): New argument to store_field. Include params.h.
3464 * expr.h (store_bit_field): New argument.
3465 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
3466 into account maxbits.
3467 * calls.c (store_unaligned_arguments_into_pseudos): New argument
3469 * expmed.c (store_bit_field_1): New argument. Use it.
3470 (store_bit_field): Same.
3471 (store_fixed_bit_field): Same.
3472 (store_split_bit_field): Same.
3473 (extract_bit_field_1): Pass new argument to get_best_mode.
3474 (extract_bit_field): Same.
3475 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
3476 * doc/invoke.texi: Document parameter allow-store-data-races.
3478 2011-07-27 Jakub Jelinek <jakub@redhat.com>
3480 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
3482 2011-07-27 Kai Tietz <ktietz@redhat.com>
3484 * tree-vrp.c (extract_range_from_binary_expr): Remove
3485 TRUTH-binary cases and add new bitwise-cases.
3486 (extract_range_from_assignment): Likewise.
3487 (register_edge_assert_for_1): Likeiwise.
3488 (register_edge_assert_for): Likewise.
3489 (simplify_truth_ops_using_ranges): Likewise.
3490 (simplify_stmt_using_ranges): Likewise.
3492 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
3495 * config/i386/i386.c (ix86_delegitimize_address): Call
3496 simplify_gen_subreg for PIC with mode of x only if modes of
3497 x and orig_x are different.
3499 2011-07-26 Jakub Jelinek <jakub@redhat.com>
3501 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
3502 to GC allocated copy of the string.
3503 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
3504 before .debug_line, not after it.
3506 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3509 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
3510 evolution_function_is_affine_p on CHREC_RIGHT.
3512 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3514 * tree-data-ref.c (max_stmt_executions_tree): Do not call
3515 lang_hooks.types.type_for_size.
3517 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3520 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
3521 loops using wrapping semantics.
3523 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3526 * tree-scalar-evolution.c (instantiate_scev_r): Return
3527 chrec_dont_know for ADDR_EXPR.
3529 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
3530 H.J. Lu <hongjiu.lu@intel.com>
3534 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
3535 if legitimize_tls_address returned operand in wrong mode. Allow
3536 SImode and DImode symbolic operand for PIC. Call convert_to_mode
3537 if legitimize_pic_address returned operand in wrong mode.
3539 2011-07-26 Martin Jambor <mjambor@suse.cz>
3541 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
3542 return false for invariants.
3544 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
3546 * config/i386/i386.md (add->lea splitter): Implement using SWI
3547 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
3548 (add->lea zext splitter): Change operand 2 predicate to
3549 x86_64_nonmemory_operand.
3551 2011-07-26 Richard Guenther <rguenther@suse.de>
3553 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
3554 frequency makes everything hot.
3556 2011-07-26 Richard Guenther <rguenther@suse.de>
3558 PR tree-optimization/49840
3559 * tree-vrp.c (range_fits_type_p): Properly handle full
3560 double-int precision.
3562 2011-07-26 Martin Jambor <mjambor@suse.cz>
3565 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
3567 (update_specialized_profile): Likewise.
3569 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
3570 H.J. Lu <hongjiu.lu@intel.com>
3575 * config/i386/i386.md (i): Change SImode attribute to "e".
3576 (g): Change SImode attribute to "rme".
3577 (di): Change SImode attribute to "nF".
3578 (general_operand): Change SImode attribute to x86_64_general_operand.
3579 (general_szext_operand): Change SImode attribute to
3580 x86_64_szext_general_operand.
3581 (immediate_operand): Change SImode attribute to
3582 x86_64_immediate_operand.
3583 (nonmemory_operand): Change SImode attribute to
3584 x86_64_nonmemory_operand.
3585 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
3586 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
3587 (*lea_1): Use SWI48 mode iterator.
3588 (*lea_1_zext): New insn pattern.
3589 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
3591 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
3592 Update operand constraints.
3593 (addsi_1_zext): Ditto.
3594 (*add<mode>2): Ditto.
3595 (*addsi_3_zext): Ditto.
3596 (*subsi_1_zext): Ditto.
3597 (*subsi_2_zext): Ditto.
3598 (*subsi_3_zext): Ditto.
3599 (*addsi3_carry_zext): Ditto.
3600 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
3601 (*mulsi3_1_zext): Ditto.
3603 (*andsi_1_zext): Ditto.
3604 (*andsi_2_zext): Ditto.
3605 (*<any_or:code>si_1_zext): Ditto.
3606 (*<any_or:code>si_2_zext): Ditto.
3607 (*test<mode>_1): Use <general_operand> predicate for operand 1.
3608 (*and<mode>_2): Ditto.
3609 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
3610 (add->lea splitter): Check operand modes in insn constraint. Extend
3611 operands less than SImode wide to SImode.
3612 (add->lea zext splitter): Do not extend input operands to DImode.
3613 (*lea_general_1): Handle only QImode and HImode operands.
3614 (*lea_general_2): Ditto.
3615 (*lea_general_3): Ditto.
3616 (*lea_general_1_zext): Remove.
3617 (*lea_general_2_zext): Ditto.
3618 (*lea_general_3_zext): Ditto.
3619 (*lea_general_4): Check operand modes in insn constraint. Extend
3620 operands less than SImode wide to SImode.
3621 (ashift->lea splitter): Ditto.
3622 * config/i386/i386.c (ix86_print_operand_address): Print address
3623 registers with 'q' modifier on 64bit targets.
3624 * config/i386/predicates.md (pic_32bit_opreand): Define as special
3625 predicate. Reject non-SI and non-DI modes.
3627 2011-07-25 Andrew Pinski <apinski@cavium.com>
3630 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
3631 TREE_THIS_NOTRAP into the inner most MEM_REF.
3632 Always copy TREE_THIS_VOLATILE.
3633 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
3634 arguments are not volatile references.
3636 2011-07-25 Richard Henderson <rth@redhat.com>
3638 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
3639 * final.c (final_scan_insn): Don't test for it.
3640 (rest_of_clean_state): Likewise.
3642 2011-07-25 Richard Henderson <rth@redhat.com>
3645 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
3646 (emit_frame_save): Likewise.
3647 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
3648 insn onto a dummy blockage insn after the join label.
3650 2011-07-25 Richard Henderson <rth@redhat.com>
3652 * dwarf2cfi.c (dw_trace_info): Add ID member.
3653 (get_trace_index): Remove. Change users to use ID member.
3654 (before_next_cfi_note): New.
3655 (connect_traces): Remove unreachable traces before the main loop.
3656 Look across one trace and generate remember/restore_state if needed.
3658 2011-07-25 Richard Henderson <rth@redhat.com>
3660 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
3662 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
3664 * genattr.c (write_upcase, gen_attr <enum definition writing>):
3666 * genattr-common.c ... here.
3667 (main): Call gen_attr.
3668 * optc-gen.awk: Make generated program include insn-attr-common.h .
3669 * Makefile.in (oprions.o): Depend on insn-attr-common.h
3671 2011-07-25 Anatoly Sokolov <aesok@post.ru>
3673 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3674 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
3675 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
3676 m32c_print_operand, m32c_print_operand_address): Remove.
3677 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
3678 Change return type to bool. Change argument type to bool.
3679 (m32c_print_operand, m32c_print_operand_address): Make static.
3680 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
3681 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3683 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3685 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
3686 attributes): Document mmap.
3688 2011-07-25 Anatoly Sokolov <aesok@post.ru>
3690 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3691 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
3692 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
3693 mmix_print_operand, mmix_print_operand_address): Remove.
3694 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
3695 Change return type to bool. Change argument type to bool.
3696 (mmix_print_operand, mmix_print_operand_address): Make static.
3697 (mmix_intval, mmix_output_condition): Change 'x' argument type
3699 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
3700 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3702 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
3705 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
3706 shift counter for x << x and x >> x shifts.
3708 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3711 * config.gcc: Reject *-*-solaris2 configuration.
3713 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
3715 PR tree-optimization/49809
3716 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
3717 gimple_get_lhs instead of gimple_assign_lhs.
3719 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3721 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
3723 2011-07-25 Richard Guenther <rguenther@suse.de>
3725 PR tree-optimization/49822
3726 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
3727 more. Make sure to preserve stmts with side-effects. Properly
3728 handle virtual defs, follow a longer def chain.
3730 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
3735 * Makefile.in: Do not flatten c-family directory when installing
3738 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
3740 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
3741 original nodes if we are dealing with virtual clones.
3743 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
3745 * common/config/c6x/c6x-common.c: New file.
3747 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
3749 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
3751 2011-07-25 Richard Guenther <rguenther@suse.de>
3753 PR tree-optimization/49715
3754 * tree-vrp.c: Include expr.h and optabs.h.
3755 (range_fits_type_): New function.
3756 (simplify_float_conversion_using_ranges): Likewise.
3757 (simplify_stmt_using_ranges): Call it.
3758 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
3759 * optabs.c (can_float_p): Export.
3760 * optabs.h (can_float_p): Declare.
3762 2011-07-25 Richard Guenther <rguenther@suse.de>
3764 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
3765 (get_value_range): For out-of-range SSA names or names created
3766 after propagation return a read-only varying range.
3767 (dump_all_value_ranges): Adjust.
3768 (vrp_initialize): Likewise.
3769 (vrp_finalize): Likewise.
3771 2011-07-24 Richard Henderson <rth@redhat.com>
3774 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
3777 2011-07-24 Richard Henderson <rth@redhat.com>
3780 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
3781 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
3783 2011-07-24 Richard Henderson <rth@redhat.com>
3786 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
3788 2011-07-24 Richard Henderson <rth@redhat.com>
3790 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
3791 Zero args_size for abnormal edges. Adjust all callers.
3793 2011-07-24 Richard Henderson <rth@redhat.com>
3796 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
3798 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
3801 * collect2.c (demangle_flag): Removed.
3803 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
3805 * configure.ac (demangler_in_ld): Default to yes.
3806 * configure: Regenerated.
3807 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
3808 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
3809 --no-demangle options straight through to ld. When
3810 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
3811 way that has the intended effect on Windows.
3813 2011-07-23 Richard Henderson <rth@redhat.com>
3815 * dwarf2cfi.c: Include basic-block.h.
3816 (dw_label_info): Remove.
3817 (trace_work_list, trace_index): New.
3818 (remember_row, emit_cfa_remember): Remove.
3819 (dw_trace_info_hash, dw_trace_info_eq): New.
3820 (get_trace_index, get_trace_info): New.
3821 (save_point_p): New.
3822 (free_cfi_row): Remove.
3823 (add_cfi): Do not emit DW_CFA_remember_state.
3824 (cfa_row_equal_p): New.
3825 (barrier_args_size): Remove.
3826 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
3827 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
3828 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
3829 (dwarf2out_cfi_begin_epilogue): Remove.
3830 (dwarf2out_frame_debug_restore_state): Remove.
3831 (connect_traces, create_pseudo_cfg): New.
3832 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
3833 * Makefile.in (dwarf2cfi.o): Update.
3835 2011-07-23 Richard Henderson <rth@redhat.com>
3837 * dwarf2cfi.c (dw_trace_info): New.
3838 (dw_label_info): New.
3839 (cie_return_save): New.
3841 (queued_args_size): Rename from args_size. Update all users.
3842 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
3843 (def_cfa_1): Use cur_trace instead of cfa_*.
3844 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
3845 (clobbers_queued_reg_save, reg_saved_in): Likewise.
3846 (dwarf2out_frame_debug_expr): Likewise.
3847 (create_cie_data): Split out from ...
3848 (execute_dwarf2_frame): ... here. Initialize cur_trace.
3850 2011-07-23 Richard Henderson <rth@redhat.com>
3852 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
3853 Update all users to match.
3854 (execute_dwarf2_frame): Free reg_saved_in_data.
3856 2011-07-23 Richard Henderson <rth@redhat.com>
3858 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
3859 (queued_reg_saves): Don't GTY. Change to a VEC.
3860 (queue_reg_save): Update to match.
3861 (dwarf2out_flush_queued_reg_saves): Likewise.
3862 (clobbers_queued_reg_save): Likewise.
3863 (reg_saved_in): Likewise.
3864 (execute_dwarf2_frame): Free queued_reg_saves.
3866 2011-07-23 Richard Henderson <rth@redhat.com>
3868 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
3870 2011-07-23 Richard Henderson <rth@redhat.com>
3872 * dwarf2cfi.c (add_cfi_args_size): Split out from...
3873 (dwarf2out_args_size): ... here.
3874 (add_cfi_restore): Split out from ...
3875 (dwarf2out_frame_debug_cfa_restore): ... here.
3876 (def_cfa_0): Split out from ...
3877 (def_cfa_1): ... here.
3878 (cfi_oprnd_equal_p, cfi_equal_p): New.
3879 (change_cfi_row): New.
3880 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
3881 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
3882 (output_cfis): Remove.
3883 * dwarf2out.c (output_fde): Simplify output_cfi loop.
3884 (dwarf2out_switch_text_section): Don't call output_cfis.
3885 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
3886 * dwarf2out.h: Update decls.
3887 (enum dw_val_class): Add dw_val_class_none.
3889 2011-07-23 Richard Henderson <rth@redhat.com>
3891 * dwarf2cfi.c (update_row_reg_save): New.
3892 (dwarf2out_frame_debug_cfa_expression): Use it.
3893 (dwarf2out_frame_debug_cfa_restore): Likewise.
3894 (reg_save): Likewise. Do not emit DW_CFA_same_value.
3896 2011-07-23 Richard Henderson <rth@redhat.com>
3898 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
3900 2011-07-23 Richard Henderson <rth@redhat.com>
3902 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
3904 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
3905 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
3906 (cur_row, remember_row): New.
3907 (def_cfa_1): Use cur_row instead of the old_* variables.
3908 (dwarf2out_frame_debug_restore_state): Similarly.
3909 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
3910 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
3911 (dwarf2out_frame_debug_adjust_cfa): Likewise.
3912 (dwarf2out_frame_debug_cfa_offset): Likewise.
3913 (dwarf2out_frame_debug_expr): Likewise.
3914 (execute_dwarf2_frame): Set up cur_row.
3915 * dwarf2out.h (struct cfa_loc): Mark for GTY.
3917 2011-07-23 Richard Henderson <rth@redhat.com>
3919 * basic-block.h (EDGE_PRESERVE): New.
3920 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
3921 * bb-reorder.c: Include except.h.
3922 (fix_up_crossing_landing_pad): New.
3923 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
3924 landing pads in the right partition. Duplicate as necessary.
3925 (partition_hot_cold_basic_blocks): Fix up DF info after
3926 duplicating landing pads.
3927 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
3928 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
3929 is set properly. Validate that EH edges are not CROSSING.
3930 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
3931 (dw2_build_landing_pads): ... here.
3932 (convert_to_eh_region_ranges): Remove code to fixup crossing
3934 * except.h (expand_dw2_landing_pad_for_region): Declare.
3935 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
3937 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
3940 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
3942 2011-07-22 Jason Merrill <jason@redhat.com>
3944 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
3946 2011-07-22 Richard Henderson <rth@redhat.com>
3948 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
3950 2011-07-22 Richard Henderson <rth@redhat.com>
3952 * jump.c (maybe_propagate_label_ref): Split out of...
3953 (mark_all_labels): ... here. Do not attempt label_ref
3954 propagation while in cfglayout mode.
3956 2011-07-22 Jakub Jelinek <jakub@redhat.com>
3958 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
3959 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
3960 (dwarf_attr_name): Handle DW_AT_GNU_macros.
3961 (dwarf2out_define): If the vector is empty and
3962 lineno is 0, emit a dummy entry first.
3963 (dwarf2out_undef): Likewise. Remove redundant semicolon.
3964 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
3965 optimize_macinfo_range): New functions.
3966 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
3967 mergeable, optimize longer strings using
3968 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
3969 optimize longer sequences of define/undef ops from headers
3970 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
3971 emit a section headers.
3972 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
3973 and macinfo_section_label to DEBUG_MACRO_SECTION
3974 resp. DEBUG_MACRO_SECTION_LABEL.
3975 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
3976 instead of DW_AT_macro_info.
3979 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
3981 * dwarf2out.c: Include opts.h.
3982 (dchar_p): New typedef. Define heap VEC for it.
3983 (producer_string): New variable.
3984 (gen_producer_string): New function.
3985 (gen_compile_unit_die): Use it.
3986 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
3987 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
3988 * doc/invoke.texi: Document -grecord-gcc-switches and
3989 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
3990 to -frecord-gcc-switches description.
3992 2011-07-22 Jason Merrill <jason@redhat.com>
3995 * c-decl.c (c_linkage_bindings): Define.
3997 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
4000 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
4002 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
4004 * config/i386/i386.c (ix86_option_override_internal): Disallow
4006 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
4007 only for TARGET_LP64.
4008 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
4010 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4012 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
4013 avoid warnings when GCC is built with a C++ compiler.
4015 2011-07-22 Martin Jambor <mjambor@suse.cz>
4018 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
4019 if decl node is in another partition, call cgraph_get_node only once.
4021 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
4023 * config.gcc (x86_64-*-linux*): Set
4024 default_gnu_indirect_function to yes.
4026 2011-07-22 Richard Guenther <rguenther@suse.de>
4028 PR tree-optimization/45819
4029 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
4030 preserve volatile and notrap flags.
4032 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4033 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4036 * configure.ac: Test AM_ICONV with CXX.
4037 * configure: Regenerate.
4038 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
4040 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4043 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
4044 (set_cloog_options): Use it.
4046 2011-07-22 Jakub Jelinek <jakub@redhat.com>
4049 * gcc.c (main): Call stack_limit_increase (64MB).
4050 * toplev.c (toplev_main): Likewise.
4052 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
4054 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
4055 instead of force_reg.
4057 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
4059 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
4060 needed and use force_reg after convert.
4061 (ix86_expand_call): Likewise.
4062 (ix86_expand_special_args_builtin): Likewise.
4063 (ix86_expand_builtin): Likewise.
4065 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4069 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
4070 in parameter. Initialize v1 and v2 based on the values returned
4071 by clast_name_to_lb_ub.
4072 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
4074 (type_for_clast_bin): Same.
4075 (type_for_clast_expr): Same.
4076 (type_for_clast_eq): Update calls to type_for_clast_expr.
4077 (type_for_clast_for): Same.
4078 (build_iv_mapping): Same.
4079 * graphite-ppl.h (value_min): New.
4081 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4083 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
4084 types whenever possible.
4086 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4088 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
4090 (new_clast_name_index): Add lb and ub parameters.
4091 (free_clast_name_index): New.
4092 (clast_name_to_lb_ub): New.
4093 (save_clast_name_index): Add lb and ub parameters.
4094 (compute_bounds_for_param): New.
4095 (type_for_level): Removed.
4096 (type_for_clast_for): Removed level parameter. Do not call
4098 (graphite_create_new_loop): Store the lb and ub for the clast_name
4099 of the iterator of the loop that has been generated.
4100 (graphite_create_new_loop_guard): Remove parameter level.
4101 (create_params_index): Store the lb and ub of each parameter.
4102 (gloog): Use free_clast_name_index. Pass to create_params_index
4105 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4107 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
4108 (max_precision_type): Inline max_signed_precision_type.
4109 (type_for_clast_red): Use max_precision_type.
4110 (type_for_clast_bin): Same.
4111 (type_for_clast_for): Same.
4113 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4115 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
4117 (gcc_type_for_value): Renamed type_for_value.
4118 (gcc_type_for_clast_term): Renamed type_for_clast_term.
4119 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
4120 (gcc_type_for_clast_red): Renamed type_for_clast_red.
4121 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
4122 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
4123 (graphite_translate_clast_equation): Update calls.
4124 (compute_type_for_level): Renamed type_for_level.
4125 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
4126 (build_iv_mapping): Update calls.
4127 (graphite_create_new_loop_guard): Same.
4129 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4131 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
4134 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4136 * graphite-clast-to-gimple.c (struct ivs_params): New.
4137 (clast_name_to_gcc): Use ivs_params to pass around parameters.
4138 (clast_to_gcc_expression): Same.
4139 (clast_to_gcc_expression_red): Same.
4140 (gcc_type_for_clast_term): Same.
4141 (gcc_type_for_clast_expr): Same.
4142 (gcc_type_for_clast_red): Same.
4143 (gcc_type_for_clast_bin): Same.
4144 (gcc_type_for_clast_eq): Same.
4145 (graphite_translate_clast_equation): Same.
4146 (graphite_create_guard_cond_expr): Same.
4147 (graphite_create_new_guard): Same.
4148 (graphite_create_new_loop): Same.
4149 (build_iv_mapping): Same.
4150 (translate_clast_user): Same.
4151 (graphite_create_new_loop_guard): Same.
4152 (translate_clast): Same.
4153 (translate_clast_for_loop): Same.
4154 (translate_clast_for): Same.
4155 (translate_clast_guard): Same.
4156 (initialize_cloog_names): Fix typo.
4157 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
4159 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4161 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
4162 (new_clast_name_index): Add level parameter.
4163 (clast_name_to_level): New.
4164 (save_clast_name_index): Add level parameter.
4165 (newivs_to_depth_to_newiv): Removed.
4166 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
4167 (graphite_create_new_loop): Add level parameter. Pass level to
4168 save_clast_name_index.
4169 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
4170 (create_params_index): Pass level to save_clast_name_index.
4172 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4174 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
4175 recompute type, lb, and ub. Get them from...
4176 (graphite_create_new_loop_guard): ...here. Pass in parameter
4177 pointers to type, lb, and ub.
4178 (translate_clast_for_loop): Update function calls.
4179 (translate_clast_for): Same.
4181 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4183 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
4185 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
4186 (gcc_type_for_iv_of_clast_loop): Update use of level.
4187 (gloog): Start counting nesting level from 0.
4188 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
4189 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
4190 psct_dynamic_dim on level.
4192 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
4194 * config/i386/i386.c (ix86_legitimize_address): Convert to
4197 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
4199 * config/i386/i386.c (function_value_64): Always return pointers
4201 (ix86_promote_function_mode): New.
4202 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
4204 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4206 PR tree-optimization/49749
4207 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
4208 remove no-longer-used maxrank variable.
4210 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
4212 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
4214 2011-07-21 Jason Merrill <jason@redhat.com>
4216 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
4217 * recog.h (struct insn_data_d): Check it instead of
4218 HAVE_DESIGNATED_INITIALIZERS.
4219 * genoutput.c (output_insn_data): Likewise.
4221 2011-07-21 Richard Guenther <rguenther@suse.de>
4223 PR tree-optimization/49770
4224 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
4225 valueized any operand. Renamed from ...
4226 (valueize_refs): ... this. New wrapper around valueize_refs_1.
4227 (valueize_shared_reference_ops_from_ref): Return whether we
4228 valueized any operand.
4229 (vn_reference_lookup): Only when we valueized any operand
4230 use the valueized reference for alias analysis. Do not preserve
4231 the original reference tree in this case.
4233 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
4235 * config/i386/i386.c (ix86_decompose_address): Reject all but
4236 register operands and subregs of DImode hard registers in index.
4238 2011-07-21 Kai Tietz <ktietz@redhat.com>
4240 * fold-const.c (fold_unary_loc): Preserve indirect
4241 comparison cast to none-boolean type.
4242 * tree-ssa.c (useless_type_conversion_p): Preserve cast
4243 from/to boolean-type.
4244 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
4245 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
4246 * tree-cfg.c (verify_gimple_comparison): Check result
4247 type of comparison expression.
4248 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
4249 of condition result and disallow type-cast sinking into comparison.
4251 2011-07-21 Richard Guenther <rguenther@suse.de>
4253 * tree-ssa-forwprop.c (combine_conversions): Return whether
4254 we have to run cfg-cleanup. Properly remove dead stmts.
4255 (ssa_forward_propagate_and_combine): Adjust.
4257 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
4259 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
4261 2011-07-21 Kai Tietz <ktietz@redhat.com>
4263 * tree-ssa-propagate.c (substitute_and_fold): Use
4264 do_dce flag to deside, if BB's statements are scanned
4265 in last to first, or first to last order.
4267 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
4269 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
4271 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
4272 Uros Bizjak <ubizjak@gmail.com>
4273 Richard Henderson <rth@redhat.com>
4275 * config/i386/constraints.md (w): New.
4277 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
4278 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
4280 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
4281 instead of TARGET_64BIT.
4283 * config/i386/i386.md (indirect_jump): Replace
4284 nonimmediate_operand with indirect_branch_operand.
4285 (*indirect_jump): Likewise. Replace constraint "m" with "w".
4286 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
4287 Convert operand 0 to Pmode for x32 if not PIC.
4288 (*tablejump_1): Replace nonimmediate_operand with
4289 indirect_branch_operand. Replace constraint "m" with "w".
4290 (*call_vzeroupper): Replace constraint "m" with "w".
4292 (*call_rex64_ms_sysv_vzeroupper): Likewise.
4293 (*call_rex64_ms_sysv): Likewise.
4294 (*call_value_vzeroupper): Likewise.
4295 (*call_value): Likewise.
4296 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
4297 (*call_value_rex64_ms_sysv): Likewise.
4298 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
4300 * config/i386/predicates.md (indirect_branch_operand): New.
4301 (call_insn_operand): Support x32.
4303 2011-07-20 Michael Eager <eager@eagercon.com>
4305 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
4307 2011-07-20 Richard Henderson <rth@redhat.com>
4309 * cfg.c (dump_bb_info): Dump basic_block->flags.
4310 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
4312 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
4314 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
4315 of DImode hard registers in index.
4316 (ix86_legitimate_address_p): Allow subregs of base and index to span
4317 more than a word. Assert that subregs of base and index satisfy
4318 register_no_elim_operand predicates. Reject addresses where
4319 base and index have different modes.
4321 2011-07-20 Robert Millan <rmh@gnu.org>
4323 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
4325 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4327 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
4328 removing now-unnecessary assignment.
4330 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4332 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
4333 memory address space to the type's address space.
4335 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
4339 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
4340 and expand appropriately if there is a CONST_INT in operand2.
4341 (usmulqihi3): New insn.
4342 (*sumulqihi3): New insn.
4343 (*osmulqihi3): New insn.
4344 (*oumulqihi3): New insn.
4345 (*muluqihi3.uconst): New insn_and_split.
4346 (*muluqihi3.sconst): New insn_and_split.
4347 (*mulsqihi3.sconst): New insn_and_split.
4348 (*mulsqihi3.uconst): New insn_and_split.
4349 (*mulsqihi3.oconst): New insn_and_split.
4350 (*ashifthi3.signx.const): New insn_and_split.
4351 (*ashifthi3.signx.const7): New insn_and_split.
4352 (*ashifthi3.zerox.const): New insn_and_split.
4353 (mulsqihi3): New insn.
4354 (muluqihi3): New insn.
4355 (muloqihi3): New insn.
4356 * config/avr/predicates.md (const_2_to_7_operand): New.
4357 (const_2_to_6_operand): New.
4362 (register_or_s9_operand): New.
4364 2011-07-20 Kai Tietz <ktietz@redhat.com>
4366 * builtins.c (fold_builtin_expect): See through the cast
4367 from truthvalue_type_node to long.
4369 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
4371 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
4372 where we can use them from the standard and altivec instruction
4373 sets, instead of always using the 3 operand VSX forms that require
4374 the destination to overlap one of the inputs.
4379 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
4381 (fmsdf4_fpr): Ditto.
4382 (nfmadf4_fpr): Ditto.
4383 (nfmsdf4_fpr): Ditto.
4385 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
4387 * genrecog.c (make_insn_sequence): Correct position numbering
4388 when filtering out match_scratch and match_dup.
4390 2011-07-20 Richard Guenther <rguenther@suse.de>
4392 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
4393 against already removed statements.
4394 (forward_propagate_into_comparison): Remove dead defining stmts.
4395 (forward_propagate_into_gimple_cond): Likewise.
4396 (forward_propagate_into_cond): Simplify.
4397 (ssa_forward_propagate_and_combine): Handle changed cfg from
4398 forward_propagate_into_comparison.
4399 * tree-ssa-phiopt.c (conditional_replacement): Use proper
4400 locations for newly built statements.
4402 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
4404 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
4406 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4408 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
4409 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
4411 2011-07-20 Richard Guenther <rguenther@suse.de>
4414 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
4415 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
4416 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
4418 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
4420 * config/frv/frv.c (frv_register_move_cost): Define explicitly
4421 costs for subclasses of GR_REGS.
4423 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
4426 * config/i386/predicates.md (no_seg_addres_operand): No more special.
4427 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
4428 of DImode hard registers in base.
4429 (ix86_legitimate_address_p): Allow SImode and DImode base and index
4432 2011-07-20 Richard Guenther <rguenther@suse.de>
4434 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
4435 (unify_nodes): Deal with that.
4436 (solve_graph): Likewise.
4438 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
4440 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
4441 canonicalize left operand from ZERO_EXTEND to AND.
4443 2011-07-20 Anatoly Sokolov <aesok@post.ru>
4445 * target.def (class_max_nregs): New hook.
4446 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
4447 * doc/tm.texi: Regenerate.
4448 * targhooks.c (default_class_max_nregs): New function.
4449 * targhooks.h (default_class_max_nregs): Declare.
4450 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
4451 x_ira_reg_class_min_nregs arrays to unsigned char.
4452 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
4453 hook instead of CLASS_MAX_NREGS macro.
4454 * reginfo.c (restore_register_info): Ditto.
4455 * ira-conflicts.c (process_regs_for_copy): Use
4456 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
4457 Change type rclass and aclass vars to reg_class_t.
4458 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
4459 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
4461 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
4462 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
4464 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
4465 * config/i386/i386.c (ix86_class_max_nregs): New function.
4466 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
4467 instead of CLASS_MAX_NREGS macro.
4468 (TARGET_CLASS_MAX_NREGS): Define.
4469 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
4470 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
4471 * config/avr/avr.c (class_max_nregs): Remove function.
4472 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
4473 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
4474 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
4475 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
4476 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
4477 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
4478 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
4479 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
4480 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
4481 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
4482 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
4483 * config/score/score.h (CLASS_MAX_NREGS): Remove.
4484 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
4485 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
4486 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
4488 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
4490 * cif-code.def (OVERWRITABLE): Fix typo and move around.
4491 (TARGET_OPTIMIZATION_MISMATCH): Delete.
4492 (EH_PERSONALITY): Fix typo.
4493 (NON_CALL_EXCEPTIONS): Fix message.
4494 (OPTIMIZATION_MISMATCH): Adjust message.
4495 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
4497 2011-07-19 Ian Lance Taylor <iant@google.com>
4499 * doc/install.texi (Configuration): Document
4500 --enable-build-poststage1-with-cxx.
4502 2011-07-19 Robert Millan <rmh@gnu.org>
4504 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
4505 (GLIBC_DYNAMIC_LINKER): Remove.
4507 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
4508 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
4509 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
4510 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
4511 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
4512 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
4514 * config/mips/linux.h: Remove everything except for ...
4515 (GLIBC_DYNAMIC_LINKER): ... this macro.
4517 * config/mips/linux64.h: Remove everything except for ...
4518 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
4519 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
4520 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
4521 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
4522 (GNU_USER_LINK_EMULATIONN32): New macros.
4524 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
4525 Use the new headers.
4527 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4529 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
4530 Add offset_known_p and size_known_p fields.
4531 (MEM_OFFSET_KNOWN_P): Update accordingly.
4532 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
4533 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
4534 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
4535 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
4536 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
4537 (init_emit_regs): Likewise.
4539 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4541 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
4542 (MEM_OFFSET): Change from returning an rtx to returning a
4544 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
4545 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
4546 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
4547 (clear_mem_offset): Declare.
4548 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
4549 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
4550 MEM_OFFSET to get a HOST_WIDE_INT offset.
4551 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
4552 (adjust_offset_for_component_ref): Take a bool "known_p"
4553 parameter and a HOST_WIDE_INT "offset" parameter.
4554 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
4555 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
4556 than an rtx. Use clear_mem_offset to clear the offset.
4557 * cfgcleanup.c (merge_memattrs): Likewise.
4558 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
4559 * function.c (assign_parm_find_stack_rtl): Likewise.
4560 (assign_parm_setup_stack): Likewise.
4561 * print-rtl.c (print_rtx): Likewise.
4562 * reload.c (find_reloads_subreg_address): Likewise.
4563 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4564 * var-tracking.c (INT_MEM_OFFSET): Likewise.
4565 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
4566 (get_mem_align_offset): Likewise.
4567 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
4568 (clear_mem_offset): New function.
4569 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
4570 offset rather than an rtx. Assume both the expressio and offset
4572 (r10k_needs_protection_p_1): Update accordingly, checking the
4573 expression and offset availability here instead.
4575 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4577 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
4578 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
4579 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
4580 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
4581 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
4582 (clear_mem_size): Declare.
4583 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
4584 (clear_mem_size): New function.
4585 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
4586 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
4587 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
4588 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
4590 (nonoverlapping_memrefs_p): Likewise.
4591 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
4592 (expand_builtin_init_trampoline): Likewise.
4593 * calls.c (compute_argument_addresses): Likewise.
4594 * cfgcleanup.c (merge_memattrs): Likewise.
4595 * dce.c (find_call_stack_args): Likewise.
4596 * dse.c (record_store, scan_insn): Likewise.
4597 * dwarf2out.c (dw_sra_loc_expr): Likewise.
4598 * expr.c (emit_block_move_hints): Likewise.
4599 * function.c (assign_parm_find_stack_rtl): Likewise.
4600 * print-rtl.c (print_rtx): Likewise.
4601 * reload.c (find_reloads_subreg_address): Likewise.
4602 * rtlanal.c (may_trap_p_1): Likewise.
4603 * var-tracking.c (track_expr_p): Likewise.
4604 * varasm.c (assemble_trampoline_template): Likewise.
4605 * config/arm/arm.c (arm_print_operand): Likewise.
4606 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
4607 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
4608 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
4609 (expand_constant_setmem_prologue): Likewise.
4610 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
4611 * config/rs6000/rs6000.c (expand_block_move): Likewise.
4612 (adjacent_mem_locations): Likewise.
4613 * config/s390/s390.c (s390_expand_setmem): Likewise.
4614 (s390_expand_insv): Likewise.
4615 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
4616 (*extendqi<mode>2_short_displ): Likewise.
4617 * config/sh/sh.c (expand_block_move): Likewise.
4618 * config/sh/sh.md (extv, extzv): Likewise.
4620 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4622 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
4623 (mem_attrs_htab_eq): ...here.
4624 (find_mem_attrs): Replace with...
4625 (set_mem_attrs): ...this function. Take a mem_attrs structure
4626 rather than individual fields.
4627 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
4628 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
4629 (set_mem_size, change_address, adjust_address_1, offset_address)
4630 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
4633 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4635 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
4636 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
4637 Provide a dummy definition of MEM_ADDR_SPACE for generators.
4638 (target_rtl): Add x_mode_mem_attrs.
4639 (mode_mem_attrs): New macro.
4640 (get_mem_attrs): New function.
4641 * emit-rtl.c (get_mem_attrs): Rename to...
4642 (find_mem_attrs): ...this.
4643 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
4644 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
4645 (set_mem_size, change_address, adjust_address_1, offset_address)
4646 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
4648 (init_emit_regs): Initialize mode_mem_attrs.
4650 2011-07-19 Richard Guenther <rguenther@suse.de>
4652 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
4653 TRUTH_*_EXPR handling.
4654 * tree-ssa-operands.c (get_expr_operands): Likewise.
4655 * tree-ssa-pre.c (fully_constant_expression): Likewise.
4656 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
4658 (is_and_or_or): Likewise.
4659 (is_norm_cond_subset_of): Likewise.
4661 2011-07-19 Richard Guenther <rguenther@suse.de>
4663 * tree.h (fold_build_pointer_plus_loc): New helper function.
4664 (fold_build_pointer_plus_hwi_loc): Likewise.
4665 (fold_build_pointer_plus): Define.
4666 (fold_build_pointer_plus_hwi): Likewise.
4667 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
4668 (fold_builtin_memory_op): Likewise.
4669 (fold_builtin_stpcpy): Likewise.
4670 (fold_builtin_memchr): Likewise.
4671 (fold_builtin_strstr): Likewise.
4672 (fold_builtin_strchr): Likewise.
4673 (fold_builtin_strrchr): Likewise.
4674 (fold_builtin_strpbrk): Likewise.
4675 (fold_builtin_strcat): Likewise.
4676 (expand_builtin_memory_chk): Likewise.
4677 (fold_builtin_memory_chk): Likewise.
4678 * c-typeck.c (build_unary_op): Likewise.
4679 * cgraphunit.c (thunk_adjust): Likewise.
4680 * fold-const.c (build_range_check): Likewise.
4681 (fold_binary_loc): Likewise.
4682 * omp-low.c (extract_omp_for_data): Likewise.
4683 (expand_omp_for_generic): Likewise.
4684 (expand_omp_for_static_nochunk): Likewise.
4685 (expand_omp_for_static_chunk): Likewise.
4686 * tree-affine.c (add_elt_to_tree): Likewise.
4687 * tree-data-ref.c (split_constant_offset_1): Likewise.
4688 * tree-loop-distribution.c (generate_memset_zero): Likewise.
4689 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
4690 * tree-predcom.c (ref_at_iteration): Likewise.
4691 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4692 (add_to_parts): Likewise.
4693 (create_mem_ref): Likewise.
4694 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
4695 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
4696 (number_of_iterations_le): Likewise.
4697 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
4698 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4699 (vect_create_addr_base_for_vector_ref): Likewise.
4700 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
4701 (vect_create_cond_for_alias_checks): Likewise.
4702 * tree-vrp.c (extract_range_from_assert): Likewise.
4703 * config/alpha/alpha.c (alpha_va_start): Likewise.
4704 (alpha_gimplify_va_arg_1): Likewise.
4705 * config/i386/i386.c (ix86_va_start): Likewise.
4706 (ix86_gimplify_va_arg): Likewise.
4707 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
4708 * config/mep/mep.c (mep_expand_va_start): Likewise.
4709 (mep_gimplify_va_arg_expr): Likewise.
4710 * config/mips/mips.c (mips_va_start): Likewise.
4711 (mips_gimplify_va_arg_expr): Likewise.
4712 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
4713 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
4714 (rs6000_gimplify_va_arg): Likewise.
4715 * config/s390/s390.c (s390_va_start): Likewise.
4716 (s390_gimplify_va_arg): Likewise.
4717 * config/sh/sh.c (sh_va_start): Likewise.
4718 (sh_gimplify_va_arg_expr): Likewise.
4719 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
4720 * config/spu/spu.c (spu_va_start): Likewise.
4721 (spu_gimplify_va_arg_expr): Likewise.
4722 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
4724 (xstormy16_gimplify_va_arg_expr): Likewise.
4725 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
4726 (xtensa_gimplify_va_arg_expr): Likewise.
4728 2011-07-19 Richard Guenther <rguenther@suse.de>
4730 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
4731 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
4735 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
4736 result of BIT_*_EXPR to bitfield precision.
4738 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
4740 PR tree-optimization/49742
4741 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
4742 as a potential write.
4744 2011-07-19 Richard Guenther <rguenther@suse.de>
4746 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
4747 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
4748 (forward_propagate_comparison): Simplify, remove obsolete code.
4750 2011-07-19 Richard Guenther <rguenther@suse.de>
4752 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
4753 BIT_XOR_EXPR, same as the RTL expander does.
4754 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
4755 (verify_gimple_assign_unary): Likewise.
4756 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
4757 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
4758 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
4760 2011-07-19 Jakub Jelinek <jakub@redhat.com>
4762 PR tree-optimization/49768
4763 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
4764 if offset is smaller than bitoffset, but offset+size is bigger
4767 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
4769 PR tree-optimization/49771
4770 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
4771 zero step, set segment length to the size of the data-ref's type.
4773 2011-07-18 Martin Jambor <mjambor@suse.cz>
4775 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
4777 (ipcp_values_pool): Declare.
4778 (ipcp_sources_pool): Likewise.
4779 (ipcp_lattice): Changed to forward declaration.
4780 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
4781 cannot_devirtualize.
4782 (ipa_node_params): New fields descriptors, lattices, known_vals,
4783 clone_for_all_contexts and node dead, removed fields params and
4785 (ipa_set_param_count): Removed.
4786 (ipa_get_param_count): Made to work with descriptors vector.
4787 (ipa_get_param): Updated.
4788 (ipa_param_cannot_devirtualize_p): Removed.
4789 (ipa_param_types_vec_empty): Likewise.
4790 (ipa_set_param_used): New function.
4791 (ipa_get_param_used): Updated to use descriptors vector.
4792 (ipa_func_list): Removed.
4793 (ipa_init_func_list): Removed declaration.
4794 (ipa_push_func_to_list_1): Likewise.
4795 (ipa_pop_func_from_list): Likewise.
4796 (ipa_push_func_to_list): Removed.
4797 (ipa_lattice_from_jfunc): Remove declaration.
4798 (ipa_get_jf_pass_through_result): Declare.
4799 (ipa_get_jf_ancestor_result): Likewise.
4800 (ipa_value_from_jfunc): Likewise.
4801 (ipa_get_lattice): Update.
4802 (ipa_lat_is_single_const): New function.
4803 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
4804 (ipa_init_func_list): Likewise.
4805 (ipa_pop_func_from_list): Likewise.
4806 (ipa_get_param_decl_index): Fix coding style.
4807 (count_formal_params): Removed.
4808 (count_formal_params_1): Renamed to count_formal_params.
4809 (ipa_populate_param_decls): Update to use descriptors vector.
4810 (ipa_initialize_node_params): Likewise.
4811 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
4812 (ipa_analyze_params_uses): Likewise.
4813 (ipa_free_node_params_substructures): Likewise and free also lattices
4815 (duplicate_array): Removed.
4816 (ipa_edge_duplication_hook): Add the new edge to the list of edge
4818 (ipa_node_duplication_hook): Update to use new lattices.
4819 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
4820 (ipa_free_all_structures_after_iinln): Likewise.
4821 (ipa_write_node_info): Update to use new lattices.
4822 (ipa_read_node_info): Likewise.
4823 (ipa_get_jf_pass_through_result): New function.
4824 (ipa_get_jf_ancestor_result): Likewise.
4825 (ipa_value_from_jfunc): Likewise.
4826 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
4827 * ipa-cp.c: Reimplemented.
4828 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
4829 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
4830 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
4831 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
4832 * doc/invoke.texi (devirt-type-list-size): Removed description.
4833 (ipa-cp-value-list-size): Added description.
4835 2011-07-18 Richard Henderson <rth@redhat.com>
4837 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
4838 before calling create_basic_block.
4840 2011-07-18 Jakub Jelinek <jakub@redhat.com>
4843 * tree.c (build_common_builtin_nodes): Register
4844 __builtin_return_address, __cyg_profile_func_enter
4845 and __cyg_profile_func_exit.
4847 2011-07-18 Richard Henderson <rth@redhat.com>
4849 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
4850 (add_labels_and_missing_jumps): ... here.
4851 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
4853 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
4856 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
4857 of DImode hard registers in PLUS address chains.
4859 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4862 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
4863 (alpha*-*-freebsd*): Likewise.
4864 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
4865 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
4866 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
4867 crtprec80.o, crtfastmath.o to extra_parts for all targets.
4868 (ia64*-*-elf*): Remove extra_parts.
4869 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
4870 (sparc64-*-linux*): Likewise.
4871 (sparc64-*-freebsd*): Likewise.
4874 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
4875 (ia64*-*-linux*): Likewise.
4876 (mips64*-*-linux*): Likewise.
4877 (mips*-*-linux*): Likewise.
4879 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
4881 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
4883 2011-07-18 Richard Guenther <rguenther@suse.de>
4885 * gimplify.c (gimplify_expr): Use input_location, not saved_location
4886 when building new trees.
4888 2011-07-18 Richard Guenther <rguenther@suse.de>
4890 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
4891 expansion result to bitfield precision if required.
4893 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4895 * config.gcc (i[3456x]86-*-netware*): Remove.
4897 * gthr-nks.h: Remove.
4898 * configure.ac (enable_threads): Remove nks.
4899 * configure: Regenerate.
4901 * config/i386/i386.c (ix86_encode_section_info): Remove netware
4903 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
4904 <netware.h> reference.
4906 * config/i386/netware-libgcc.c,
4907 gcc/config/i386/netware-libgcc.def,
4908 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
4909 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
4910 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
4911 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
4913 * doc/extend.texi (Function Attributes,
4914 callee_pop_aggregate_return): Remove i?86-netware reference.
4915 * doc/install.texi (Configuration, --enable-threads): Remove nks.
4917 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4921 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4923 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
4926 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
4929 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
4931 2011-07-16 Matthias Klose <doko@ubuntu.com>
4933 * doc/install.texi: Document --enable-static-libjava.
4935 2011-07-15 Richard Henderson <rth@redhat.com>
4937 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4938 Replace all three arguments by returning a VEC of edges.
4939 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
4940 pointers and counts.
4941 (fix_edges_for_rarely_executed_code): Merge ...
4942 (rest_of_handle_partition_blocks): ... into...
4943 (partition_hot_cold_basic_blocks): ... here. Return todo items if
4944 any work was performed.
4945 (pass_partition_blocks): Clear todo_flags_finish.
4947 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
4948 Jakub Jelinek <jakub@redhat.com>
4949 Jonathan Wakely <jwakely.gcc@gmail.com>
4952 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
4953 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
4955 2011-07-15 Jason Merrill <jason@redhat.com>
4958 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
4959 rather than --tool_opts.
4961 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
4963 * doc/plugins.texi (Building GCC plugins): gengtype needs its
4964 corresponding gtype.state.
4966 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4969 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
4971 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
4974 * doc/md.texi (Standard Names): Document window_save.
4975 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
4976 expand_debug_expr and expand_debug_source_expr. If the target has
4977 a window_save instruction, adjust the ENTRY_VALUE_EXP.
4978 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
4979 SSA_NAME_VAR is a parameter.
4980 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
4981 * var-tracking.c (parm_reg_t): New type and associated vector type.
4982 (windowed_parm_regs): New variable.
4983 (adjust_insn): If the target has a window_save instruction and this
4984 is the instruction, make its effect on parameter registers explicit.
4985 (next_non_note_insn_var_location): New function.
4986 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
4987 (vt_add_function_parameter): If the target has a window_save insn,
4988 adjust the incoming RTL and record that in windowed_parm_regs.
4989 (vt_finalize): Free windowed_parm_regs.
4991 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
4993 * doc/invoke.texi (C6X Options): New section.
4994 * doc/md.texi (TI C6X family): New section.
4995 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
4997 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
4998 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
4999 Provide C6X definitions.
5000 * config/c6x/c6x.md: New file.
5001 * config/c6x/constraints.md: New file.
5002 * config/c6x/predicates.md: New file.
5003 * config/c6x/c6x-sched.md.in: New file.
5004 * config/c6x/c6x-sched.md: New file.
5005 * config/c6x/gensched.sh: New file.
5006 * config/c6x/c6x-mult.md.in: New file.
5007 * config/c6x/genmult.sh: New file.
5008 * config/c6x/c6x-mult.md: New file.
5009 * config/c6x/sync.md: New file.
5010 * config/c6x/c6x-protos.h: New file.
5011 * config/c6x/sfp-machine.h: New file.
5012 * config/c6x/c6x.c: New file.
5013 * config/c6x/c6x.h: New file.
5014 * config/c6x/crti.s: New file.
5015 * config/c6x/crtn.s: New file.
5016 * config/c6x/lib1funcs.asm: New file.
5017 * config/c6x/c6x-modes.def: New file.
5018 * config/c6x/genopt.sh: New file.
5019 * config/c6x/c6x.opt: New file.
5020 * config/c6x/c6x-tables.opt: New file.
5021 * config/c6x/c6x-opts.h: New file.
5022 * config/c6x/c6x-isas.def: New file.
5023 * config/c6x/elf.h: New file.
5024 * config/c6x/elf-common.h: New file.
5025 * config/c6x/uclinux-elf.h: New file.
5026 * config/c6x/t-c6x: New file.
5027 * config/c6x/t-c6x-elf: New file.
5028 * config/c6x/t-c6x-uclinux: New file.
5029 * config/c6x/t-c6x-softfp: New file.
5030 * config/c6x/gtd.c: New file.
5031 * config/c6x/gtf.c: New file.
5032 * config/c6x/ltd.c: New file.
5033 * config/c6x/ltf.c: New file.
5034 * config/c6x/ged.c: New file.
5035 * config/c6x/gef.c: New file.
5036 * config/c6x/led.c: New file.
5037 * config/c6x/lef.c: New file.
5038 * config/c6x/eqd.c: New file.
5039 * config/c6x/eqf.c: New file.
5040 * config/c6x/libgcc-c6xeabi.ver: New file.
5043 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
5044 PR rtl-optimization/11320
5045 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
5046 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
5047 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
5048 current_sched_info->compute_jump_reg_dependencies. Record which
5049 registers are used and which registers are set by the jump.
5050 Clear deps->reg_conditional_sets after a barrier.
5051 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
5052 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
5053 (init_deps): Initialize reg_conditional_sets.
5054 (free_deps): Clear reg_conditional_sets.
5055 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
5056 Mark registers live on entry of the fallthrough block and conditionally
5057 set as set by the jump. Mark registers live on entry of non-fallthrough
5058 blocks as used by the jump.
5059 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
5060 Mark new parameters as unused.
5062 2011-07-14 Andrew Pinski <pinskia@gmail.com>
5065 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
5066 Use fold_build2_loc instead of build2.
5067 Use the correct type for the new tree.
5069 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
5071 PR rtl-optimization/11320
5072 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
5073 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
5075 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
5078 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
5080 (*rotw<mode>): Use const_int_operand for operand2.
5081 Use match_scatch for operand3.
5082 (*rotb<mode>): Ditto
5083 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
5085 2011-07-14 Richard Guenther <rguenther@suse.de>
5087 PR tree-optimization/49651
5088 * tree-ssa-structalias.c (get_constraint_for_1): Properly
5089 handle dereferences with subvariables.
5091 2011-07-14 Richard Guenther <rguenther@suse.de>
5093 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
5094 (fold_stmt_1): Do it here directly on gimple and as a first thing.
5096 2011-07-14 Richard Guenther <rguenther@suse.de>
5098 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
5099 not bool_var when folding bool_var != 1 or bool_var == 0.
5101 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
5103 * haifa-sched.c (schedule_insns): Remove outdated comment.
5104 (schedule_block): When computing a known value for TODO_SPEC,
5105 just set it rather than using logical operations.
5106 (try_ready): Likewise. Use a local variable rather than a
5107 pointer to TODO_SPEC. Reorder an if statement to move the
5108 easy case to the then block.
5109 * sched-deps.c (dep_spec_p): New static function.
5110 (update_dep): Use it to decide whether to call
5111 change_spec_dep_to_hard.
5112 (get_back_and_forw_lists): Use it.
5113 (sd_resolve_dep): Likewise.
5114 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
5115 (haifa_note_mem_dep): Likewise.
5116 (check_dep): Likewise.
5117 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
5118 (sched_free_deps): Free in two passes.
5120 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
5123 * expr.c (all_zeros_p): Undo bogus part of last change.
5125 2011-07-14 Matthias Klose <doko@ubuntu.com>
5127 * doc/extend.texi (optimize attribute): Fix typo.
5129 2011-07-14 Richard Guenther <rguenther@suse.de>
5131 * gimplify.c (gimplify_expr): Only do required conversions.
5133 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
5136 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
5137 i.e. use default_elf_select_section.
5138 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
5139 (READONLY_DATA_SECTION_ASM_OP): Remove.
5140 (TARGET_ASM_NAMED_SECTION): Move from here...
5141 * config/avr/avr.c: ...to here.
5142 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
5143 (avr_asm_named_section): Make static.
5145 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5148 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
5149 and crtfastmath.o for Linux/x86.
5151 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
5153 * haifa-sched.c: Include "hashtab.h"
5154 (sched_no_dce): New global variable.
5155 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
5156 SHADOW_P): New macros.
5157 (last_clock_var, cycle_issued_insns): Move declarations.
5158 (must_backtrack): New static variable.
5159 (struct delay_pair): New structure.
5160 (delay_htab, delay_htab_i2): New static variables.
5161 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
5162 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
5164 (dep_cost_1): If delay pairs exist, try to look up the insns and
5165 use the correct pair delay if we find them.
5166 (rank-for_schedule): Tweak priority for insns that must be scheduled
5167 soon to avoid backtracking.
5168 (queue_insn): Detect conditions which force backtracking.
5169 (ready_add): Likewise.
5170 (struct sched_block_state): Add member shadows_only_p.
5171 (struct haifa_save_data): New structure.
5172 (backtrack_queue): New static variable.
5173 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
5174 unschedule_insns_until, restore_last_backtrack_point,
5175 free_topmost_backtrack_point, free_backtrack_queue,
5176 estimate_insn_tick, estimate_shadow_tick): New functions.
5177 (prune_ready_list): New arg shadows_only_p. All callers changed.
5178 If true, remove everything that isn't SHADOW_P. Look up delay
5179 pairs and estimate ticks to avoid scheduling the first insn too early.
5180 (verify_shadows): New function.
5181 (schedule_block): Add machinery to enable backtracking.
5182 (sched_init): Take sched_no_dce into account when setting
5184 (free_delay_pairs): New function.
5185 (init_h_i_d): Initialize INSN_EXACT_TICK.
5186 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
5187 * sched-deps.c (sd_unresolve_dep): New function.
5188 * sched-int. (struct haifa_sched_info): New fields save_state
5190 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
5191 feeds_backtrack_insn and shadow_p.
5192 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
5193 (sched_no_dce): Declare variable.
5194 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
5195 sd_unresolve_dep): Declare functions.
5196 * modulo-sched.c (sms_sched_info): Clear the two new fields.
5197 * sched-rgn.c (rgn_const_sched_info): Likewise.
5198 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5199 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
5200 (ebb_sched_info): Add them for the two new fields.
5201 (add_deps_for_risky_insns): Call add_delay_dependencies.
5203 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
5205 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
5207 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
5208 (rs6000_call_indirect_aix): Ditto.
5209 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
5210 (call_indirect_aix<ptrsize>_internal): Ditto.
5211 (call_indirect_aix<ptrsize>_nor11): Ditto.
5212 (call_indirect_aix<ptrsize>_internal2): Ditto.
5213 (call_value_indirect_aix<ptrsize>): Ditto.
5214 (call_value_indirect_aix<ptrsize>_internal): Ditto.
5215 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
5216 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
5217 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
5219 2011-07-13 Jason Merrill <jason@redhat.com>
5221 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
5223 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5225 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
5226 * config/spu/spu.md ("clrsb<mode>2"): New expander.
5228 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
5230 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
5231 * configure: Regenerate.
5233 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5235 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
5236 (asm_file_start): Remove.
5237 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
5238 free_bb_for_insn around code that modifies insns before
5239 restarting df analysis.
5241 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5244 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
5245 (LINK_SPEC): ... here.
5247 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
5249 * haifa-sched.c (struct sched_block_state): New.
5250 (schedule_block): Move some local variables into such a structure.
5252 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5254 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
5255 * config/i386/t-crtpc: Remove.
5256 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
5257 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
5259 (x86_64-*-darwin*): Likewise.
5260 (i[34567]86-*-linux*): Likewise.
5261 (x86_64-*-linux*): Likewise.
5263 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
5264 Handle -mpc32, -mpc64, -mpc80.
5266 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5268 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
5269 * config/alpha/t-crtfm: Remove.
5270 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
5271 * config/i386/t-crtfm: Remove.
5272 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
5273 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
5274 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
5275 * config/sparc/t-crtfm: Remove.
5277 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
5278 (alpha*-*-freebsd*): Likewise.
5279 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
5280 (x86_64-*-darwin*): Likewise.
5281 (i[34567]86-*-linux*): Likewise.
5282 (x86_64-*-linux*): Likewise.
5283 (x86_64-*-mingw*): Likewise.
5284 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
5285 (ia64*-*-freebsd*): Likewise.
5286 (ia64*-*-linux*): Likewise.
5287 (mips64*-*-linux*): Likewise.
5288 (mips*-*-linux*): Likewise.
5289 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
5290 (sparc64-*-linux*): Likewise.
5291 (sparc64-*-freebsd*): Likewise.
5293 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5295 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
5296 * config/darwin-crt3.c: Move to ../libgcc/config.
5297 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
5298 ($(T)crt3$(objext)): Remove.
5299 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
5300 ($(T)crt2$(objext)): Remove.
5301 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
5302 (powerpc64-*-darwin*): Likewise.
5304 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
5306 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
5308 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
5309 (addsi_1_zext): This.
5311 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
5313 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
5314 * doc/tm.texi: Regenerate.
5315 * target.def (mergeable_rodata_prefix): New defhookpod.
5316 * varasm.c (mergeable_string_section, mergeable_constant_section):
5317 Use it. Allocate name with alloca.
5319 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
5321 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
5323 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
5325 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
5328 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
5330 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
5331 (count_type_elements): Delete.
5332 (complete_ctor_at_level_p): Declare.
5333 * expr.c (flexible_array_member_p): New function, split out from...
5334 (count_type_elements): ...here. Make static. Replace allow_flexarr
5335 parameter with for_ctor_p. When for_ctor_p is true, return the
5336 number of elements that should appear in the top-level constructor,
5337 otherwise return an estimate of the number of scalars.
5338 (categorize_ctor_elements): Replace p_must_clear with p_complete.
5339 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
5340 (complete_ctor_at_level_p): New function, borrowing union logic
5341 from old categorize_ctor_elements_1.
5342 (mostly_zeros_p): Return true if the constructor is not complete.
5343 (all_zeros_p): Update call to categorize_ctor_elements.
5344 * gimplify.c (gimplify_init_constructor): Update call to
5345 categorize_ctor_elements. Don't call count_type_elements.
5346 Unconditionally prevent clearing for variable-sized types,
5347 otherwise rely on categorize_ctor_elements to detect
5348 incomplete initializers.
5350 2011-07-13 Richard Guenther <rguenther@suse.de>
5352 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
5353 the final type is integral.
5355 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
5357 * sched-int.h (struct _dep): Add member cost.
5358 (DEP_COST, UNKNOWN_DEP_COST): New macros.
5359 * sched-deps.c (init_dep_1): Initialize DEP_COST.
5360 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
5361 (sched_change_pattern): Reset it for dependent insns.
5363 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5365 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
5366 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
5367 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
5368 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
5369 (CRT0_S, MCRT0_S): Remove.
5370 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
5373 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
5375 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5377 * cse.c (insert_with_costs): Put semi-colon after empty loop body
5379 * emit-rtl.c (push_to_sequence): Likewise.
5380 * haifa-sched.c (max_issue): Likewise.
5381 * matrix-reorg.c (add_allocation_site): Likewise.
5382 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
5383 * reload.c (alternative_allows_const_pool_ref): Likewise.
5384 * sched-rgn.c (rgn_add_block): Likewise.
5385 (rgn_fix_recovery_cfg): Likewise.
5386 * tree.c (attribute_list_contained): Likewise.
5388 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
5390 * config/i386/i386.c: Tidy processor feature bitmasks.
5393 2011-07-12 Andrew Pinski <pinskia@gmail.com>
5396 * cprop.c (find_implicit_sets): Correct the condition.
5398 2011-07-12 Richard Henderson <rth@redhat.com>
5401 * dwarf2out.h (dwarf_frame_regnum): Remove.
5402 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
5403 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
5404 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
5405 (execute_dwarf2_frame): Initialize them.
5406 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
5407 users of the macros with the variables.
5408 (expand_builtin_dwarf_sp_column): Revert last change.
5409 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
5410 result of DWARF_FRAME_REGNUM into a local variable.
5412 2011-07-12 Richard Henderson <rth@redhat.com>
5415 * config/i386/i386.c (x86_output_mi_thunk): Use
5416 machopic_indirect_call_target instead of machopic_indirection_name
5419 2011-07-12 Laurent GUERBY <laurent@guerby.net>
5420 Eric Botcazou <ebotcazou@adacore.com>
5422 * prefix.h: Wrap up in extern "C" block.
5424 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
5426 AMD bdver2 Enablement
5427 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
5428 (case ${target}): Add bdver2.
5429 * config/i386/driver-i386.c (host_detect_local_cpu): Let
5430 -march=native recognize bdver2 processors.
5431 * config/i386/i386-c.c (ix86_target_macros_internal): Add
5432 bdver2 def_and_undef
5433 * config/i386/i386.c (struct processor_costs bdver2_cost): New
5435 (m_BDVER2): New definition.
5436 (m_AMD_MULTIPLE): Includes m_BDVER2.
5437 (initial_ix86_tune_features): Add bdver2 tuning.
5438 (processor_target_table): Add bdver2 entry.
5439 (static const char *const cpu_names): Add bdver2 entry.
5440 (ix86_option_override_internal): Add bdver2 instruction sets.
5441 (ix86_issue_rate): Add bdver2.
5442 (ix86_adjust_cost): Add bdver2.
5443 (has_dispatch): Add bdver2.
5444 * config/i386/i386.h (TARGET_BDVER2): New definition.
5445 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
5446 (enum processor_type): Add PROCESSOR_BDVER2.
5447 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
5448 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
5451 2011-07-12 Richard Henderson <rth@redhat.com>
5454 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
5455 destination address in memory on some paths.
5457 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
5459 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
5460 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
5461 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
5462 * function.c (locate_and_pad_parm): Take it into account.
5463 * target.def (function_arg_round_boundary): New hook.
5464 * targhooks.c (default_function_arg_round_boundary): New function.
5465 * targhooks.h (default_function_arg_round_boundary): Declare.
5466 * doc/tm.texi: Regenerate.
5468 2011-07-12 Richard Guenther <rguenther@suse.de>
5470 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
5471 Do not perform no-op changes.
5473 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
5475 * config/arm/predicates.md (neon_struct_operand): Make a normal
5477 (neon_struct_or_register_operand): New predicate.
5478 * config/arm/neon.md (movmisalign<mode>): Replace predicates
5479 with neon_struct_or_register_operand.
5480 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
5481 neon_struct_operand instead of memory_operand.
5483 2011-07-12 Martin Jambor <mjambor@suse.cz>
5485 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
5486 * cgraph.c (cgraph_get_node_or_alias): Removed.
5487 (change_decl_assembler_name): Changed all calls to
5488 cgraph_get_node_or_alias to a call to cgraph_get_node.
5489 (cgraph_make_decl_local): Likewise.
5490 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
5491 * varasm.c (default_binds_local_p_1): Likewise.
5492 (decl_binds_to_current_def_p): Likewise.
5494 2011-07-12 Jakub Jelinek <jakub@redhat.com>
5496 PR tree-optimization/49712
5497 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
5499 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
5501 * genautomata.c (add_arc): Return void. All callers changed.
5502 (make_automaton): Remove dead code.
5504 2011-07-11 Richard Henderson <rth@redhat.com>
5506 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
5507 (DW_FRAME_POINTER_REGNUM): New.
5508 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
5509 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
5511 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
5512 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
5513 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
5515 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
5516 * dwarf2out.h (dwarf_frame_regnum): New.
5517 (struct cfa_loc): Document the domain of the reg member.
5519 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
5521 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
5522 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
5524 2011-07-11 Jakub Jelinek <jakub@redhat.com>
5527 * dwarf2out.c (int_shift_loc_descriptor): New function.
5528 (int_loc_descriptor): If shorter, emit i as
5529 (i >> shift), shift, DW_OP_shl for suitable shift value.
5530 Similarly, try to optimize large negative values using
5531 DW_OP_neg of a positive value if shorter.
5532 (size_of_int_shift_loc_descriptor): New function.
5533 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
5535 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
5536 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
5537 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
5539 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
5540 addend as added DW_OP_plus if it is shorter.
5542 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5544 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
5545 (DTORS_SECTION_ASM_OP): Define.
5547 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5549 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
5550 * config/t-dfprules: Move to ../libgcc/config.
5551 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5552 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
5553 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
5554 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
5556 (i[34567]86-*-cygwin*): Likewise.
5557 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5558 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
5559 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
5560 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
5561 D64PBIT_FUNCS, D128PBIT_FUNCS.
5563 2011-07-11 Richard Guenther <rguenther@suse.de>
5565 * tree-vrp.c (simplify_conversion_using_ranges): Manually
5566 translate the source value-range through the conversion chain.
5568 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
5570 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
5572 2011-07-11 Arthur Loiret <aloiret@debian.org>
5574 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
5575 a bi-arch compiler defaulting to 31-bit. In this case:
5576 (tmake_file): Add s390/t-linux64.
5577 * doc/install.texi: Add s390-linux to the list of targets supporting
5578 --enable-targets=all.
5580 2011-07-11 Arthur Loiret <aloiret@debian.org>
5581 Matthias Klose <doko@debian.org>
5583 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
5584 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
5585 (tm_file): Add mips/linux64.h.
5586 (tmake_file): Add mips/t-linux64.
5587 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5588 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
5589 instead of hardcoded mabi=n32.
5590 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5591 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5594 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5596 * passes.c (init_optimization_passes): Add invariant motion pass
5597 after induction variable optimization.
5599 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
5602 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
5603 offsets 1..5 set cc0 in a usable way.
5605 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
5607 * tree.h (call_expr_arg): Remove.
5608 (call_expr_argp): Likewise.
5610 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
5612 * config/sparc/sparc.md (save_register_window_1): Rename to...
5613 (window_save): ...this.
5614 * config/sparc/sparc.c (emit_save_register_window): Rename to...
5615 (emit_window_save): ...this.
5616 (sparc_expand_prologue): Adjust to above renaming.
5618 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
5620 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
5623 2011-07-10 Richard Henderson <rth@redhat.com>
5625 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
5626 run final, instead of emitting text directly.
5628 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
5630 * config/i386/i386.c (ix86_option_override_internal): Turn on
5631 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
5632 small PIC models for TARGET_X32.
5634 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
5637 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
5641 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
5642 stray notes and debug insns by using prev_nonnote_nondebug_insn
5643 instead of PREV_INSN.
5645 2011-07-09 Richard Henderson <rth@redhat.com>
5647 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
5648 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
5649 * dwarf2out.c: ... here.
5650 (output_all_cfis): Remove.
5651 (dwarf2out_switch_text_section): Use output_cfis directly.
5652 (size_of_locs): Export.
5653 (output_loc_sequence, output_loc_sequence_raw): Export.
5654 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
5655 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
5656 output_cfa_loc_raw): Move to ...
5657 * dwarfcfi.c: ... here.
5658 * dwarf2out.h: Update decls.
5660 2011-07-09 Richard Henderson <rth@redhat.com>
5662 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
5663 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
5664 * dwarf2cfi.c: ... here.
5665 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
5666 (DWARF_ROUND, DWARF_CIE_ID): Remove.
5667 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
5668 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
5669 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
5671 2011-07-09 Richard Henderson <rth@redhat.com>
5673 * dwarf2cfi.c (cie_return_save): New.
5674 (queue_reg_save): Use compare_reg_or_pc.
5675 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
5676 (dwarf2out_frame_debug_expr): Likewise.
5677 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
5678 (initial_return_save): Likewise.
5679 (execute_dwarf2_frame): Save and restore initial return save from
5681 * config/mips/mips.c (mips_frame_set): Remove special case for
5682 DWARF_FRAME_RETURN_COLUMN.
5684 2011-07-09 Richard Henderson <rth@redhat.com>
5686 * dwarf2cfi.c (lookup_cfa): Remove.
5687 (execute_dwarf2_frame): Assert queues are empty on entry.
5688 Setup initial cfa directly, not via lookup_cfa.
5689 Don't clear args_size state here.
5691 2011-07-09 Richard Henderson <rth@redhat.com>
5693 * dwarf2cfi.c (add_cfi_vec): New.
5694 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
5695 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
5696 (execute_dwarf2_frame): Set add_cfi_vec.
5698 2011-07-09 Richard Henderson <rth@redhat.com>
5700 * defaults.h (ASM_COMMENT_START): Move here...
5701 * dwarf2asm.c: ... from here.
5702 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
5703 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
5704 * varasm.c: Likewise.
5706 2011-07-09 Richard Henderson <rth@redhat.com>
5709 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
5710 (create_cfi_notes): ... do it here instead.
5712 2011-07-09 Jakub Jelinek <jakub@redhat.com>
5715 * dwarf2out.c (size_of_int_loc_descriptor): New function.
5716 (address_of_int_loc_descriptor): Use it.
5717 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
5719 2011-07-09 Richard Henderson <rth@redhat.com>
5721 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
5722 (prologue, epilogue): New.
5723 (return, *rts): New.
5724 (blockage, setd, seti): New.
5725 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
5726 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
5727 (pdp11_saved_regno): New.
5728 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
5729 generate rtl instead of text.
5730 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
5731 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
5732 * config/pdp11/pdp11-protos.h: Update.
5734 2011-07-09 Richard Henderson <rth@redhat.com>
5736 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
5737 try to insert an rtl prologue here.
5738 (rs6000_output_function_epilogue): Similarly.
5739 * config/rs6000/rs6000.md (prologue): Emit a barrier to
5740 satisfy !TARGET_SCHED_PROLOG.
5741 (epilogue, sibcall_epilogue): Likewise.
5743 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
5745 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
5747 (IN_OR_GLOBAL_P): Likewise.
5749 2011-07-08 Jason Merrill <jason@redhat.com>
5752 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
5753 compound assignment.
5755 * cgraph.c (cgraph_add_to_same_comdat_group): New.
5756 * cgraph.h: Declare it.
5757 * ipa.c (function_and_variable_visibility): Make sure thunks
5758 have the right visibility.
5760 2011-07-08 Richard Henderson <rth@redhat.com>
5763 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
5764 any tablejump vector.
5767 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
5768 end of the prologue.
5770 2011-07-08 Jakub Jelinek <jakub@redhat.com>
5773 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
5774 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
5775 * config/rs6000/vector.md (vector_select_<mode>,
5776 vector_select_<mode>_uns): Change second operand of NE to
5777 CONST0_RTX (<MODE>mode) instead of const0_rtx.
5778 * config/rs6000/altivec.md (*altivec_vsel<mode>,
5779 *altivec_vsel<mode>_uns): Expect second operand of NE to be
5780 zero_constant of the corresponding vector mode.
5781 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
5784 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
5786 * graphite-dependences.c (build_alias_set_powerset): Remove
5787 continue from loop, add one more assert.
5789 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
5792 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
5793 In particular, allow 8-bit values in r28 and r29.
5794 (avr_hard_regno_scratch_ok): Disallow any register that might be
5795 part of the frame pointer.
5796 (avr_hard_regno_rename_ok): Same.
5797 (avr_legitimate_address_p): Don't allow SUBREGs.
5799 2011-07-08 Julian Brown <julian@codesourcery.com>
5801 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
5803 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
5804 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
5805 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
5806 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
5807 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
5808 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
5809 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
5810 registers in big-endian mode.
5812 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
5814 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
5815 in terms of another.
5816 (write_attr_value): Write a cast if necessary.
5818 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
5819 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
5820 (REG_WORDS_BIG_ENDIAN): Document.
5821 * doc/tm.texi: Regenerate.
5822 * reload.c (operands_match_p): Take it into account.
5823 (reload_adjust_reg_for_mode): Likewise.
5824 * rtlanal.c (subreg_get_info): Likewise.
5826 2011-07-08 Richard Guenther <rguenther@suse.de>
5828 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
5831 2011-07-08 Kai Tietz <ktietz@redhat.com>
5833 * fold-const.c (fold_truth_andor): Factored out truth_andor
5834 label from fold_binary as function.
5835 (fold_binary_loc): Replace truth_andor lable
5836 by function fold_truth_andor.
5838 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
5841 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
5842 check if address is stored in register. If so - give up.
5843 (check_sibcall_argument_overlap_1): Do not perform check of
5844 overlapping when it is call to address.
5846 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
5848 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
5851 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
5853 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
5854 GET_MODE_BITSIZE where appropriate.
5855 (widen_leading, expand_parity, expand_ctz, expand_ffs,
5856 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
5857 expand_float, expand_fix): Likewise.
5858 * expr.c (convert_move, convert_modes, expand_expr_real_2,
5859 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
5860 * stor-layout.c (get_mode_bounds): Likewise.
5861 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
5863 * convert.c (convert_to_integer): Likewise.
5864 * expmed.c (expand_shift_1): Likewise.
5866 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
5869 * optabs.c (expand_binop): Tighten conditions for doubleword
5871 (widen_bswap): Assert that mode bitsize and precision are the same.
5872 * stor-layout.c (get_best_mode): Skip modes that have lower
5873 precision than bitsize.
5874 * recog.c (simplify_while_replacing): Assert that bitsize and
5875 precision are the same.
5877 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5879 * Makefile.in (LIBGCOV): Remove.
5880 (libgcc.mvars): Remove LIBGCOV.
5881 * libgov.c: Move to ../libgcc.
5883 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5885 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
5887 2011-07-08 Martin Jambor <mjambor@suse.cz>
5889 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
5890 is too big for total scalarization.
5892 2011-07-07 Richard Henderson <rth@redhat.com>
5894 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
5895 (DBX_DEBUGGING_INFO): Undef.
5897 2011-07-07 Richard Henderson <rth@redhat.com>
5899 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
5900 Handle some opcodes specially for debugging.
5901 * print-rtl.c: Include dwarf2out.h
5902 (print_rtx): Handle NOTE_INSN_CFI.
5903 * Makefile.in (print-rtl.o): Update.
5905 2011-07-07 Richard Henderson <rth@redhat.com>
5907 * tree-pass.h (pass_dwarf2_frame): Declare.
5908 * passes.c (init_optimization_passes): Add it.
5909 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
5910 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
5911 make static, do not call add_cfis_to_fde.
5912 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
5913 dwarf2out_frame_init): Merge into...
5914 (execute_dwarf2_frame): ... here. New function.
5915 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
5916 saved_do_cfi_asm to a tri-state variable.
5917 (gate_dwarf2_frame, pass_dwarf2_frame): New.
5918 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
5919 if it has yet to be done. Don't call dwarf2cfi_function_init.
5920 * dwarf2out.h, debug.h: Update decls.
5921 * final.c (final_start_function): Don't call
5922 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
5923 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
5924 * toplev.c (lang_dependent_init): Likewise.
5926 2011-07-07 Richard Henderson <rth@redhat.com>
5928 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
5929 FDE_TABLE_INCREMENT): Replace with...
5930 (fde_vec): ... this, a new vector.
5931 (current_fde): Remove. Replace all users with cfun->fde.
5932 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
5933 (size_of_aranges, dwarf2out_finish): Likewise.
5934 (dwarf2out_alloc_current_fde): Break out from ...
5935 (dwarf2out_begin_prologue): ... here.
5936 (dwarf2out_frame_init): Remove.
5937 * dwarf2cfi.c: Update all users of current_fde.
5938 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
5939 * dwarf2out.h: Update decls.
5940 (dw_fde_node): Add fde_index member.
5941 * function.h (struct function): Add fde member.
5943 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5944 Richard Henderson <rth@redhat.com>
5946 * dwarf2cfi.c (add_cfi): Remove.
5947 (dwarf2out_cfi_label): Remove force argument. Only generate the
5949 (add_fde_cfi): Simplify the different code paths.
5951 (old_cfa, old_cfa_remember): New.
5952 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
5953 (last_reg_save_label): Remove.
5954 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
5955 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
5956 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
5957 dwarf2out_frame_debug_cfa_expression,
5958 dwarf2out_frame_debug_cfa_restore,
5959 dwarf2out_frame_debug_cfa_window_save,
5960 dwarf2out_frame_debug_expr): Remove label parameter.
5961 (cfi_label_required_p, add_cfis_to_fde): New.
5962 (dwarf2out_frame_debug_after_prologue): New.
5963 (dwarf2cfi_frame_init): Initialize old_cfa.
5964 (dwarf2out_frame_debug_restore_state): Likewise.
5965 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
5966 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
5967 * final.c (final_start_function): Call
5968 dwarf2out_frame_debug_after_prologue.
5970 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5971 Richard Henderson <rth@redhat.com>
5973 * dwarf2cfi.c (cfi_insn): New.
5974 (dwarf2out_cfi_label): Don't emit cfi label here.
5975 (add_fde_cfi): Create a NOTE_INSN_CFI.
5976 (dwarf2out_frame_debug): Setup cfi_insn.
5977 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
5978 (dwarf2out_cfi_begin_epilogue): Make static.
5979 (dwarf2out_frame_debug_restore_state): Make static.
5980 * dwarf2out.c (output_cfi_directive): Make static.
5981 (dwarf2out_emit_cfi): New.
5982 * dwarf2out.h: Update.
5983 * final.c (final): Remove CFI notes.
5984 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
5985 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
5986 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
5987 * insn-notes.def (NOTE_INSN_CFI): New.
5988 (NOTE_INSN_CFI_LABEL): New.
5989 * rtl.h (union rtunion_def): Add rt_cfi member.
5990 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
5992 2011-07-07 Richard Henderson <rth@redhat.com>
5994 * dwarf2cfi.c: New file.
5995 * Makefile.in (OBJS): Add it.
5996 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
5997 * gengtype.c (open_base_files): Include dwarf2out.h.
5998 * coretypes.h (enum var_init_status): Move from ...
6000 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
6001 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
6002 expand_builtin_dwarf_sp_column, init_return_column_size,
6003 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
6004 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
6005 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
6006 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
6007 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
6008 compute_barrier_args_size, dwarf2out_args_size,
6009 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
6010 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
6011 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
6012 queue_reg_save, dwarf2out_flush_queued_reg_saves,
6013 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
6014 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
6015 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
6016 dwarf2out_frame_debug_cfa_expression,
6017 dwarf2out_frame_debug_cfa_restore,
6018 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
6019 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
6020 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
6021 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
6022 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
6023 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
6024 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
6025 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
6026 dw_loc_descr_node): Move to dwarf2out.h.
6027 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
6028 mem_loc_descriptor): Export.
6029 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
6030 (dwarf2out_frame_init): Extract CIE generation code to
6031 dwarf2cfi_frame_init.
6033 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
6036 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
6037 MASK_V8PLUS, remove commented out flag and reorder.
6039 2011-07-07 Jakub Jelinek <jakub@redhat.com>
6042 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
6043 one non-complex and one complex argument, call c_save_expr on both
6046 2011-07-07 Martin Jambor <mjambor@suse.cz>
6049 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
6050 (verify_cgraph_node): Some functinality moved to
6051 verify_edge_corresponds_to_fndecl, call it.
6053 2011-07-07 Joseph Myers <joseph@codesourcery.com>
6055 * config.gcc (*local*): Remove.
6056 * doc/install-old.texi: Don't mention local configurations.
6058 2011-07-07 Jakub Jelinek <jakub@redhat.com>
6061 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
6062 referencing debug insns that have been reset.
6063 (dead_debug_insert_before): Don't assert reg is non-NULL,
6064 instead return immediately if it is NULL.
6066 2011-07-07 Joseph Myers <joseph@codesourcery.com>
6068 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
6070 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
6072 * hw-doloop.c: New file.
6073 * hw-doloop.h: New file.
6074 * Makefile.in (OBJS): Add hw-doloop.o.
6075 (hw-doloop.o): New rule.
6076 ($(obj_out_file)): Add hw-doloop.h dependency.
6077 * config/bfin/bfin.c: Include "hw-doloop.h".
6078 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
6079 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
6080 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
6081 type changed to hwloop_info. Return bool, true if the loop was
6082 successfully optimized. Remove code that was moved to
6083 hw-doloop.c, and adjust other parts.
6084 (hwloop_fail): New static function, containing parts that used
6085 to be in bfin_optimize_loop.
6086 (bfin_discover_loop, bfin_discover_loops, free_loops,
6087 bfin_reorder_loops): Remove.
6088 (hwloop_pattern_reg): New static function.
6089 (bfin_doloop_hooks): New variable.
6090 (bfin_reorg_loops): Remove most code, call reorg_loops.
6091 * config/bfin/bfin.md (doloop_end splitter): Also enable if
6092 loop counter is a memory_operand.
6094 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
6096 * config.gcc: Support --with-multilib-list for x86 Linux targets.
6098 * configure.ac: Mention x86-64 for --with-multilib-list.
6099 * configure: Regenerated.
6101 * config/i386/gnu-user64.h (SPEC_64): Support x32.
6102 (SPEC_32): Likewise.
6103 (ASM_SPEC): Likewise.
6104 (LINK_SPEC): Likewise.
6105 (TARGET_THREAD_SSP_OFFSET): Likewise.
6106 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
6109 * config/i386/i386.h (TARGET_X32): New.
6111 (LONG_TYPE_SIZE): Likewise.
6112 (POINTER_SIZE): Likewise.
6113 (POINTERS_EXTEND_UNSIGNED): Likewise.
6114 (OPT_ARCH64): Support x32.
6115 (OPT_ARCH32): Likewise.
6117 * config/i386/i386.opt (mx32): New.
6119 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
6120 (GLIBC_DYNAMIC_LINKERX32): Likewise.
6121 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
6122 (GLIBC_DYNAMIC_LINKERX32): Likewise.
6124 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
6125 (BIONIC_DYNAMIC_LINKERX32): Likewise.
6126 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
6128 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
6130 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
6132 * doc/invoke.texi: Document -mx32.
6134 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
6136 * doc/invoke.texi (mwords-little-endian): Deprecate.
6137 * config/arm/arm.opt (mwords-little-endian): Likewise.
6138 * config/arm/arm.c (arm_option_override): Warn about the deprecation
6139 of -mwords-little-endian.
6141 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
6143 * reload1.c (choose_reload_regs): Use mode sizes to check whether
6144 an old reload register completely defines the required value.
6146 2011-07-07 Richard Guenther <rguenther@suse.de>
6148 * fold-const.c (fold_unary_loc): Do not strip sign-changes
6151 2011-07-07 Richard Guenther <rguenther@suse.de>
6153 * tree-vrp.c (simplify_conversion_using_ranges): New function.
6154 (simplify_stmt_using_ranges): Call it.
6156 2011-07-07 Kai Tietz <ktietz@redhat.com>
6158 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
6159 (lookup_logical_inverted_value): Likewise.
6160 (simplify_bitwise_binary_1): Likewise.
6161 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
6163 2011-07-07 Joseph Myers <joseph@codesourcery.com>
6165 * gcc.c (%[Spec]): Don't document.
6166 (struct spec_list): Update comment.
6167 (do_spec_1): Don't handle %[Spec].
6168 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
6170 2011-07-07 Joseph Myers <joseph@codesourcery.com>
6172 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
6173 default based on TARGET_ASM_NAMED_SECTION.
6174 * common/common-target.def (have_named_sections): Default to true.
6175 * common/config/default-common.c: Don't include tm.h.
6176 * common/config/picochip/picochip-common.c
6177 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
6178 * common/config/m32c/m32c-common.c: Remove.
6179 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
6180 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6181 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6182 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6183 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6184 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6185 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6187 2011-07-07 Jakub Jelinek <jakub@redhat.com>
6190 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
6191 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
6193 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6196 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
6198 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6201 * configure.ac (gcc_cv_as_hidden): Also accept
6202 x86_64-*-solaris2.1[0-9]*.
6203 (gcc_cv_as_cfi_directive): Likewise.
6204 (gcc_cv_as_comdat_group_group): Likewise.
6205 (set_have_as_tls): Likewise.
6206 * configure: Regenerate.
6207 * config.gcc (i[34567]86-*-solaris2*): Also handle
6208 x86_64-*-solaris2.1[0-9]*.
6209 * config.host (i[34567]86-*-solaris2*): Likewise.
6210 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
6211 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
6212 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
6213 (TARGET_LD_EMULATION): Use it.
6214 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
6215 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
6216 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
6217 (ASM_CPU64_DEFAULT_SPEC): Define.
6218 (ASM_CPU_SPEC): Use %(asm_cpu_default).
6219 (ASM_SPEC): Redefine.
6220 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
6221 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
6222 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
6223 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
6225 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
6227 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6229 * config/sol2.h (ASM_SPEC): Split into ...
6230 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
6231 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
6232 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
6233 (ASM_SPEC): Use ASM_SPEC_BASE.
6234 * config/sparc/sol2.h (ASM_SPEC): Redefine.
6236 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
6238 * config/avr/avr.md (*reload_insi): Change predicate #1 to
6239 const_int_operand. Ditto for peep2 producing this insn.
6240 Add argument to output_reload_insisf call.
6241 (*movsi,*movsf): Add argument to output_movsisf call.
6242 (*reload_insf): New insn and new peep2 to produce it.
6243 * config/avr/avr-protos.h (output_movsisf): Change prototype.
6244 (output_reload_insisf): Change prototype.
6245 * config/avr/avr.c (avr_asm_len): New function.
6246 (output_reload_insisf): Rewrite.
6247 (output_movsisf): Change prototype. output_reload_insisf for
6248 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
6249 (adjust_insn_length): Add argument to output_movsisf and
6250 output_reload_insisf call.
6252 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
6254 * emit-rtl.c (paradoxical_subreg_p): New function.
6255 * rtl.h (paradoxical_subreg_p): Declare.
6256 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
6257 apply_distributive_law, simplify_comparison, simplify_set): Use it.
6258 * cse.c (record_jump_cond, cse_insn): Likewise.
6259 * expr.c (force_operand): Likewise.
6260 * rtlanal.c (num_sign_bit_copies1): Likewise.
6261 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
6262 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
6263 (push_reload): Use precision to check for paradoxical subregs.
6264 * expmed.c (extract_bit_field_1): Likewise.
6266 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
6267 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
6268 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
6269 simplify_set, simplify_logical, expand_compound_operation,
6270 make_extraction, force_to_mode, if_then_else_cond, extended_count,
6271 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
6272 record_value_for_reg): Likewise.
6273 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
6274 * simplify-rtx. c (simplify_unary_operation_1,
6275 simplify_binary_operation_1, simplify_const_relational_operation):
6278 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
6279 instead of GET_MODE_BITSIZE where appropriate.
6280 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
6281 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
6282 init_num_sign_bit_copies_in_rep): Likewise.
6283 * cse.c (fold_rtx, cse_insn): Likewise.
6284 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
6285 * simplify-rtx.c (simplify_unary_operation_1,
6286 simplify_const_unary_operation, simplify_binary_operation_1,
6287 simplify_const_binary_operation, simplify_ternary_operation,
6288 simplify_const_relational_operation, simplify_subreg): Likewise.
6289 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
6290 simplify_if_then_else, simplify_set, expand_compound_operation,
6291 expand_field_assignment, make_extraction, if_then_else_cond,
6292 make_compound_operation, force_to_mode, make_field_assignment,
6293 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
6294 extended_count, try_widen_shift_mode, simplify_shift_const_1,
6295 simplify_comparison, record_promoted_value, simplify_compare_const,
6296 record_dead_and_set_regs_1): Likewise.
6299 * simplify-rtx.c (simplify_const_binary_operation): Use the
6300 shift_truncation_mask hook instead of performing modulo by width.
6301 Compare against mode precision, not bitsize.
6302 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
6303 Use shift_truncation_mask instead of constructing the value manually.
6305 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
6307 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
6309 (rs6000_save_toc_in_prologue_p): Ditto.
6311 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
6312 up the static chain (r11) during indirect function calls.
6313 (-msave-toc-indirect): New undocumented debug switch.
6315 * config/rs6000/rs6000.c (struct machine_function): Add
6316 save_toc_in_prologue field to note whether the prologue needs to
6317 save the TOC value in the reserved stack location.
6318 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
6319 to save the TOC in the prologue, do so.
6320 (rs6000_trampoline_init): Don't allow creating AIX style
6321 trampolines if -mno-r11 is in effect.
6322 (rs6000_call_indirect_aix): New function to create AIX style
6323 indirect calls, adding support for -mno-r11 to suppress loading
6324 the static chain, and saving the TOC in the prologue instead of
6326 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
6327 TOC in the prologue.
6329 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
6331 (TOC_REGNUM): Ditto.
6332 (STATIC_CHAIN_REGNUM): Ditto.
6333 (ARG_POINTER_REGNUM): Ditto.
6334 (SFP_REGNO): Delete, unused.
6335 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
6336 function descriptor offsets.
6337 (TOC_SAVE_OFFSET_64BIT): Ditto.
6338 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
6339 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
6340 (AIX_FUNC_DESC_SC_32BIT): Ditto.
6341 (AIX_FUNC_DESC_SC_64BIT): Ditto.
6342 (ptrload): New mode attribute for the appropriate load of a pointer.
6343 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
6344 (call_indirect_aix64): Ditto.
6345 (call_value_indirect_aix32): Ditto.
6346 (call_value_indirect_aix64): Ditto.
6347 (call_indirect_nonlocal_aix32_internal): Ditto.
6348 (call_indirect_nonlocal_aix32): Ditto.
6349 (call_indirect_nonlocal_aix64_internal): Ditto.
6350 (call_indirect_nonlocal_aix64): Ditto.
6351 (call): Rewrite AIX indirect function calls. Add support for
6352 eliminating the static chain, and for moving the save of the TOC
6353 to the function prologue.
6354 (call_value): Ditto.
6355 (call_indirect_aix<ptrsize>): Ditto.
6356 (call_indirect_aix<ptrsize>_internal): Ditto.
6357 (call_indirect_aix<ptrsize>_internal2): Ditto.
6358 (call_indirect_aix<ptrsize>_nor11): Ditto.
6359 (call_value_indirect_aix<ptrsize>): Ditto.
6360 (call_value_indirect_aix<ptrsize>_internal): Ditto.
6361 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6362 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6363 (call_nonlocal_aix32): Relocate in the rs6000.md file.
6364 (call_nonlocal_aix64): Ditto.
6366 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
6367 -mno-r11 documentation.
6369 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6372 * doc/extend.texi (Compound Literals): Fix typo.
6374 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
6376 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
6378 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
6380 * configure.ac (plugin-version.h): Generate
6381 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
6382 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
6385 * configure: Regenerate.
6387 * doc/plugins.texi (Building GCC plugins): Mention
6388 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
6390 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
6392 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
6393 * combine.c (make_extraction, gen_lowpart_or_truncate,
6394 apply_distributive_law, simplify_comparison,
6395 reg_truncated_to_mode, record_truncated_value): Use it.
6396 * cse.c (notreg_cost): Likewise.
6397 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
6398 * expr.c (convert_move, convert_modes): Likewise.
6399 * optabs.c (expand_binop, expand_unop): Likewise.
6400 * postreload.c (move2add_last_label): Likewise.
6401 * regmove.c (optimize_reg_copy_3): Likewise.
6402 * rtlhooks.c (gen_lowpart_general): Likewise.
6403 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6405 2011-07-06 Joseph Myers <joseph@codesourcery.com>
6407 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
6409 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
6411 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
6412 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
6413 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
6414 (simplify_const_unary_operation, simplify_binary_operation_1,
6415 simplify_const_binary_operation, simplify_const_relational_operation):
6416 Use them. Use GET_MODE_MASK for masking and sign-extensions.
6417 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
6418 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
6419 simplify_shift_const_1, simplify_comparison): Likewise.
6420 * expr.c (convert_modes): Likewise.
6421 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
6422 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
6423 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
6425 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
6427 2011-07-06 Richard Guenther <rguenther@suse.de>
6429 PR tree-optimization/49645
6430 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
6432 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
6433 in type qualification here ...
6434 (copy_reference_ops_from_ref): ... not here.
6435 (vn_reference_lookup_3): ... or here.
6436 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
6437 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
6439 2011-07-06 Ian Lance Taylor <iant@google.com>
6441 * doc/install.texi (Configuration): It's
6442 --enable-gnu-indirect-function, not --enable-indirect-function.
6444 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
6446 * simplify-rtx.c (simplify_const_binary_operation): Use the
6447 shift_truncation_mask hook instead of performing modulo by width.
6448 Compare against mode precision, not bitsize.
6449 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
6450 Use shift_truncation_mask instead of constructing the value manually.
6452 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
6455 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
6456 address computation and convert to address_mode if needed.
6458 2011-07-06 Richard Guenther <rguenther@suse.de>
6460 * tree.c (build_common_tree_nodes_2): Merge with
6461 build_common_tree_nodes.
6462 * tree.h (build_common_tree_nodes): Adjust prototype.
6463 (build_common_tree_nodes_2): Remove.
6464 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
6465 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
6467 2011-07-05 Jakub Jelinek <jakub@redhat.com>
6469 PR tree-optimization/49618
6470 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
6471 t recurse on the decl.
6472 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
6473 return true if expr isn't known to be defined in current
6474 TU or some other LTO partition.
6476 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
6478 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
6479 override CASE_VALUES_THRESHOLD.
6481 * stmt.c (toplevel): Include params.h.
6482 (case_values_threshold): Use the --param case-values-threshold
6483 value if non-zero, otherwise use machine dependent value.
6484 (expand_case): Use case_values_threshold.
6486 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
6488 * doc/invoke.texi (--param case-values-threshold): Document.
6490 2011-07-05 Richard Henderson <rth@redhat.com>
6492 * dwarf2out.c (dwarf2out_cfi_label): Make static.
6493 (dwarf2out_flush_queued_reg_saves): Make static.
6494 (dwarf2out_reg_save): Remove.
6495 (dwarf2out_return_save): Remove.
6496 (dwarf2out_return_reg): Remove.
6497 (dwarf2out_reg_save_reg): Remove.
6498 (dwarf2out_def_cfa): Merge into ...
6499 (dwarf2out_frame_init): ... here.
6500 * dwarf2out.h, tree.h: Remove declarations as necessary.
6502 2011-07-05 Richard Henderson <rth@redhat.com>
6504 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
6505 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6506 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
6509 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
6510 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
6511 (process_epilogue): Don't call dwarf2out_def_cfa.
6513 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
6514 indicate the return address save.
6515 (process_cfa_register): Likewise.
6517 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
6518 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
6520 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
6521 for ar.pfs save at alloc insn.
6523 2011-07-05 Richard Henderson <rth@redhat.com>
6525 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
6526 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6527 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
6529 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
6530 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
6531 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
6532 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
6534 2011-07-05 Richard Henderson <rth@redhat.com>
6536 * config/vax/vax.md (define_c_enum unspecv): New. Define the
6537 VUNSPEC_* constants here instead of via define_constants.
6538 (VUNSPEC_PEM): New constant.
6539 (procedure_entry_mask): New insn.
6540 (prologue): New expander.
6541 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
6542 (vax_expand_prologue): Rename from vax_output_function_prologue;
6543 emit rtl instead of text.
6544 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
6545 (print_operand): Add 'x' prefix.
6547 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
6550 * calls.c (precompute_register_parameters): Promote the function
6551 argument before checking non-legitimate constant.
6553 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6555 PR tree-optimization/47654
6556 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
6557 (lst_do_strip_mine_loop): Return an int.
6558 (lst_do_strip_mine): Same.
6559 (scop_do_strip_mine): Same.
6560 (scop_do_block): Loop blocking should strip-mine at least two loops.
6561 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
6562 (scop_do_interchange): Same.
6563 * graphite-poly.h (scop_do_interchange): Update declaration.
6564 (scop_do_strip_mine): Same.
6566 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6568 * graphite-clast-to-gimple.c (precision_for_value): Removed.
6569 (precision_for_interval): Removed.
6570 (gcc_type_for_interval): Use mpz_sizeinbase.
6572 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6574 * graphite-ppl.h (value_max): Correct computation of max.
6576 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6578 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
6580 2011-07-05 Richard Guenther <rguenther@suse.de>
6582 * c-decl.c (c_init_decl_processing): Defer building common
6583 tree nodes to c_common_nodes_and_builtins.
6585 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
6587 PR tree-optimization/49580
6588 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
6589 the loop's number of iterations.
6590 * tree-parloops.c (transform_to_exit_first_loop): Add the
6591 handling of the loop's number of iterations before the call
6592 to gimple_duplicate_sese_tail.
6593 Insert the stmt caclculating the new rhs of the loop's
6594 condition stmt to the preheader instead of iters_bb.
6596 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
6598 PR rtl-optimization/47449
6599 * fwprop.c (forward_propagate_subreg): Don't propagate hard
6600 register nor zero/sign extended hard register.
6602 2011-07-05 Richard Guenther <rguenther@suse.de>
6604 PR tree-optimization/49518
6605 PR tree-optimization/49628
6606 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
6607 irrelevant and invariant data-references.
6608 (vect_analyze_data_ref_access): For invariant loads clear the
6611 2011-07-04 Jakub Jelinek <jakub@redhat.com>
6613 PR rtl-optimization/49619
6614 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
6615 pass VOIDmode as op0_mode to recursive call, and return temp even
6616 when different from tor, just if it is not IOR of the original
6619 PR rtl-optimization/49472
6620 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
6621 negating MULT, negate the second operand instead of first.
6622 (simplify_binary_operation_1) <case MULT>: If one operand is
6623 a NEG and the other is MULT, don't attempt to optimize by negation
6624 of the MULT operand if it only moves the NEG operation around.
6627 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
6628 get_current_def return value if it can't be trusted to be
6629 the current value of the variable in the current bb.
6631 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
6634 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
6635 general register to memory for !TARGET_INTER_UNIT_MOVES.
6637 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
6640 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
6641 instead of TREE_READONLY.
6643 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
6645 * doc/extend.texi (AVR Built-in Functions): Update documentation
6646 of __builtin_avr_fmul*.
6647 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
6648 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
6649 * config/avr/avr.md (fmul): Rename to fmul_insn.
6650 (fmuls): Rename to fmuls_insn.
6651 (fmulsu): Rename to fmulsu_insn.
6652 (fmul,fmuls,fmulsu): New expander.
6653 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
6654 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
6655 * config/avr/libgcc.S (__fmul): New function.
6656 (__fmuls): New function.
6657 (__fmulsu,__fmulsu_exit): New function.
6659 2011-07-04 Richard Guenther <rguenther@suse.de>
6661 PR tree-optimization/49615
6662 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
6663 basic-block index check.
6665 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
6667 * longlong.h (count_leading_zeros, count_trailing_zeros,
6668 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
6671 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
6673 PR tree-optimization/49610
6674 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
6677 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
6678 Olivier Hainque <hainque@adacore.com>
6679 Nicolas Setton <setton@adacore.com>
6681 * tree.h (TYPE_ARTIFICIAL): New flag.
6682 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
6683 the DIE of the type if it is artificial.
6684 (gen_array_type_die): Likewise.
6685 (gen_enumeration_type_die): Likewise.
6686 (gen_struct_or_union_type_die): Likewise.
6687 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
6688 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
6690 2011-07-01 Jakub Jelinek <jakub@redhat.com>
6692 * tree-object-size.c (pass_through_call): Handle
6693 BUILT_IN_ASSUME_ALIGNED.
6695 2011-07-01 Martin Jambor <mjambor@suse.cz>
6697 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
6699 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
6702 * explow.c (update_nonlocal_goto_save_area): Use proper mode
6703 for stack save area.
6704 * function.c (expand_function_start): Likewise.
6706 2011-07-01 Richard Guenther <rguenther@suse.de>
6709 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
6710 may have unknown refs.
6712 2011-07-01 Kai Tietz <ktietz@redhat.com>
6714 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
6716 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6718 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
6719 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
6720 (Specific, mips-sgi-irix6): Likewise.
6722 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6725 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
6727 2011-07-01 Jakub Jelinek <jakub@redhat.com>
6729 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
6730 [idx]= and [idx1 ... idx2]= before initializers if needed for
6733 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
6735 * config.gcc (score-*-elf): Remove score7.o.
6736 * config/score/t-score-elf: Likewise.
6737 * config/score/score.c: Merge score7 to score.c and
6738 remove forwarding functions.
6739 * config/score/score7.c: Deleted.
6740 * config/score/score7.h: Deleted.
6742 2011-07-01 Richard Guenther <rguenther@suse.de>
6744 PR tree-optimization/49603
6745 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
6747 2011-06-30 Martin Jambor <mjambor@suse.cz>
6749 * tree-sra.c (struct access): Rename total_scalarization to
6750 grp_total_scalarization
6751 (completely_scalarize_var): New function.
6752 (sort_and_splice_var_accesses): Set total_scalarization in the
6753 representative access.
6754 (analyze_access_subtree): Propagate total scalarization accross the
6755 tree, no holes in totally scalarized trees, simplify coverage
6757 (analyze_all_variable_accesses): Call completely_scalarize_var instead
6758 of completely_scalarize_record.
6760 2011-06-30 Richard Henderson <rth@redhat.com>
6762 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
6763 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
6764 * config/i386/i386.c: Don't include dwarf2out.h.
6765 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
6766 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
6767 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
6768 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
6769 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
6771 2011-06-30 Richard Henderson <rth@redhat.com>
6773 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
6774 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6775 * final.c (final_scan_insn): Look for it, and invoke
6776 dwarf2out_frame_debug before the insn if found.
6778 2011-06-30 Richard Henderson <rth@redhat.com>
6780 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
6781 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
6783 2011-06-30 Richard Henderson <rth@redhat.com>
6785 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
6786 Define a vector of this type.
6787 (regs_saved_in_regs): Use a VEC.
6788 (num_regs_saved_in_regs): Remove.
6789 (compare_reg_or_pc): New.
6790 (record_reg_saved_in_reg): Split out from...
6791 (dwarf2out_flush_queued_reg_saves): ... here.
6792 (clobbers_queued_reg_save): Update for VEC.
6793 (reg_saved_in): Likewise.
6794 (dwarf2out_frame_debug_init): Likewise.
6795 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
6796 (dwarf2out_frame_debug_cfa_register): Likewise.
6798 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
6800 PR tree-optimization/49572
6801 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
6802 type of the RHS instead of that of the LHS for the expression type.
6804 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
6806 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
6809 2011-06-30 Richard Guenther <rguenther@suse.de>
6811 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
6812 * tree-ssa-structalias.c (create_variable_info_for): Do not
6813 add initial constraints for non-var-decls. Properly handle
6814 globals in other ltrans partitions.
6815 (intra_create_variable_infos): Manually create constraints for
6816 the fake no-alias parameter.
6817 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
6818 and assert there are no clones.
6820 2011-06-30 Richard Guenther <rguenther@suse.de>
6822 PR tree-optimization/46787
6823 * tree-data-ref.c (dr_address_invariant_p): Remove.
6824 (find_data_references_in_stmt): Invariant accesses are ok now.
6825 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
6826 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
6829 2011-06-30 Martin Jambor <mjambor@suse.cz>
6831 PR tree-optimization/49094
6832 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
6833 (build_accesses_from_assign): Use it.
6835 2011-06-30 Jakub Jelinek <jakub@redhat.com>
6837 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
6838 handling of BUILT_IN_ASSUME_ALIGNED.
6841 * dwarf2out.c (output_abbrev_section): Don't return early
6842 if abbrev_die_table_in_use is 1.
6843 (dwarf2out_finish): Instead don't call output_abbrev_section
6844 nor emit abbrev_section_label in that case.
6846 2011-06-30 Nick Clifton <nickc@redhat.com>
6848 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
6851 2011-06-30 Jakub Jelinek <jakub@redhat.com>
6853 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
6854 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
6856 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
6858 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
6859 both pattern and original statements if necessary.
6860 (vect_transform_loop): Likewise.
6861 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
6862 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
6863 Mark the pattern statement only if the original statement doesn't
6865 (process_use): Call vect_mark_relevant with additional parameter.
6866 (vect_mark_stmts_to_be_vectorized): Likewise.
6867 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
6868 (vect_analyze_stmt): Handle both pattern and original statements
6870 (vect_transform_stmt): Don't store vectorized pattern statement
6871 in the original statement.
6872 (vect_is_simple_use_1): Use related pattern statement only if the
6873 original statement is irrelevant.
6874 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
6876 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
6878 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
6880 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
6882 (TARGET_AVX128_OPTIMAL): New definition.
6883 * config/i386/i386.c (initial_ix86_tune_features): Initialize
6884 X86_TUNE_AVX128_OPTIMAL entry.
6885 (ix86_option_override_internal): Enable the generation
6886 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
6887 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
6888 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
6890 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
6892 PR tree-optimization/49539
6893 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
6894 names by means of stmt_references_abnormal_ssa_name.
6895 (associate_plusminus): Call can_propagate_from before propagating
6896 from definition statements.
6897 (ssa_forward_propagate_and_combine): Remove superfluous newline.
6899 2011-06-29 Richard Guenther <rguenther@suse.de>
6901 * doc/invoke.texi: Document -scev dump modifier.
6902 * tree-pass.h (TDF_SCEV): New dump flag.
6903 * tree-dump.c (dump_option_value_in): Add scev.
6904 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
6905 * tree-scalar-evolution.c: Likewise.
6907 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
6909 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
6910 (cxa_type_match): Correct declaration.
6911 (__gnu_unwind_pr_common): Reconstruct additional indirection
6912 when __cxa_type_match returns succeeded_with_ptr_to_base.
6914 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6916 PR rtl-optimization/49114
6917 * reload.c (struct replacement): Remove SUBREG_LOC member.
6918 (push_reload): Do not set it.
6919 (push_replacement): Likewise.
6920 (subst_reload): Remove dead code.
6921 (copy_replacements): Remove assertion.
6922 (copy_replacements_1): Do not handle SUBREG_LOC.
6923 (move_replacements): Likewise.
6924 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
6925 Detect subregs via recursive descent instead of via SUBREG_LOC.
6927 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
6929 * config/avr/avr.c (avr_encode_section_info): Dispatch to
6930 default_encode_section_info.
6932 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
6934 PR tree-optimization/49545
6935 * builtins.c (get_object_alignment_1): Update function comment.
6936 Do not use DECL_ALIGN for functions, but test
6937 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
6938 * fold-const.c (get_pointer_modulus_and_residue): Don't check
6940 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
6942 2011-06-29 Jakub Jelinek <jakub@redhat.com>
6945 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
6946 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
6948 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
6951 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
6952 about uninitialized data attributed 'progmem' from here...
6953 (avr_encode_section_info): ...to this new function.
6954 (TARGET_ENCODE_SECTION_INFO): New define.
6955 (avr_section_type_flags): For data in ".progmem.data", remove
6956 section flag SECTION_WRITE.
6958 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
6960 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
6962 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
6963 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
6964 (__umulhisi3): Ditto.
6965 * config/avr/avr.md (mulhisi3): New insn expender.
6966 (umulhisi3): New insn expender.
6967 (*mulhisi3_call): New insn.
6968 (*umulhisi3_call): New insn.
6970 2011-06-28 Joseph Myers <joseph@codesourcery.com>
6972 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
6974 2011-06-28 Richard Henderson <rth@redhat.com>
6976 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
6977 all code and arguments that handled pushes. Update all callers.
6979 2011-06-28 Richard Henderson <rth@redhat.com>
6981 * config/arm/arm.c (arm_output_function_prologue): Don't call
6982 thumb1_output_function_prologue.
6983 (arm_expand_prologue): Avoid dead store.
6984 (number_of_first_bit_set): Use ctz_hwi.
6985 (thumb1_emit_multi_reg_push): New.
6986 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
6987 to emit the entire prologue as rtl.
6988 (thumb1_output_interwork): Split out from
6989 thumb1_output_function_prologue.
6990 (thumb1_output_function_prologue): Remove.
6991 (arm_attr_length_push_multi): Handle thumb1.
6992 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
6993 (prologue_thumb1_interwork): New.
6994 (*push_multi): Allow thumb1; use push_mult_memory_operand.
6995 * config/arm/predicates.md (push_mult_memory_operand): New.
6997 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
6999 * config/sparc/sync.md (*stbar): Delete.
7000 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
7002 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
7004 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
7006 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7008 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
7009 (TARGET_64BIT_DEFAULT): Define.
7010 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
7012 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
7014 2011-06-28 Joseph Myers <joseph@codesourcery.com>
7016 * common.opt (in_lto_p): New Variable entry.
7017 * flags.h (in_lto_p): Move to common.opt.
7018 * gcc.c: Include params.h.
7019 (set_option_handlers): Also use common_handle_option and
7020 target_handle_option.
7021 (main): Call global_init_params, finish_params and init_options_struct.
7022 * opts.c (debug_type_names): Move from toplev.c.
7023 (print_filtered_help): Access quiet_flag through opts pointer.
7024 (common_handle_option): Return early in the driver for some options.
7025 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
7027 * toplev.c (in_lto_p): Move to common.opt.
7028 (debug_type_names): Move to opts.c.
7029 * Makefile.in (OBJS): Remove opts.o.
7030 (OBJS-libcommon-target): Add opts.o.
7031 (gcc.o): Update dependencies.
7033 2011-06-28 Kai Tietz <ktietz@redhat.com>
7035 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
7037 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7039 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
7040 with '=' constraint modifier.
7041 (*divdf3_vfp): Likewise.
7042 ("*mulsf3_vfp"): Likewise.
7043 ("*muldf3_vfp"): Likewise.
7044 ("*mulsf3negsf_vfp"): Likewise.
7045 ("*muldf3negdf_vfp"): Likewise.
7047 2011-06-28 Nick Clifton <nickc@redhat.com>
7049 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
7050 relaxation when performing an incremental link.
7052 2011-06-28 Kai Tietz <ktietz@redhat.com>
7054 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
7055 within BB from last to first.
7057 2011-06-28 Joseph Myers <joseph@codesourcery.com>
7059 * genattr-common.c: New. Based on genattr.c.
7060 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
7061 (MOSTLYCLEANFILES): Add insn-attr-common.h.
7062 (opts.o): Update dependencies.
7063 (.PRECIOUS): Add insn-attr-common.h.
7064 (simple_rtl_generated_h): Add insn-attr-common.h.
7065 (build/genattr-common.o): New.
7066 (genprogrtl): Add attr-common.
7067 * genattr.c (main): Include insn-attr-common.h. Don't generate
7068 definitions of DELAY_SLOTS or INSN_SCHEDULING.
7069 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
7071 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
7073 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
7074 avr-*-* and avr-*-rtems* targets.
7076 * config/avr/elf.h: New file.
7077 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
7078 (TARGET_ASM_SELECT_SECTION): Define.
7079 (INIT_SECTION_ASM_OP): Undefine.
7080 (FINI_SECTION_ASM_OP): Undefine.
7081 (READONLY_DATA_SECTION_ASM_OP): Undefine.
7082 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
7083 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
7085 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
7086 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
7087 (MAX_OFILE_ALIGNMENT): Move to elf.h.
7088 (STRING_LIMIT): Move to elf.h.
7089 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
7090 (ASM_DECLARE_OBJECT_NAME): Remove.
7092 (ASM_OUTPUT_SKIP): Remove.
7093 (DWARF2_DEBUGGING_INFO): Remove.
7094 (OBJECT_FORMAT_ELF): Remove.
7095 (USER_LABEL_PREFIX): Remove.
7096 (ASM_OUTPUT_EXTERNAL): Remove.
7097 (ASM_OUTPUT_ASCII): Remove.
7098 (TYPE_ASM_OP): Remove.
7099 (SIZE_ASM_OP): Remove.
7100 (WEAK_ASM_OP): Remove.
7101 (STRING_ASM_OP): Remove.
7102 (SET_ASM_OP): Remove.
7103 (ASM_WEAKEN_LABEL): Remove.
7104 (TYPE_OPERAND_FMT): Remove.
7105 (ASM_DECLARE_FUNCTION_SIZE): Remove.
7106 (ASM_FINISH_DECLARE_OBJECT): Remove.
7107 (NO_DOLLAR_IN_LABEL): Remove.
7108 (ASM_GENERATE_INTERNAL_LABEL): Remove.
7109 (ASM_OUTPUT_CASE_LABEL): Remove.
7110 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
7111 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
7112 (gas_output_ascii): Remove.
7113 (gas_output_limited_string): Remove.
7114 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
7115 * config/avr/avr-protos.h
7116 (gas_output_ascii): Remove prototye.
7117 (gas_output_limited_string): Remove prototype.
7119 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
7122 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
7125 2011-06-27 Jan Hubicka <jh@suse.cz>
7127 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
7128 node instead of references in node.
7130 2011-06-27 Richard Henderson <rth@redhat.com>
7132 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
7133 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
7136 2011-06-27 Jakub Jelinek <jakub@redhat.com>
7138 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
7140 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
7141 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
7142 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
7143 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
7144 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
7145 (evaluate_stmt, execute_fold_all_builtins): Handle
7146 BUILT_IN_ASSUME_ALIGNED.
7147 * tree-ssa-dce.c (propagate_necessity): Likewise.
7148 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
7149 call_may_clobber_ref_p_1): Likewise.
7150 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
7151 (expand_builtin_assume_aligned): New function.
7152 * doc/extend.texi (__builtin_assume_aligned): Document.
7155 * cselib.c (promote_debug_loc): If cselib_preserve_constants
7156 and l has two DEBUG_INSN owned locs instead of just one, adjust
7157 the second location's setting_insn too.
7159 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7162 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
7164 2011-06-27 Nick Clifton <nickc@redhat.com>
7166 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
7167 bit position of highest bit set into a count of the high zero bits.
7169 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
7171 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
7173 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
7176 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
7179 2011-06-27 Richard Guenther <rguenther@suse.de>
7181 PR tree-optimization/49394
7182 * passes.c (execute_one_pass): Restore current_pass after
7183 applying IPA transforms.
7185 2011-06-27 Kai Tietz <ktietz@redhat.com>
7187 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
7188 out of type precision after operation.
7189 (find_bswap): Take for limit value the integer auto-promotion
7192 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
7194 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
7195 forward scan as well.
7197 2011-06-27 Tristan Gingold <gingold@adacore.com>
7200 * config/vms/vms-protos.h: New file.
7201 * config/vms/vms-crtlmap.map: New file.
7202 * config/vms/vms.c: New file.
7203 * config/vms/make-crtlmap.awk: New file.
7204 * config/vms/vms-crtl.h: File removed.
7205 * config/vms/vms-crtl-64.h: File removed.
7206 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
7207 * config/alpha/vms64.h: Do not include vms-crtl-64.h
7208 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
7209 clear some builtins on VMS. Calls vms_patch_builtins.
7210 (avms_asm_output_external): Remove.
7211 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
7212 (struct crtl_name_spec): Remove
7213 (DO_CTRL_NAMES): Remove.
7214 * config/ia64/vms.h (struct crtl_name_spec): Remove
7215 (DO_CTRL_NAMES): Remove.
7216 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
7217 clear some builtins on VMS. Calls vms_patch_builtins.
7218 (ia64_asm_output_external): Remove DO_CRTL_NAME.
7219 * config/ia64/vms64.h: Do not include vms-crtl-64.h
7220 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
7222 2011-06-27 Tristan Gingold <gingold@adacore.com>
7224 * config/alpha/alpha.c (alpha_end_function): Always generate .end
7227 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
7229 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
7230 the function receives nonlocal gotos.
7232 2011-06-27 Richard Guenther <rguenther@suse.de>
7234 PR tree-optimization/49536
7235 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
7236 For non-scalar inner types use a scalar type according to
7237 the scalar inner mode.
7239 2011-06-27 Richard Guenther <rguenther@suse.de>
7241 PR tree-optimization/49365
7242 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
7244 2011-06-27 Richard Guenther <rguenther@suse.de>
7246 PR tree-optimization/49169
7247 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
7248 the alignment of function decls.
7250 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
7253 * config/darwin.c (darwin_mergeable_string_section): Place string
7254 constants in '.cstring' rather than '.const' when CF/NSStrings are
7257 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
7259 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
7260 (emit_save_register_window): Likewise.
7261 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
7262 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
7263 Swap back %o7/%i7 in register naming.
7265 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
7268 * config/darwin.c (darwin_override_options): Improve warning when
7269 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
7270 is given with fpie/fPIE.
7271 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
7272 * config/darwin9.h (PIE_SPEC): New.
7274 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
7276 * timevar.c (timevar_print): Increase width for display of timevar
7279 2011-06-24 Jakub Jelinek <jakub@redhat.com>
7282 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
7283 instead of TYPE_CHAIN for chain_next for types.
7285 2011-06-24 Richard Henderson <rth@redhat.com>
7287 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
7288 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
7289 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
7290 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
7291 (sparc_flat_expand_prologue): Emit individual instructions
7292 instead of one of the above.
7294 2011-06-24 Easwaran Raman <eraman@google.com>
7296 PR rtl-optimization/49429
7298 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
7299 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
7300 used to copy y into x.
7301 * calls.c (initialize_argument_information): Mark
7302 an argument addressable if it is passed by invisible reference.
7303 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
7304 if it is passed by reference.
7306 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
7308 PR rtl-optimization/49504
7309 * rtlanal.c (nonzero_bits1): Properly handle addition or
7310 subtraction of a pointer in Pmode if pointers extend unsigned.
7311 (num_sign_bit_copies1): Likewise.
7313 2011-06-24 Martin Jambor <mjambor@suse.cz>
7315 PR tree-optimizations/49516
7316 * tree-sra.c (sra_modify_assign): Choose the safe path for
7317 aggregate copies if we also did scalar replacements.
7319 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7322 * config/arm/predicates.md (add_operator): New.
7323 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
7325 2011-06-24 Andi Kleen <ak@linux.intel.com>
7327 * tree-sra.c (type_internals_preclude_sra_p): Add msg
7328 parameter. Split up ifs and report reason in *msg.
7330 (find_var_candiate): Add msg variable.
7331 Split up ifs and report reason to reject.
7332 (find_param_candidates): Add msg variable.
7333 Pass msg to type_internals_preclude_sra_p.
7335 2011-06-23 Jeff Law <law@redhat.com>
7338 * reload.h (reload): Change to return a bool.
7339 * ira.c (ira): If requested by reload, run a fast DCE pass after
7340 reload has completed. Fix comment typo.
7341 * reload1.c (need_dce): New file scoped static.
7342 (reload): Set reload_completed here. Return whether or not a DCE
7343 pass after reload is needed.
7344 (delete_dead_insn): Set need_dce as needed.
7347 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
7348 to detect threading through joiner block. If there was already
7349 an edge to the new target, then do not change the PHI nodes.
7351 2011-06-23 Jakub Jelinek <jakub@redhat.com>
7353 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
7354 get_pointer_alignment to see if base isn't sufficiently aligned.
7356 2011-06-23 Jan Hubicka <jh@suse.cz>
7358 PR tree-optimize/49373
7359 * tree-pass.h (all_late_ipa_passes): Declare.
7360 * cgraphunit.c (init_lowered_empty_function): Fix properties.
7361 (cgraph_optimize): Execute late passes; remove unreachable funcions
7362 after materialization.
7363 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
7365 * passes.c (all_late_ipa_passes): Declare.
7366 (dump_passes, register_pass): Handle late ipa passes.
7367 (init_optimization_passes): Move ipa_pta to late passes; schedule
7368 fixup_cfg at beggining of all_passes.
7369 (apply_ipa_transforms): New function.
7370 (execute_one_pass): When doing simple ipa pass, apply all transforms.
7372 2011-06-23 Joseph Myers <joseph@codesourcery.com>
7374 * params.c: Include common/common-target.h. Don't include tm.h.
7375 (lang_independent_params): Move from toplev.c.
7376 (global_init_params): New.
7377 * params.h (global_init_params): Declare.
7378 * target.def (default_params): Move to common-target.def.
7379 * toplev.c (lang_independent_options): Remove.
7380 (lang_independent_params): Move to params.c.
7381 (general_init): Use global_init_params.
7382 * common/common-target.def (option_default_params): Move from
7384 * common/config/ia64/ia64-common.c: Include params.h.
7385 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
7387 * common/config/rs6000/rs6000-common.c: Include params.h.
7388 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
7390 * common/config/sh/sh-common.c: Include params.h.
7391 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
7393 * common/config/spu/spu-common.c: Include params.h.
7394 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
7396 * config/ia64/ia64.c (ia64_option_default_params,
7397 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
7398 * config/rs6000/rs6000.c (rs6000_option_default_params,
7399 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
7400 * config/sh/sh.c (sh_option_default_params,
7401 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
7402 * config/spu/spu.c (spu_option_default_params,
7403 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
7404 * Makefile.in (OBJS): Remove params.o.
7405 (OBJS-libcommon-target): Add params.o.
7406 (params.o, $(common_out_object_file)): Update dependencies.
7407 * doc/tm.texi: Regenerate.
7409 2011-06-23 Alan Modra <amodra@gmail.com>
7412 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
7413 invocation for 2011-06-09 changes.
7415 2011-06-22 Jakub Jelinek <jakub@redhat.com>
7418 * omp-low.c (expand_omp_for_static_nochunk): Only
7419 use n ceil/ nthreads size for the first n % nthreads threads in the
7420 team instead of all threads except for the last few ones which
7421 get less work or none at all.
7424 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
7427 2011-06-22 Richard Guenther <rguenther@suse.de>
7429 PR tree-optimization/49493
7430 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
7431 Refer to the alias target of variables.
7432 (associate_varinfo_to_alias_1): Remove.
7433 (ipa_pta_execute): Do not associate aliases with anything.
7434 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
7435 (cgraph_function_node): Likewise.
7436 (cgraph_function_or_thunk_node): Likewise.
7437 (varpool_variable_node): Likewise.
7439 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
7441 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
7442 * config.gcc (arm*-*-linux*): Default to gnu tls.
7443 (arm*-*-*): Add --with-tls option.
7444 (all_defaults): Add 'tls'.
7446 2011-06-22 Richard Henderson <rth@redhat.com>
7448 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
7449 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7450 (dwarf2out_frame_debug_cfa_window_save): Rename from
7451 dwarf2out_window_save; make static.
7452 * tree.h (dwarf2out_window_save): Don't declare.
7454 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
7455 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7456 (emit_save_register_window): Rename from gen_save_register_window;
7457 emit the insn and add REG_CFA_* notes.
7458 (sparc_expand_prologue): Update to match.
7459 * config/sparc/sparc.md (save_register_window_1): Simplify from
7460 save_register_window<P:mode>.
7462 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
7465 * config/i386/i386.md (*lea_general_2): Always allow SImode.
7466 (*lea_general_2_zext): Likewise.
7467 (imul to lea peepholes): Use const359_operand and check
7468 TARGET_PARTIAL_REG_STALL.
7470 * config/i386/predicates.md (const359_operand): New.
7472 2011-06-22 Michael Matz <matz@suse.de>
7474 * cgraphunit.c (assemble_thunk): Use correct return type.
7476 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
7477 Dmitry Melnik <dm@ispras.ru>
7479 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
7480 (neon_output_shift_immediate): Ditto.
7481 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
7483 (neon_output_shift_immediate): Ditto.
7484 * config/arm/neon.md (vashl<mode>3): Modified constraint.
7485 (vashr<mode>3_imm): New insn pattern.
7486 (vlshr<mode>3_imm): Ditto.
7487 (vashr<mode>3): Modified constraint.
7488 (vlshr<mode>3): Ditto.
7489 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
7491 (imm_for_neon_rshift_operand): Ditto.
7492 (imm_lshift_or_reg_neon): Ditto.
7493 (imm_rshift_or_reg_neon): Ditto.
7495 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
7497 2011-06-22 Jakub Jelinek <jakub@redhat.com>
7499 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
7500 builtin calls even if likelyvalue is not CONSTANT.
7501 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
7502 Return get_value_for_expr of first operand
7503 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
7504 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7505 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
7506 their non-checking counterparts.
7507 (call_may_clobber_ref_p_1): Likewise.
7508 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
7509 like their non-checking counterparts.
7510 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7511 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
7512 like their non-checking counterparts.
7513 (find_func_clobbers): Likewise.
7514 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
7515 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
7517 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
7518 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
7519 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
7520 of base type reference as argument.
7521 (resolve_addr_in_expr): Likewise. Fix keep computation.
7522 (convert_descriptor_to_signed): Renamed to...
7523 (convert_descriptor_to_mode): ... this. For wider types convert to
7524 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
7525 (typed_binop): New function.
7526 (scompare_loc_descriptor, ucompare_loc_descriptor,
7527 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
7528 default to unsigned type instead of signed.
7531 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
7532 (gimple_build_debug_source_bind_stat): New prototype.
7533 (gimple_build_debug_source_bind): Define.
7534 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
7535 gimple_debug_source_bind_get_value,
7536 gimple_debug_source_bind_get_value_ptr,
7537 gimple_debug_source_bind_set_var,
7538 gimple_debug_source_bind_set_value): New inlines.
7539 * gimple.c (gimple_build_debug_source_bind_stat): New function.
7540 * gimple-pretty-print.c (dump_gimple_debug): Handle
7541 GIMPLE_DEBUG_SOURCE_BIND.
7542 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
7543 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7544 * tree-parloops.c (eliminate_local_variables,
7545 separate_decls_in_region): Likewise.
7546 (separate_decls_in_region_debug): Renamed from
7547 separate_decls_in_region_debug_bind. Handle
7548 gimple_debug_source_bind_p.
7549 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
7551 (DECL_HAS_DEBUG_ARGS_P): Define.
7552 (struct tree_function_decl): Add has_debug_args_flag field.
7553 * tree.c (debug_args_for_decl): New variable.
7554 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
7555 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
7556 (rewrite_debug_stmt_uses): New function.
7557 (rewrite_stmt): Use it to rewrite debug stmt uses.
7558 * rtl.def (DEBUG_PARAMETER_REF): New.
7559 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
7560 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
7561 DEBUG_PARAMETER_REF.
7562 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
7563 * print-rtl.c (print_rtx): Likewise.
7564 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
7565 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
7566 debug stmts in the first bb.
7567 * tree-inline.c (remap_ssa_name): If remapping default def
7568 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
7569 a source bind debug stmt.
7570 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
7571 (maybe_move_debug_stmts_to_successors): Likewise.
7572 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
7573 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
7574 debug args vector from old_decl to new_decl.
7575 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
7576 or modified parameters, add debug bind stmts before call
7577 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
7578 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
7579 on DECL_DEBUG_EXPRs from debug args vector.
7580 (expand_debug_source_expr): New function.
7581 (expand_debug_locations): Use it for source bind insns.
7582 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
7583 * var-tracking.c (prepare_call_arguments): Add debug args
7584 to call_arguments if any.
7585 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
7586 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
7587 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
7588 (get_ref_die_offset, parameter_ref_descriptor): New functions.
7589 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
7590 (gen_subprogram_die): Handle parameters identified by
7591 DEBUG_PARAMETER_REF.
7593 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
7595 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
7596 * doc/install.texi (Configuration): Document --with-tls.
7597 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
7598 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
7599 (arm_tls_descseq_addr): New.
7600 (legitimize_tls_address): Add tlsdesc support.
7601 (arm_cannot_copy_insn_p): Check for tlscall.
7602 (arm_emit_tls_decoration): Likewise.
7603 * config/arm/arm.h (TARGET_GNU2_TLS): New.
7604 (OPTION_DEFAULT_SPECS): Add with-tls support.
7605 * config/arm/arm.md (R1_REGNUM): Define.
7607 * config/arm/arm.opt (tls_type): New enumeration type and values.
7608 (mtls-dialect): New switch.
7609 * config/arm/arm-opts.h (enum tls_type): New.
7611 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
7613 * attribs.c (register_attribute): Added assert to check that all
7614 attribute specs are registered with a name that is not empty and
7615 does not start with '_'.
7616 (decl_attributes): Avoid the lookup of the "naked" attribute spec
7617 if the function has no attributes.
7618 * tree.c (is_attribute_with_length_p): Removed.
7619 (is_attribute_p): Removed.
7620 (private_is_attribute_p): New.
7621 (private_lookup_attribute): New.
7622 (lookup_attribute): Removed.
7623 (lookup_ident_attribute): New.
7624 (remove_attribute): Require the first argument to be in the form
7625 'text', not '__text__'. Updated asserts.
7626 (merge_attributes): Use lookup_ident_attributes instead of
7628 (merge_dllimport_decl_attributes): Use remove_attribute.
7629 (attribute_list_contained): Likewise.
7630 (attribute_list_equal): Immediately return 1 if the arguments are
7632 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
7633 'int'. Require the first argument to be in the form 'text', not
7634 '__text__'. Require the second argument to be an identifier.
7635 (lookup_attribute): Made inline. Require the first argument to be
7636 in the form 'text', not '__text__'.
7637 (private_is_attribute_p, private_lookup_attribute): New.
7640 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
7642 * builtins.c: Add sync_ or SYNC__ to builtin names.
7643 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
7644 * omp-low.c: Add sync_ or SYNC__ to builtin names.
7646 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
7649 * config/avr/avr.md (extzv): New expander.
7651 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
7652 * config/avr/constraints.md (C04): New constraint.
7653 * doc/md.texi (Machine Constraints): Document it.
7655 2011-06-21 Jakub Jelinek <jakub@redhat.com>
7658 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
7659 unsignedp argument instead of 1 for clrsb_optab.
7660 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
7661 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
7662 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
7663 * optabs.c (widen_leading): Call widen_operand and expand_unop
7664 with 0 as unsignedp argument instead of 1 for clrsb_optab.
7665 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
7667 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
7669 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
7671 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
7673 * gensupport.c (add_define_attr): New static function.
7674 (is_predicable): Allow multi-alternative lists for the "predicable"
7676 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
7677 (process_one_cond_exec): Call alter_attrs_for_insn.
7678 * doc/md.texi (Defining Attributes): Mention some standard names.
7679 (Conditional Execution): Update documentation for "predicable".
7681 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
7682 __builtin_clrsbll): Document.
7683 * doc/rtl.texi (clrsb): New entry.
7684 * optabs.c (widen_leading): Renamed from widen_clz. New argument
7685 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
7686 (expand_unop): Handle clrsb_optab.
7687 (init_optabs): Initialize it.
7688 * optabs.h (enum optab_index): New entry OTI_clrsb.
7689 (clrsb_optab): Define.
7690 * genopinit.c (optabs): Add an entry for it.
7691 * builtins.c (expand_builtin): Handle clrsb builtin functions.
7692 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
7693 BUILT_IN_CLRSBLL): New.
7694 * rtl.def (CLRSB): New code.
7695 * dwarf2out.c (mem_loc_descriptor): Handle it.
7696 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7697 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
7699 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
7700 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
7701 (__ctzDI2): Move declaration.
7702 * config/bfin/bfin.md (clrsbsi2): New expander.
7703 (signbitssi2): Use the CLRSB rtx.
7704 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
7705 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
7707 2011-06-21 Richard Guenther <rguenther@suse.de>
7709 * ipa-inline-transform.c (inline_transform): Fix previous change.
7711 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
7713 PR tree-optimization/49478
7714 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
7715 with constant operand.
7717 2011-06-21 Richard Guenther <rguenther@suse.de>
7719 * ipa-inline-transform.c (inline_transform): Fix typo.
7721 2011-06-21 Richard Guenther <rguenther@suse.de>
7723 PR tree-optimization/49483
7724 * tree-vect-stmts.c (vectorizable_assignment): Also handle
7725 VIEW_CONVERT_EXPR conversions.
7727 2011-06-21 Joseph Myers <joseph@codesourcery.com>
7729 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
7730 * config/avr/avr-tables.opt: New file (generated).
7731 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
7732 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
7734 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
7735 (avr_option_override): Don't process -mmcu= argument here. Set
7736 avr_current_device using avr_mcu_index.
7737 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
7738 * config/avr/avr.opt (mmcu=): Use Enum.
7739 * config/avr/t-avr (avr-devices.o): Update dependencies.
7740 ($(srcdir)/config/avr/avr-tables.opt): New.
7741 * target.def (help): Remove.
7742 * doc/tm.texi.in (TARGET_HELP): Remove.
7743 * doc/tm.texi: Regenerate.
7744 * opts.c: Don't include target.h.
7745 (common_handle_option): Don't call targetm.help.
7746 * system.h (TARGET_HELP): Poison.
7747 * Makefile.in (opts.o): Update dependencies.
7749 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7751 * config/usegld.h: New file.
7752 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
7753 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
7754 (LIB_SPEC): Likewise. Search /lib.
7755 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
7756 (RDYNAMIC_SPEC): Handle GNU ld.
7757 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
7759 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
7760 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
7761 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
7762 (STACK_CHECK_STATIC_BUILTIN): Define.
7763 * config/sol2.opt (compat-bsd): Remove.
7764 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
7765 * config/sol2-bi.h: New file.
7766 * config/sol2-gld.h: Remove.
7767 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
7768 (NO_DBX_BNSYM_ENSYM): Remove.
7769 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
7770 (STACK_CHECK_STATIC_BUILTIN): Remove.
7771 Test USE_GLD instead of TARGET_GNU_LD.
7772 * config/i386/sol2-10.h: Rename to ...
7773 * config/i386/sol2-bi.h .. this.
7774 (SUBTARGET_EXTRA_SPECS): Redefine.
7775 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
7776 (MULTILIB_DEFAULTS): Remove.
7777 (DEFAULT_ARCH32_P): Define.
7778 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
7779 (ARCH64_SUBDIR): Define.
7780 Test USE_GLD instead of TARGET_GNU_LD.
7781 (I386_EMULATION): Rename to ...
7782 (ARCH32_EMULATION): ... this.
7783 (X86_64_EMULATION): Rename to ...
7784 (ARCH64_EMULATION): ... this.
7785 (TARGET_LD_EMULATION): Remove.
7786 (LINK_ARCH_SPEC): Remove.
7787 * config/i386/sol2-gas.h: Remove.
7788 * config/i386/t-sol2-10: Rename to ...
7789 * config/i386/t-sol2-64: ... this.
7790 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
7791 (AS_SPARC64_FLAG): Define.
7792 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
7793 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
7794 depending on TARGET_CPU_DEFAULT.
7795 (CPP_CPU_SPEC): Redefine.
7796 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
7797 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
7798 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
7799 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
7800 ASM_ARCH_DEFAULT_SPEC): Redefine.
7801 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7802 LINK_ARCH_DEFAULT_SPEC.
7803 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
7804 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
7805 (ARCH64_SUBDIR): Define.
7806 (LINK_ARCH64_SPEC): Redefine.
7807 (CC1_SPEC): Redefine.
7808 (OPTION_DEFAULT_SPECS): Redefine.
7809 (MULTILIB_DEFAULTS): Define.
7810 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
7811 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
7812 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
7813 (NO_DBX_BNSYM_ENSYM): Remove.
7814 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
7815 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
7816 (TARGET_ASM_NAMED_SECTION): Likewise.
7817 (STACK_CHECK_STATIC_BUILTIN): Remove.
7818 * config/sparc/sol2-bi.h: Remove.
7819 * config/sparc/sol2-gas-bi.h: Remove.
7820 * config/sparc/sol2-gas.h: Remove.
7821 * config/sparc/sol2-gld-bi.h: Remove.
7822 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
7824 (*-*-solaris2*): ... here.
7826 2011-06-21 Christian Bruel <christian.bruel@st.com>
7829 * ipa-inline.c (can_inline_edge_p): Check
7830 !DECL_DISREGARD_INLINE_LIMITS.
7832 2011-06-21 Christian Bruel <christian.bruel@st.com>
7835 * cgraphunit.c (process_function_and_variable_attributes): warn when
7836 always_inline functions that are not inline.
7837 * ipa-inline-transform.c (inline_transform): Always call
7839 * tree-inline.c (tree_inlinable_function_p): Use error instead
7841 (expand_call_inline): Likewise.
7843 2011-06-21 Jakub Jelinek <jakub@redhat.com>
7845 * Makefile.in (dg_target_exps): Set.
7846 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
7847 instead of 7, try to divide it more evenly.
7849 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
7852 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
7853 (avx256_split_unaligned_store): New definition.
7854 (ix86_option_override_internal): Enable avx256 unaligned load/store
7855 splitting only when avx256_split_unaligned_load/store is set.
7857 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
7859 * regrename.c (scan_rtx_reg): Handle the case where we write to an
7860 open chain in a smaller mode without failing the entire block.
7862 2011-06-21 Alan Modra <amodra@gmail.com>
7864 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
7865 CONST high part large-toc address.
7866 (rs6000_tls_referenced_p): Make static.
7867 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
7869 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7872 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
7873 one of the operands is a register.
7875 2011-06-20 Kai Tietz <ktietz@redhat.com>
7877 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
7878 operations in combination with binary and.
7880 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
7882 * regrename.c (do_replace): Don't update notes.
7884 2011-06-20 Alan Modra <amodra@gmail.com>
7886 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
7887 of toc-relative address in CONST.
7888 (rs6000_delegitimize_address): Recognize changed address.
7889 (rs6000_legitimize_reload_address): Likewise.
7890 (rs6000_emit_move): Don't force these constants to memory.
7891 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
7892 toc-relative address in CONST.
7893 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
7894 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
7896 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
7898 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
7899 (count_trailing_zeros): Likewise.
7901 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
7904 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
7905 .init_array can be used with .ctors on targets.
7906 * configure: Regenerated.
7908 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
7910 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
7911 if the element type is volatile.
7913 2011-06-18 Jan Hubicka <jh@suse.cz>
7915 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
7917 (lto_symtab_resolve_can_prevail_p): Likewise.
7918 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
7919 * cgraphbuild.c (record_reference): Remove extra body alias code.
7920 (mark_load): Likewise.
7921 (mark_store): Likewise.
7922 * cgraph.h (varpool_node): Remove extra_name filed;
7923 add alias_of and extraname_alias.
7924 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
7925 (varpool_alias_aliased_node): New inline function.
7926 (varpool_variable_node): New function.
7927 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
7928 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
7929 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
7930 (input_varpool_node): Likewise.
7931 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
7932 (varpool_externally_visible_p): Remove extra body alias code.
7933 (function_and_variable_visibility): Likewise.
7934 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
7935 (ipa_pta_execute): Use it.
7936 * varpool.c (varpool_remove_node): Remove extra name alias code.
7937 (varpool_mark_needed_node): Likewise.
7938 (varpool_analyze_pending_decls): Analyze aliases.
7939 (assemble_aliases): New functoin.
7940 (varpool_assemble_decl): Use it.
7941 (varpool_create_variable_alias): New function.
7942 (varpool_extra_name_alias): Rewrite.
7943 (varpool_for_node_and_aliases): New function.
7945 2011-06-18 Jakub Jelinek <jakub@redhat.com>
7948 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
7949 last_arg_constant and last argument doesn't match its predicate,
7950 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
7951 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
7952 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
7953 spelling of error message.
7954 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
7955 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
7956 const_0_to_255_operand instead of const_int_operand.
7959 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7961 * config/i386/sse.md (blendbits): Remove mode attribute.
7962 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
7963 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
7964 Check integer value of operand 3 in insn constraint.
7966 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
7968 PR rtl-optimization/48542
7969 * reload.c (find_equiv_reg): Stop looking when finding a
7971 * reload1.c (reload_as_needed): Invalidate all reload
7972 registers when crossing a setjmp-type call.
7974 2011-06-16 Jeff Law <law@redhat.com>
7976 * tree-ssa-threadupdate.c (struct redirection_data): New field
7978 (THREAD_TARGET2): Define.
7979 (redirection_data_eq): Also check that the intermediate edge is equal.
7980 (lookup_redirection_data): Drop useless argument. Extract the
7981 outgoing_edge and intermediate edge from E. Callers updated.
7982 (copy_phi_args, update_destination_phis): New functions.
7983 (fix_duplicate_block_edges): Likewise.
7984 (create_edge_and_update_destination_phis): Duplicate all the edges
7985 hung off e->aux. Use copy_phi_args.
7986 (create_duplicates): Use fix_duplicate_block_edges.
7987 (fixup_template_block): Likewise.
7988 (redirect_edges): If necessary, redirect the joiner block's incoming
7989 edge to the duplicate of the joiner block.
7990 (thread_block): Don't muck up loops when threading through a joiner
7992 (thread_through_loop_header): Handle threading through a joiner block.
7993 (mark_threaded_blocks, register_jump_thread): Likewise.
7994 * tree-flow.h (register_jump_thread): Add new argument. Callers
7996 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
7997 (thread_across_edge): Handle threading through a joiner block.
7999 2011-06-16 Martin Jambor <mjambor@suse.cz>
8001 PR tree-optimization/49343
8002 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
8003 calculate offset, provide 2nd operand for the new COMPONENT_REF.
8005 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
8007 * config/darwin-protos.h (machopic_select_rtx_section): Move to
8008 inside RTX_CODE ifdef.
8010 2011-06-16 Tom de Vries <tom@codesourcery.com>
8013 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
8014 Disallow NULL pointer for pointer arithmetic.
8016 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8020 2011-06-10 Wei Guozhi <carrot@google.com>
8023 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
8024 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
8025 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
8027 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
8029 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
8030 (arm_legitimate_ldrd_p): New prototype.
8031 (arm_output_ldrd): New prototype.
8032 * config/arm/arm.c (arm_check_ldrd_operands): New function.
8033 (arm_legitimate_ldrd_p): New function.
8034 (arm_output_ldrd): New function.
8036 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
8039 * doc/tm.texi.in: Update Copyright date.
8040 * doc/tm.texi: Regenerate.
8041 * targhooks.c (default_setup_incoming_varargs): Replace
8042 CUMULATIVE_ARGS* argument type with cumulative_args_t.
8043 (default_pretend_outgoing_varargs_named): Likewise.
8044 (hook_pass_by_reference_must_pass_in_stack): Likewise.
8045 (hook_callee_copies_named): Likewise.
8046 (default_function_arg_advance): Likewise.
8047 (default_function_arg): Likewise.
8048 (default_function_incoming_arg): Likewise.
8049 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
8050 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
8051 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
8052 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
8053 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
8054 * targhooks.h (default_setup_incoming_varargs): Likewise.
8055 (default_pretend_outgoing_varargs_named): Likewise.
8056 (hook_pass_by_reference_must_pass_in_stack): Likewise.
8057 (hook_callee_copies_named): Likewise.
8058 (default_function_arg_advance): Likewise.
8059 (default_function_arg): Likewise.
8060 (default_function_incoming_arg): Likewise.
8061 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
8062 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
8063 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
8064 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
8065 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
8066 * target.def (pass_by_reference): Likewise.
8067 (setup_incoming_varargs, strict_argument_naming): Likewise.
8068 (pretend_outgoing_varargs_named, callee_copies): Likewise.
8069 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
8070 (function_incoming_arg): Likewise.
8071 * target.h: Don't include "tm.h" .
8072 (cumulative_args_t): New typedef.
8073 [GCC_TM_H] (get_cumulative_args): New static inline function.
8074 [GCC_TM_H] (pack_cumulative_args): Likewise.
8075 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
8076 argument type with cumulative_args_t.
8077 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
8078 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
8079 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
8080 (frv_arg_partial_bytes, frv_function_arg): Likewise.
8081 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
8082 (frv_function_arg_1): Likewise.
8083 * config/s390/s390.c (s390_pass_by_reference): Likewise.
8084 (s390_function_arg_advance, s390_function_arg): Likewise.
8085 * config/m32c/m32c.c (m32c_function_arg): Likewise.
8086 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
8087 (m32c_strict_argument_naming): Likewise.
8088 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
8089 (spu_function_arg_advance): Likewise.
8090 (spu_setup_incoming_varargs): Likewise. Make static.
8091 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
8093 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
8094 CUMULATIVE_ARGS* argument type with cumulative_args_t.
8095 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
8096 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
8097 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
8098 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
8099 (mep_pass_by_reference, mep_function_arg): Likewise.
8100 (mep_function_arg_advance): Likewise.
8101 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
8102 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
8103 (m32r_function_arg, m32r_function_arg_advance): Likewise.
8104 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
8105 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
8106 (ix86_function_arg, ix86_pass_by_reference): Likewise.
8107 (ix86_setup_incoming_varargs): Likewise.
8108 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
8109 (sh_strict_argument_naming): Likewise.
8110 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
8111 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
8112 (sh_function_arg_advance, sh_function_arg): Likewise.
8113 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
8114 (pdp11_function_arg_advance): Likewise.
8115 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
8117 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
8118 * config/avr/avr.c (avr_function_arg): Likewise.
8119 (avr_function_arg_advance): Likewise.
8120 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
8121 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
8122 (xtensa_function_arg_1): Likewise.
8123 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
8125 (xstormy16_function_arg): Likewise.
8126 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
8127 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
8128 (fr30_function_arg_advance): Likewise.
8129 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
8130 (lm32_function_arg, lm32_function_arg_advance): Likewise.
8131 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
8132 (moxie_function_arg, moxie_function_arg_advance): Likewise.
8133 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
8134 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
8135 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
8136 (cris_function_arg, cris_function_incoming_arg): Likewise.
8137 (cris_function_arg_advance, cris_function_arg_1): Likewise.
8138 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
8139 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
8140 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
8141 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
8142 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
8143 (mn10300_arg_partial_bytes): Likewise.
8144 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
8145 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
8146 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
8147 (ia64_function_arg_1): Likewise.
8148 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
8149 (m68k_function_arg): Likewise.
8150 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
8151 (rs6000_function_arg, setup_incoming_varargs): Likewise.
8152 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
8153 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
8154 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
8155 (picochip_arg_advance): Likewise.
8156 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
8157 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
8158 (mcore_function_arg_advance): Likewise.
8159 * config/score/score.c (score_pass_by_reference): Likewise.
8160 (score_function_arg_advance): Likewise.
8161 (score_arg_partial_bytes): Likewise. Make static.
8162 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
8163 * config/arm/arm.c (arm_arg_partial_bytes): Replace
8164 CUMULATIVE_ARGS* argument type with cumulative_args_t.
8165 (arm_function_arg, arm_function_arg_advance): Likewise.
8166 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
8167 * config/pa/pa.c (pa_pass_by_reference): Likewise.
8168 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
8169 (pa_function_arg): Likewise.
8170 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
8171 (mips_function_arg, mips_function_arg_advance): Likewise.
8172 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
8173 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
8174 * config/vax/vax.c (vax_function_arg): Likewise.
8175 (vax_function_arg_advance): Likewise.
8176 * config/h8300/h8300.c (h8300_function_arg): Likewise.
8177 (h8300_function_arg_advance): Likewise.
8178 * config/v850/v850.c (v850_pass_by_reference): Likewise.
8179 (v850_strict_argument_naming, v850_function_arg): Likewise.
8180 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
8181 (v850_setup_incoming_varargs): Likewise.
8182 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
8183 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
8184 (mmix_function_arg, mmix_pass_by_reference): Likewise.
8185 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
8187 * config/bfin/bfin.c (setup_incoming_varargs): Replace
8188 CUMULATIVE_ARGS* argument type with cumulative_args_t.
8189 (bfin_function_arg_advance, bfin_function_arg): Likewise.
8190 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
8191 * calls.c (emit_call_1): Change type of args_so_far to
8192 cumulative_args_t. Changed all callers.
8193 (initialize_argument_information): Likewise.
8194 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
8195 * dse.c (get_call_args): Likewise.
8196 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
8197 * function.c (pass_by_reference, reference_callee_copied): Likewise.
8198 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
8199 New member args_so_far_v. Changed all users.
8200 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
8201 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
8202 * config/mips/mips.c (mips_output_args_xfer): Likewise.
8203 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
8204 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8205 * config/microblaze/microblaze.c (microblaze_expand_prologue):
8207 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
8208 m32r_pass_by_reference.
8210 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
8212 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
8213 argument to be a VEC of statements.
8214 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
8215 assert that pattern statements have to have their vector type set.
8216 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
8217 Change the first argument to be a VEC of statements. Update
8219 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
8220 (vect_handle_widen_mult_by_const): New function.
8221 (vect_recog_widen_mult_pattern): Change the first argument to be a
8222 VEC of statements. Update documentation. Check that the constant is
8223 INTEGER_CST. Support multiplication by a constant that fits an
8224 intermediate type - call vect_handle_widen_mult_by_const.
8225 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
8226 call. Handle additional pattern statements if necessary.
8228 2011-06-16 Nick Clifton <nickc@redhat.com>
8231 * config.gcc: Set cpu_type to v850 for any V850 architecture.
8232 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
8233 md_file, extra_modes, out_file and extra_options are these are all
8234 deduced from cpu_type.
8236 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
8238 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
8239 truncation mask to 63.
8241 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
8245 * longlong.h: Add AVR support:
8246 (count_leading_zeros): New macro.
8247 (count_trailing_zeros): New macro.
8248 (COUNT_LEADING_ZEROS_0): New macro.
8249 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
8250 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
8251 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
8252 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
8253 (LIB2FUNCS_EXCLUDE): Add _clz.
8254 * config/avr/libgcc.S (XCALL): Move up in file.
8255 (XJMP): New C Macro.
8256 (DEFUN): New asm macro.
8257 (ENDF): New asm macro.
8258 (__ffssi2): New function.
8259 (__ffshi2): New function.
8260 (__loop_ffsqi2): New function.
8261 (__ctzsi2): New function.
8262 (__ctzhi2): New function.
8263 (__clzdi2): New function.
8264 (__clzsi2): New function.
8265 (__clzhi2): New function.
8266 (__paritydi2): New function.
8267 (__paritysi2): New function.
8268 (__parityhi2): New function.
8269 (__parityqi2): New function.
8270 (__popcounthi2): New function.
8271 (__popcountsi2): New function.
8272 (__popcountdi2): New function.
8273 (__popcountqi2): New function.
8274 (__bswapsi2): New function.
8275 (__bswapdi2): New function.
8276 (__ashldi3): New function.
8277 (__ashrdi3): New function.
8278 (__lshrdi3): New function.
8279 Fix suspicous lines.
8281 2011-06-16 Richard Guenther <rguenther@suse.de>
8283 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
8285 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
8287 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
8288 equality compares against zero for the lower bit.
8290 2011-06-16 Jakub Jelinek <jakub@redhat.com>
8292 PR tree-optimization/49419
8293 * tree-vrp.c (execute_vrp): Call init_range_assertions
8294 before estimate_numbers_of_iterations, call
8295 free_number_of_iterations_estimates before calling
8296 remove_range_assertions.
8298 2011-06-16 Revital Eres <revital.eres@linaro.org>
8300 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
8301 (struct partial_schedule): Add rows_length field.
8302 (verify_partial_schedule): Check rows_length.
8303 (ps_insert_empty_row): Handle rows_length.
8304 (create_partial_schedule): Likewise.
8305 (free_partial_schedule): Likewise.
8306 (reset_partial_schedule): Likewise.
8307 (create_ps_insn): Remove rest_count argument.
8308 (remove_node_from_ps): Update rows_length.
8309 (add_node_to_ps): Update rows_length and call create_ps_insn
8310 without passing row_rest_count.
8311 (rotate_partial_schedule): Update rows_length.
8313 2011-06-16 Revital Eres <revital.eres@linaro.org>
8315 * ddg.c (add_intra_loop_mem_dep): New function.
8316 (build_intra_loop_deps): Call it.
8318 2011-06-13 Jeff Law <law@redhat.com>
8320 * df-problems.c (df_lr_local_compute): Manually CSE
8321 PIC_OFFSET_TABLE_REGNUM.
8322 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
8323 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
8325 2011-06-13 Jan Hubicka <jh@suse.cz>
8327 * cgraphunit.c (handle_alias_pairs): New function.
8328 (cgraph_finalize_compilation_unit): Use it.
8329 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
8330 as externally visible.
8332 2011-06-15 Richard Guenther <rguenther@suse.de>
8334 * expr.c (expand_expr_real_2): Reduce all integral types to
8336 (expand_expr_real_1): Likewise.
8338 2011-06-15 Martin Jambor <mjambor@suse.cz>
8340 PR tree-optimization/48613
8341 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
8342 ipa_node_params_vector is NULL.
8344 2011-06-15 Jakub Jelinek <jakub@redhat.com>
8347 * dwarf2out.c (dw_loc_list_node): Add force field.
8348 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
8349 location in the list, even if it is modified before first real insn.
8350 (output_loc_list): Emit empty ranges with force flag set.
8351 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
8353 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
8356 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
8357 (fence_to_rewind). Use it to notice when bookkeeping will be placed
8358 above a fence. Update comments.
8359 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
8360 placed just above it. Do not allow NULL place_to_insert.
8362 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
8364 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
8365 (slpeel_tree_peel_loop_to_edge): Don't call
8366 remove_dead_stmts_from_loop.
8367 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
8368 remove irrelevant pattern statements. For irrelevant statements
8369 check if it is the last statement of a detected pattern, use
8370 corresponding pattern statement instead.
8371 (destroy_loop_vec_info): No need to remove pattern statements,
8372 only free stmt_vec_info.
8373 (vect_transform_loop): For irrelevant statements check if it is
8374 the last statement of a detected pattern, use corresponding
8375 pattern statement instead.
8376 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
8377 pattern statements. Set basic block for the new statement.
8378 (vect_pattern_recog): Update documentation.
8379 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
8380 operands of pattern statements.
8381 (vectorizable_call): Fix printing. In case of a pattern statement
8382 use the lhs of the original statement when creating a dummy
8383 statement to replace the original call.
8384 (vect_analyze_stmt): For irrelevant statements check if it is
8385 the last statement of a detected pattern, use corresponding
8386 pattern statement instead.
8387 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
8388 statements use gsi of the original statement.
8390 2011-06-14 Joseph Myers <joseph@codesourcery.com>
8392 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
8393 common/common-target-def.h.
8394 * target.def (default_target_flags, handle_option,
8395 supports_split_stack, optimization_table, init_struct,
8396 except_unwind_info, unwind_tables_default, have_named_sections):
8397 Move to common/common-target.def.
8398 * target.h (enum opt_levels, struct default_options): Move to
8399 common/common-target.h.
8400 * targhooks.c (default_except_unwind_info,
8401 dwarf2_except_unwind_info, sjlj_except_unwind_info,
8402 default_target_handle_option, empty_optimization_table): Move to
8403 common/common-targhooks.c.
8404 * targhooks.h (default_except_unwind_info,
8405 dwarf2_except_unwind_info, sjlj_except_unwind_info,
8406 default_target_handle_option, empty_optimization_table): Move to
8407 common/common-targhooks.h.
8408 * common/common-target-def.h: Include common/common-targhooks.h.
8409 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
8411 * common/common-target.def (handle_option, option_init_struct,
8412 option_optimization_table, default_target_flags,
8413 except_unwind_info, supports_split_stack, unwind_tables_default,
8414 have_named_sections): Move from target.def.
8415 (HOOK_PREFIX): Undefine at end of file.
8416 * common/common-target.h: Include input.h.
8417 (enum opt_levels, struct default_options): Move from target.h.
8418 * common/common-targhooks.c, common/common-targhooks.h: New.
8419 * config.gcc (target_has_targetm_common): Default to yes.
8420 (moxie*): Set target_has_targetm_common=no.
8421 (hppa*-*-*): Don't set target_has_targetm_common=yes.
8422 * doc/tm.texi: Regenerate.
8423 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
8424 (C_TARGET_DEF_H): Add common/common-targhooks.h.
8425 (GCC_OBJS): Remove vec.o.
8426 (OBJS): Remove hooks.o and vec.o.
8427 (OBJS-libcommon-target): Add vec.o, hooks.o and
8428 common/common-targhooks.o.
8429 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
8430 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
8431 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
8432 cfglayout.o, $(out_object_file), $(common_out_object_file)):
8433 Update dependencies.
8434 (common/common-targhooks.o): New.
8435 * common/config/default-common.c: Include tm.h. Add FIXME comment.
8436 * common/config/pa/pa-common.c: Include more headers. Take
8437 copyright dates from pa.c.
8438 (pa_option_optimization_table, pa_handle_option,
8439 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
8440 TARGET_HANDLE_OPTION): Move from pa.c.
8441 * common/config/alpha/alpha-common.c,
8442 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
8443 common/config/bfin/bfin-common.c,
8444 common/config/cris/cris-common.c,
8445 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
8446 common/config/h8300/h8300-common.c,
8447 common/config/i386/i386-common.c,
8448 common/config/ia64/ia64-common.c,
8449 common/config/iq2000/iq2000-common.c,
8450 common/config/lm32/lm32-common.c,
8451 common/config/m32c/m32c-common.c,
8452 common/config/m32r/m32r-common.c,
8453 common/config/m68k/m68k-common.c,
8454 common/config/mcore/mcore-common.c,
8455 common/config/mep/mep-common.c,
8456 common/config/microblaze/microblaze-common.c,
8457 common/config/mips/mips-common.c,
8458 common/config/mmix/mmix-common.c,
8459 common/config/mn10300/mn10300-common.c,
8460 common/config/pdp11/pdp11-common.c,
8461 common/config/picochip/picochip-common.c,
8462 common/config/rs6000/rs6000-common.c,
8463 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
8464 common/config/score/score-common.c, common/config/sh/sh-common.c,
8465 common/config/sparc/sparc-common.c,
8466 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
8467 common/config/vax/vax-common.c,
8468 common/config/xstormy16/xstormy16-common.c,
8469 common/config/xtensa/xtensa-common.c: New.
8470 * config/alpha/alpha.c: Include common/common-target.h.
8471 (alpha_option_optimization_table, alpha_handle_option,
8472 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8473 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
8474 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
8475 * config/arm/arm.c (arm_option_optimization_table,
8476 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8477 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
8479 * config/avr/avr.c (avr_option_optimization_table,
8480 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
8482 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
8483 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
8484 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
8485 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
8486 * config/cris/cris.c (cris_option_optimization_table,
8487 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8488 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
8490 * config/fr30/fr30.c (fr30_option_optimization_table,
8491 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
8493 * config/frv/frv.c (frv_option_optimization_table,
8494 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
8495 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
8496 * config/h8300/h8300.c (h8300_option_optimization_table,
8497 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8498 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
8499 * config/i386/i386-protos.h (ix86_handle_option): Declare.
8500 * config/i386/i386.c: Include common/common-target.h.
8501 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
8502 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
8503 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
8504 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
8505 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
8506 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
8507 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
8508 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
8509 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
8510 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
8511 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
8512 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
8513 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
8514 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
8515 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
8516 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
8517 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
8518 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
8519 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
8520 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
8521 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
8522 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
8523 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
8524 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
8525 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
8526 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
8527 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
8528 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
8529 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
8530 ix86_option_optimization_table, ix86_option_init_struct,
8531 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
8532 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8533 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
8535 * config/i386/t-i386 (i386.o): Update dependencies.
8536 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
8537 * config/ia64/ia64.c (ia64_option_optimization_table,
8538 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
8539 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8540 ia64_handle_option): Move to ia64-common.c.
8541 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
8542 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
8543 * config/lm32/lm32.c (lm32_option_optimization_table,
8544 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
8546 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
8548 * config/m32r/m32r.c (m32r_option_optimization_table,
8549 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8550 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
8551 m32r_handle_option): Move to m32r-common.c.
8552 (m32r_memory_move_cost): Remove comment referring to
8553 TARGET_HANDLE_OPTION.
8554 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
8555 Move to m68k-common.c.
8556 * config/mcore/mcore.c (mcore_option_optimization_table,
8557 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8558 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
8559 * config/mep/mep.c (mep_option_optimization_table,
8560 mep_handle_option, TARGET_HANDLE_OPTION,
8561 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
8562 Move to mep-common.c.
8563 * config/microblaze/microblaze.c
8564 (microblaze_option_optimization_table,
8565 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8566 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
8567 * config/mips/mips.c (mips_handle_option,
8568 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
8569 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
8571 * config/mmix/mmix.c (mmix_option_optimization_table,
8572 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
8573 Move to mmix-common.c.
8574 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
8575 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
8576 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8577 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
8578 * config/pa/pa.c: Include common/common-target.h.
8579 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
8580 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8581 pa_handle_option): Move to pa-common.c.
8582 (pa_option_override): Use targetm_common.except_unwind_info.
8583 (pa_asm_output_mi_thunk, pa_function_section): Use
8584 targetm_common.have_named_sections.
8585 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
8586 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8587 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
8588 pdp11_handle_option, pdp11_option_init_struct): Move to
8590 * config/picochip/picochip.c (picochip_option_optimization_table,
8591 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
8592 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
8593 * config/rs6000/rs6000.c: Include common/common-target.h.
8594 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
8595 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
8596 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
8597 rs6000_handle_option): Move to rs6000-common.c.
8598 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8599 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
8600 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8601 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
8602 * config/s390/s390.c (processor_flags_table,
8603 s390_option_optimization_table, s390_option_init_struct,
8604 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
8605 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8606 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
8607 * config/s390/s390.h (processor_flags_table): Declare.
8608 * config/score/score.c (score_option_optimization_table,
8609 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8610 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
8611 score_handle_option): Move to score-common.c.
8612 * config/sh/sh.c (sh_option_optimization_table,
8613 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
8614 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8615 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
8616 * config/sparc/sparc.c: Include common/common-target.h.
8617 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
8618 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
8619 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
8620 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
8621 spu_option_init_struct): Move to spu-common.c.
8622 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
8623 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
8624 * config/v850/v850.c (small_memory_physical_max,
8625 v850_handle_memory_optionn v850_handle_option,
8626 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
8627 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
8629 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
8630 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
8631 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
8632 Move to xtensa-common.c.
8633 * cfglayout.c: Include common/common-target.h.
8634 (fixup_reorder_chain): Use targetm_common.have_named_sections.
8635 * cfgrtl.c: Include common/common-target.h.
8636 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
8637 targetm_common.have_named_sections.
8638 * dbxout.c: Include common/common-target.h.
8639 (dbxout_function_end): Use targetm_common.have_named_sections.
8640 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
8641 targetm_common.except_unwind_info.
8642 * dwarf2out.c: Include common/common-target.h.
8643 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
8644 dwarf2out_begin_prologue, dwarf2out_frame_init,
8645 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
8646 targetm_common.except_unwind_info.
8647 * except.c: Include common/common-target.h.
8648 (init_eh, finish_eh_generation,
8649 output_one_function_exception_table): Use
8650 targetm_common.except_unwind_info.
8651 (switch_to_exception_section): Use targetm_common.have_named_sections.
8652 * explow.c: Include common/common-target.h.
8653 * expr.c: Include common/common-target.h.
8654 (build_personality_function): Use targetm_common.except_unwind_info.
8655 * function.c: Include common/common-target.h.
8656 (expand_function_end): Use targetm_common.except_unwind_info.
8657 * haifa-sched.c: Include common/common-target.h.
8658 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
8659 * lto-opts.c: Include common/common-target.h instead of target.h.
8660 (lto_reissue_options): Use targetm_common.handle_option.
8661 * opts.c: Include common/common-target.h.
8662 (target_handle_option): Use targetm_common.handle_option.
8663 (init_options_struct): Update comment referring to
8664 targetm.target_option.optimization. Use
8665 targetm_common.default_target_flags,
8666 targetm_common.unwind_tables_default and
8667 targetm_common.option_init_struct.
8668 (default_options_optimization): Use
8669 targetm_common.option_optimization_table.
8670 (finish_options): Use targetm_common.except_unwind_info,
8671 targetm_common.unwind_tables_default,
8672 targetm_common.have_named_sections and
8673 targetm_common.supports_split_stack.
8674 * toplev.c: Include common/common-target.h.
8675 (process_options): Use targetm_common.have_named_sections.
8676 * tree-tailcall.c: Include common/common-target.h.
8677 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
8678 * tree.c: Include common/common-target.h.
8679 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
8680 * varasm.c: Include common/common-target.h.
8681 (resolve_unique_section, hot_function_section,
8682 default_function_section): Use targetm_common.have_named_sections.
8684 2011-06-14 Easwaran Raman <eraman@google.com>
8686 PR rtl-optimization/44194
8687 * dse.c: Include tree-flow.h
8688 (insn_info): Add new field non_frame_wild_read.
8689 (group_info): Add new fields escaped_n and escaped_p.
8690 (kill_on_calls): New variable.
8691 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
8692 (dse_step0): Initialize kill_on_calls.
8693 (can_escape): New function.
8694 (set_usage_bits): Add additional parameter; record information
8695 about escaped locations.
8696 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
8697 (dse_step2_nospill): Set kill_on_calls based on
8698 group->escaped_n and group->escaped_n.
8699 (add_wild_read): Refactor into...
8700 (reset_active_stores): ... New function, and
8701 (free_read_records): ... New function.
8702 (add_non_frame_wild_read): New function.
8703 (scan_insn): Call add_non_frame_wild_read on non-const calls.
8704 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
8705 (dse_step5_nospill): Call scan_reads_nospill for instructions
8706 marked as non_frame_wild_read.
8707 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
8709 2011-06-14 Joseph Myers <joseph@codesourcery.com>
8711 * common/common-target-def.h, common/common-target.def,
8712 common/common-target.h, common/config/default-common.c,
8713 common/config/pa/pa-common.c: New files.
8714 * Makefile.in (common_out_file, common_out_object_file,
8715 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
8716 (OBJS-libcommon-target): Include $(common_out_object_file).
8717 (prefix.o): Update dependencies.
8718 ($(common_out_object_file), common/common-target-hooks-def.h,
8719 s-common-target-hooks-def-h): New.
8720 (s-tm-texi): Also check timestamp on common-target.def.
8721 (build/genhooks.o): Update dependencies.
8722 * config.gcc (common_out_file, target_has_targetm_common): Define.
8723 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
8724 TARGET_ALWAYS_STRIP_DOTDOT.
8725 * configure.ac (common_out_object_file): Define.
8726 (common_out_file, common_out_object_file): Substitute.
8727 (common): Create directory.
8728 * configure: Regenerate.
8729 * doc/tm.texi.in (targetm_common): Document.
8730 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
8731 * doc/tm.texi: Regenerate.
8732 * genhooks.c (hook_array): Also include common/common-target.def.
8733 * prefix.c (tm.h): Don't include.
8734 (common/common-target.h): Include.
8735 (ALWAYS_STRIP_DOTDOT): Don't define.
8736 (update_path): Use targetm_common.always_strip_dotdot instead of
8737 ALWAYS_STRIP_DOTDOT.
8738 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
8740 2011-06-14 David Li <davidxl@google.com>
8742 * passes.c (execute_function_todo): Remove TODO_dump_func.
8743 (execute_one_pass): Remove TODO_dump_func.
8744 (execute_function_dump): New function.
8745 * tree-vrp.c: Remove TODO_dump_func.
8746 * regrename.c: Remove TODO_dump_func.
8747 * fwprop.c: Remove TODO_dump_func.
8748 * tree-into-ssa.c: Remove TODO_dump_func.
8749 * tree-complex.c: Remove TODO_dump_func.
8750 * tracer.c: Remove TODO_dump_func.
8751 * tree-loop-distribution.c: Remove TODO_dump_func.
8752 * postreload-gcse.c: Remove TODO_dump_func.
8753 * postreload.c: Remove TODO_dump_func.
8754 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
8755 * tree-tailcall.c: Remove TODO_dump_func.
8756 * ipa-cp.c: Remove TODO_dump_func.
8757 * final.c: Remove TODO_dump_func.
8758 * tree-emutls.c: Remove TODO_dump_func.
8759 * omp-low.c: Remove TODO_dump_func.
8760 * tree-ssa-dse.c: Remove TODO_dump_func.
8761 * tree-ssa-uncprop.c: Remove TODO_dump_func.
8762 * auto-inc-dec.c: Remove TODO_dump_func.
8763 * reorg.c: Remove TODO_dump_func.
8764 * tree-ssa-copyrename.c: Remove TODO_dump_func.
8765 * tree-ssa-ccp.c: Remove TODO_dump_func.
8766 * compare-elim.c: Remove TODO_dump_func.
8767 * mode-switching.c: Remove TODO_dump_func.
8768 * modulo-sched.c: Remove TODO_dump_func.
8769 * tree-call-cdce.c: Remove TODO_dump_func.
8770 * cse.c: Remove TODO_dump_func.
8771 * web.c: Remove TODO_dump_func.
8772 * tree-stdarg.c: Remove TODO_dump_func.
8773 * lto-streamer-out.c: Remove TODO_dump_func.
8774 * tree-ssa-math-opts.c: Remove TODO_dump_func.
8775 * tree-ssa-dom.c: Remove TODO_dump_func.
8776 * tree-nrv.c: Remove TODO_dump_func.
8777 * loop-init.c: Remove TODO_dump_func.
8778 * gimple-low.c: Remove TODO_dump_func.
8779 * ipa-inline.c: Remove TODO_dump_func.
8780 * tree-ssa-sink.c: Remove TODO_dump_func.
8781 * jump.c: Remove TODO_dump_func.
8782 * ifcvt.c: Remove TODO_dump_func.
8783 * tree-ssa-loop.c: Remove TODO_dump_func.
8784 * recog.c: Remove TODO_dump_func.
8785 * dse.c: Remove TODO_dump_func.
8786 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
8787 * matrix-reorg.c: Remove TODO_dump_func.
8788 * tree-eh.c: Remove TODO_dump_func.
8789 * regmove.c: Remove TODO_dump_func.
8790 * function.c: Remove TODO_dump_func.
8791 * tree-vectorizer.c: Remove TODO_dump_func.
8792 * ipa-split.c: Remove TODO_dump_func.
8793 * gcse.c: Remove TODO_dump_func.
8794 * tree-if-conv.c: Remove TODO_dump_func.
8795 * init-regs.c: Remove TODO_dump_func.
8796 * tree-ssa-phiopt.c: Remove TODO_dump_func.
8797 * implicit-zee.c: Remove TODO_dump_func.
8798 * lower-subreg.c: Remove TODO_dump_func.
8799 * bt-load.c: Remove TODO_dump_func.
8800 * tree-dfa.c: Remove TODO_dump_func.
8801 * except.c: Remove TODO_dump_func.
8802 * emit-rtl.c: Remove TODO_dump_func.
8803 * store-motion.c: Remove TODO_dump_func.
8804 * cfgexpand.c: Remove TODO_dump_func.
8805 * tree-cfgcleanup.c: Remove TODO_dump_func.
8806 * cfgcleanup.c: Remove TODO_dump_func.
8807 * tree-ssa-pre.c: Remove TODO_dump_func.
8808 * tree-sra.c: Remove TODO_dump_func.
8809 * tree-mudflap.c: Remove TODO_dump_func.
8810 * tree-ssa-copy.c: Remove TODO_dump_func.
8811 * cfglayout.c: Remove TODO_dump_func.
8812 * tree-ssa-forwprop.c: Remove TODO_dump_func.
8813 * tree-ssa-dce.c: Remove TODO_dump_func.
8814 * ira.c: Remove TODO_dump_func.
8815 * tree-ssa.c: Remove TODO_dump_func.
8816 * integrate.c: Remove TODO_dump_func.
8817 * tree-optimize.c: Remove TODO_dump_func.
8818 * tree-ssa-phiprop.c: Remove TODO_dump_func.
8819 * tree-object-size.c: Remove TODO_dump_func.
8820 * combine.c: Remove TODO_dump_func.
8821 * bb-reorder.c: Remove TODO_dump_func.
8822 * cprop.c: Remove TODO_dump_func.
8823 * var-tracking.c: Remove TODO_dump_func.
8824 * tree-profile.c: Remove TODO_dump_func.
8825 * tree-vect-generic.c: Remove TODO_dump_func.
8826 * reg-stack.c: Remove TODO_dump_func.
8827 * sched-rgn.c: Remove TODO_dump_func.
8828 * tree-ssa-structalias.c: Remove TODO_dump_func.
8829 * tree-switch-conversion.c: Remove TODO_dump_func.
8830 * tree-cfg.c: Remove TODO_dump_func.
8831 * tree-ssa-reassoc.c: Remove TODO_dump_func.
8832 * combine-stack-adj.c: Remove TODO_dump_func.
8833 * dce.c: Remove TODO_dump_func.
8834 * tree-ssanames.c: Remove TODO_dump_func.
8835 * regcprop.c: Remove TODO_dump_func.
8837 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
8840 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
8841 and properly handle result not in Pmode.
8843 2011-06-14 Robert Millan <rmh@gnu.org>
8845 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
8846 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
8849 * config/i386/kfreebsd-gnu64.h: New file.
8850 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
8851 with `i386/kfreebsd-gnu64.h'.
8853 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
8854 (GNU_USER_LINK_EMULATION64): New macros.
8855 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
8856 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
8857 of hardcoding `elf_i386' and `elf_x86_64'.
8859 2011-06-14 Nick Clifton <nickc@redhat.com>
8862 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
8865 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
8867 2011-06-14 Jakub Jelinek <jakub@redhat.com>
8870 * tree.h (DECL_NONSHAREABLE): Define.
8871 (struct tree_decl_common): Change decl_common_unused to
8872 decl_nonshareable_flag.
8873 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
8874 Ignore vars with DECL_NONSHAREABLE bit set.
8875 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
8876 on stores to automatic aggregate vars.
8878 PR rtl-optimization/49390
8880 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
8882 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
8885 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
8886 Tom de Vries <tom@codesourcery.com>
8889 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
8890 Document changed semantics.
8891 (max_stmt_executions, max_stmt_executions_int): Declare.
8892 * tree-data-ref.c (estimated_loop_iterations)
8893 (estimated_loop_iterations_int): Move functions...
8894 * tree-ssa-loop-niter.c (estimated_loop_iterations)
8895 (estimated_loop_iterations_int): here.
8896 (record_estimate): Change nb_iterations_upper_bound and
8897 nb_iterations_estimate semantics.
8898 (max_stmt_executions, max_stmt_executions_int): New function.
8899 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
8900 (max_stmt_executions_tree): this.
8901 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
8902 estimated_loop_iterations_tree.
8903 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
8904 max_stmt_executions_int instead of estimated_loop_iterations_int.
8905 * predict.c (predict_loops): Idem.
8906 * tree-parloops.c (parallelize_loops): Idem.
8907 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
8908 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
8909 (init_omega_for_ddr_1): Idem.
8910 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
8911 (loop_prefetch_arrays): Idem
8912 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
8913 max_stmt_executions instead of estimated_loop_iterations.
8914 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
8915 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
8916 instead of nb_iterations_upper_bound.
8918 2011-06-13 Jan Hubicka <jh@suse.cz>
8920 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
8922 2011-06-14 Richard Henderson <rth@redhat.com>
8925 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
8926 (based_loc_descr): Assert it's true.
8927 (compute_frame_pointer_to_fb_displacement): Set it, rather than
8928 aborting immediately.
8930 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
8931 Mingfeng Wu <mingfeng@faraday-tech.com>
8933 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
8935 2011-06-13 Jan Hubicka <jh@suse.cz>
8937 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
8939 2011-06-13 Jan Hubicka <jh@suse.cz>
8941 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
8942 similarly to DECL_COMDAT.
8943 * cgraphunit.c (cgraph_analyze_function): Likewise.
8944 * ipa.c (function_and_variable_visibility): Likewise.
8946 2011-06-13 Jan Hubicka <jh@suse.cz>
8948 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
8949 BINFO_VIRTUALS when streaming for ltrans unit.
8951 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
8953 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
8954 (movdi_internal64): Same.
8956 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
8959 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
8960 a set of similar patterns, where the MATCH_OPERAND for the function
8961 argument is replaced with individual references to hardware registers.
8962 (save_fpregs_<mode>): Ditto
8963 (restore_gpregs_<mode>): Ditto
8964 (return_and_restore_gpregs_<mode>): Ditto
8965 (return_and_restore_fpregs_<mode>): Ditto
8966 (return_and_restore_fpregs_aix_<mode>): Ditto
8968 2011-06-13 Jan Hubicka <jh@suse.cz>
8970 * ipa-utils.c (postorder_stack): New structure.
8971 (ipa_reverse_postorder): Handle aliases.
8973 2011-06-13 Jan Hubicka <jh@suse.cz>
8975 * ipa-inline.c (reset_edge_caches): Walk aliases.
8976 (update_caller_keys): Do not test inlinability of aliases.
8977 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
8978 (do_estimate_growth): Fix typo.
8980 2011-06-13 Jan Hubicka <jh@suse.cz>
8982 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
8983 (can_remove_node_now_p): ... here; handle same comdat groups.
8984 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
8985 (inline_call): Update use of can_remove_node_now_p.
8987 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
8989 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
8990 condition to disallow non-identical memory locations.
8991 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
8992 preference to bit manipulation instructions.
8994 2011-06-13 Jan Hubicka <jh@suse.cz>
8996 * cgraph.c (cgraph_for_node_thunks_and_aliases,
8997 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
8998 (nonremovable_p): New function.
8999 (cgraph_can_remove_if_no_direct_calls_p): New function.
9000 (used_from_object_file_p): New functoin.
9001 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
9002 references from aliases.
9003 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
9004 * ipa-inline.c (check_caller_edge): New function.
9005 (want_inline_function_called_once_p): Use it; accept aliases called
9007 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
9009 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9012 * config/arm/neon.md (vec_pack_trunc): Set the lengths
9013 correctly for the case with Quad vectors.
9015 2011-06-13 Jakub Jelinek <jakub@redhat.com>
9016 Ira Rosen <ira.rosen@linaro.org>
9018 PR tree-optimization/49352
9019 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
9020 all, make sure loop_use_stmt after the loop is a def stmt of a used
9021 SSA_NAME that is the only one defined inside of the loop. Don't
9022 check for COND_EXPR and GIMPLE_BINARY_RHS.
9023 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
9024 check_reduction is true.
9026 2011-06-11 Jan Hubicka <jh@suse.cz>
9029 * ipa.c (cgraph_externally_visible_p): Check resolution info.
9031 2011-06-11 Jan Hubicka <jh@suse.cz>
9034 * ipa-inline-transform.c: Include tree-pass.h
9035 (inline_transform): Set TODO_update_ssa_only_virtuals.
9036 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
9038 2011-06-11 Jan Hubicka <jh@suse.cz>
9041 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
9044 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
9046 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
9047 Take number of iterations to peel into account for equally frequent
9048 misalignment values.
9050 2011-06-11 Jan Hubicka <jh@suse.cz>
9052 * lto-streamer-out.c (produce_symtab): Stream out the newly
9053 represented aliases.
9055 2011-06-11 Jan Hubicka <jh@suse.cz>
9057 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
9059 (ipa_update_after_lto_read): Likewise.
9060 (ipa_write_node_info): Do not sream call_with_var_arguments.
9061 (ipa_read_node_info): Likewise.
9063 2011-06-11 Jan Hubicka <jh@suse.cz>
9065 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
9067 2011-06-11 Jan Hubicka <jh@suse.cz>
9069 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
9070 (lto_symtab_resolve_can_prevail_p): Likewise.
9071 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
9072 * cgraph.c (same_body_aliases_done): New global var.
9073 (cgraph_same_body_alias_1): Rename to ...
9074 (cgraph_create_function_alias): ... this one; reorg to new
9076 (cgraph_same_body_alias): Use cgraph_create_function_alias;
9077 record references when asked to.
9078 (cgraph_add_thunk): Fix formating.
9079 (cgraph_get_node): Kill same body alias code.
9080 (cgraph_node_for_asm): Likewise.
9081 (cgraph_remove_same_body_alias): Remove.
9082 (cgraph_remove_node): Kill same body alias code.
9083 (cgraph_mark_address_taken_node): Mark also the aliased function
9084 as having address taken.
9085 (dump_cgraph_node): Dump same body aliases.
9086 (cgraph_for_node_thunks_and_aliases): Update for new alias
9088 (cgraph_for_node_and_aliases): Likewise.
9089 * cgraph.h (same_body): Kll pointer.
9090 (same_body_alias): Update comment.
9091 (same_body_aliases_done): Declare.
9092 (cgraph_remove_same_body_alias): Remove declaration.
9093 (cgraph_create_function_alias): Declare.
9094 (cgraph_process_same_body_aliases): Declare.
9095 (cgraph_function_with_gimple_body_p): Check for alias.
9096 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
9097 (cgraph_alias_aliased_node): New function.
9098 (cgraph_function_node): Update for new aliases.
9099 (cgraph_function_or_thunk_node): Likewise.
9100 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
9101 (inline_call): Remove dead aliases.
9102 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
9103 name hack for same body aliases.
9104 (clone_of_p): Look through aliases.
9105 (verify_cgraph_node): Verify aliases.
9106 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
9107 (cgraph_process_same_body_aliases): New function.
9108 (process_function_and_variable_attributes): Disable weakref warning on
9110 (cgraph_analyze_functions): Handle aliases.
9111 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
9112 (assemble_thunks): Rename to ...
9113 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
9114 (cgraph_expand_function): Remove alias output code.
9115 (cgraph_output_in_order): Skip aliases.
9116 (cgraph_preserve_function_body_p): Aliases don't need preserving.
9117 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
9118 (ipa_record_reference): Do not assert on alias references.
9119 (ipa_ref_has_aliases_p): New function.
9120 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
9121 (ipa_ref_has_aliases_p): Declare.
9122 * lto-cgraph.c (lto_output_node): Handle aliases.
9123 (input_node): Likewise.
9124 * lto-streamer-out.c (lto_output): Skip aliases.
9125 (produce_symtab): Kill same_body_alias code.
9126 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
9127 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
9128 * ipa-inline.c (update_caller_keys): Walk aliases.
9129 (inline_small_functions): Fix thinko in previous patch.
9130 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
9131 (function_and_variable_visibility): Do not walk same body aliases.
9132 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
9133 (ipa_pta_execute): Use it.
9135 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
9137 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
9138 (*vec_dupv2df): Rename from vec_dupv2df.
9139 (vec_dupv2df): New expander.
9141 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
9143 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
9145 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
9147 * config/i386/i386.md: Use default value in "isa" attribute.
9148 * config/i386/sse.md: Ditto.
9149 * config/i386/mmx.md: Ditto.
9151 2011-06-10 Wei Guozhi <carrot@google.com>
9154 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9155 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9156 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9158 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9160 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9161 (arm_legitimate_ldrd_p): New prototype.
9162 (arm_output_ldrd): New prototype.
9163 * config/arm/arm.c (arm_check_ldrd_operands): New function.
9164 (arm_legitimate_ldrd_p): New function.
9165 (arm_output_ldrd): New function.
9167 2011-06-10 David Li <davidxl@google.com>
9169 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
9170 * passes.c (passr_eq): New function.
9171 (create_pass_tab): New function.
9172 (pass_traverse): New function.
9173 (dump_one_pass): New function.
9174 (dump_pass_list): New function.
9175 (dump_passes): New function.
9177 2011-06-10 Jan Hubicka <jh@suse.cz>
9179 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
9180 setting the nothrow flag.
9181 * ipa-reference.c (propagate): Skip aliases.
9182 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
9183 (propagate_nothrow): Skip aliases; do not update cgraph.
9184 (local_pure_const): Do not update cgraph.
9185 * tree-profile.c (tree_profiling): Do fixup_cfg.
9187 2011-06-10 Jan Hubicka <jh@suse.cz>
9189 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
9190 (cgraph_local_node_p): ... here; handle aliases.
9191 (has_addr_references_p): Break out from ...;
9192 (cgraph_remove_unreachable_nodes) ... here.
9194 2011-06-10 Jan Hubicka <jh@suse.cz>
9196 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9197 * common.opt (flag_inline_functions_called_once): Do not
9200 2011-06-10 Jan Hubicka <jh@suse.cz>
9202 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9203 (ipcp_initialize_node_lattices): Do not deal with aliases;
9204 Do not try to propagate through thunks.
9205 (ipcp_change_tops_to_bottom): Do not deal with aliases.
9207 2011-06-10 Jan Hubicka <jh@suse.cz>
9209 * ipa-prop.c (ipa_write_node_info): Stream jump functions
9211 (ipa_read_node_info): Likewise.
9213 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9216 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
9217 (build_and_insert_call): Likewise.
9218 (build_and_insert_ref): New.
9219 (gimple_expand_builtin_pow): Minor cleanup.
9220 (gimple_expand_builtin_cabs): New.
9221 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9223 2011-06-10 Jan Hubicka <jh@suse.cz>
9225 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
9226 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
9227 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
9228 (ipcp_propagate_stage): Skip aliases when propagating.
9229 (ipcp_need_redirect_p): Skip aliases.
9230 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
9231 collect_callers_of_node.
9232 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
9234 (ipa_compute_jump_functions): Look through aliases.
9236 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9238 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
9240 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
9242 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
9244 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
9246 2011-06-10 Jan Hubicka <jh@suse.cz>
9248 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
9249 Update call of gimple_get_virt_method_for_binfo.
9250 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
9251 refuse_thunks parameter.
9252 (gimple_fold_call): Update.
9253 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
9255 2011-06-10 Jan Hubicka <jh@suse.cz>
9257 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
9258 (not_all_callers_have_enough_arguments_p): ... this one; turn into
9259 worker for cgraph_for_node_and_aliases.
9260 (convert_callers_for_node): Break out from ...
9261 (convert_callers): ... here.
9262 (modify_function): Use collect_callers_of_node.
9263 (ipa_early_sra): Use cgraph_for_node_and_aliases.
9265 2011-06-10 Richard Guenther <rguenther@suse.de>
9267 PR tree-optimization/49361
9268 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
9269 when not already in gimple form.
9271 2011-06-10 Richard Guenther <rguenther@suse.de>
9274 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
9275 FOR_EACH_PHI_OR_STMT_USE.
9277 2011-06-10 Jan Hubicka <jh@suse.cz>
9279 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
9280 (clone_inlined_nodes): ... here.
9281 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
9282 to real destination prior inlining.
9283 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
9284 can_early_inline_edge_p, want_early_inline_function_p,
9285 want_early_inline_function_p, want_inline_small_function_p,
9286 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
9287 edge_badness, update_all_callee_keys, lookup_recursive_calls,
9288 add_new_edges_to_heap, inline_small_functions, flatten_function,
9289 inline_always_inline_functions, early_inline_small_functions): Use
9290 cgraph_function_or_thunk_node.
9291 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
9292 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
9293 (do_estimate_edge_growth_1): Break out from ...
9294 (do_estimate_growth) ... here; walk aliases.
9295 (inline_generate_summary): Skip aliases.
9297 2011-06-10 Richard Guenther <rguenther@suse.de>
9299 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
9300 forward when combining, visit inserted stmts when a stmt was changed.
9302 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
9304 * tree.h (error_operand_p): Add.
9305 * dbxout.c (dbxout_type_fields): Use the latter.
9306 * c-decl.c (add_stmt): Likewise.
9307 * gimplify.c (omp_add_variable, omp_notice_variable,
9308 gimplify_scan_omp_clauses): Likewise.
9310 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
9312 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
9313 when a value is actually passed in regs.
9315 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
9316 Laurent Rougé <laurent.rouge@menta.fr>
9318 * doc/invoke.texi (SPARC options): Add -mflat.
9319 * config/sparc/sparc.opt: Likewise.
9320 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
9321 (sparc_flat_expand_prologue): Declare.
9322 (sparc_flat_expand_epilogue): Likewise.
9323 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
9324 (CPP_ENDIAN_SPEC): Replace with...
9325 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
9326 (CPP_SPEC): Adjust to above change.
9327 (EXTRA_SPECS): Likewise.
9328 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
9329 (INCOMING_REGNO): Likewise.
9330 (OUTGOING_REGNO): Likewise.
9331 (LOCAL_REGNO): Likewise.
9332 (SETUP_FRAME_ADDRESSES): Likewise.
9333 (FIXED_REGISTERS): Set 0 for %fp.
9334 (CALL_USED_REGISTERS): Likewise.
9335 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
9336 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
9337 (RETURN_ADDR_REGNUM): Define.
9338 (RETURN_ADDR_RTX): Use it.
9339 (INCOMING_RETURN_ADDR_REGNUM): Define.
9340 (INCOMING_RETURN_ADDR_RTX): Use it.
9341 (DWARF_FRAME_RETURN_COLUMN): Likewise.
9342 (EH_RETURN_REGNUM): Define.
9343 (EH_RETURN_STACKADJ_RTX): Use it.
9344 (EH_RETURN_HANDLER_RTX): Delete.
9345 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
9346 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
9348 (struct machine_function): Add frame_size, apparent_frame_size,
9349 frame_base_reg, frame_base_offset, n_global_fp_regs and
9350 save_local_in_regs_p fields.
9351 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
9352 sparc_frame_base_offset, sparc_n_global_fp_regs,
9353 sparc_save_local_in_regs_p): New macros.
9354 (sparc_option_override): Error out if -fcall-saved-REG is specified
9356 (eligible_for_restore_insn): Fix formatting.
9357 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
9358 (eligible_for_sibcall_delay): Likewise.
9359 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
9360 (sparc_legitimate_address_p): Adjust to above change.
9361 (save_global_or_fp_reg_p): New predicate.
9362 (return_addr_reg_needed_p): Likewise.
9363 (save_local_or_in_reg_p): Likewise.
9364 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
9365 (SORR_SAVE, SORR_RESTORE): Delete.
9366 (sorr_pred_t): New typedef.
9367 (sorr_act_t): New enum.
9368 (save_or_restore_regs): Rename to...
9369 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
9370 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
9371 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
9372 mechanism. Add CFI information for double-word saves in 32-bit mode.
9373 (emit_adjust_base_to_offset): New function extracted from...
9374 (emit_save_or_restore_regs): ...this. Rename the rest to...
9375 (emit_save_or_restore_regs_global_fp_regs): ...this.
9376 (emit_save_or_restore_regs_local_in_regs): New function.
9377 (gen_create_flat_frame_[123]): New functions.
9378 (sparc_expand_prologue): Use SIZE local variable. Adjust.
9379 (sparc_flat_expand_prologue): New function.
9380 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
9381 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
9382 (sparc_flat_expand_epilogue): New function.
9383 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
9384 (output_return): Likewise.
9385 (output_sibcall): Likewise.
9386 (sparc_output_mi_thunk): Likewise.
9387 (sparc_frame_pointer_required): Likewise.
9388 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
9389 function optimization.
9390 * config/sparc/sparc.md (flat): New attribute.
9391 (prologue): Add TARGET_FLAT handling.
9392 (save_register_window): Disable if TARGET_FLAT.
9393 (create_flat_frame_[123]): New patterns.
9394 (epilogue): Add TARGET_FLAT handling.
9395 (sibcall_epilogue): Likewise.
9396 (eh_return): New expander.
9397 (eh_return_internal): New insn and splitter.
9398 (return_internal): Add TARGET_FLAT handling.
9399 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
9400 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
9401 (nonlocal_goto): Add TARGET_FLAT handling.
9402 * config/sparc/t-elf: Add -mflat multilib.
9403 * config/sparc/t-leon: Likewise.
9405 2011-06-10 Jan Hubicka <jh@suse.cz>
9407 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
9408 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
9409 (self_recursive_p): Use cgraph_function_node.
9410 (propagate_pure_const): Likewise.
9411 (propagate_nothrow): Likewise.
9412 * ipa-reference.c (ipa_reference_get_not_read_global): Use
9413 cgraph_function_node.
9414 (propagate_bits): Likewise.
9415 (propagate): Likewise.
9417 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9418 Richard Earnshaw <rearnsha@arm.com>
9420 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
9421 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
9422 (*thumb2_movdi_vfp): Delete.
9423 (*arm_movdi_vfp_cortexa8): Delete.
9424 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
9425 (*movdi_vfp_cortexa8): Likewise.
9427 2011-06-10 Richard Guenther <rguenther@suse.de>
9429 * stor-layout.c (initialize_sizetypes): Give names to all
9432 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
9434 PR tree-optimization/49318
9435 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
9436 irrelevant pattern statements.
9438 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
9440 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
9443 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
9446 2011-06-09 Jan Hubicka <jh@suse.cz>
9448 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
9449 do not recompute reachable flag.
9450 (cgraph_finalize_function, cgraph_analyze_functions): Set
9451 redefined_extern_inline here.
9453 2011-06-09 Jan Hubicka <jh@suse.cz>
9455 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
9456 (cgraph_only_called_directly_p): ... this one; bring offline.
9457 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
9458 varpool_used_from_object_file_p): Drop names from the declaratoin.
9459 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
9460 collect_callers_of_node): New.
9461 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
9462 (cgraph_edge_recursive_p): Use cgraph_function_node.
9463 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
9464 (cgraph_node_cannot_be_local_p_1): Break out from ...
9465 (cgraph_node_can_be_local_p): ... here; walk aliases.
9466 (cgraph_for_node_thunks_and_aliases): New function.
9467 (cgraph_for_node_and_aliases): New function.
9468 (cgraph_make_node_local_1): Break out from ...
9469 (cgraph_make_node_local) ... here; use
9470 cgraph_for_node_thunks_and_aliases.
9471 (cgraph_set_nothrow_flag_1): Break out from ...
9472 (cgraph_set_nothrow_flag) ... here;
9473 use cgraph_for_node_thunks_and_aliases.
9474 (cgraph_set_const_flag_1): Break out from ...
9475 (cgraph_set_const_flag) ... here;
9476 use cgraph_for_node_thunks_and_aliases.
9477 (cgraph_set_pure_flag_1): Break out from ...
9478 (cgraph_set_pure_flag) ... here;
9479 use cgraph_for_node_thunks_and_aliases.
9480 (cgraph_propagate_frequency_1): Break out from ...
9481 (cgraph_propagate_frequency) ... here; use
9482 cgraph_for_node_thunks_and_aliases.
9483 (cgraph_used_from_object_file_p): Do not care about aliases.
9484 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
9486 (collect_callers_of_node_1, collect_callers_of_node): New functions.
9488 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
9490 PR rtl-optimization/49154
9491 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
9492 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
9493 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
9494 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
9495 * config/cris/cris.h (cris_register_move_cost): Remove
9496 !TARGET_V32 code. Tweak comments.
9498 2011-06-09 Jan Hubicka <jh@suse.cz>
9500 * cgraphbuild.c (record_eh_tables): Mark personality function as having
9503 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
9505 PR rtl-optimization/49154
9506 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
9507 is a matching slot in the hashtable, assign it to classes_ptr.
9509 PR rtl-optimization/49154
9510 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
9512 * doc/tm.texi: Regenerate.
9514 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
9517 * config/sh/sh.md (UNSPEC_CHKADD): New.
9518 (chk_guard_add): New define_insn_and_split.
9519 (symGOT_load): Use chk_guard_add instead of blockage.
9521 2011-06-09 Kai Tietz <ktietz@redhat.com>
9523 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
9525 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
9527 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
9529 2011-06-09 Wei Guozhi <carrot@google.com>
9532 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
9533 (peephole2 for conditional move): Generate 16 bit instructions.
9535 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
9537 * config/i386/i386.md (*movdi_internal_rex64): Merge
9538 alternatives 6 and 8.
9540 2011-06-09 David Li <davidxl@google.com>
9542 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
9543 * passes.c (passr_eq): New function.
9544 (create_pass_tab): New function.
9545 (pass_traverse): New function.
9546 (dump_one_pass): New function.
9547 (dump_pass_list): New function.
9548 (dump_passes): New function.
9550 2011-06-09 David Li <davidxl@google.com>
9552 * tree-complex.c (tree_lower_complex): Gate cleanup.
9553 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
9554 (execute_optimize_stdarg): Ditto.
9555 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
9556 (execute_cleanup_eh_1): Ditto.
9557 (execute_cleanup_eh): Ditto.
9558 * gcse.c (gate_rtl_pre): Ditto.
9559 (execute_rtl_pre): Ditto.
9560 * except.c (finish_eh_generation): Ditto.
9561 (convert_to_eh_region_ranges): Ditto.
9562 * cprop.c (one_cprop_pass): Ditto.
9564 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
9567 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
9568 in all basic blocks.
9570 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9572 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
9573 (HAVE_ENABLE_EXECUTE_STACK): Define.
9574 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
9575 (HAVE_ENABLE_EXECUTE_STACK): Define.
9576 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
9577 (HAVE_ENABLE_EXECUTE_STACK): Define.
9578 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
9579 (ENABLE_EXECUTE_STACK): Remove.
9580 (HAVE_ENABLE_EXECUTE_STACK): Define.
9581 [IN_LIBGCC2]: Don't include <windows.h>.
9582 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
9583 (HAVE_ENABLE_EXECUTE_STACK): Define.
9584 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
9585 (HAVE_ENABLE_EXECUTE_STACK): Define.
9586 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
9587 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
9588 (HAVE_ENABLE_EXECUTE_STACK): Define.
9589 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
9590 (HAVE_ENABLE_EXECUTE_STACK): Define.
9591 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
9592 (HAVE_ENABLE_EXECUTE_STACK): Define.
9593 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
9594 (HAVE_ENABLE_EXECUTE_STACK): Define.
9595 * config/alpha/alpha.c (alpha_trampoline_init): Test
9596 HAVE_ENABLE_EXECUTE_STACK.
9597 * config/i386/i386.c (ix86_trampoline_init): Likewise.
9598 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
9599 (sparc64_initialize_trampoline): Likewise.
9600 * libgcc2.c [L_enable_execute_stack]: Remove.
9601 * system.h (ENABLE_EXECUTE_STACK): Poison.
9602 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
9603 * doc/tm.texi: Regenerate.
9604 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
9606 2011-06-09 Jakub Jelinek <jakub@redhat.com>
9609 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
9610 variable. After resetting and rescanning insn continue with previous
9613 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9615 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
9616 (gcc_cv_ld_hidden): Likewise.
9617 * configure: Regenerate.
9618 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
9619 (ix86_stack_protect_fail): Mark unused.
9620 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
9621 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
9622 [TARGET_MACHO]: Don't define.
9623 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
9624 (TARGET_STACK_PROTECT_FAIL): Likewise.
9625 (rs6000_stack_protect_fail): Mark unused.
9626 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
9627 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
9629 2011-06-08 Andi Kleen <ak@linux.intel.com>
9631 * varasm.c (get_section): Print location of other conflict
9632 for section conflicts.
9634 2011-06-08 Andi Kleen <ak@linux.intel.com>
9636 * config/i386/driver-i386.c (host_detect_local_cpu):
9637 Add model 0x2d Intel CPU.
9639 2011-06-08 Andi Kleen <ak@linux.intel.com>
9641 * reginfo.c (global_regs_decl): Add.
9642 (globalize_reg): Add decl parameter. Compute location. Pass location
9643 to warnings and add inform. Store decl in global_regs_decl.
9644 * rtl.h (globalize_reg): Update prototype.
9645 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
9647 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
9649 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
9651 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
9654 * config/sh/predicates.md (general_movsrc_operand): Check
9655 mode for memory with indexed address for QI and HImode.
9656 (general_movdst_operand): Likewise.
9658 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
9660 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
9662 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
9664 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
9665 (num_ssa_operands): Likewise.
9666 (op_iter_init_phiuse): Forward-declare.
9667 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
9669 2011-06-08 Nick Clifton <nickc@redhat.com>
9671 * doc/invoke.texi (ARM Options): Update description of
9674 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
9676 * config/i386/driver-i386.c (host_detect_local_cpu): Support
9677 unknown Intel family 0x6 CPUs.
9679 2011-06-08 Martin Jambor <mjambor@suse.cz>
9681 * tree-sra.c (mark_rw_status): Removed.
9682 (analyze_access_subtree): New parameter parent instead of
9683 mark_read and mark_write, propagate from that.
9685 2011-06-08 Julian Brown <julian@codesourcery.com>
9687 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
9688 for double-precision helper functions in hard-float mode if only
9689 single-precision arithmetic is supported in hardware.
9691 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
9693 PR rtl-optimization/49303
9694 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
9695 code_motion_path_driver returned 0 or 1.
9696 (sel_region_finish): Clear h_d_i_d.
9698 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
9700 * config/sh/sh.c (prepare_move_operands): Set pic register
9701 appropriately for global and local dynamic tls models even
9702 if flag_pic is unset.
9704 2011-06-07 Jason Merrill <jason@redhat.com>
9706 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
9708 2011-06-07 Xinliang David Li <davidxl@google.com>
9709 * passes.c (enable_disable_pass): Handle assembler name.
9710 (is_pass_explicitly_enabled_or_disabled): Ditto.
9712 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9714 PR tree-optimization/48497
9715 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
9717 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9719 PR tree-optimization/46728
9720 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
9721 to use gimple_val_nonnegative_real_p.
9722 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
9723 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
9725 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
9727 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
9729 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
9731 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
9734 2011-06-07 Richard Guenther <rguenther@suse.de>
9736 * stor-layout.c (initialize_sizetypes): Initialize all
9737 sizetypes based on target definitions.
9738 (set_sizetype): Remove.
9739 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
9740 * tree.h (set_sizetype): Remove.
9742 2011-06-07 Nick Clifton <nickc@redhat.com>
9744 * config.gcc: Unify V850 architecture options and add support for
9745 newer V850 architectures.
9746 * config/v850/t-v850e: Delete.
9748 2011-06-07 Richard Guenther <rguenther@suse.de>
9750 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
9751 Call set_sizetype from here.
9753 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
9755 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
9756 (*maddhisi4tb, *maddhisi4tt): New define_insns.
9758 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
9759 Andrew Stubbs <ams@codesourcery.com>
9761 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
9763 * doc/md.texi (Canonicalization of Instructions): Document widening
9764 multiply canonicalization.
9766 2011-06-07 Jakub Jelinek <jakub@redhat.com>
9768 PR gcov-profile/49299
9769 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
9771 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
9773 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
9775 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
9776 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
9777 vect_recog_pow_pattern): Likewise.
9778 (vect_pattern_recog_1): Remove declaration.
9779 (widened_name_p): Remove declaration. Add new argument to specify
9780 whether to check that both types are either signed or unsigned.
9781 (vect_recog_widen_mult_pattern): Update documentation. Handle
9782 unsigned patterns and multiplication by constants.
9783 (vect_pattern_recog_1): Update vect_recog_func references. Use
9784 statement information from the statement returned from pattern
9785 detection functions.
9786 (vect_pattern_recog): Update vect_recog_func reference.
9787 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
9788 multiplication by a constant use the type of the other operand.
9790 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
9792 PR rtl-optimization/49145
9793 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
9795 2011-06-06 Jakub Jelinek <jakub@redhat.com>
9798 * dwarf2out.c (native_encode_initializer): Decrement count in each
9802 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
9806 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
9807 if stmt folded into nothing.
9808 * tree-inline.c (fold_marked_statements): If a builtin at the end of
9809 a bb folded into nothing, just update cgraph edges and move to next bb.
9810 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
9811 to be NULL. Don't compute count and frequency if new_call is NULL.
9813 2011-06-04 Diego Novillo <dnovillo@google.com>
9815 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
9816 (cgraph.o): Likewise.
9817 (cgraphunit.o): Likewise.
9818 * cgraphunit.c: Include lto-streamer.h
9819 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
9821 * lto-streamer-in.c (unpack_value_fields): Call
9822 streamer_hooks.unpack_value_fields if set.
9823 (lto_materialize_tree): For unhandled nodes, first try to
9824 call lto_streamer_hooks.alloc_tree, if it exists.
9825 (lto_input_ts_decl_common_tree_pointers): Move reading of
9826 DECL_INITIAL to lto_streamer_read_tree.
9827 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
9828 (lto_streamer_read_tree): New.
9829 (lto_reader_init): Rename from lto_init_reader.
9830 Move initialization code to lto/lto.c.
9831 * lto-streamer-out.c (pack_value_fields): Call
9832 streamer_hooks.pack_value_fields if set.
9833 (lto_output_tree_ref): For tree nodes that are not normally indexable,
9834 call streamer_hooks.indexable_with_decls_p before giving up.
9835 (lto_output_ts_decl_common_tree_pointers): Move handling
9836 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
9837 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
9838 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
9839 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
9840 (lto_streamer_write_tree): New.
9841 (lto_output): Call lto_streamer_init directly.
9842 (lto_writer_init): Remove.
9843 * lto-streamer.c (streamer_hooks): New.
9844 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
9845 instead of lto_preload_common_nodes.
9846 (lto_is_streamable): Move from lto-streamer.h
9847 (lto_streamer_hooks_init): New.
9848 (streamer_hooks): New.
9849 (streamer_hooks_init): New.
9850 * lto-streamer.h (struct output_block): Forward declare.
9851 (struct lto_input_block): Likewise.
9852 (struct data_in): Likewise.
9853 (struct bitpack_d): Likewise.
9854 (struct streamer_hooks): Declare.
9855 (streamer_hooks): Declare.
9856 (lto_streamer_hooks_init): Declare.
9857 (lto_streamer_write_tree): Declare.
9858 (lto_streamer_read_tree): Declare.
9859 (streamer_hooks_init): Declare.
9860 (lto_is_streamable): Move to lto-streamer.c
9862 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9864 * longlong.h (smul_ppmm): The resulting register pair contains the
9865 higher order word first.
9867 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9869 PR tree-optimization/46728
9870 * builtins.c (powi_table): Remove.
9871 (powi_lookup_cost): Remove.
9872 (powi_cost): Remove.
9873 (expand_powi_1): Remove.
9874 (expand_powi): Remove.
9875 (expand_builtin_pow_root): Remove.
9876 (expand_builtin_pow): Remove.
9877 (expand_builtin_powi): Eliminate handling of constant exponent.
9878 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
9880 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
9882 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
9884 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
9886 * dce.c (reset_unmarked_insns_debug_uses): New.
9887 (delete_unmarked_insns): Skip debug insns.
9888 (prescan_insns_for_dce): Likewise.
9889 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
9890 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
9891 active reg can be found.
9892 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
9893 (convert_regs_1): Use it.
9895 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
9897 * tree-pretty-print.c (dump_function_header): Add flags.
9898 Don't dump decl_uid with nouid.
9899 * tree-pretty-print.h (dump_function_header): Adjust.
9900 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
9901 * passes.c (pass_init_dump_file): Pass dump_flags on.
9902 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
9904 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
9907 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
9909 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
9911 PR tree-optimization/49243
9912 * calls.c (setjmp_call_p): Also check if fndecl has the
9913 returns_twice attribute.
9915 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9917 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
9920 2011-06-06 Richard Henderson <rth@redhat.com>
9921 Georg-Johann Lay <avr@gjlay.de>
9924 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
9926 * config/avr/avr.md ("insv"): New insn expander.
9927 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
9928 "*insv.not.io", "*insv.reg"): New insns.
9930 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
9933 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
9934 to nonimmediate_operand from memory_operand for the operand that is to
9935 be forced to memory by the expander. Lose the constraints.
9937 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
9939 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
9940 EH return when delayed branches are disabled.
9942 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
9944 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
9945 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
9947 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
9948 Simplify MODE_V1DF and MODE_V2SF handling.
9949 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
9950 Simplify MODE_SF handling.
9952 2011-06-04 Jan Hubicka <jh@suse.cz>
9954 PR tree-optimization/48893
9955 PR tree-optimization/49091
9956 PR tree-optimization/49179
9957 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
9960 2011-06-04 Jan Hubicka <jh@suse.cz>
9963 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
9966 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
9968 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
9970 2011-06-04 Jakub Jelinek <jakub@redhat.com>
9973 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
9974 to be strictly smaller than 1 << shiftcount.
9976 2011-06-04 Jan Hubicka <jh@suse.cz>
9978 PR tree-optimize/48929
9979 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
9982 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
9985 * calls.c (emit_call_1): Prefer the __builtin declaration of
9988 2011-06-03 Diego Novillo <dnovillo@google.com>
9990 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
9991 (lto_input_tree_pointers): Likewise.
9992 * lto-streamer-out.c (pack_value_fields): Likewise.
9993 (lto_output_tree_pointers): Likewise.
9994 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
9995 and OPTIMIZATION_NODE.
9997 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9999 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
10000 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
10001 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
10002 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
10003 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
10004 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
10005 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
10006 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
10007 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
10008 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
10009 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
10010 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
10011 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
10012 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
10013 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
10014 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
10015 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
10016 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
10017 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
10018 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
10019 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
10020 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
10021 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
10022 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
10023 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
10024 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
10025 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
10026 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
10027 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
10028 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
10029 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
10030 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
10031 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
10032 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
10033 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
10034 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
10035 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
10036 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
10037 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
10038 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
10039 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
10040 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
10041 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
10042 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
10043 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
10044 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
10045 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
10046 * system.h (MD_UNWIND_SUPPORT): Poison.
10047 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
10048 * doc/tm.texi: Regenerate.
10049 * unwind-dw2.c: Include md-unwind-support.h instead of
10051 * config/ia64/unwind-ia64.c: Likewise.
10052 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
10054 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
10056 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
10058 2011-06-03 Richard Henderson <rth@redhat.com>
10059 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10061 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
10062 (sigill_hdlr): Correct insn, insn size.
10063 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
10065 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10067 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
10069 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
10070 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
10071 * config/mips/t-iris: Remove.
10072 * config/mips/t-irix6: New file.
10073 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
10075 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10077 * Makefile.in (LIB2ADDEHDEP): Remove.
10078 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
10079 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
10080 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
10081 * config/t-darwin (LIB2ADDEHDEP): Remove.
10082 * config/t-freebsd (LIB2ADDEHDEP): Remove.
10083 * config/t-linux (LIB2ADDEHDEP): Remove.
10085 2011-06-03 Diego Novillo <dnovillo@google.com>
10087 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
10088 (lto_register_var_decl_in_symtab): Likewise.
10089 (lto_register_function_decl_in_symtab): Likewise.
10090 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
10091 logic to uniquify_nodes.
10093 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10095 * config/alpha/t-osf5: Remove.
10096 * config/alpha/t-osf-pthread: Remove.
10097 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
10098 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
10100 2011-06-03 Julian Brown <julian@codesourcery.com>
10102 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
10103 (strongarm1110): Use strongarm tuning.
10104 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
10105 * config/arm/arm.c (arm_strongarm_tune): New.
10106 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
10107 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
10108 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
10109 setting, using previous defaults or 1 for Cortex-A5.
10110 (arm_option_override): Set max_insns_skipped from current tuning.
10112 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
10114 * doc/install.texi (Options specification): Document --with-specs.
10116 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10118 * config/arm/neon.md (orndi3_neon): Actually split it.
10120 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
10122 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
10123 * var-tracking.c (reverse_op): Limite recurse depth to 5.
10125 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
10128 * target.def (delay_sched2, delay_vartrack): New.
10129 * doc/tm.texi.in: Update.
10130 * doc/tm.texi: Rebuild.
10131 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
10132 * var-tracking.c (gate_handle_var_tracking): Likewise.
10133 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
10134 (bfin_flag_var_tracking): Drop.
10135 (output_file_start): Don't save and override flag_var_tracking.
10136 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
10137 (bfin_reorg): Test original variables.
10138 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10139 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
10140 (ia64_flag_var_tracking): Drop.
10141 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10142 (ia64_file_start): Don't save and override flag_var_tracking.
10143 (ia64_override_options_after_change): Ditto
10144 flag_schedule_insns_after_reload.
10145 (ia64_reorg): Test original variables.
10146 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
10147 (picochip_flag_var_tracking): Drop.
10148 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10149 (picochip_option_override): Don't save and override
10150 flag_schedule_insns_after_reload.
10151 (picochip_asm_file_start): Ditto flag_var_tracking.
10152 (picochip_reorg): Test original variables.
10153 * config/spu/spu.c (spu_flag_var_tracking): Drop.
10154 (TARGET_DELAY_VARTRACK): Define.
10155 (spu_var_tracking): New.
10156 (spu_machine_dependent_reorg): Call it.
10157 (asm_file_start): Don't save and override flag_var_tracking.
10159 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
10162 * config/sh/predicates.md (general_movsrc_operand): Return 0
10163 for memory and memory subreg of which address is an invalid
10164 indexed address for QI and HImode.
10165 (general_movdst_operand): Likewise.
10167 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
10169 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
10170 edges only, when there is a non-local label in the function.
10171 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
10173 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
10175 * config/i386/constraints.md (Y3): New register constraint.
10176 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
10177 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
10178 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
10179 *sse2_interleave_lowv2df.
10181 2011-06-02 Julian Brown <julian@codesourcery.com>
10183 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
10184 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
10185 (arm_cortex_a5_tune): New.
10187 2011-06-02 Julian Brown <julian@codesourcery.com>
10189 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
10190 * config/arm/arm.c (arm_default_branch_cost): New.
10191 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
10192 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
10193 (arm_fa726_tune): Set branch_cost field using
10194 arm_default_branch_cost.
10195 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
10196 current_tune structure.
10197 * dojump.c (tm_p.h): Include file.
10199 2011-06-02 Julian Brown <julian@codesourcery.com>
10201 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
10203 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
10204 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
10205 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
10207 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
10208 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
10209 (arm_fa726te_tune): Add prefer_constant_pool setting.
10210 (arm_v6t2_tune, arm_cortex_tune): New.
10211 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
10212 prefer_constant_pool setting.
10214 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
10216 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
10218 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
10219 (*movdf_internal) <case 6,7,8>: Ditto.
10221 * config/i386/constraints.md (Y4): New register constraint.
10222 * config/i386/sse.md (vec_set<mode>_0): Merge with
10223 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
10224 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
10225 *vec_extractv2di_1_sse.
10226 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
10227 and *vec_concatv2di_rex64_sse.
10229 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
10232 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
10233 of cgraph_local_info for null before attempting to use it.
10235 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
10237 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
10238 (current_function_dynamic_alloc_count): Delete.
10239 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
10240 (expand_builtin_nonlocal_goto): Remove obsolete comment.
10241 (expand_builtin_update_setjmp_buf): Remove dead code.
10242 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
10243 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
10245 * function.c (instantiate_virtual_regs): Likewise.
10246 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
10247 for a block with a single abnormal incoming edge.
10248 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
10249 (SETJMP_VIA_SAVE_AREA): Delete.
10250 * config/sparc/sparc-protos.h (load_got_register): Declare.
10251 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
10252 (load_got_register): Make global.
10253 (sparc_frame_pointer_required): Add 'static'.
10254 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
10255 (sparc_builtin_setjmp_frame_value): New function.
10256 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
10257 (save_stack_nonlocal): New expander.
10258 (restore_stack_nonlocal): Likewise.
10259 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
10260 (nonlocal_goto_internal): New insn.
10261 (goto_handler_and_restore): Delete.
10262 (builtin_setjmp_setup): Likewise.
10263 (do_builtin_setjmp_setup): Likewise.
10264 (setjmp): Likewise.
10265 (builtin_setjmp_receiver): New expander.
10267 2011-06-01 David Li <davidxl@google.com>
10269 PR middle-end/49261
10270 * tree-pretty-print.c (dump_function_header): Format cleanup.
10272 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
10275 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
10276 needed when original operands are used for msw_skip comparison.
10278 2011-06-01 Jakub Jelinek <jakub@redhat.com>
10281 * var-tracking.c (add_uses, add_stores): Don't call
10282 cselib_subst_to_values on ENTRY_VALUE.
10284 2011-06-01 Diego Novillo <dnovillo@google.com>
10286 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
10287 output_record_start with LTO_null instead of output_zero.
10288 (lto_output_ts_binfo_tree_pointers): Likewise.
10289 (lto_output_tree): Likewise.
10290 (output_eh_try_list): Likewise.
10291 (output_eh_region): Likewise.
10292 (output_eh_lp): Likewise.
10293 (output_eh_regions): Likewise.
10294 (output_bb): Likewise.
10295 (output_function): Likewise.
10296 (output_unreferenced_globals): Likewise.
10297 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
10298 instead of NUM_TREE_CODES.
10299 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
10300 (lto_output_int_in_range): Change << to >> when shifting VAL.
10302 2011-06-01 Diego Novillo <dnovillo@google.com>
10304 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
10305 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
10307 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
10310 * optabs.h (valid_multiword_target_p): Declare.
10311 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
10312 doing multi-word operations.
10313 * optabs.c (expand_binop): Likewise.
10314 (expand_doubleword_bswap): Likewise.
10315 (expand_absneg_bit): Likewise.
10316 (expand_unop): Likewise.
10317 (expand_copysign_bit): Likewise.
10318 (multiword_target_p): New function.
10320 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
10322 PR rtl-optimization/48830
10323 PR rtl-optimization/48808
10324 PR rtl-optimization/48792
10325 * reload.c (push_reload): Check contains_reg_of_mode.
10326 * reload1.c (strip_paradoxical_subreg): New function.
10327 (gen_reload_chain_without_interm_reg_p): Use it to handle
10328 paradoxical subregs.
10329 (emit_output_reload_insns, gen_reload): Likewise.
10331 2011-06-01 David Li <davidxl@google.com>
10333 * predict.c : Change pass name
10336 * tree-profile.c: Ditto.
10339 2011-06-01 David Li <davidxl@google.com>
10341 * tree-pretty-print.c (dump_function_header): New function.
10342 * final.c (rest_of_clean_state): Use header dumper.
10343 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
10344 * passes.c (pass_init_dump_file): Use header dumper.
10346 2011-06-01 Jakub Jelinek <jakub@redhat.com>
10348 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
10349 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
10350 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
10352 (mem_loc_descriptor): Use them.
10354 * var-tracking.c (create_entry_value): New function.
10355 (vt_add_function_parameter): Use it.
10357 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10359 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
10360 Include <signal.h>, <ucontext.h>.
10361 (sigill_caught): Define.
10362 (sigill_hdlr): New function.
10363 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
10364 insns can be executed.
10365 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
10366 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
10368 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10370 * config/t-slibgcc-darwin: Move to ...
10371 * config/t-slibgcc-dummy: ... this. Clarify comments.
10372 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
10373 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
10374 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
10375 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
10376 Remove i386/t-crtstuff from tmake_file.
10377 (i[34567]86-*-solaris2*): Remove t-svr4,
10378 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
10380 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
10381 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
10382 sparc/t-crtfm from tmake_file.
10383 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
10384 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
10385 Remove extra_parts.
10386 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
10387 * config/i386/t-nwld (SHLIB_LINK): Remove.
10388 * config/i386/t-rtems-i386: Rename to ...
10389 * config/i386/t-rtems: ... this.
10390 ($(T)crti.o, $(T)crtn.o): Remove.
10391 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
10392 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
10393 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
10394 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
10395 EXTRA_MULTILIB_PARTS): Remove.
10396 * config/sparc/t-sol2-64: Likewise.
10397 * config/sparc/t-sol2: Remove.
10398 * config/sparc/t-crtin: Remove.
10399 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
10400 * config/i386/gmon-sol2.c: Remove.
10401 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
10402 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
10403 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
10404 * config/i386/sol2-gc1.asm: Remove.
10405 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
10406 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
10407 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
10408 * config/t-slibgcc-sld: Remove.
10410 2011-06-01 Jakub Jelinek <jakub@redhat.com>
10412 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
10413 base_type_for_mode with op_mode instead of mode.
10415 2011-06-01 Paul Brook <paul@cpodesourcery.com>
10417 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
10419 * config/arm/arm-tune.md: Regenerate.
10420 * config/arm/arm-tables.opt: Regenerate.
10421 * config/arm/arm.c (FL_DIV): Rename...
10422 (FL_THUMB_DIV): ... to this.
10423 (FL_ARM_DIV): Define.
10424 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
10425 (arm_arch_hwdiv): Remove.
10426 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
10427 (arm_issue_rate): Add cortexr5.
10428 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
10429 __ARM_ARCH_EXT_IDIV__.
10430 (TARGET_IDIV): Define.
10431 (arm_arch_hwdiv): Remove.
10432 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
10433 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
10434 (divsi3, udivsi3): New patterns.
10435 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
10436 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
10438 2011-06-01 Martin Jambor <mjambor@suse.cz>
10440 * ipa-utils.c (ipa_dfs_info): New field scc_no.
10441 * ipa-utils.c (searchc): Set scc_no.
10443 2011-06-01 Martin Jambor <mjambor@suse.cz>
10445 * ipa-utils.c (searchc_env): New field allow_overwritable.
10446 (searchc): do not ignore edges to overwritable nodes if indicated
10447 by env->allow_overwritable.
10448 (ipa_reduced_postorder): Set env.allow_overwritable.
10450 2011-06-01 Richard Guenther <rguenther@suse.de>
10452 * tree.c (free_lang_data): Do not reset boolean_type_node nor
10454 * lto-streamer.c (lto_record_common_node): Take node pointer,
10455 do not register types.
10456 (lto_preload_common_nodes): Explicitly skip preloading nodes
10457 that differ between frontends.
10459 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
10461 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
10464 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
10466 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
10467 parameter value for dump. Dump cost on outermost call only.
10468 (rs6000_memory_move_cost): Dump cost on outermost call only.
10470 2011-05-31 Jakub Jelinek <jakub@redhat.com>
10472 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
10473 DW_OP_GNU_convert ops.
10475 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
10476 cselib_preserve_constants.
10477 (cselib_lookup_1): If cselib_preserve_constants,
10478 a new VALUE is being created for REG and there is a VALUE for the
10479 same register in wider mode, add another loc with lowpart SUBREG of
10481 (cselib_subst_to_values): Handle ENTRY_VALUE.
10482 * var-tracking.c (replace_expr_with_values): Return NULL for
10484 * dwarf2out.c (convert_descriptor_to_signed): New function.
10485 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
10486 instead of two shifts.
10487 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
10488 the right mode if needed.
10489 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
10490 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
10491 convert_descriptor_to_signed.
10492 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
10493 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
10496 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
10498 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
10500 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
10501 of X87MODEI12 and SWI48x instead of SSEMODEI24.
10502 (SWI248x): New mode iterator, rename from X87MODEI.
10503 (X87MODEI): Remove mode iterator.
10504 (X87MODEI12): Ditto.
10505 (SSEMODEI24): Ditto.
10507 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
10509 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
10510 * doc/invoke.texi: Document max-vartrack-expr-depth.
10511 * var-tracking.c (EXPR_DEPTH): New.
10512 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
10514 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
10516 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
10517 * config/i386/sse.md: Add n to negated FMA pattern names.
10519 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
10521 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
10523 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
10525 * gengtype-state.c (read_state_params_structs): Initialize previous.
10527 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
10529 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
10530 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
10532 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
10534 * config/i386/i386.md (*movtf_internal): Avoid allocating general
10535 registers. Penalize F*r->o alternative to prevent partial memory
10536 stalls. Slightly penalize *roF->*r alternative. Generate SSE
10537 CONST_DOUBLE immediates when optimizing function for size. Do not move
10538 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
10539 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
10540 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
10541 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
10543 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
10545 (fp_register_operand splitters): Use fp_register_operand
10546 constraint. Do not use FP_REG_P in insn condition.
10547 (any_fp_register_operand splitters): Use any_fp_register_operand
10548 constraint. Do not use ANY_FP_REG_P in insn condition.
10550 2011-05-31 Jan Hubicka <jh@suse.cz>
10552 * cgraph.h (cgraph_inline_failed_t): Give enum a name
10553 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
10554 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
10555 (lto_output_edge): Use output_enum and var_len_unsigned.
10556 (lto_output_varpool_node): Likewise.
10557 (input_overwrite_node): Do not take resolution parameter;
10558 extract it from a bitpack.
10559 (input_node): Do not read resolution; use input_enum and
10561 (input_varpool_node): Likewise.
10562 (input_edge): Likewise.
10563 (input_cgraph_1): Likewise.
10565 2011-05-31 Richard Guenther <rguenther@suse.de>
10567 * gimple.c (gimple_register_canonical_type): Do not register
10568 any types via gimple_register_type.
10570 2011-05-31 Jan Hubicka <jh@suse.cz>
10572 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
10575 2011-05-31 Jakub Jelinek <jakub@redhat.com>
10577 PR rtl-optimization/49235
10578 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
10579 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
10581 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
10583 PR tree-optimization/49093
10584 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
10587 2011-05-31 Dodji Seketeli <dodji@redhat.com>
10590 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
10591 for concrete functions containing the code of cloned functions.
10593 2011-05-31 Richard Guenther <rguenther@suse.de>
10595 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
10597 (forward_propagate_into_comparison_1): ... this.
10598 (forward_propagate_comparison): Rename to ...
10599 (forward_propagate_into_comparison): ... this. Split out
10600 real forward propagation code to ...
10601 (forward_propagate_comparison): ... this.
10602 (forward_propagate_into_gimple_cond): Remove looping.
10603 (forward_propagate_into_cond): Likewise.
10604 (simplify_not_neg_expr): Return whether we have done something.
10605 (simplify_gimple_switch): Likewise.
10606 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
10607 (ssa_forward_propagate_and_combine): ... this. Re-structure
10608 to do a forward forward-propagation walk on BBs and a backward
10609 stmt combining walk on BBs. Consistently re-scan changed statements.
10610 (pass_forwprop): Adjust.
10612 2011-05-30 Ian Lance Taylor <iant@google.com>
10614 * godump.c (go_format_type): Correct length of name added to
10615 obstack for anonymous field.
10617 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
10620 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
10621 part of the second operand is 0.
10623 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
10625 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
10626 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
10627 to memory for !TARGET_MEMORY_MISMATCH_STALL.
10628 (*movdf_internal_rex64): Do not penalize F->r alternative.
10629 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
10630 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
10631 when optimizing function for size. Do not move CONST_DOUBLEs
10632 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
10633 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
10634 SUBREGs. Do not check for MEM_P operands in the insn condition,
10635 check for ANY_FP_REGNO_P instead.
10636 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
10637 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
10638 function for speed.
10639 * config/i386/i386.c (ix86_option_override_internal): Do not
10640 set TARGET_INTEGER_DFMODE_MOVES here.
10642 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
10645 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
10647 2011-05-30 Jakub Jelinek <jakub@redhat.com>
10649 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
10650 DW_TAG_rvalue_reference_type even for
10651 -gdwarf-4 -fno-debug-types-section.
10653 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10655 PR tree-optimization/46728
10656 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
10657 (build_and_insert_binop): New.
10658 (gimple_expand_builtin_pow): Reorder args for
10659 build_and_insert_call; use build_and_insert_binop; add more
10660 optimizations for fractional exponents.
10662 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
10667 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10669 * tree.h (struct tree_identifier): Inherit from tree_typed, not
10671 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
10672 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
10673 TS_BASE instead of TS_COMMON.
10674 * varasm.c (assemble_name): Remove assert.
10676 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
10678 * config.gcc: Keep obselete list sorted.
10680 2011-05-30 Jakub Jelinek <jakub@redhat.com>
10681 Eric Botcazou <ebotcazou@adacore.com>
10683 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
10684 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
10685 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
10686 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
10687 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
10689 2011-05-30 Richard Guenther <rguenther@suse.de>
10691 * gimple.c (gimple_types_compatible_p_1): Compare record
10692 and union type members properly.
10694 2011-05-30 Richard Guenther <rguenther@suse.de>
10696 PR tree-optimization/49210
10697 * ipa-split.c (split_function): Care for the case where the call
10698 result is not trivially convertible to the result holding variable.
10700 2011-05-30 Richard Guenther <rguenther@suse.de>
10702 PR tree-optimization/49218
10703 * tree-vrp.c (adjust_range_with_scev): Properly check whether
10706 2011-05-30 Richard Guenther <rguenther@suse.de>
10708 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
10709 New function split out from ...
10710 (forward_propagate_into_gimple_cond): ... here. Adjust.
10711 (forward_propagate_into_cond): Likewise.
10712 (forward_propagate_comparison): Also propagate into
10713 comparisons on assignment RHS. Change return value to
10714 behave similar to forward_propagate_into_cond.
10715 (tree_ssa_forward_propagate_single_use_vars): Handle
10716 strict-overflow warnings properly for forward_propagate_comparison.
10718 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10720 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
10721 from plugin linker.
10722 * configure: Regenerate.
10724 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
10726 PR tree-optimization/49199
10727 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
10728 non-reduction operands are either defined in the loop or by induction.
10730 2011-05-29 Xinliang David Li <davidxl@google.com>
10732 * opts-global.c (handle_common_deferred_options): Handle new options.
10733 * passes.c (register_one_dump_file): Call register_pass_name.
10734 (execute_one_pass): Check explicit enable/disable flag.
10735 (passr_hash): New function.
10737 (register_pass_name): Ditto.
10738 (get_pass_by_name): Ditto.
10739 (pass_hash): Ditto.
10741 (enable_pass): Ditto.
10742 (disable_pass): Ditto.
10743 (is_pass_explicitly_enabled_or_disabled): Ditto.
10745 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
10747 * config/i386/i386.md (*movoi_internal_avx): Use
10748 standard_sse_constant_opcode for alternative 0.
10749 (*movti_internal_sse): Ditto.
10750 (*movti_internal_rex64): Use standard_sse_constant_opcode for
10752 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
10753 sselog1 type moves.
10754 (*movsi_internal): Ditto.
10755 (*movdi_internal): Ditto. Add ssecvt type moves.
10757 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
10760 * rtlanal.c (simplify_subreg_regno): Adjust comment.
10762 2011-05-29 Jakub Jelinek <jakub@redhat.com>
10764 PR rtl-optimization/49095
10765 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
10766 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
10768 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
10771 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
10772 recurse_p argument. Only follow register copies if it is set,
10773 and prevent mips_find_pic_call_symbol from recursing.
10774 (mips_find_pic_call_symbol): Add a recurse_p argument.
10775 Pass it to mips_pic_call_symbol_from_set.
10776 (mips_annotate_pic_calls): Update accordingly.
10778 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
10780 * emit-rtl.c (try_split): Use a loop to search for
10781 NOTE_INSN_CALL_ARG_LOCATIONs.
10783 2011-05-29 Richard Guenther <rguenther@suse.de>
10785 PR tree-optimization/49217
10786 * ipa-pure-const.c (propagate_pure_const): Fix typos.
10788 2011-05-28 Jan Hubicka <jh@suse.cz>
10790 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
10792 (string_slot_free): Remove
10793 (create_output_block): Initialize obstack.
10794 (destroy_output_block): Free obstack.
10795 (lto_string_index): Add PERSISTENT parameter; do not duplicate
10796 the string unless it needs to be added into the hash.
10797 (lto_output_string_with_length): Add persistent attribute;
10798 handle NULL strings.
10799 (lto_output_string): Add PERSISTENT parameter.
10800 (output_string_cst, output_identifier): Simplify.
10801 (lto_output_location_bitpack): Update.
10802 (lto_output_builtin_tree): Update.
10803 * lto-streamer.h (struct output_block): Add obstack.
10804 (lto_output_string, lto_output_string_with_length): Remove
10805 declarations; functions are static now.
10807 2011-05-28 Jan Hubicka <jh@suse.cz>
10809 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
10810 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
10811 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
10812 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
10813 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
10814 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
10815 unpack_ts_decl_with_vis_value_fields,
10816 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
10817 lto_get_builtin_tree): Use enum and variable length i/o.
10818 * basic-block.h (profile_status_d): Add PROFILE_LAST.
10819 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
10821 (bp_pack_enum, bp_unpack_enum): New macros.
10823 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10825 * genrecog.c: Remove redundant forward declarations.
10827 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10829 * config.gcc: Deprecate mips*-*-openbsd*.
10831 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10834 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
10837 2011-05-27 Andrew Pinski <pinskia@gmail.com>
10839 PR middle-end/48981
10840 * gengtype.c (vec_prefix_type): New function.
10841 (note_def_vec): Use vec_prefix_type and change the length
10842 attribute to be based on the prefix.
10843 * vec.c: Include coretypes.h before vec.h.
10844 (struct vec_prefix): Remove.
10845 (vec_gc_p_reserve): Change the offsetof to sizeof.
10846 (vec_gc_p_reserve_exact): Likewise.
10847 (vec_heap_p_reserve): Likewise.
10848 (vec_heap_p_reserve_exact): Likewise.
10849 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
10850 (vec_stack_p_reserve): Change the offsetof to sizeof.
10851 (vec_stack_p_reserve_exact): Likewise.
10852 * vec.h (struct vec_prefix): New struct definition.
10853 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
10854 (VEC_T_GTY(T,B)): Likewise.
10855 (DEF_VEC_FUNC_P(T)): Use prefix field.
10856 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
10857 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
10859 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10861 PR tree-optimization/46728
10862 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
10863 (powi_as_mults): Add gimple_set_location.
10864 (build_and_insert_call): New.
10865 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
10866 0.5, 0.25, 0.75, 1./3., or 1./6.
10868 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
10870 * doc/contrib.texi: Update copyright years.
10871 (Contributors): Add Zdenek Sojka.
10873 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
10875 * c-decl.c (c_push_function_context): Copy the current statement
10877 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
10878 (finish_struct): Call building_stmt_list_p instead of checking
10880 * c-parser.c (c_parser_postfix_expression): Likewise.
10881 * c-typeck.c (c_end_compound_stmt): Likewise.
10882 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
10883 * tree-iterator.c (stmt_list_cache): Change to a VEC.
10884 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
10885 (free_stmt_list): Likewise.
10886 * tree.h (struct tree_statement_list): Include typed_tree instead
10888 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
10889 as TS_TYPED instead of TS_COMMON.
10891 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10892 Uros Bizjak <ubizjak@gmail.com>
10894 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
10895 (HAVE_AS_IX86_TLSGDPTL): Define.
10896 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
10897 (HAVE_AS_IX86_TLSLDMPLT): Define.
10898 * configure: Regenerate.
10899 * config.in: Regenerate.
10900 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
10901 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
10902 TARGET_SUN_TLS, use @tlsgdplt or @plt.
10903 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
10904 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
10905 @tlsldmplt or @plt.
10906 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
10908 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
10910 * sched-int.h (struct _haifa_deps_insn_data): New members cond
10912 (INSN_COND, INSN_REVERSE_COND): New macros.
10913 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
10915 (sched_get_condition_with_rev): Cache the results, and look them up
10917 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
10918 are clobbered by the current insn.
10919 * target.def (exposed_pipline): New sched data hook.
10920 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
10921 * doc/tm.texi: Regenerate.
10923 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10925 PR tree-optimization/49170
10926 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
10929 2011-05-27 Richard Guenther <rguenther@suse.de>
10931 PR middle-end/49189
10932 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
10935 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
10937 * haifa-sched.c (sched_scan_info): Remove.
10938 (schedule_block): Call sched_extend_luids rather than sched_init_luids
10940 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
10942 (sched_scan): Remove.
10943 (sched_extend_luids): Renamed from luids_extend_insn and no longer
10944 static. All callers changed.
10945 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
10946 static. All callers changed.
10947 (sched_init_luids): Remove all arguments except the first. All
10948 callers changed. Don't use sched_scan.
10949 (haifa_init_h_i_d): Likewise.
10950 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
10951 manually rather than using sched_init_luids. Likewise with
10952 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
10953 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
10954 rather than sched_init_luids with NULL args.
10955 * sel-sched-ir.c (new_insns): Remove variable.
10956 (sched_scan): New static function, previously in haifa-sched.c. Remove
10957 all arguments but the first two; all callers changed.
10958 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
10959 rather than sched_init_luids.
10960 (sel_init_bbs): Remove second argument. All callers changed.
10961 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
10962 with NULL arguments.
10963 (create_insn_rtx_from_pattern): Likewise.
10964 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
10965 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
10966 (sched_init_insn_luid, sched_extend_luids): Declare.
10967 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
10970 2011-05-27 Richard Guenther <rguenther@suse.de>
10972 PR middle-end/49177
10973 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
10974 A CMP B ? (T) true : (T) false for non-integral types T again.
10976 2011-05-27 Jan Hubicka <jh@suse.cz>
10978 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
10979 so 0 means NULL string.
10980 (lto_output_string_with_length): ... here.
10981 (lto_output_string, output_string_cst, output_identifier): Update
10982 handling of NULL strings.
10983 (lto_output_location_bitpack): New function.
10984 (lto_output_location): Use it.
10985 (lto_output_tree_ref): Use output_record_start.
10986 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
10988 * lto-streamer-in.c (string_for_index): Break out from ...; offset
10990 (input_string_internal): ... here;
10991 (input_string_cst, input_identifier, lto_input_string): Update handling
10993 (lto_input_location_bitpack): New function
10994 (lto_input_location): Use it.
10995 (unpack_ts_type_common_value_fields): Pack align & alias in var len
10997 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
10998 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
10999 (bp_pack_value): Sanity check the value range.
11000 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
11002 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
11005 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
11007 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
11008 call_arg_location instructions down the floor.
11010 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
11012 PR rtl-optimization/49154
11013 * ira.c (setup_pressure_classes): Process class without sublcasses
11014 as a candidate for pressure classes.
11016 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
11018 PR rtl-optimization/48575
11019 * genrecog.c (position_type): New enum.
11020 (position): New structure.
11021 (decision): Use position structure instead of a string.
11022 (root_pos, peep2_insn_pos_list): New variables.
11023 (next_position, compare_positions): New functions.
11024 (new_decision): Use position structures instead of strings.
11025 (maybe_both_true): Likewise.
11026 (change_state): Likewise.
11027 (write_tree): Likewise.
11028 (make_insn_sequence): Likewise.
11030 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11032 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
11033 TS_BASE instead of TS_COMMON.
11034 (find_decls_types_r): Check for TS_TYPED structure before looking at
11036 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
11038 (BLOCK_CHAIN): Use new chain field.
11040 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
11042 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
11043 moves expensive on Power7 also.
11045 2011-05-26 Richard Guenther <rguenther@suse.de>
11047 * fold-const.c (fold_unary_loc): Remove bogus code.
11049 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11051 * tree.h (struct tree_identifier): Inherit from tree_typed, not
11053 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
11054 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
11055 TS_BASE instead of TS_COMMON.
11056 * varasm.c (assemble_name): Remove assert.
11058 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
11060 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
11062 * libgcc-std.ver: Delete file.
11064 2011-05-26 Richard Guenther <rguenther@suse.de>
11066 PR tree-optimization/48702
11067 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
11068 only when we know the base address is within bounds.
11069 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
11070 assume the base address of TARGET_MEM_REFs is in bounds.
11072 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11075 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
11076 declaration in TARGET_SOLARIS.
11078 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
11080 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
11081 The instruction is then expanded explicitly.
11082 (supported_compare): Callable instruction.
11083 (compare): Likewise.
11085 2011-05-26 Jakub Jelinek <jakub@redhat.com>
11088 * gimplify.c (shortcut_cond_r): Don't special case
11089 COND_EXPRs if they have void type on one of their arms.
11091 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
11093 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
11094 to reduce duplication, and to achieve a slightly more logical order
11097 2011-05-26 Jakub Jelinek <jakub@redhat.com>
11099 PR tree-optimization/49161
11100 * tree-vrp.c (struct case_info): New type.
11101 (compare_case_labels): Sort case_info structs instead of
11102 trees, and not primarily by CASE_LABEL uids but by
11103 label_for_block indexes.
11104 (find_switch_asserts): Put case labels into struct case_info
11105 array instead of TREE_VEC, adjust sorting, compare label_for_block
11106 values instead of CASE_LABELs.
11108 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11110 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
11111 ("orndi3_neon"): Likewise.
11112 ("bic<mode>3_neon"): Likewise.
11114 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
11116 PR tree-optimization/49038
11117 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
11118 Ensure at least one epilogue iteration if required by data
11119 accesses with gaps.
11120 * tree-vectorizer.h (struct _loop_vec_info): Add new field
11121 to mark loops that require peeling for gaps.
11122 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
11123 (vect_get_known_peeling_cost): Take peeling for gaps into
11125 (vect_transform_loop): Generate epilogue if required by data
11127 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
11128 loop as requiring an epilogue if there are gaps in the end of
11131 2011-05-25 Ian Lance Taylor <iant@google.com>
11133 * godump.c (go_format_type): Output the first field with a usable
11136 2011-05-25 Ian Lance Taylor <iant@google.com>
11138 * godump.c (go_format_type): Check for invalid type names, pointer
11139 target types, and struct field types.
11141 2011-05-25 Jason Merrill <jason@redhat.com>
11143 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
11145 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
11147 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
11149 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
11151 * config/i386/i386.md (*movqi_extv_1)): Put back
11152 "register_operand" check in "type" calculation.
11153 (*movqi_extzv_2): Likewise.
11155 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
11157 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
11159 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
11162 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
11163 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
11164 __divxc3, __divtc3): Wrap definitions in #ifndef.
11166 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
11169 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
11170 "register_operand" check and replace q_regs_operand with
11171 QIreg_operand in "type" calculation.
11172 (*movqi_extv_1): Likewise.
11173 (*movqi_extzv_2_rex64): Likewise.
11174 (*movqi_extzv_2): Likewise.
11176 * config/i386/predicates.md (QIreg_operand): New.
11178 2011-05-25 Richard Guenther <rguenther@suse.de>
11180 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
11181 type-based offset disambiguation, streamline MEM_REF and
11182 TARGET_MEM_REF handling.
11184 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
11186 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
11187 (bdesc_special_args): Add pause intrinsic.
11189 * config/i386/i386.md (UNSPEC_PAUSE): New.
11191 (*pause): Likewise.
11192 * config/i386/ia32intrin.h (__pause): Likewise.
11194 * doc/extend.texi (X86 Built-in Functions): Add documentation for
11197 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11199 PR tree-optimization/46728
11200 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
11201 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
11203 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
11205 * tree.h (struct tree_exp): Inherit from struct tree_typed.
11206 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
11207 instead of TS_COMMON.
11209 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
11211 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
11212 LIBGCC2_GNU_PREFIX is defined.
11214 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
11215 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
11216 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
11217 __clz_tab): Define using __N.
11218 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
11219 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
11220 * target.def (libfunc_gnu_prefix): New hook.
11221 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
11222 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
11223 * doc/tm.texi: Regenerate.
11224 * system.h (LIBGCC2_GNU_PREFIX): Poison.
11225 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
11227 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
11228 (init_optabs): Likewise for the bswap libfuncs.
11229 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
11231 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
11232 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
11233 * libgcc-std.ver: Remove.
11234 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
11235 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
11237 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11238 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
11239 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
11240 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
11241 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
11242 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11243 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11244 * config/fixed-bit.h (FIXED_OP): Define differently depending on
11245 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
11246 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
11248 2011-05-25 Jan Hubicka <jh@suse.cz>
11250 * lto-streamer-out.c (output_record_start): Use lto_output_enum
11251 (lto_output_tree): Use output_record_start.
11252 * lto-streamer-in.c (input_record_start): Use lto_input_enum
11253 (lto_get_pickled_tree): Use input_record_start.
11254 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
11255 (lto_value_range_error): New function.
11256 * lto-streamer.h (lto_value_range_error): Declare.
11257 (lto_output_int_in_range, lto_input_int_in_range): New functions.
11258 (lto_output_enum, lto_input_enum): New macros.
11260 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
11262 * common.opt (flag_stack_usage_info): New variable.
11263 (-Wstack-usage): New option.
11264 * doc/invoke.texi (Warning options): Document -Wstack-usage.
11265 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
11266 <OPT_fstack_usage>: Likewise.
11267 * toplev.c (output_stack_usage): Handle -Wstack-usage.
11268 * calls.c (expand_call): Test flag_stack_usage_info variable instead
11269 of flag_stack_usage.
11270 (emit_library_call_value_1): Likewise.
11271 * explow.c (allocate_dynamic_stack_space): Likewise.
11272 * function.c (instantiate_virtual_regs ): Likewise.
11273 (prepare_function_start): Likewise.
11274 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
11275 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
11276 * config/arm/arm.c (arm_expand_prologue): Likewise.
11277 (thumb1_expand_prologue): Likewise.
11278 * config/avr/avr.c (expand_prologue): Likewise.
11279 * config/i386/i386.c (ix86_expand_prologue): Likewise.
11280 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
11281 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
11282 * config/mips/mips.c (mips_expand_prologue): Likewise.
11283 * config/pa/pa.c (hppa_expand_prologue): Likewise.
11284 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
11285 * config/s390/s390.c (s390_emit_prologue): Likewise.
11286 * config/sh/sh.c (sh_expand_prologue): Likewise.
11287 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
11288 * config/spu/spu.c (spu_expand_prologue): Likewise.
11290 2011-05-25 Richard Guenther <rguenther@suse.de>
11292 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
11293 (gimple_canonical_types_compatible_p): Likewise.
11295 2011-05-25 Jan Hubicka <jh@suse.cz>
11297 PR middle-end/49062
11298 * ipa.c (function_and_variable_visibility): Only add to same
11299 comdat group list if DECL_ONE_ONLY.
11301 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
11303 PR rtl-optimization/49014
11304 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
11306 2011-05-25 Jakub Jelinek <jakub@redhat.com>
11309 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
11311 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
11313 PR rtl-optimization/48757
11314 * ira-build.c (loop_with_eh_edge_p): Rename to
11315 loop_with_complex_edge_p, check edges on complexity, make function
11317 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
11320 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
11322 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
11323 force flag_ira_share_save_slots to 0.
11325 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
11327 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
11328 (vt_initialize): Set PROLOGUE_BB unconditionally.
11329 Add block comment about CFA_BASE_RTX machinery.
11330 Reset FP_CFA_OFFSET to -1 on all invalid paths.
11331 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
11333 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
11336 * c-parser.c (c_parser_objc_class_instance_variables): More robust
11337 parsing of syntax error in ObjC instance variable lists. In
11338 particular, avoid an infinite loop if there is a stray ']'.
11339 Updated error message.
11341 2011-05-24 Ian Lance Taylor <iant@google.com>
11343 * godump.c (go_define): Don't accept a string immediately after
11346 2011-05-24 Ian Lance Taylor <iant@google.com>
11348 * godump.c (struct godump_container): Add invalid_hash field.
11349 (go_format_type): Return false if type is found in invalid_hash.
11350 (go_output_typedef): Add invalid type to invalid_hash.
11351 (go_finish): Create and delete invalid_hash.
11353 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11355 PR tree-optimization/46728
11356 * tree-ssa-math-opts.c (powi_table): New.
11357 (powi_lookup_cost): New.
11359 (powi_as_mults_1): New.
11360 (powi_as_mults): New.
11361 (gimple_expand_builtin_powi): New.
11362 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
11363 (gate_cse_sincos): Remove sincos/cexp restriction.
11365 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11368 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
11370 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
11371 * mips-tdump.c: Likewise.
11373 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
11376 * config/i386/driver-i386.c (host_detect_local_cpu): Always
11377 add -mno-XXX. Handle FMA.
11379 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
11381 PR rtl-optimization/48633
11382 * ira-build.c (loop_with_eh_edge_p): New function.
11383 (mark_loops_for_removal): Use it.
11385 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
11387 PR rtl-optimization/48971
11388 * ira.c (setup_pressure_classes): Don't check register move cost
11389 for classes with one registers. Don't add pressure class if there
11390 is a pressure class with the same available hard registers.
11391 Check contains_reg_of_mode. Fix a typo in collecting
11392 temp_hard_regset. Ignore hard registers not belonging to a class.
11394 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
11397 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
11399 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
11400 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11402 PR gcov-profile/48845
11403 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
11405 2011-05-24 Richard Guenther <rguenther@suse.de>
11407 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
11408 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
11409 (gimple_types_compatible_p_1): Adjust.
11410 (iterative_hash_canonical_type): Do not bother about complete vs.
11412 (gimple_canonical_types_compatible_p): Likewise.
11414 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11416 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
11418 2011-05-24 Richard Guenther <rguenther@suse.de>
11421 * gimple.c (gimple_register_canonical_type): Revert
11423 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
11424 does not for a tree for the case where it matters. Cache
11425 pointer-type alias-sets.
11427 2011-05-24 Joseph Myers <joseph@codesourcery.com>
11429 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
11430 (OBJS): Remove options.o, opts-common.o and prefix.o.
11431 (OBJS-libcommon-target): New.
11432 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
11433 (BACKEND): Include libcommon-target.a.
11434 (MOSTLYCLEANFILES): Include libcommon-target.a.
11435 (libcommon-target.a): New.
11436 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
11439 2011-05-23 Joseph Myers <joseph@codesourcery.com>
11441 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
11442 parts of output shared with the driver.
11443 * optc-gen.awk: Don't generate parts of output not shared with the
11445 * opth-gen.awk: Remove GCC_DRIVER conditionals.
11446 * doc/options.texi (SourcerInclude): Mention options-save.c.
11447 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
11448 (OBJS): Add options-save.o.
11449 (options-save.c, options-save.o): New.
11450 (options.o): Update dependencies.
11451 (gcc-options.o): Remove.
11452 (mostlyclean): Remove options-save.c.
11454 2011-05-23 Jakub Jelinek <jakub@redhat.com>
11457 * dbxout.c: Include cgraph.h.
11458 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
11459 and without value expr, return NULL if no varpool node exists for
11460 it or if it is not needed.
11461 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
11464 * c-decl.c (start_decl): Convert expr to void_type_node.
11466 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
11468 PR rtl-optimization/48826
11469 * emit-rtl.c (try_split): When splitting a call that is followed
11470 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
11472 2011-05-23 Jakub Jelinek <jakub@redhat.com>
11474 * cfgexpand.c (expand_debug_expr): For unused non-addressable
11475 parameters passed in memory prefer using DECL_INCOMING_RTL over
11476 the pseudos it will be copied into.
11478 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
11481 * config/i386/i386.c (ix86_option_override_internal): Save the
11482 initial options after checking vzeroupper.
11484 2011-05-23 David Li <davidxl@google.com>
11486 PR tree-optimization/48988
11487 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
11488 Initialize has_valid_pred for each pred chain.
11490 2011-05-23 Richard Guenther <rguenther@suse.de>
11492 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
11493 (iterative_hash_gimple_type): Always hash type names.
11495 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
11497 * c-typeck.c (build_function_call_vec): Tweak call to
11498 check_function_arguments.
11500 2011-05-23 Richard Guenther <rguenther@suse.de>
11502 PR tree-optimization/49115
11503 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
11504 is not necessarily carried out, do not claim it kills the ref.
11505 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
11507 2011-05-23 Richard Guenther <rguenther@suse.de>
11509 PR middle-end/15419
11510 * builtins.c (fold_builtin_memory_op): Be less restrictive about
11511 what pointer types we accept for folding.
11513 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11515 * gthr-gnat.c: Remove.
11516 * gthr-gnat.h: Remove.
11517 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
11518 * config/t-freebsd (LIB2ADDEH): Likewise.
11519 * config/t-linux (LIB2ADDEH): Likewise.
11520 * config/t-sol2 (LIB2ADDEH): Likewise.
11521 * config/ia64/t-vms (LIB2ADDEH): Likewise.
11522 * configure.ac (target_thread_file): Remove gnat handling.
11523 * configure: Regenerate.
11524 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
11526 2011-05-23 Tristan Gingold <gingold@adacore.com>
11527 Eric Botcazou <ebotcazou@adacore.com>
11529 * gcov.c (create_file_names): If no object directory is specified,
11530 keep the directory of the file.
11532 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11534 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
11535 * configure: Regenerate.
11537 2011-05-23 Jakub Jelinek <jakub@redhat.com>
11539 PR middle-end/48973
11540 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
11541 failed and the comparison has a single bit signed type, use
11542 constm1_rtx instead of const1_rtx for true value.
11543 (do_store_flag): If ops->type is single bit signed type, disable
11544 signel bit test optimization and pass -1 instead of 1 as last
11545 parameter to emit_store_flag_force.
11547 2011-05-23 Tom de Vries <tom@codesourcery.com>
11550 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
11552 (infer_loop_bounds_from_undefined): Use new function.
11554 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
11556 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
11557 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
11558 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
11560 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
11562 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11564 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
11565 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
11568 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
11570 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
11572 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11574 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
11575 UNSPEC_MOVE_PIC pattern.
11577 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11579 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
11580 (sparc-*-rtems*): Likewise.
11581 (sparc64-*-elf*): Likewise.
11582 (sparc64-*-rtems*): Likewise.
11583 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
11584 * config/sparc/t-crtin: New file.
11585 * config/sparc/t-sol2 (crti.o): Delete rule.
11586 (crtn.o): Likewise.
11587 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
11588 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
11589 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
11590 (ENDFILE_SPEC): Add crtn.o.
11592 2011-05-22 Tom de Vries <tom@codesourcery.com>
11594 PR middle-end/48689
11595 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
11596 CODE_CONTAINS_STRUCT (TS_COMMON).
11598 2011-05-22 Jakub Jelinek <jakub@redhat.com>
11600 PR middle-end/49029
11601 * expmed.c (extract_fixed_bit_field): Test whether target can be used
11602 only after deciding which mode to use.
11604 2011-05-22 Tom de Vries <tom@codesourcery.com>
11607 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
11608 for call to get_shiftadd_cost.
11610 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
11613 * config/i386/cpuid.h (bit_MMXEXT): New define.
11615 2011-05-22 Nick Clifton <nickc@redhat.com>
11617 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
11618 initialisation of non-existant args[2] element. Use args[] array
11619 not arg[] array to pass arguments to build_function_type_list.
11621 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
11623 PR tree-optimization/49087
11624 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
11626 2011-05-21 Jason Merrill <jason@redhat.com>
11629 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
11630 static storage duration.
11632 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
11634 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
11637 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
11639 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
11640 false if there are call-saved registers here...
11641 (sparc_can_use_return_insn_p): ...but here instead.
11642 (save_or_restore_regs): Fix thinko.
11643 (sparc_expand_prologue): Use current_function_is_leaf.
11644 (sparc_frame_pointer_required): Likewise.
11646 2011-05-21 Nick Clifton <nickc@redhat.com>
11649 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
11651 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
11653 * gengtype.c (walk_type): Implemented "atomic" GTY option.
11654 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
11656 2011-05-21 Joseph Myers <joseph@codesourcery.com>
11658 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
11659 * optc-gen.awk: Move common code to opt-read.awk.
11660 * opth-gen.awk: Likewise.
11661 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
11663 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
11665 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
11667 2011-05-20 Tom de Vries <tom@codesourcery.com>
11670 * tree-ssa-loop-ivopts.c: Include expmed.h.
11671 (get_shiftadd_cost): New function.
11672 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
11674 2011-05-20 Jakub Jelinek <jakub@redhat.com>
11677 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
11678 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
11680 2011-05-20 Joseph Myers <joseph@codesourcery.com>
11682 * Makefile.in: Update comment referring to $(OBJS-common).
11684 2011-05-20 Ian Lance Taylor <iant@google.com>
11686 * godump.c (go_output_typedef): Put enum constants in the macro
11687 hash table to avoid duplicate Go const definitions.
11689 2011-05-20 Joseph Myers <joseph@codesourcery.com>
11691 * Makefile.in (LIBDEPS): Add libcommon.a.
11693 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
11694 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
11695 pretty-print.o and version.o.
11696 (OBJS-libcommon): New.
11697 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
11698 (BACKEND): Add libcommon.a.
11699 (MOSTLYCLEANFILES): Likewise.
11700 (libcommon.a): New.
11701 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
11702 (cpp$(exeext)): Likewise.
11703 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
11704 pretty-print.o and input.o.
11705 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
11706 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
11707 (errors.o): Remove.
11708 (mips-tfile): Don't explicitly use version.o.
11709 (mips-tdump): Likewise.
11710 (gcov.o): Depend on $(DIAGNOSTIC_H).
11711 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
11712 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
11713 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
11714 * gcov-dump.c: Include intl.h and diagnostic.h.
11715 (main): Initialize diagnostics.
11716 * gcov.c: Include diagnostic.h.
11718 (main): Initialize diagnostics.
11719 * lto-wrapper.c: Include diagnostic.h.
11720 (main): Initialize diagnostics.
11722 2011-05-20 Michael Matz <matz@suse.de>
11724 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
11726 2011-05-20 Michael Matz <matz@suse.de>
11727 Richard Guenther <rguenther@suse.de>
11729 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
11730 use lto_streamer_cache_append directly instead of returning a VEC.
11731 (preload_common_node): Remove.
11732 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
11734 (lto_streamer_cache_create): Call lto_preload_common_nodes.
11736 2011-05-20 Richard Guenther <rguenther@suse.de>
11738 PR tree-optimization/49079
11739 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
11740 MEM_REFs correctly for the trailing array access detection.
11741 Special case constants the same way as decls for overall size
11744 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
11746 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
11747 argument expansion.
11749 2011-05-20 Jakub Jelinek <jakub@redhat.com>
11751 PR tree-optimization/49073
11752 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
11753 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
11754 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
11756 2011-05-20 Richard Guenther <rguenther@suse.de>
11758 PR middle-end/48849
11759 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
11760 of pointer types the same way the middle-end does.
11762 2011-05-20 Richard Guenther <rguenther@suse.de>
11764 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
11765 or pointer-to chains. Delay all fixup to uniquify_nodes.
11767 2011-05-19 Quentin Neill <quentin.neill@amd.com>
11769 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
11770 (fma4_fmaddsub): Likewise
11772 2011-05-19 Jan Hubicka <jh@suse.cz>
11774 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
11775 (GIMPLE_TYPE_PAIR_SIZE): New macro.
11776 (type_pair_cache): New static var.
11777 (lookup_type_pair): Use fixed sized custom hash; make inline.
11778 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
11779 calls of lookup_type_pair.
11780 (print_gimple_types_stats): Remove cache stats.
11781 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
11784 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
11786 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
11787 when TARGET_RDRND is active.
11788 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
11789 Generate dummy SImode target register when target is NULL.
11791 2011-05-19 Joseph Myers <joseph@codesourcery.com>
11793 * config/arm/arm-fpus.def: New.
11794 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
11796 * config/arm/arm-tables.opt: Regenerate.
11797 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
11798 (arm_option_override): Don't decode FPU name to string here.
11799 * config/arm/arm.opt (mfpu=): Use Enum.
11800 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
11801 Update dependencies.
11803 2011-05-19 Joseph Myers <joseph@codesourcery.com>
11805 * collect2.c: Include diagnostic.h.
11806 (fatal_perror, fatal, error, fancy_abort): Remove.
11807 (main): Set progname. Call xmalloc_set_program_name and
11808 diagnostic_initialize.
11809 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
11810 scan_libraries, resolve_lib_name): Call fatal_error instead of
11811 fatal and fatal_perror.
11812 * collect2.h (error, fatal, fatal_perror): Don't declare.
11813 * tlink.c: Include diagnostic-core.h.
11814 (recompile_files): Call fatal_error instead of fatal_perror.
11815 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
11816 pretty-print.o and input.o.
11817 (collect2.o, tlink.o): Update dependencies.
11819 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11821 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
11823 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11826 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
11827 COMDAT group syntax, both SPARC and x86 variants.
11828 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
11829 * configure: Regenerate.
11830 * config/sol2.h (TARGET_SOLARIS): Define.
11831 (PUSHSECTION_FORMAT): Remove.
11832 (SECTION_NAME_FORMAT): Define.
11833 * config/sol2.c: Include hashtab.h.
11834 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
11835 expansion, using SECTION_NAME_FORMAT.
11836 (solaris_comdat_htab): New variable.
11837 (struct comdat_entry): Define.
11838 (comdat_hash): New function.
11839 (comdat_eq): New function.
11840 (solaris_elf_asm_comdat_section): New function.
11841 (solaris_define_comdat_signature): New function.
11842 (solaris_code_end): New function.
11843 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
11844 (solaris_code_end): Declare.
11845 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
11846 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
11848 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
11849 Remove ATTRIBUTE_UNUSED.
11850 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
11851 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
11852 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
11853 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
11854 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
11855 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
11856 (PUSHSECTION_FORMAT): Remove.
11857 (SECTION_NAME_FORMAT): Redefine.
11859 2011-05-19 Kai Tietz <ktietz@redhat.com>
11861 * tree-cfg.c (verify_gimple_assign_binary): Barf on
11862 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
11863 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
11865 2011-05-19 Anatoly Sokolov <aesok@post.ru>
11866 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11868 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
11870 2011-05-19 Richard Guenther <rguenther@suse.de>
11872 PR middle-end/48985
11873 * tree-object-size.c (addr_object_size): If the pointed-to
11874 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
11876 2011-05-19 Richard Guenther <rguenther@suse.de>
11878 * gimple.c (gimple_types_compatible_p_1): Compare names of
11879 the types themselves.
11880 (iterative_hash_gimple_type): And hash them that way.
11881 (gimple_register_type_1): If we register a main variant properly
11882 initialize the leader to ourselves.
11884 2011-05-19 Tom de Vries <tom@codesourcery.com>
11887 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
11888 get_loop_invariant_expr_id.
11889 (get_loop_invariant_expr_id): Use get_expr_id.
11890 (parm_decl_cost): New function.
11891 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
11892 Improve bound cost estimation. Use different inv_expr_id for elim and
11895 2011-05-19 Tom de Vries <tom@codesourcery.com>
11898 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
11899 cost_base.cost == 0.
11901 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
11904 * config/i386/sse.md
11905 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
11908 2011-05-18 Jakub Jelinek <jakub@redhat.com>
11910 PR tree-optimization/49039
11911 * tree-vrp.c (extract_range_from_binary_expr): For
11912 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
11913 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
11915 2011-05-18 Tom de Vries <tom@codesourcery.com>
11918 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
11920 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
11922 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
11923 (*tls_global_dynamic_64): Ditto.
11924 (*tls_local_dynamic_base_32_gnu): Ditto.
11925 (*tls_local_dynamic_base_64): Ditto.
11926 (tls_initial_exec_64_sun): Ditto.
11928 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
11930 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
11931 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
11933 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
11934 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
11935 * config/bfin/bfin.c (bfin_cpus): Add bf592.
11936 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11937 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
11938 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
11939 * config/bfin/elf.h (LIB_SPEC): Add bf592.
11941 2011-05-18 Joseph Myers <joseph@codesourcery.com>
11943 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
11944 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
11945 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
11946 target_thread_pointer, arm_structure_size_boundary, struct
11947 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
11948 struct abi_name, arm_all_abis): Remove.
11949 (arm_option_override) Don't process most enumerated option values here.
11950 Don't process target_fpe_name here. Work with integer not string for
11951 structure size boundary; use separate diagnostics for each case.
11952 * config/arm/arm.h (enum float_abi_type, enum
11953 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
11955 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
11956 arm_structure_size_boundary): Remove.
11957 * config/arm/arm.opt (mabi=): Use Enum and Init.
11958 (arm_abi_type): New Enum and EnumValue entries.
11959 (mfloat-abi=): Use Enum and Init.
11960 (float_abi_type): New Enum and EnumValue entries.
11961 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
11962 (mfp16-format=): Use Enum and Init.
11963 (arm_fp16_format_type): New Enum and EnumValue entries.
11964 (mstructure-size-boundary=): Use UInteger and Init.
11965 (mtp=): Use Enum and Init.
11966 (arm_tp_type): New Enum and EnumValue entries.
11968 2011-05-18 Richard Guenther <rguenther@suse.de>
11970 PR tree-optimization/49018
11971 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
11972 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
11973 gimple_has_side_effects.
11975 2011-05-18 Richard Guenther <rguenther@suse.de>
11977 * gimple.c (gimple_register_type_1): New function, split out from ...
11978 (gimple_register_type): ... here. Avoid infinite recursion.
11980 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
11982 PR tree-optimization/41881
11983 * tree-vectorizer.h (struct _loop_vec_info): Add new field
11984 reduction_chains along with a macro for its access.
11985 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
11986 (destroy_loop_vec_info): Free reduction chains.
11987 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
11988 (vect_is_slp_reduction): New function.
11989 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
11990 (vect_create_epilog_for_reduction): Support SLP reduction chains.
11991 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
11992 definition types for reduction chains.
11993 (vect_supported_load_permutation_p): Don't allow permutations for
11995 (vect_analyze_slp_instance): Support reduction chains.
11996 (vect_analyze_slp): Try to build SLP instance from reduction chains.
11997 (vect_get_constant_vectors): Handle reduction chains.
11998 (vect_schedule_slp_instance): Mark the first statement of the
11999 reduction chain as reduction.
12001 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
12003 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
12004 names for group elements access.
12005 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
12006 reduction chains as well. Remove data reference and interleaving
12007 related words from the fields names.
12008 * tree-vect-loop.c (vect_transform_loop): Use new names for group
12010 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
12011 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
12012 vect_update_interleaving_chain, vect_same_range_drs,
12013 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
12014 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
12015 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
12016 vect_analyze_group_access, vect_analyze_data_ref_access,
12017 vect_create_data_ref_ptr, vect_transform_strided_load,
12018 vect_record_strided_load_vectors): Likewise.
12019 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
12020 vect_model_load_cost, vectorizable_store, vectorizable_load,
12021 vect_remove_stores, new_stmt_vec_info): Likewise.
12022 * tree-vect-slp.c (vect_build_slp_tree,
12023 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
12025 2011-05-18 Richard Guenther <rguenther@suse.de>
12027 PR middle-end/48989
12028 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
12029 operand verification.
12030 (verify_gimple_assign_binary): Likewise.
12031 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
12032 to non-1-precision BOOLEAN_TYPEs.
12034 2011-05-18 Tom de Vries <tom@codesourcery.com>
12037 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
12039 2011-05-18 Jakub Jelinek <jakub@redhat.com>
12041 PR tree-optimization/49000
12042 * tree-ssa.c (execute_update_addresses_taken): Call
12043 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
12044 be rewritten and decl has been marked for renaming, reset
12047 2011-05-17 Joseph Myers <joseph@codesourcery.com>
12049 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
12050 enum_opts_set when testing if attributes have set -mfpmath=.
12052 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
12054 * config/mips/mips.c (mips_handle_option): Remove unused variable.
12056 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
12058 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
12060 * tree-inline.c (maybe_inline_call_in_expr): Initialize
12061 id.transform_lang_insert_block with NULL.
12063 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
12065 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
12066 (output_fp_compare): Change args 3 and 4 to bool.
12067 (ix86_expand_call): Change arg 6 to bool.
12068 (ix86_attr_length_immediate_default): Change arg 2 to bool.
12069 (ix86_attr_length_vex_default): Change arg 3 to bool.
12070 * config/i386/i386.md: Update all uses.
12071 * config/i386/i386.c: Ditto.
12072 (ix86_flags_dependent): Change return type to bool.
12074 2011-05-17 Richard Guenther <rguenther@suse.de>
12076 * gimple.c (type_hash_pair_compare): Fix comparison.
12078 2011-05-17 Richard Guenther <rguenther@suse.de>
12080 * gimple.c (iterative_hash_gimple_type): Simplify singleton
12081 case some more, fix final hash value of the non-singleton case.
12083 2011-05-17 Richard Guenther <rguenther@suse.de>
12087 2011-05-16 Richard Guenther <rguenther@suse.de>
12089 * gimple.c (gimple_types_compatible_p_1): Use names of the
12090 type itself, not its main variant.
12091 (iterative_hash_gimple_type): Likewise.
12093 2011-05-17 Richard Guenther <rguenther@suse.de>
12095 * gimple.c (gimple_register_canonical_type): Use the main-variant
12096 leader for computing the canonical type.
12098 2011-05-17 Nick Clifton <nickc@redhat.com>
12100 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
12103 * config/rx/rx.md: Add peephole to remove redundant extensions
12105 (bitset_in_memory): Use rx_restricted_mem_operand.
12106 (bitinvert_in_memory): Likewise.
12107 (bitclr_in_memory): Likewise.
12109 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
12110 Nick Clifton <nickc@redhat.com>
12112 * config/rx/rx.md: Add peepholes to match a register move followed
12113 by a comparison of the moved register. Replace these with an
12114 addition of zero that does both actions in one instruction.
12116 2011-05-17 Jakub Jelinek <jakub@redhat.com>
12119 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
12120 predicate to allow CONST_INT.
12121 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
12123 2011-05-16 Joseph Myers <joseph@codesourcery.com>
12125 * opts-common.c (opt_enum_arg_to_value): New.
12126 * opts.h (opt_enum_arg_to_value): Declare.
12127 * config/i386/i386.opt (fpmath): Remove.
12128 (mfpmath=): Use Enum, Init and Save.
12129 (fpmath_unit): New Enum and EnumValue entries.
12130 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
12131 name for function fpmath state.
12132 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
12133 * config/i386/i386.c: Include diagnostic.h.
12134 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
12135 (ix86_target_string): Take enum fpmath_unit value instead of string.
12136 (ix86_debug_options): Update call to ix86_target_string.
12137 (ix86_option_override_internal): Don't process fpmath strings here.
12138 (x86_function_specific_save, ix86_function_specific_restore):
12139 Don't handle fpmath state specially.
12140 (ix86_function_specific_print): Pass fpmath state to
12141 ix86_target_string instead of printing in this function.
12142 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
12143 Handle enum attributes.
12144 (IX86_ATTR_ENUM, ix86_opt_enum): New.
12145 (ix86_valid_target_attribute_tree): Update option_strings
12146 handling. Handle fpmath as enum option.
12147 (ix86_can_inline_p): Update field names for function fpmath state.
12148 (ix86_expand_builtin): Update call to ix86_target_string.
12149 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
12150 (ix86_fpmath): Remove.
12151 * config/i386/t-i386 (i386.o): Update dependencies.
12153 2011-05-16 Joseph Myers <joseph@codesourcery.com>
12155 PR preprocessor/48677
12156 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
12157 from decoded_options[0], not from itself.
12159 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
12161 * config/i386/constraints.md (z): New constraint.
12162 * config/i386/i386.c (c): New mode attribute.
12163 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
12164 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
12165 constraint for operand 0.
12166 (*call_vzeroupper): Ditto.
12167 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
12168 (*call_rex64_ms_sysv_vzeroupper): Ditto.
12169 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
12170 Use "lzm" constraint for operand 0.
12171 (*call_pop_vzeroupper): Ditto.
12172 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
12173 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
12174 constraint for operand 0.
12175 (*sibcall_vzeroupper): Ditto.
12176 (*sibcall_rex64_ms_sysv): Ditto.
12177 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
12178 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
12179 *sibcall_pop_1. Use "Uz" constraint for operand 0.
12180 (*sibcall_pop_vzeroupper): Ditto.
12181 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
12182 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
12183 mode iterator. Use "<c>zm" constraint for operand 1.
12184 (*call_value_vzeroupper): Ditto.
12185 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
12187 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
12188 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
12189 *call_value_pop_1. Use "lzm" constraint for operand 1.
12190 (*call_value_pop_vzeroupper): Ditto.
12191 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
12192 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
12193 mode iterator. Use "Uz" constraint for operand 1.
12194 (*sibcall_value_vzeroupper): Ditto.
12195 (*sibcall_value_rex64_ms_sysv): Ditto.
12196 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
12197 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
12198 constraint for operand 1.
12199 (*sibcall_value_pop_vzeroupper): Ditto.
12200 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
12201 and "z" constraint for operand 2.
12202 (*tls_global_dynamic_32_gnu): Ditto.
12203 (*tls_local_dynamic_base_32_gnu): Ditto.
12204 (*tls_local_dynamic_base_64): Ditto.
12205 (*tls_local_dynamic_32_once): Ditto.
12206 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
12207 Update all callers.
12208 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
12210 2011-05-16 Richard Guenther <rguenther@suse.de>
12212 * gimple.c (gimple_types_compatible_p_1): Use names of the
12213 type itself, not its main variant.
12214 (iterative_hash_gimple_type): Likewise.
12216 2011-05-16 Richard Guenther <rguenther@suse.de>
12218 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
12219 always visit pointer target and function result and argument types.
12221 2011-05-16 Jason Merrill <jason@redhat.com>
12224 * tree-inline.c (copy_statement_list): Put back recursion.
12226 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
12230 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
12231 * config/avr/avr.md ("*ior<mode>qi.byte0",
12232 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
12234 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
12237 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
12238 register is needed for a function argument.
12240 2011-05-16 Richard Guenther <rguenther@suse.de>
12242 * gimple.c (struct type_hash_pair): New type.
12243 (type_hash_pair_compare): New function.
12244 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
12246 2011-05-16 Revital Eres <revital.eres@linaro.org>
12248 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
12250 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
12252 * config/i386/i386.md (floating point move splitters): Fix
12253 usage of standard_80387_constant_p.
12254 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
12256 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
12258 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
12260 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
12262 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
12263 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
12264 (tree_ssa_lim_finalize): Likewise.
12266 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
12268 * config/i386/constraint.md (Yd, Yx): New register constraints.
12269 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
12270 Yd conditional register constraint.
12271 (*movtf_internal): Use standard_sse_constant_opcode.
12272 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
12273 Yx conditional register constraint.
12274 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
12275 Yd conditional register constraint. Use standard_sse_constant_p to
12276 check for valid SSE constants and call standard_sse_constant_opcode to
12278 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
12279 constants and call standard_sse_constant_opcode to output SSE insn.
12280 * config/i386/i386.c (ix86_option_ovverride_internal): Set
12281 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
12282 optimize_size is set.
12283 (standard_sse_constant_opcode): Output conditional AVX insn templates.
12285 2011-05-14 Tobias Burnus <burnus@net-b.de>
12287 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
12289 2011-05-13 Martin Jambor <mjambor@suse.cz>
12291 * ipa-prop.c (ipa_cst_from_jfunc): New function.
12292 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
12293 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
12294 (evaluate_conditions_for_ipcp_clone): Removed.
12295 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
12296 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
12297 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
12299 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
12301 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
12302 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
12303 lieu of MAY_HAVE_DEBUG_STMTS.
12304 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
12305 debug statements if !MAY_HAVE_DEBUG_STMTS.
12307 2011-05-13 Martin Thuresson <martint@google.com>
12309 PR gcov-profile/47793
12310 * libgcov.c (gcov_exit): Support relative profile paths.
12311 * doc/invoke.texi (-fprofile-dir): Update for above change.
12313 2011-05-13 Richard Guenther <rguenther@suse.de>
12315 * gimple.c (gimple_canonical_types_compatible_p): Do not use
12316 type-pair caching, do not compare hashes.
12318 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
12320 PR middle-end/48965
12321 * tree-cfg.c (edge_to_cases_cleanup): Return true.
12322 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
12324 2011-05-13 Kai Tietz <ktietz@redhat.com>
12326 * gimplify.c (gimplify_expr): Make sure operand is boolified.
12327 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
12328 compatible type for TRUTH_NOT_EXPR.
12330 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
12332 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
12333 (ix86_hard_regno_mode_ok): Change return value to bool. Use
12334 can_create_pseudo_p ().
12336 2011-05-13 Richard Guenther <rguenther@suse.de>
12339 * gimple.c (iterative_hash_gimple_type): Revert change in
12340 pointer target and function result and argument hashing.
12342 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
12344 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
12345 (*movxf_internal_nointeger): Ditto.
12346 (*movdf_internal_rex64): Ditto.
12347 (*movdf_internal): Ditto.
12348 (*movdf_internal_nointeger): Ditto.
12349 (*movsf_internal): Ditto.
12350 (sincos splitters): Use can_create_pseudo ().
12352 2011-05-13 Joseph Myers <joseph@codesourcery.com>
12354 * config/i386/i386-opts.h: New.
12355 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
12356 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
12357 ix86_section_threshold): Remove.
12358 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
12359 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
12361 (ix86_option_override_internal): Don't decode strings for options
12362 other than -march=, -mtune= and -mfpmath=. Don't allow for
12363 __attribute__ uses in remaining diagnostics for options with
12364 string arguments. Don't check for integer arguments being negative.
12365 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
12366 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
12367 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
12368 ix86_branch_cost, ix86_section_threshold): Remove.
12369 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
12371 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
12373 (masm=): Use Enum and Init.
12374 (asm_dialect): New Enum and EnumValue entries.
12375 (mbranch-cost=): Use UInteger.
12376 (mlarge-data-threshold=): Use UInteger and Init.
12377 (mcmodel=): Use Enum and Init.
12378 (cmodel): New Enum and EnumValue entries.
12379 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
12380 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
12381 mregparm=): Use UInteger.
12382 (mstringop-strategy=): Use Enum and Init.
12383 (stringop_alg): New Enum and EnumValue entries.
12384 (mtls-dialect=): Use Enum and Init.
12385 (tls_dialect): New Enum and EnumValue entries.
12386 (mabi=): Use Enum and Init.
12387 (calling_abi): New Enum and EnumValue entries.
12388 (mveclibabi=): Use Enum and Init.
12389 (ix86_veclibabi): New Enum and EnumValue entries.
12391 2011-05-13 Nick Clifton <nickc@redhat.com>
12393 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
12394 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
12396 2011-05-13 Kai Tietz <ktietz@redhat.com>
12398 PR middle-end/48984
12399 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
12400 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
12401 (gimple_boolify): Check for cast for boolean_type_node instead for
12404 2011-05-13 Richard Guenther <rguenther@suse.de>
12406 PR tree-optimization/48172
12407 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
12408 multiplying by number of iterations for equal step.
12409 (vect_create_cond_for_alias_checks): Likewise.
12411 2011-05-13 Andreas Schwab <schwab@redhat.com>
12413 * configure.ac: Use AS_HELP_STRING throughout.
12414 * configure: Regenerate.
12416 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
12418 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
12419 (ix86_emit_restore_regs_using_mov): Likewise.
12420 (ix86_emit_restore_sse_regs_using_mov): Likewise.
12422 2011-05-12 Anatoly Sokolov <aesok@post.ru>
12424 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
12425 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
12426 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
12427 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
12428 RTX_OK_FOR_OLO10_P): ...here.
12429 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
12432 2011-05-12 Kai Tietz <ktietz@redhat.com>
12434 * gimplify.c (gimple_boolify): Re-boolify expression
12435 arguments even if expression type is of kind BOOLEAN_TYPE.
12436 (gimplify_boolean_expr): Removed.
12437 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
12438 and XOR. Additional take care that we keep expression's type.
12439 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
12440 of TRUTH_AND|OR|XOR_EXPR.
12442 2011-05-12 Jakub Jelinek <jakub@redhat.com>
12444 PR tree-optimization/48975
12445 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
12446 on all bbs here and free and clear ifc_bbs at the end.
12448 2011-05-12 Richard Guenther <rguenther@suse.de>
12450 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
12451 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
12452 until after simple checks.
12453 (gimple_types_compatible_p): Likewise.
12454 (iterative_hash_gimple_type): Always hash pointer targets
12455 and function return and argument types.
12456 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
12457 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
12458 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
12459 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
12460 completely in the simple compare section.
12461 (gimple_register_canonical_type): Query the cache again after
12464 2011-05-12 Richard Guenther <rguenther@suse.de>
12466 PR tree-optimization/48172
12467 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
12468 the number of iterations from the segment size calculation.
12469 (vect_create_cond_for_alias_checks): Adjust.
12471 2011-05-12 Jakub Jelinek <jakub@redhat.com>
12474 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
12475 if validate_subreg fails.
12477 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
12479 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
12480 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
12483 2011-05-12 DJ Delorie <dj@redhat.com>
12485 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
12486 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
12487 created builtin into rx_builtins array.
12488 (rx_builtin_decl): New function.
12489 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
12491 2011-05-12 DJ Delorie <dj@redhat.com>
12492 Nick Clifton <nickc@redhat.com>
12494 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
12495 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
12496 (rx_is_legitimate_address): Add pre-decrement and post-increment
12497 addressing in HImode and QImode. Fix test for out of range
12498 REG+INT addressing.
12499 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
12500 (rx_align_for_label): Test label before extracting its usage count.
12501 (rx_adjust_insn_lengths): Fix selection of insn codes.
12502 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
12504 2011-05-11 Jason Merrill <jason@redhat.com>
12506 * tree.c (type_hash_canon): Use struct tree_type_non_common.
12508 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
12510 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
12511 reindent the subsequent block.
12513 2011-05-11 Satoru Takabayashi <satorux@google.com>
12514 Paul Pluzhnikov <ppluzhnikov@google.com>
12516 * doc/install.texi (Configuration): Document --with-linker-hash-style.
12517 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
12518 * config.in: Add LINKER_HASH_STYLE.
12519 * configure.ac: Add --with-linker-hash-style.
12520 * configure: Regenerate.
12522 2011-05-11 Richard Guenther <rguenther@suse.de>
12524 PR middle-end/48964
12525 * gimple.c (iterative_hash_canonical_type): Fix typo.
12527 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
12529 * config/i386/i386.c (legitimize_tls_address)
12530 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
12531 expanders directly for TARGET_GNU2_TLS. Determine pic and
12532 __tls_get_addr symbol reference here. Update call to
12533 gen_tls_global_dynamic_{32,64} for added arguments.
12534 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
12535 expanders directly for TARGET_GNU2_TLS. Determine
12536 __tls_get_addr symbol reference here. Update call to
12537 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
12538 unique UNSPEC REG_EQUIV to libcall block.
12539 (ix86_tls_get_addr): Declare static.
12540 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
12541 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
12542 Do not determine pic and __tls_get_addr symbol reference here. Do not
12543 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
12544 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
12545 (tls_global_dynamic_64): Add operand 2. Do not determine
12546 __tls_get_addr symbol reference here. Do not call
12547 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
12548 (tls_local_dynamic_base64): Ditto for operand 1.
12550 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
12552 * function.c (expand_function_start): Initialize stack_check_probe_note
12553 only if the generic stack checking mechanism is used.
12555 2011-05-11 Richard Guenther <rguenther@suse.de>
12557 PR tree-optimization/15256
12558 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
12559 (A & B) | C, combine (A op CST1) op CST2.
12560 (tree_ssa_forward_propagate_single_use_vars): Only bother to
12561 visit assigns that have uses.
12563 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
12565 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
12566 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
12567 (unpack_ts_type_common_value_fields): ...this. Update comment.
12568 (unpack_value_fields): Adjust for renaming.
12569 (lto_input_ts_type_tree_pointers): Split into...
12570 (lto_input_ts_type_common_tree_pointer): ...this and...
12571 (lto_input_ts_type_non_common_tree_pointers): ...this.
12572 (lto_input_tree_pointers): Adjust for above split.
12573 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
12574 (pack_ts_type_common_value_fields): ...this. Update comment.
12575 (lto_output_ts_type_tree_pointers): Split into...
12576 (lto_output_ts_type_common_tree_pointers): ...this and...
12577 (lto_output_ts_type_non_common_tree_pointers): ...this.
12578 (lto_output_tree_pointers): Adjust for above split.
12579 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
12580 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
12581 * stor-layout.c (vector_type_mode): Adjust location of mode field.
12582 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
12584 (struct tree_type): Split into...
12585 (struct tree_type_common: ...this and...
12586 (struct tree_type_with_lang_specific): ...this and...
12587 (struct tree_type_non_common): ...this. Adjust accessor macros
12589 (TYPE_VALUES_RAW): Define.
12590 (union tree_node): Update for above changes.
12591 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
12592 TS_TYPE_NON_COMMON.
12593 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
12594 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
12595 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
12596 * treestructu.def (TS_TYPE): Remove.
12597 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
12600 2011-05-11 Jakub Jelinek <jakub@redhat.com>
12603 * tree-ssa.c (reset_debug_uses): New function.
12604 * tree-flow.h (reset_debug_uses): New prototype.
12605 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
12606 * tree-loop-distribution.c (generate_loops_for_partition): Call
12607 reset_debug_uses on the stmts that will be removed. Keep around
12608 all debug stmts, don't count them as bits in partition bitmap.
12609 (generate_builtin): Don't count debug stmts or labels as bits in
12612 2011-05-11 Richard Guenther <rguenther@suse.de>
12614 * gimple.c (gimple_type_hash_1): Merge with ...
12615 (gimple_type_hash): ... this.
12616 (gtc_visit): Remove mode parameter and simplify accordingly.
12617 (gimple_types_compatible_p_1): Likewise.
12618 (gimple_types_compatible_p): Likewise.
12619 (iterative_hash_gimple_type): Likewise.
12621 (gimple_type_eq): Adjust.
12623 2011-05-11 Revital Eres <revital.eres@linaro.org>
12625 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
12626 enters the branch create an anti edge in the opposite direction
12627 to prevent the creation of reg-moves.
12628 * modulo-sched.c: Adjust comment to reflect the fact we are
12629 scheduling closing branch.
12630 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
12631 (stage_count): New field in struct partial_schedule.
12632 (calculate_stage_count): New function.
12633 (normalize_sched_times): Rename to reset_sched_times and handle
12634 incrementing the sched time of the nodes by a constant value
12635 passed as parameter.
12636 (duplicate_insns_of_cycles): Skip closing branch.
12637 (sms_schedule_by_order): Schedule closing branch.
12638 (ps_insn_find_column): Handle closing branch.
12639 (sms_schedule): Call reset_sched_times and adjust the code to
12640 support scheduling of the closing branch.
12641 (ps_insert_empty_row): Update calls to normalize_sched_times
12642 and rotate_partial_schedule functions.
12644 2011-05-11 Richard Guenther <rguenther@suse.de>
12646 PR middle-end/48953
12647 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
12649 2011-05-11 Joseph Myers <joseph@codesourcery.com>
12651 * opts.c (finish_options): Move warning settings from process_options.
12652 * toplev.c (process_options): Move warning settings to finish_options.
12654 2011-05-11 Richard Guenther <rguenther@suse.de>
12656 PR tree-optimization/18041
12657 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
12658 (simplify_bitwise_binary): ... this. Handle operand conversions
12659 by applying them to the result instead.
12660 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
12662 2011-05-11 Richard Guenther <rguenther@suse.de>
12664 * gimple.c (gimple_canonical_types_compatible_p): Split out
12665 from gimple_types_compatible_p and friends. Do not recurse
12666 to pointed-to types.
12667 (gimple_canonical_type_eq): Use it.
12668 (iterative_hash_canonical_type): Split out from
12669 iterative_hash_gimple_type and friends. Do not recurse
12670 to pointed-to types.
12671 (gimple_canonical_type_hash): Use it, allocate the hash here.
12673 2011-05-11 Revital Eres <revital.eres@linaro.org>
12675 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
12676 recognizing doloop.
12678 2011-05-11 Revital Eres <revital.eres@linaro.org>
12680 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
12681 instead of PREV_INSN.
12683 2011-05-11 Revital Eres <revital.eres@linaro.org>
12685 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
12686 * loop-doloop.c (doloop_condition_get): Likewise.
12687 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
12689 * config/arm/arm.md (*addsi3_compare0): Remove "*".
12691 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
12693 * tree.def (CASE_LABEL_EXPR): Add an operand.
12694 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
12696 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12698 * c-decl.c (c_override_global_bindings_to_false): Remove.
12699 (global_bindings_p): Don't check
12700 c_override_global_bindings_to_false.
12701 * c-tree.h (c_override_global_bindings_to_false): Remove.
12702 * c-typeck.c (composite_type): Don't set
12703 c_override_global_bindings_to_false.
12705 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12707 PR target/48857, 48495
12708 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
12710 (VSX_MOVE_MODE): Ditto.
12711 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
12712 VSX vector types. Add V2DImode.
12713 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
12714 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
12715 (MODES_TIEABLE_P): Ditto.
12717 * config/rs6000/rs6000.c (rs6000_emit_move): Use
12718 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
12720 (init_cumulative_args): Ditto.
12721 (rs6000_function_arg_boundary): Ditto.
12722 (rs6000_function_arg_advance_1): Ditto.
12723 (rs6000_function_arg): Ditto.
12724 (rs6000_function_ok_for_sibcall): Ditto.
12725 (emit_frame_save): Ditto.
12726 (rs6000_function_value): Ditto.
12727 (rs6000_libcall_value): Ditto.
12729 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12731 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12732 i386/darwin-lib.h to $libgcc_tm_file.
12733 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
12735 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12737 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
12739 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12741 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
12742 * config/rs6000/rs6000-tables.opt: New file (generated).
12743 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
12744 rs6000/rs6000-tables.opt to extra_options.
12745 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
12746 * config/rs6000/rs6000.c (rs6000_select): Remove.
12747 (processor_target_table): Move contents to rs6000-cpus.def.
12748 (darwin_rs6000_override_options): Check
12749 global_options_set.x_rs6000_cpu_index instead of
12750 rs6000_select[1].string.
12751 (rs6000_option_override_internal): Likewise.
12752 (rs6000_handle_option): Don't assert that global structures are in
12753 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
12754 (rs6000_default_cpu): New variable.
12755 (rs6000_file_start): Set it instead of local default_cpu. Check
12756 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
12757 global_options_set.x_rs6000_tune_index instead of rs6000_select.
12758 (rs6000_darwin_file_start): Check rs6000_default_cpu and
12759 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
12760 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
12761 rs6000_select): Remove.
12762 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
12764 (mcpu=, mtune=): Use Var, Init, Enum and Save.
12765 * config/rs6000/t-rs6000
12766 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
12767 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
12768 global_options_set.x_rs6000_cpu_index instead of
12769 rs6000_select[1].string.
12770 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
12771 global_options_set.x_rs6000_cpu_index instead of
12772 rs6000_select[1].string.
12774 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12776 * config.gcc (libgcc_tm_file): Define instead of including files
12777 from ../../libgcc/config/ in tm_file.
12778 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
12779 * configure: Regenerate.
12780 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
12781 libgcc_tm.h, cs-libgcc_tm.h): New.
12782 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
12783 (clean): Remove libgcc_tm.h.
12784 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
12785 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
12786 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
12788 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
12791 * config/avr/avr.c (avr_ret_register): Return unsigned int
12793 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
12794 it to avr_libcall_value.
12795 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
12797 (avr_expand_binop_builtin): Ditto.
12798 (avr_expand_unop_builtin): Ditto.
12800 2011-05-10 DJ Delorie <dj@redhat.com>
12802 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
12803 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
12804 * config/rx/rx.c (rx_align_for_label): Add label and
12805 uses_threshold parameters. Do not align when the label is not
12807 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
12809 2011-05-10 Richard Guenther <rguenther@suse.de>
12811 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
12812 a series of conversions and apply foldings similar to what
12814 (tree_ssa_forward_propagate_single_use_vars): Call it.
12816 2011-05-10 Jakub Jelinek <jakub@redhat.com>
12818 PR tree-optimization/48611
12819 PR tree-optimization/48794
12820 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
12821 referenced from RESX or EH_DISPATCH arguments.
12824 * dfp.c (decimal_to_decnumber): Handle conversion from
12825 dconst{1,2,m1,half}.
12827 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12829 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
12830 for !flag_prefer_avx128.
12831 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
12833 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
12835 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
12836 (fold_ternary_loc): Use expr_location_or.
12838 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
12841 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
12842 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
12843 Pmode and mem_mode is not VOIDmode.
12845 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
12847 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
12848 TYPE_QUAL_RESTRICT): Convert to enum.
12850 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12852 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
12853 (const_pow2_1_to_8_operand): Ditto.
12854 (const_pow2_1_to_128_operand): Ditto.
12855 (const_pow2_1_to_32768_operand): Ditto.
12856 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
12857 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
12858 in insn constraint to check integer value of operand 3.
12859 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
12861 (PINSR_MODE): New mode iterator.
12862 (sse2p4_1): New mode attribute.
12863 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
12864 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
12865 iterator. Use const_int_operand instead of
12866 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
12867 exact_log2 in insn constraint to check integer value of operand 3.
12869 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12871 * config/i386/sse.md (blendbits): Remove mode attribute.
12872 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
12873 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
12874 Check integer value of operand 3 in insn constraint.
12876 2011-05-09 Richard Guenther <rguenther@suse.de>
12878 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
12880 (lto_symtab_merge): Likewise. Do not register types here.
12881 (lto_symtab_merge_decls_2): Likewise.
12882 (lto_symtab_merge_decls_1): Likewise.
12883 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
12884 * gimple.c (enum gtc_mode): Declare.
12885 (gimple_types_compatible_p): Make static.
12887 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12889 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
12890 temporary register to match Pmode.
12892 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12894 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
12895 and *vec_concatv4si_1_avx.
12897 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12899 PR rtl-optimization/48927
12900 * ira-conflicts.c (commutative_constraint_p): Use
12901 recog_data.alternative_enabled_p to disable alternatives where
12902 "enabled" attribute is false.
12903 (get_dup_num): Ditto.
12904 * ira-lives.c (single_reg_class): Ditto.
12905 (ira_implicitly_set_insn_hard_regs): Ditto.
12907 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
12909 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
12910 (dataflow_set_preserve_mem_locs): Likewise.
12912 2011-05-09 Philipp Thomas <pth@suse.de>
12914 * config/mep/mep.c (mep_validate_vliw): Syntax description
12915 should not be translated.
12917 2011-05-09 Joseph Myers <joseph@codesourcery.com>
12919 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
12920 * config/mips/mips-tables.opt: New file (generated).
12921 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
12922 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
12923 MIPS_ARCH_OPTION_NATIVE): Define.
12924 * config/mips/mips.c (mips_cpu_info_table): Move contents to
12926 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
12927 mips_parse_cpu): Remove.
12928 (mips_cpu_info_from_opt, mips_default_arch): New.
12929 (mips_handle_option): Don't assert that global structures are in
12930 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
12931 (mips_option_override): Use new variables and functions to set
12932 state of these options. Use strcmp to check for individual CPU names.
12933 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
12935 * config/mips/mips.opt (march=): Use ToLower and Enum.
12936 (mips): Use ToLower, Enum and Var.
12937 (mtune=): Use ToLower and Enum.
12938 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
12940 2011-05-08 Jan Hubicka <jh@suse.cz>
12942 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
12943 Arrange type pairs to be UID ordered.
12944 (gimple_lookup_type_leader): Make inline.
12946 2011-05-09 Nick Clifton <nickc@redhat.com>
12949 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
12953 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
12956 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
12958 * combine.c (simplify_comparison): Abstract out parts into...
12959 (simplify_compare_const): ... new function.
12960 (try_combine): Generalize parallel arithmetic/compare combining
12961 to call simplify_compare_const() and CANONICALIZE_COMPARE().
12963 2011-05-08 Jan Hubicka <jh@suse.cz>
12965 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
12966 (cgraph_create_virtual_clone): Call hooks once virtual clone
12968 * cgraph.h (cgraph_clone_node): Update prototype.
12969 * ipa-cp.c (ipcp_estimate_growth): Use
12970 estimate_ipcp_clone_size_and_time.
12971 * ipa-inline-transform.c (clone_inlined_nodes): Update.
12972 * lto-cgraph.c (input_node): Update.
12973 * ipa-inline.c (recursive_inlining): Update.
12974 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
12975 (evaluate_conditions_for_known_args): Break out from ...
12976 (evaluate_conditions_for_edge): ... here.
12977 (evaluate_conditions_for_ipcp_clone): New function.
12978 (inline_node_duplication_hook): Update clone summary based
12980 (estimate_callee_size_and_time): Rename to ...
12981 (estimate_node_size_and_time): take NODE instead of EDGE;
12982 take POSSIBLE_TRUTHS as argument.
12983 (estimate_callee_size_and_time): Update.
12984 (estimate_ipcp_clone_size_and_time): New function.
12985 (do_estimate_edge_time): Update.
12987 2011-05-08 Richard Guenther <rguenther@suse.de>
12989 PR middle-end/48908
12990 PR middle-end/48905
12991 * expmed.c (expand_shift_1): Compute adjusted constant shift
12994 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
12996 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
12998 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
13000 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
13002 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
13004 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
13006 2011-05-07 Jan Hubicka <jh@suse.cz>
13008 * ipa-inline-transform.c (inline_call): Account when program size
13010 * ipa-inline.c (relative_time_benefit): New function.
13011 (edge_badness): Reorganize to be power 2 based; fix thinko when
13012 computing badness for negative growth; update comments to match
13013 reality; better dumps.
13015 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
13017 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
13018 type to bool and adjust comment.
13019 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
13020 (fold_mathfn_compare): Remove calls to global_bindings_p.
13021 (fold_inf_compare): Likewise.
13022 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
13023 * c-tree.h (global_bindings_p): Adjust prototype.
13024 * c-decl.c (global_bindings_p): Return bool and simplify.
13026 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
13028 PR tree-optimization/48837
13029 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
13030 when accumulator transformation is performed.
13032 2011-05-06 Jan Hubicka <jh@suse.cz>
13034 * i386.h (ix86_tune_indices): Add
13035 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
13036 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
13037 * i386.c (initial_ix86_tune_features): Add
13038 X86_SOFTARE_PREFETCHING_BENEFICIAL.
13039 (software_prefetching_beneficial_p): Remove predicate.
13040 (ix86_option_override_internal): Use new macro.
13042 2011-05-06 Jan Hubicka <jh@suse.cz>
13044 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
13046 2011-05-06 Jan Hubicka <jh@suse.cz>
13048 * cgraph.c (cgraph_add_thunk): Create real function node instead
13049 of alias node; finalize it and mark needed/reachale; arrange visibility
13050 to be right and add it into the corresponding same comdat group list.
13051 (dump_cgraph_node): Dump thunks.
13052 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
13053 cgraph_function_with_gimple_body_p,
13054 cgraph_first_function_with_gimple_body,
13055 cgraph_next_function_with_gimple_body): New functions.
13056 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
13058 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
13059 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
13060 * cgraphunit.c (cgraph_finalize_function): Only look into possible
13061 devirtualization when optimizing.
13062 (verify_cgraph_node): Verify thunks.
13063 (cgraph_analyze_function): Analyze thunks.
13064 (cgraph_mark_functions_to_output): Output thunks only in combination
13065 with function they are assigned to.
13066 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
13067 alias into normal node.
13068 (assemble_thunks): New functoin.
13069 (cgraph_expand_function): Use it.
13070 * lto-cgraph.c (lto_output_node): Stream thunks.
13071 (input_overwrite_node): Stream in thunks.
13072 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
13073 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
13074 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
13075 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
13076 (inline_analyze_function): Do not care about thunk jump functions.
13077 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
13078 * ipa-prop.c (ipa_prop_write_jump_functions): Use
13079 cgraph_function_with_gimple_body_p.
13080 * passes.c (do_per_function_toporder): Use
13081 cgraph_function_with_gimple_body_p.
13082 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
13083 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
13084 (function_called_by_processed_nodes_p): Likewise.
13086 2011-05-06 Joseph Myers <joseph@codesourcery.com>
13088 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
13089 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
13091 (mabi=): Replace with separate entries for mabi=altivec,
13092 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
13093 mabi=ieeelongdouble and mabi=ibmlongdouble.
13094 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
13095 check for -mabi=spe without SPE ABI support here.
13096 (rs6000_handle_option): Replace OPT_mabi_ handling with
13097 OPT_mabi_altivec and OPT_mabi_spe handling.
13099 2011-05-06 Cary Coutant <ccoutant@google.com>
13101 * dwarf2out.c (contains_subprogram_definition): New function.
13102 (should_move_die_to_comdat): Call it.
13104 2011-05-06 Jeff Law <law@redhat.com>
13106 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
13107 remove_ctrl_stmt_and_useless_edges.
13108 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
13109 (fixup_template_block, thread_single_edge): Likewise.
13110 (mark_threaded_blocks): Use THREAD_TARGET.
13112 2011-05-06 Alan Modra <amodra@gmail.com>
13115 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
13116 const0_rtx as the arg to the dummy __tls_get_addr libcall.
13118 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
13120 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
13121 constraint modifier to "r".
13123 2011-05-06 Joseph Myers <joseph@codesourcery.com>
13125 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
13126 fall through for OPT_mcmodel_.
13128 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13130 * config/s390/s390.c (s390_asm_trampoline_template): Comment
13132 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
13134 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13137 * config/arm/arm.opt (marm): Document it.
13138 (mthumb): Reject negative variant.
13140 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
13143 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
13144 Fix typo in "ccvt" variable name.
13146 2011-05-06 Tristan Gingold <gingold@adacore.com>
13149 * config/vms/vms-ar.c (main): Remove cwd variable.
13151 2011-05-06 Jakub Jelinek <jakub@redhat.com>
13154 * var-tracking.c (prepare_call_arguments): Move else before #endif.
13156 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
13158 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
13159 * gimplify.c (gimplify_switch_expr): Likewise.
13160 * omp-low.c (expand_omp_sections): Likewise.
13161 * tree-eh.c (lower_try_finally_switch): Likewise.
13162 (lower_eh_dispatch): Likewise.
13163 * tree.h (build_case_label): Declare.
13164 * tree.c (build_case_label): Define.
13166 2011-05-05 Jason Merrill <jason@redhat.com>
13169 * tree-inline.c (copy_tree_r): Use copy_statement_list.
13170 (copy_statement_list): Don't recurse.
13171 * stor-layout.c (copy_self_referential_tree_r): Don't allow
13174 2011-05-05 Joseph Myers <joseph@codesourcery.com>
13176 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
13177 through from -mfpu= handling.
13178 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
13180 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
13182 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
13185 2011-05-05 Steve Ellcey <sje@cup.hp.com>
13187 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
13189 (hppa[12]*-*-hpux11*): Ditto.
13190 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
13191 * config/ia64/hpux-unix2003.h: New.
13192 * config/pa/pa-hpux1131.opt: New.
13193 * config/pa/pa-hpux1131.h: New.
13194 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
13195 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
13196 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
13198 2011-05-05 Jakub Jelinek <jakub@redhat.com>
13201 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
13202 instead of mode as 3rd argument to recursive call.
13203 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
13204 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
13206 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
13207 don't give up if mode is Pmode and mem_mode is not VOIDmode.
13208 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
13209 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
13211 2011-05-05 Julian Brown <julian@codesourcery.com>
13213 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
13214 parenthesis in D-register case.
13216 2011-05-05 Joseph Myers <joseph@codesourcery.com>
13218 * opt-functions.awk (var_type_struct): Handle Enum options.
13219 * optc-gen.awk: Don't check range of variables of character type.
13220 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
13221 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
13222 rs6000_sdata_name, rs6000_explicit_options): Remove.
13223 (rs6000_option_override_internal): Check for -malign-power here.
13224 Use global_options_set instead of rs6000_explicit_options.
13225 (rs6000_parse_fpu_option): Remove.
13226 (rs6000_handle_option): Access variables via opts and opts_set
13227 pointers. Use error_at and warning_at. Add fall-through
13228 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
13229 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
13230 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
13231 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
13232 here. Don't use rs6000_parse_fpu_option.
13233 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
13234 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
13235 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
13236 (mrecip=): Use Var.
13237 (mspe): Use Var and Save.
13238 (mtraceback=): Use Enum and Var.
13239 (rs6000_traceback_type): New Enum and EnumValue entries.
13240 (mfloat-gprs=): Use Enum, Var and Save.
13241 (rs6000_float_gprs): New Enum and EnumValue entries.
13242 (mlong-double-): use Var and Save.
13243 (msched-costly-dep=, minsert-sched-nops=): Use Var.
13244 (malign-): Use Enum and Var.
13245 (rs6000_alignment_flags): New Enum and EnumValue entries.
13247 (fpu_type_t): New Enum and EnumValue entries.
13248 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13249 global_options_set instead of rs6000_explicit_options.
13250 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13251 global_options_set instead of rs6000_explicit_options.
13252 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13253 global_options_set instead of rs6000_explicit_options.
13254 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13255 global_options_set instead of rs6000_explicit_options.
13256 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
13257 global_options_set instead of rs6000_explicit_options.
13258 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13259 global_options_set instead of rs6000_explicit_options.
13260 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
13262 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13263 global_options_set instead of rs6000_explicit_options.
13264 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
13265 (rs6000_cmodel): New Enum and EnumValue entries.
13266 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13267 global_options_set instead of rs6000_explicit_options.
13268 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
13269 (mtls-size=): Use Enum and Var.
13270 (rs6000_tls_size): New Enum and EnumValue entries.
13272 2011-05-05 Michael Matz <matz@suse.de>
13274 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
13275 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
13276 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
13277 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
13278 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
13279 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
13280 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
13281 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
13282 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
13283 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
13284 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
13285 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
13286 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
13287 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
13288 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
13289 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
13291 2011-05-05 Richard Guenther <rguenther@suse.de>
13293 * expmed.c (expand_variable_shift): Rename to ...
13294 (expand_shift_1): ... this. Take an expanded shift amount.
13295 For rotates recurse directly not building trees for the shift amount.
13296 (expand_variable_shift): Wrap around expand_shift_1.
13297 (expand_shift): Adjust.
13299 2011-05-05 Jakub Jelinek <jakub@redhat.com>
13301 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
13303 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
13305 * tree.h (get_pending_sizes): Remove prototype.
13306 (put_pending_size): Likewise.
13307 (put_pending_sizes): Likewise.
13308 * stor-layout.c (pending_sizes): Delete.
13309 (get_pending_sizes): Likewise.
13310 (put_pending_size): Likewise.
13311 (put_pending_sizes): Likewise.
13312 (variable_size): Do not call put_pending_size and tidy up.
13313 * function.h (struct function): Remove dont_save_pending_sizes_p.
13314 * lto-streamer-in.c (input_function): Do not stream it.
13315 * lto-streamer-out.c (output_function): Likewise.
13316 * tree-inline.c (initialize_cfun): Do not copy it.
13317 * c-decl.c (store_parm_decls): Do not set it.
13318 * omp-low.c (create_task_copyfn): Likewise.
13319 * tree-optimize.c (tree_rest_of_compilation): Likewise.
13321 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
13323 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
13325 (*movdf_internal): Ditto.
13326 (*movdf_internal_nointeger): Ditto.
13327 (*movsf_internal): Ditto.
13329 2011-05-05 Joseph Myers <joseph@codesourcery.com>
13331 * c-decl.c (finish_decl): Don't call get_pending_sizes.
13332 (grokparm): Add parameter expr. Pass it to grokdeclarator.
13333 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
13334 (c_variable_size): Remove.
13335 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
13336 call put_pending_sizes.
13337 (get_parm_info): Add parameter expr. Use it to set
13338 arg_info->pending_sizes.
13339 (store_parm_decls): Use arg_info->pending_sizes instead or calling
13341 * c-parser.c (c_parser_parms_declarator): Update call to
13342 c_parser_parms_list_declarator.
13343 (c_parser_parms_list_declarator): Take parameter expr. Update
13344 call to push_parm_decl. Update recursive call. Don't call
13345 get_pending_sizes. Update calls to get_parm_info.
13346 (c_parser_objc_method_definition): Update calls to
13347 c_parser_objc_method_decl and objc_start_method_definition.
13348 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
13349 (c_parser_objc_method_decl): Add parameter expr. Update call to
13351 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
13352 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
13353 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
13355 2011-05-05 Michael Hope <michael.hope@linaro.org>
13358 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
13359 __ARM_EABI__ hosts.
13361 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13363 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
13364 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
13365 (spu_output_mi_thunk): New function.
13367 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13369 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
13370 targetm.asm_out.print_operand.
13371 * config/sol2.c: Include target.h.
13373 2011-05-04 Jan Hubicka <jh@suse.cz>
13375 * ipa-inline.c (reset_edge_caches): New function.
13376 (update_caller_keys): Add check_inlinablity_for; do not
13377 reset edge caches; remove now unnecesary loop.
13378 (update_callee_keys): Add comments; reset node_growth_cache of callee.
13379 (update_all_callee_keys): Likewise.
13380 (inline_small_functions): Sanity check cache; update code
13383 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
13385 PR rtl-optimization/47612
13386 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
13387 as the last insn of the sequence to be moved.
13389 2011-05-04 Tobias Burnus <burnus@net-b.de>
13392 * doc/invoke.texi (Ofast): Document that it
13393 enables Fortran's -fno-protect-parens.
13395 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
13397 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
13399 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
13401 * stor-layout.c (variable_size): Do not issue errors.
13403 2011-05-04 Richard Guenther <rguenther@suse.de>
13405 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
13406 for array-ref indices.
13407 (tree_coverage_counter_addr): Likewise.
13408 (build_fn_info_type): Use size_int for index types.
13409 (build_gcov_info): Likewise.
13411 2011-05-04 Richard Guenther <rguenther@suse.de>
13413 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
13415 * c-typeck.c (really_start_incremental_init): Use bitsize_int
13416 for constructor indices.
13417 (push_init_level): Likewise.
13419 2011-05-04 Richard Guenther <rguenther@suse.de>
13421 * explow.c (promote_mode): Move variable declarations before code.
13423 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
13425 * tree.h (build_function_type_array): Declare.
13426 (build_varargs_function_type_array): Declare.
13427 (build_function_type_vec, build_varargs_function_type_vec): Define.
13428 * tree.c (build_function_type_array_1): New function.
13429 (build_function_type_array): New function.
13430 (build_varargs_function_type_array): New function.
13432 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
13434 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
13435 before setting STMT_VINFO_TYPE.
13437 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13439 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
13440 instead of spu_pass_by_reference.
13442 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13444 * calls.c (emit_library_call_value_1): Invoke
13445 promote_function_mode hook on libcall arguments.
13446 * explow.c (promote_function_mode, promote_mode): Handle TYPE
13447 argument being NULL.
13448 * targhooks.c (default_promote_function_mode): Lisewise.
13449 * config/s390/s390.c (s390_promote_function_mode): Likewise.
13450 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
13452 * doc/tm.texi: Document that TYPE argument might be NULL.
13454 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13456 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
13458 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13461 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
13463 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13465 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
13466 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
13468 * mips-tfile.c: ... here.
13469 Don't include coretypes.h, tm.h, filenames.h.
13470 (saber_stop): Remove definition and all calls.
13471 [__SABER__]: Remove.
13472 (__LINE__): Remove default.
13473 (Size_t, Ptrdiff_t): Remove definitions.
13474 Replace by size_t, ptrdiff_t.
13475 [!MIPS_DEBUGGING_INFO]: Remove.
13476 (SHASH_SIZE, THASH_SIZE): Remove defaults.
13477 (progname): Add const.
13479 Replace all uses by static.
13480 (ALIGN_SYMTABLE_OFFSET): Remove default.
13481 * mips-tdump.c: Don't include coretypes.h, tm.h.
13482 Remove !MIPS_IS_STAB guard.
13483 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
13484 $(TM_H), filenames.h dependencies.
13485 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
13487 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13490 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
13491 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
13493 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13496 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
13497 account and save/restore RETS.
13498 (PROFILE_BEFORE_PROLOGUE): Define.
13499 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
13500 the push insn to use predecrement.
13502 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13505 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
13507 2011-05-04 Nick Clifton <nickc@redhat.com>
13509 * config/mn10300/mn10300.c: Include cfgloop.h.
13511 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
13512 Lcc or a FLcc insn into the instruction stream.
13513 (mn10300_block_contains_call): New function. Returns true if the
13514 given basic block contains a CALL insn.
13515 (mn10300_loop_contains_call_insn): New function. Returns true if
13516 the given loop contains a CALL insn.
13517 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
13518 to use the SETLB and Lcc or FLcc insns.
13519 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
13520 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
13521 * config/mn10300/mn10300.opt (msetlb): New option. Used to
13522 disable the SETLB optimization.
13523 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
13524 __SETLB__ or __NO_SETLB__.
13525 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
13526 (movsf_internal): Handle MDR register.
13527 (cmpsi): Make visible.
13528 (setlb): New pattern.
13529 (Lcc): New pattern.
13530 (FLcc): New pattern.
13532 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
13535 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
13536 for reg<->xmm moves.
13537 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
13538 (vec_concatv2di_rex64_sse): Ditto.
13539 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
13540 (*vec_extractv2di_1_rex64): Ditto.
13543 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
13545 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
13547 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
13549 2011-05-04 Richard Guenther <rguenther@suse.de>
13551 * tree.h (int_const_binop): Remove notrunc argument.
13552 * fold-const.c (int_const_binop): Remove notrunc argument. Always
13553 create integer constants that are properly truncated.
13554 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
13555 (const_binop): Remove zero notrunc argument to int_const_binop.
13556 (size_binop_loc): Likewise.
13557 (fold_div_compare): Likewise.
13558 (maybe_canonicalize_comparison_1): Likewise.
13559 (fold_comparison): Likewise.
13560 (fold_binary_loc): Likewise.
13561 (multiple_of_p): Likewise.
13562 * expr.c (store_constructor): Likewise.
13563 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13564 (maybe_fold_stmt_addition): Likewise.
13565 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
13566 * stor-layout.c (layout_type): Likewise.
13567 * tree-data-ref.c (tree_fold_divides_p): Likewise.
13568 * tree-sra.c (build_ref_for_offset): Likewise.
13569 (build_user_friendly_ref_for_offset): Likewise.
13570 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
13571 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13572 * tree-ssa-loop-niter.c (inverse): Likewise.
13573 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13574 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
13575 * tree-switch-conversion.c (check_range): Likewise.
13576 (build_constructors): Likewise.
13577 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
13578 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
13579 (extract_range_from_assert): Likewise.
13580 (vrp_int_const_binop): Likewise.
13581 (extract_range_from_binary_expr): Likewise.
13582 (extract_range_from_unary_expr): Likewise.
13583 (check_array_ref): Likewise.
13584 (find_case_label_range): Likewise.
13585 (simplify_div_or_mod_using_ranges): Likewise.
13586 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
13587 comparing case labels for merging.
13589 2011-05-03 Mark Wielaard <mjw@redhat.com>
13591 * dwarf2out.c (debug_str_hash_forced): Removed.
13592 (gen_label_for_indirect_string): Removed.
13593 (get_debug_string_label): Removed.
13594 (AT_string_form): Generate label directly.
13595 (output_indirect_string): Test indirect_string_node for
13596 DW_FORM_strp instead of checking label and refcount.
13597 (prune_indirect_string): Removed.
13598 (prune_unused_types): Don't check debug_str_hash_forced or
13599 call prune_indirect_string.
13601 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
13604 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
13606 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
13610 * combine.c (try_combine): Skip debug insns at m_split tests.
13612 2011-04-26 Mark Wielaard <mjw@redhat.com>
13615 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
13616 when info_section_emitted.
13618 2011-05-03 Joseph Myers <joseph@codesourcery.com>
13620 * config/mips/mips-opts.h: New.
13621 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
13623 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
13624 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
13625 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
13627 * config/mips/mips.h (enum mips_code_readable_setting): Move to
13629 (mips_abi, mips_code_readable): Don't declare.
13630 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
13631 (mabi=): Use Enum and Var.
13632 (mips_abi): New Enum and EnumValue entries.
13633 (mcode-readable=): Use Enum and Var.
13634 (mips_code_readable_setting): New Enum and EnumValue entries.
13635 (mr10k-cache-barrier=): Use Enum and Var.
13636 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
13638 2011-05-03 Jan Hubicka <jh@suse.cz>
13640 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
13641 replace hash by pointer map.
13642 (cgraph_node_set_element_def, cgraph_node_set_element,
13643 const_cgraph_node_set_element, varpool_node_set_element_def,
13644 varpool_node_set_element, const_varpool_node_set_element): Remove.
13645 (free_cgraph_node_set, free_varpool_node_set): New function.
13646 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
13647 * tree-emutls.c: Free varpool node set.
13648 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
13649 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
13650 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
13651 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
13652 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
13653 Move here from ipa.c; implement using pointer_map
13654 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
13655 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
13656 debug_cgraph_node_set, varpool_node_set_new,
13657 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
13658 dump_varpool_node_set, debug_varpool_node_set):
13659 Move to ipa-uitls.c.
13660 * passes.c (ipa_write_summaries): Update.
13662 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13664 From Mike Frysinger:
13665 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
13666 bf542/bf544/bf547/bf548/bf549.
13668 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
13670 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
13672 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13674 From Bernd Schmidt:
13675 * config/bfin/bfin.md (MOVCC): New mode_macro.
13676 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
13677 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
13678 comments from generated assembly.
13680 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13683 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
13684 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
13685 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
13686 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
13687 * config/bfin/lib1funcs.asm (___muldi3): New function.
13689 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13691 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
13692 build_function_type_list instead of build_function_type.
13693 Rearrange initialization of `args' to do so.
13695 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13697 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
13698 instead of build_function_type.
13700 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13702 * config/rs6000/rs6000.c (spe_init_builtins): Call
13703 build_function_type_list instead of build_function_type.
13704 (paired_init_builtins, altivec_init_builtins): Likewise.
13705 (builtin_function_type): Likewise.
13707 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13709 * config/sh/sh.c (sh_media_init_builtins): Call
13710 build_function_type_list instead of build_function_type.
13712 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13714 * config/sparc/sparc.c (sparc_file_end): Call
13715 build_function_type_list instead of build_function_type.
13717 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13719 * config/alpha/alpha.c (alpha_init_builtins): Call
13720 build_function_type_list instead of build_function_type.
13722 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13724 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
13725 build_function_type_list instead of build_function_type.
13727 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13729 * config/iq2000/i2000.c (iq2000_init_builtins): Call
13730 build_function_type_list instead of build_function_type.
13731 Delete `endlink' variable.
13733 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13735 * config/avr/avr.c (avr_init_builtins): Call
13736 build_function_type_list instead of build_function_type.
13738 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13740 * config/picochip/picochip.c (picochip_init_builtins): Call
13741 build_function_type_list instead of build_function_type.
13742 Delete `endlink' variable.
13744 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13746 * config/bfin/bfin.c (bfin_init_builtins): Call
13747 build_function_type_list instead of build_function_type.
13749 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13752 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
13753 that's not CONST_INT. Seemingly redundant check is due to PR39768.
13755 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13758 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
13759 libbffastfp overrides libgcc when -mfast-fp.
13761 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13763 Originally from Bernd Schmidt
13764 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
13765 * config/bfin/bfin.c (override_options): Test it and error if
13768 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13770 Originally From Bernd Schmidt
13771 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
13774 2011-05-03 Jeff Law <law@redhat.com>
13776 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
13777 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
13778 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
13779 than accessing AUX field directly. Free the AUX field before
13781 (thread_block, thread_through_loop_header): Likewise.
13782 (thread_single_edge, mark_threaded_blocks): Likewise.
13783 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
13784 (register_jump_thread): Do not attempt to thread to a NULL edge.
13786 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
13788 * function.c (init_function_start): Call decide_function_section.
13789 * varasm.c (decide_function_section): New function.
13790 (assemble_start_function): When not using
13791 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
13792 or first_function_block_is_cold.
13793 * rtl.h (decide_function_section): Declare.
13795 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
13796 Jakub Jelinek <jakub@redhat.com>
13799 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
13800 only succeed if req_mode is the same as set_mode.
13802 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
13804 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
13805 * genemit.c (gen_exp): Handle RETURN.
13806 * emit-rtl.c (verify_rtx_sharing): Likewise.
13807 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
13808 * rtl.c (copy_rtx): RETURN is shared.
13809 * rtl.h (enum global_rtl_index): Add GR_RETURN.
13811 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
13812 * config/s390/s390.c (s390_emit_epilogue): Likewise.
13813 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
13814 * config/cris/cris.c (cris_expand_return): Likewise.
13815 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
13816 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
13817 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
13818 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
13819 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
13821 * config/v850/v850.c (expand_epilogue): Likewise.
13822 * config/bfin/bfin.c (bfin_expand_call): Likewise.
13823 * config/arm/arm.md (epilogue): Likewise.
13824 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
13825 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
13826 variable to ret_reg.
13828 2011-05-03 Richard Guenther <rguenther@suse.de>
13831 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
13832 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
13833 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
13835 2011-05-03 Richard Guenther <rguenther@suse.de>
13837 * c-decl.c (grokdeclarator): Instead of looking at
13838 TREE_OVERFLOW check if the constant fits in the index type.
13840 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13842 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
13843 (vec_store_lanes<mode><mode>): Likewise.
13845 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13847 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
13848 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
13849 convert_optab_index values.
13850 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
13851 * genopinit.c (optabs): Initialize the new optabs.
13852 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
13853 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
13854 (expand_STORE_LANES): New functions.
13855 * tree.h (build_array_type_nelts): Declare.
13856 * tree.c (build_array_type_nelts): New function.
13857 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
13858 (vect_model_load_cost): Likewise.
13859 (vect_store_lanes_supported, vect_load_lanes_supported)
13860 (vect_record_strided_load_vectors): Declare.
13861 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
13862 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
13863 (vect_transform_strided_load): Split out statement recording into...
13864 (vect_record_strided_load_vectors): ...this new function.
13865 * tree-vect-stmts.c (create_vector_array, read_vector_array)
13866 (write_vector_array, create_array_ref): New functions.
13867 (vect_model_store_cost): Add store_lanes_p argument.
13868 (vect_model_load_cost): Add load_lanes_p argument.
13869 (vectorizable_store): Try to use store-lanes functions for
13870 interleaved stores.
13871 (vectorizable_load): Likewise load-lanes and loads.
13872 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
13873 to vect_model_store_cost.
13874 (vect_build_slp_tree): Likewise vect_model_load_cost.
13876 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13878 * hooks.h (hook_bool_mode_uhwi_false): Declare.
13879 * hooks.c (hook_bool_mode_uhwi_false): New function.
13880 * target.def (array_mode_supported_p): New hook.
13881 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
13882 * doc/tm.texi: Regenerate.
13883 * stor-layout.c (mode_for_array): New function.
13884 (layout_type): Use it.
13885 * config/arm/arm.c (arm_array_mode_supported_p): New function.
13886 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
13888 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
13891 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
13892 for -fstack-check if the size to allocate is negative.
13894 2011-05-02 Lawrence Crowl <crowl@google.com>
13896 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
13897 (timevar_cond_start): New for starting a timer only when it is not
13899 (timevar_cond_stop): New for stopping a timer when it was not already
13902 * timevar.c (timevar_stop): Enable start/stop timers to start again.
13903 (timevar_cond_start): New as above.
13904 (timevar_cond_stop): New as above.
13906 * timevar.def: Add start/stop timers for compiler phases,
13907 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
13908 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
13909 and TV_PHASE_FINALIZE.
13910 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
13911 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
13912 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
13913 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
13914 Make unused TV_OVERLOAD into a start/stop timer.
13916 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
13917 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
13918 to indicate that they are start/stop timers.
13920 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
13921 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
13922 Move initialization to do_compile.
13923 (do_compile): Add initialization from above.
13924 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
13926 * c-decl.c (c_write_global_declarations): Add start/stop of
13927 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
13929 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
13930 or TV_PARSE_INLINE, as appropriate.
13931 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
13932 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
13934 2011-05-02 Jason Merrill <jason@redhat.com>
13937 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
13939 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
13942 * c-decl.c (finish_decl): Only create a composite if the types are
13945 2011-05-02 Joseph Myers <joseph@codesourcery.com>
13947 * config/fr30/fr30-protos.h (Mmode): Don't define.
13948 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
13949 definition where used.
13950 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
13951 define. Expand definitions where used.
13952 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
13953 Expand definitions where used.
13954 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
13955 rx_function_arg, rx_function_arg_advance,
13956 rx_function_arg_boundary): Expand definitions of those macros.
13957 * config/v850/v850-protos.h (Mmode): Don't define. Expand
13958 definition where used.
13960 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
13962 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
13964 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
13965 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
13966 with *movv2sf_internal_rex64_avx.
13967 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
13968 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
13969 Use %v prefix in insn mnemonic to handle TARGET_AVX.
13970 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
13971 "vex" in "prefix" attribute calculation.
13972 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
13974 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
13977 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
13978 inputs match the output.
13980 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
13983 * config/m68k/m68k.c (m68k_expand_prologue): Set
13984 current_function_static_stack_size.
13986 2011-05-02 Jan Hubicka <jh@suse.cz>
13988 * lto-streamer.c (lto_streamer_cache_insert_1,
13989 lto_streamer_cache_lookup, lto_streamer_cache_create,
13990 lto_streamer_cache_delete): Use pointer map instead of hashtable.
13991 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
13993 2011-05-02 Joseph Myers <joseph@codesourcery.com>
13995 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
13996 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
13997 config/m68k/t-opts: New files.
13998 * config/m68k/m68k-tables.opt: New file (generated).
13999 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
14000 extra_options and m68k/t-opts to tmake_file.
14001 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
14002 (all_isas): Initialize using m68k-isas.def.
14003 (all_microarchs): Initialize using m68k-microarchs.def.
14004 (m68k_find_selection): Remove.
14005 (m68k_handle_option): Don't assert that global structures are in
14006 use. Use error_at. Access variables via opts pointer. Don't
14007 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
14008 directly for -m68020-40 and -m68020-60.
14009 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
14010 m68k_tune_entry here.
14011 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
14013 (m68k_library_id_string): Remove declaration.
14014 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
14015 (m68k_library_id_string): New Variable.
14016 (march=, mcpu=, mtune=): Use Enum and Var.
14018 2011-05-02 Richard Guenther <rguenther@suse.de>
14020 * varasm.c (output_constructor_regular_field): Compute zero-based
14021 index with double-ints. Make sure to ICE instead of producing
14023 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
14024 in asserts. Properly use a signed type.
14026 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
14028 * config/i386/sse.md (V): New mode iterator.
14029 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
14031 (V_256): Rename from AVX256MODE.
14032 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
14033 condition to all users.
14035 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
14036 condition to all users.
14037 (VF_128): Make V4SF mode unconditional.
14038 (VF_256): Rename from AVX256MODEF2P.
14039 (VI4F_128): Rename from SSEMODE4S.
14040 (VI8F_128): Rename from SSEMODE2D.
14041 (VI4F_256): Rename from AVX256MODE8P.
14042 (VI8F_256): Rename from AVX256MODE4P.
14043 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
14044 (ssescalarmodesuffix): Remove SF and DF modes.
14045 (SSEMODE124): Remove.
14046 (SSEMODE1248): Ditto.
14047 (SSEMODEF2P): Ditto.
14048 (AVXMODEF2P): Ditto.
14049 (AVXMODEFDP): Ditto.
14050 (AVXMODEFSP): Ditto.
14051 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
14053 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
14055 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
14056 xop_pcmov_<mode>256. Use V mode iterator.
14058 Adjust RTX patterns globally for renamed mode attributes.
14060 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14062 * haifa-sched.c (sched_emit_insn): Emit insn before first
14063 non-scheduled insn. Inform back-end about new insn. Add
14064 new insn to scheduled_insns list.
14066 2011-05-02 Richard Guenther <rguenther@suse.de>
14068 PR tree-optimization/48822
14069 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
14070 (process_scc): Indicate which iteration we start.
14072 2011-05-02 Jan Hubicka <jh@suse.cz>
14074 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
14075 (lto_section_overrun): New.
14076 * lto-section-out.c (append_block): Rename to ...
14077 (lto_append_block): ... this one; export.
14078 (lto_output_1_stream): Move lto lto-streamer.h
14079 (lto_output_data_stream): Update.
14080 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
14081 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
14084 2011-05-02 Richard Guenther <rguenther@suse.de>
14086 * tree.c (tree_code_counts): New global array.
14087 (record_node_allocation_statistics): Count individual tree codes.
14088 (dump_tree_statistics): Dump individual code stats.
14090 2011-05-01 Jan Hubicka <jh@suse.cz>
14092 * ipa-inline.c (caller_growth_limits): Fix thinko when
14093 looking for largest stack frame.
14094 * ipa-inline.h (dump_inline_summary): Declare.
14095 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
14097 (dump_inline_summary): Export.
14098 (debug_inline_summary): Declare as DEBUG_FUNCTION.
14100 2011-05-01 Anatoly Sokolov <aesok@post.ru>
14102 * reginfo.c (memory_move_cost): Change rclass argument type form
14103 'enum reg_class' to reg_class_t.
14104 * reload.h (memory_move_cost): Update prototype.
14105 * postreload.c reload_cse_simplify_set): Change type dclass var to
14107 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
14109 (ira_allocate_and_set_costs): Change aclass argument type form
14110 'enum reg_class' to reg_class_t.
14111 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
14112 Change aclass argument type to reg_class_t.
14113 (update_conflict_hard_reg_costs): Change type aclass and pref vars
14115 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
14116 memory_move_cost call.
14118 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
14119 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
14120 Change type tmp var to reg_class_t.
14122 2011-04-30 Jan Hubicka <jh@suse.cz>
14124 * ipa-inline.c (can_inline_edge_p): Disregard limits when
14125 inlining into function with flatten attribute.
14126 (want_inline_small_function_p): Be more realistic about inlining
14127 cold calls where callee size grows.
14129 2011-04-30 Jan Hubicka <jh@suse.cz>
14131 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
14134 2011-04-30 Anatoly Sokolov <aesok@post.ru>
14136 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
14137 PRINT_OPERAND_PUNCT_VALID_P): Remove.
14138 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
14139 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
14140 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14141 (print_operand): Rename to...
14142 (sparc_print_operand): ...this. Make static. Adjust
14143 sparc_print_operand function call.
14144 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
14147 2011-04-30 Jan Hubicka <jh@suse.cz>
14149 PR middle-end/48752
14150 * ipa-inline.c (early_inliner): Disable when doing late
14151 addition of function.
14153 2011-04-30 Jakub Jelinek <jakub@redhat.com>
14155 * dwarf2out.c (get_address_mode): New inline.
14156 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
14157 if not dwarf_strict emit
14158 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
14159 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
14160 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
14161 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
14162 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
14163 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
14164 mem_loc_descriptor callers.
14165 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14166 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
14167 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
14168 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
14169 (base_types): New variable.
14170 (get_base_type_offset, calc_base_type_die_sizes,
14171 base_type_for_mode, mark_base_types, base_type_cmp,
14172 move_marked_base_types): New functions.
14173 (calc_die_sizes): Assert that die_offset is 0 or equal to
14175 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
14176 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
14177 callers. If not dwarf_strict, call mem_loc_descriptor even for
14178 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
14179 (gen_subprogram_die): Don't give up on call site parameters
14180 with non-integral or large integral modes. Adjust
14181 mem_loc_descriptor callers.
14182 (prune_unused_types): Call prune_unused_types_mark on base_types
14184 (resolve_addr): Call mark_base_types.
14185 (dwarf2out_finish): Call move_marked_base_types.
14187 PR tree-optimization/48809
14188 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
14190 (gen_inbound_check): Don't compute index_expr - range_min in utype
14191 again, instead reuse SSA_NAME initialized in build_arrays.
14192 Remove two useless gsi_for_stmt calls.
14194 2011-04-29 Jeff Law <law@redhat.com>
14196 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
14198 2011-04-29 Martin Jambor <mjambor@suse.cz>
14200 * cgraph.h (cgraph_postorder): Remove declaration.
14201 * ipa-utils.h (ipa_free_postorder_info): Declare.
14202 (ipa_reverse_postorder): Likewise.
14203 * cgraphunit.c: Include ipa-utils.h.
14204 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
14205 * ipa-inline.c: Include ipa-utils.h.
14206 (ipa_inline): Update call to ipa_reverse_postorder.
14207 * ipa-pure-const.c (propagate_pure_const): Update call to
14208 ipa_reduced_postorder and ipa_print_order. Call
14209 ipa_free_postorder_info to clean up.
14210 (propagate_nothrow): Likewise.
14211 * ipa-reference.c (propagate): Removed a useless call to
14212 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
14213 and ipa_print_order. Call ipa_free_postorder_info to clean up.
14214 * ipa.c: Include ipa-utils.h.
14215 (ipa_profile): Update call to ipa_reverse_postorder.
14216 (cgraph_postorder): Moved to...
14217 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
14218 (ipa_utils_print_order): Renamed to ipa_print_order.
14219 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
14221 (ipa_free_postorder_info): New function.
14222 * passes.c: Include ipa-utils.h.
14223 (do_per_function_toporder): Update call to ipa_reverse_postorder.
14224 (ipa_write_summaries): Likewise.
14225 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
14226 (cgraphunit.o): Likewise.
14228 (ipa-inline.o): Likewise.
14230 2011-04-29 Jan Hubicka <jh@suse.cz>
14232 * gcc.dg/tree-ssa/inline-10.c: New testcase.
14233 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
14234 * ipa-inline.h (clause_t): Turn into unsigned int.
14235 * ipa-inline-analysis.c (add_clause): Do more simplification.
14236 (and_predicates): Shortcut more cases.
14237 (predicates_equal_p): Move forward; check that clauses are properly
14239 (or_predicates): Shortcut more cases.
14240 (edge_execution_predicate): Rewrite as...
14241 (set_cond_stmt_execution_predicate): ... this function; handle
14242 __builtin_constant_p.
14243 (set_switch_stmt_execution_predicate): New .
14244 (compute_bb_predicates): New.
14245 (will_be_nonconstant_predicate): Update TODO.
14246 (estimate_function_body_sizes): Use compute_bb_predicates
14247 and free them later, always try to estimate if stmt is constant.
14248 (estimate_time_after_inlining, estimate_size_after_inlining):
14249 Gracefully handle optimized out edges.
14250 (read_predicate): Fix off by one error.
14252 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
14254 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
14256 2011-04-27 Xinliang David Li <davidxl@google.com>
14258 * tree-profile.c (init_ic_make_global_vars): Set
14259 tls attribute on ic vars.
14260 * coverage.c (coverage_end_function): Initialize
14261 function_list with zero.
14263 2011-04-29 Richard Guenther <rguenther@suse.de>
14265 * builtins.c (fold_builtin_classify_type): Use integer_type_node
14266 for the type of the result.
14267 (fold_builtin_isascii): Likewise.
14268 (fold_builtin_toascii): Use integer_type_node where appropriate.
14269 (fold_builtin_logb): Likewise.
14270 (fold_builtin_frexp): Likewise.
14271 (fold_builtin_strstr): Likewise.
14272 (fold_builtin_strpbrk): Likewise.
14273 (fold_builtin_fputs): Likewise.
14274 (fold_builtin_sprintf): Likewise.
14275 (fold_builtin_snprintf): Likewise.
14276 (fold_builtin_printf): Likewise.
14277 (do_mpfr_remquo): Use a proper type for the assigned constant.
14278 (do_mpfr_lgamma_r): Likewise.
14279 * dwarf2out.c (resolve_one_addr): Use size_int.
14280 * except.c (init_eh): Likewise.
14281 (assign_filter_values): Use integer_type_node for filter values.
14282 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
14284 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
14285 for EH region numbers.
14286 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
14287 for the shift amount.
14289 2011-04-29 Richard Guenther <rguenther@suse.de>
14291 * expr.h (expand_shift): Rename to ...
14292 (expand_variable_shift): ... this.
14293 (expand_shift): Take a constant shift amount.
14294 * expmed.c (expand_shift): Rename to ...
14295 (expand_variable_shift): ... this.
14296 (expand_shift): New wrapper around expand_variable_shift.
14297 * expr.c (convert_move, emit_group_load_1, emit_group_store,
14298 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
14299 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
14300 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
14301 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
14302 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
14303 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
14304 emit_store_flag_1, emit_store_flag): Likewise.
14305 * builtins.c (expand_builtin_signbit): Likewise.
14306 * calls.c (load_register_parameters): Likewise.
14307 * function.c (assign_parm_setup_block): Likewise.
14308 * lower-subreg.c (resolve_shift_zext): Likewise.
14309 * optabs.c (widen_bswap, expand_abs_nojump,
14310 expand_one_cmpl_abs_nojump, expand_float): Likewise.
14311 * spu/spu.c (spu_expand_extv): Likewise.
14312 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
14314 2011-04-29 Richard Guenther <rguenther@suse.de>
14316 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
14317 for the remapped region number.
14318 * predict.c (build_predict_expr): Use integer_type_node for the
14320 * fold-const.c (fold_binary_loc): Use integer_type_node for
14321 the shift amount. Use a proper type for the PLUS_EXPR operand.
14323 2011-04-29 Michael Matz <matz@suse.de>
14325 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
14326 other trees that just builtins.
14327 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
14329 2011-04-29 Richard Guenther <rguenther@suse.de>
14331 * tree-nested.c (get_trampoline_type): Use size_int.
14332 (get_nl_goto_field): Likewise.
14333 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
14335 (lower_eh_constructs_2): Likewise.
14336 (lower_resx): Likewise.
14337 (lower_eh_dispatch): Likewise.
14338 * tree-mudflap.c (mf_build_string): Use size_int.
14339 (mudflap_register_call): Use integer_type_node for the flag.
14340 (mudflap_enqueue_constant): Use size_int.
14341 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
14342 instead of rebuilding it.
14344 2011-04-29 Richard Guenther <rguenther@suse.de>
14346 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
14347 Handle OBJ_TYPE_REF.
14348 (find_func_aliases_for_call): Use it more consistently.
14350 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
14352 * haifa-sched.c (last_nondebug_scheduled_insn): New.
14353 (rank_for_schedule): Use it.
14354 (schedule_block): Set it.
14356 2011-04-28 David Li <davidxl@google.com>
14358 * tree.c (crc32_string): Use crc32_byte.
14359 (crc32_byte): New function.
14360 * tree.h (crc32_byte): New function.
14361 * gcov.c (read_graph_file): Handle new cfg_cksum.
14362 (read_count_file): Ditto.
14363 * profile.c (instrument_values): Ditto.
14364 (get_exec_counts): Ditto.
14365 (read_profile_edge_counts): Ditto.
14366 (compute_branch_probabilities): Ditto.
14367 (compute_value_histograms): Ditto.
14368 (branch_prob): Ditto.
14369 (end_branch_prob): Ditto.
14370 * coverage.c (read_counts_file): Ditto.
14371 (get_coverage_counts): Ditto.
14372 (tree_coverage_counter_addr): Ditto.
14373 (coverage_checksum_string): Ditto.
14374 (coverage_begin_output): Ditto.
14375 (coverage_end_function): Ditto.
14376 (build_fn_info_type): Ditto.
14377 (build_fn_info_value): Ditto.
14378 * libgcov.c (gcov_exit): Ditto.
14379 * gcov-dump.c (tag_function): Ditto.
14380 (compute_checksum): Remove.
14382 2011-04-29 Alan Modra <amodra@gmail.com>
14384 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14385 unspec plus offset. Tidy macho code.
14387 2011-04-29 Martin Jambor <mjambor@suse.cz>
14389 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
14390 node instead of a decl. Update all callers.
14391 * cgraph.h: Update declaration.
14393 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
14395 PR tree-optimization/48765
14396 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
14397 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
14398 to indicate if loop aware SLP is being used. Scan the statements
14399 and update the vectorization factor according to the type of
14400 vectorization before statement analysis.
14401 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
14402 pass it to vect_analyze_loop_operations.
14403 (vectorizable_reduction): Set number of copies to 1 in case of pure
14405 * tree-vect-stmts.c (vectorizable_conversion,
14406 vectorizable_assignment, vectorizable_shift,
14407 vectorizable_operation, vectorizable_type_demotion,
14408 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
14410 (vectorizable_condition): Move the check that it is not SLP
14411 vectorization before the number of copies check.
14412 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
14413 to vectorize the loop using SLP.
14415 2011-04-28 Jakub Jelinek <jakub@redhat.com>
14417 PR middle-end/48597
14418 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
14421 2011-04-28 Joseph Myers <joseph@codesourcery.com>
14423 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
14424 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
14425 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14426 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14427 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
14429 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
14430 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
14431 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
14432 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
14433 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
14434 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
14436 * config/i386/linux.h (REG_NAME): Don't define.
14437 * config/i386/linux64.h (REG_NAME): Don't define.
14438 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
14439 Undefine before defining.
14441 2011-04-28 Jan Hubicka <jh@suse.cz>
14443 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
14444 nonconstant_names array.
14445 (estimate_function_body_sizes): Build nonconstant_names array; handle
14446 BUILT_IN_CONSTANT_P.
14448 2011-04-28 Richard Guenther <rguenther@suse.de>
14452 2011-04-28 Richard Guenther <rguenther@suse.de>
14454 * tree-ssa-structalias.c (solve_constraints): Build succ graph
14455 as late as possible.
14457 2011-04-28 Richard Guenther <rguenther@suse.de>
14459 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
14460 (debug_constraint): Do it here.
14461 (dump_constraints): And here.
14462 (rewrite_constraints): And here.
14463 (dump_constraint_edge): Remove.
14464 (dump_constraint_graph): Rewrite to produce DOT output.
14465 (solve_constraints): Build succ graph as late as possible.
14466 Dump constraint graphs before and after solving.
14468 2011-04-28 Richard Guenther <rguenther@suse.de>
14470 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14471 New function split out from ...
14472 (find_func_aliases): ... here. Call it.
14473 (find_func_aliases_for_call): Likewise.
14475 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
14477 * internal-fn.h (internal_fn_name_array): Declare.
14478 (internal_fn_flags_array): Likewise.
14480 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
14482 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
14483 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
14485 (ssemodefsuffix): Remove.
14486 (ssevecmodesuffix): New mode attribute.
14487 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
14488 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
14489 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
14490 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
14491 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
14492 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
14493 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
14494 ssemodesuffix mode attribute.
14495 (float splitters): Use ssevecmodesuffix mode attribute.
14496 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
14497 (sseinsmode): Rename from avxvecmode.
14498 (avxsizesuffix): Rename from avxmodesuffix.
14499 (sseintvecmode): Rename from avxpermvecmode.
14500 (ssedoublevecmode): Rename from ssedoublesizemode.
14501 (ssehalfvecmode): Rename from avxhalfvecmode.
14502 (ssescalarmode): Rename from avxscalarmode.
14503 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
14504 templates for ssemodesuffix mode attribute.
14505 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
14508 Adjust RTX patterns globally for renamed mode attributes.
14510 2011-04-27 Jan Hubcika <jh@suse.cz>
14512 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
14513 * ipa-inline-analysis.c: Include alloc-pool.h.
14514 (edge_predicate_pool): New.
14515 (trye_predicate_p): New function
14516 (false_predicate_p): New function.
14517 (add_clause): Sanity check that false clauses are "optimized";
14518 never add clauses to predicate that is already known to be false.
14519 (and_predicate): Use flase_predicate_p.
14520 (evaulate_predicate): Rename to ...
14521 (evaluate_predicate): ... this one; update all callers; assert
14522 that false is not listed among possible truths.
14523 (dump_predicate): Use true_predicate_p.
14524 (account_size_time): Use false_predicate_p.
14525 (evaulate_conditions_for_edge): Rename to ...
14526 (evaluate_conditions_for_edge) ... this one.
14527 (edge_set_predicate): New function.
14528 (inline_edge_duplication_hook): Duplicate edge predicates.
14529 (inline_edge_removal_hook): Free edge predicates.
14530 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
14531 (dump_inline_summary): Update.
14532 (estimate_function_body_sizes): Set edge predicates.
14533 (estimate_calls_size_and_time): Handle predicates.
14534 (estimate_callee_size_and_time): Update.
14535 (remap_predicate): Add toplev_predicate; update comment.
14536 (remap_edge_predicates): New function.
14537 (inline_merge_summary): Compute toplev predicate; update.
14538 (read_predicate): New function.
14539 (read_inline_edge_summary): Use it.
14540 (inline_read_section): Likewise.
14541 (write_predicate): New function.
14542 (write_inline_edge_summary): Use it.
14543 (inline_write_summary): Likewise.
14544 (inline_free_summary): Free alloc pool and edge summary vec.
14546 2011-04-27 Richard Guenther <rguenther@suse.de>
14548 * tree-ssa-structalias.c (changed_count): Remove.
14549 (changed): Use a bitmap.
14550 (unify_nodes): Adjust.
14551 (do_sd_constraint): Likewise.
14552 (do_ds_constraint): Likewise.
14553 (do_complex_constraint): Likewise.
14554 (solve_graph): Likewise.
14556 2011-04-27 Jan Hubicka <jh@suse.cz>
14558 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
14560 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
14562 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
14563 (avx_vperm2f128_*_operand): Ditto.
14564 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
14565 Use avx_vpermilp_parallel in insn condition.
14566 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
14567 Use avx_vperm2f128_parallel in insn condition.
14569 2011-04-27 Richard Guenther <rguenther@suse.de>
14571 * Makefile.in (tree-ssa-structalias.o): Remove
14572 gt-tree-ssa-structalias.h dependency.
14573 (GTFILES): Remove tree-ssa-structalias.c.
14574 * tree.c (allocate_decl_uid): New function.
14575 (make_node_stat): Use it.
14576 (copy_node_stat): Likewise.
14577 * tree.h (allocate_decl_uid): Declare.
14578 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
14579 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
14580 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
14581 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
14582 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
14583 (struct heapvar_map): Likewise.
14584 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
14585 heapvar_insert): Likewise.
14586 (make_heapvar_for): Rename to ...
14587 (make_heapvar): ... this. Simplify.
14588 (fake_var_decl_obstack): New global var.
14589 (build_fake_var_decl): New function.
14590 (make_constraint_from_heapvar): Adjust.
14591 (handle_lhs_call): Likewise.
14592 (create_function_info_for): Likewise.
14593 (intra_create_variable_infos): Likewise.
14594 (init_alias_vars): Allocate fake_var_decl_obstack.
14595 (init_alias_heapvars, delete_alias_heapvars): Remove.
14596 (compute_points_to_sets): Do not call init_alias_heapvars.
14597 (ipa_pta_execute): Likewise.
14598 (delete_points_to_sets): Free fake_var_decl_obstack.
14600 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14602 * config/spu/divmovti4.c (union qword_UTItype): New data type.
14603 (si_from_UTItype, si_to_UTItype): New functions.
14604 (__udivmodti4): Use them to implement type-punning.
14605 * config/spu/multi3.c (union qword_TItype): New data type.
14606 (si_from_TItype, si_to_TItype): New functions.
14607 (__multi3): Use them to implement type-punning.
14609 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14611 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
14613 2011-04-27 Jan Hubicka <jh@suse.cz>
14615 * ipa-prop.c (function_insertion_hook_holder): New holder.
14616 (ipa_add_new_function): New function.
14617 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
14618 Register/deregister holder.
14620 2011-04-27 Richard Guenther <rguenther@suse.de>
14622 PR tree-optimization/48772
14623 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
14625 2011-04-27 Richard Guenther <rguenther@suse.de>
14627 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
14628 TARGET_MEM_REF handling.
14630 2011-04-27 Nick Clifton <nickc@redhat.com>
14632 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
14633 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
14634 (REG_CLASS_NAMES): Likewise.
14635 (REG_CLASS_CONTENTS): Likewise.
14636 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
14637 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
14638 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
14639 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
14640 (EVEN_REGS): New macro. Alias for QUAD_REGS.
14641 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
14642 duplicate register classes.
14643 (frv_class_likely_spilled_p): Likewise.
14644 (frv_register_move_cost): Likewise.
14646 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
14647 end of the regno_reg_class array.
14649 2011-04-27 Jakub Jelinek <jakub@redhat.com>
14652 * c-typeck.c (build_binary_op): Don't wrap arguments if
14653 int_operands is true.
14655 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
14658 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
14659 targetm.calls.must_pass_in_stack for void type.
14661 2011-04-26 Jan Hubicka <jh@suse.cz>
14663 * cgraphbuild.c (build_cgraph_edges): Update call
14664 of cgraph_create_edge and cgraph_create_indirect_edge.
14665 * cgraph.c (cgraph_create_edge_including_clones,
14666 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
14667 cgraph_update_edges_for_call_stmt_node): Do not take nest
14668 argument; do not initialize call_stmt_size/time.
14669 (dump_cgraph_node): Do not dump nest.
14670 (cgraph_clone_edge): Do not take loop_nest argument;
14671 do not propagate it; do not clone call_stmt_size/time.
14672 (cgraph_clone_node): Likewise.
14673 (cgraph_create_virtual_clone): Update.
14674 * cgraph.h (struct cgraph_edge): Remove
14675 call_stmt_size/call_stmt_time/loop_nest.
14676 (cgraph_create_edge, cgraph_create_indirect_edge,
14677 cgraph_create_edge_including_clones, cgraph_clone_node): Update
14679 * tree-emutls.c (gen_emutls_addr): Update.
14680 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
14681 loop_nest; handle indirect calls, too.
14682 (clone_inlined_nodes): Do not care about updating inline summaries.
14683 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
14684 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
14685 stream call_stmt_size/call_stmt_time/loop_nest.
14686 * ipa-inline.c (edge_badness): Update.
14687 (ipa_inline): dump summaries after inlining.
14688 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
14690 (inline_edge_summary): New function.
14691 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
14692 (inline_edge_removal_hook): Handle edge summaries.
14693 (inline_edge_duplication_hook): New hook.
14694 (inline_summary_alloc): Alloc hooks.
14695 (initialize_growth_caches): Do not register removal hooks.
14696 (free_growth_caches); Do not free removal hook.
14697 (dump_inline_edge_summary): New function.
14698 (dump_inline_summary): Use it.
14699 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
14700 (inline_update_callee_summaries): New function.
14701 (inline_merge_summary): Use it.
14702 (do_estimate_edge_time, do_estimate_edge_growth): Update.
14703 (read_inline_edge_summary): New function.
14704 (inline_read_section): Use it.
14705 (write_inline_edge_summary): New function.
14706 (inline_write_summary): Use it.
14707 (inline_free_summary): Free edge new holders.
14708 * tree-inline.c (copy_bb): Update.
14710 2011-04-26 Jason Merrill <jason@redhat.com>
14712 * tree-eh.c (lower_try_finally_switch): Create the label along with
14713 the CASE_LABEL_EXPR.
14715 2011-04-26 David S. Miller <davem@davemloft.net>
14716 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14718 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
14719 * configure: Regenerate.
14721 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14724 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
14726 (VEC_reduc): New code iterator and splitters for vector reduction.
14727 (VEC_reduc_name): Ditto.
14728 (VEC_reduc_rtx): Ditto.
14729 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
14730 (reduc_<VEC_reduc_name>_v4sf): Ditto.
14732 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
14733 support for extracting SF on VSX.
14735 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
14736 generating xscvspdp.
14737 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
14738 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
14739 double add, minimum, maximum vector reduction.
14740 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
14741 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
14742 optimize double vector reduction.
14743 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
14745 2011-04-26 Joseph Myers <joseph@codesourcery.com>
14747 * config/fr30/fr30.h (inhibit_libc): Don't define.
14748 * config/m32r/m32r-protos.h: Correct comment.
14749 * config/v850/v850.h (GHS_default_section_names,
14750 GHS_current_section_names): Use tree, not union tree_node *.
14752 2011-04-26 Xinliang David Li <davidxl@google.com>
14754 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
14755 * c-family/c-opts.c (c_common_handle_option): Set
14756 warn_maybe_uninitialized.
14757 * opts.c (common_handle_option): Ditto.
14758 * common.opt: New option.
14759 * tree-ssa.c (warn_uninit): Add one more parameter.
14760 (warn_uninitialized_var): Pass warning code.
14761 * tree-flow.h: Interface change.
14763 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14765 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
14766 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
14767 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
14769 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14771 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
14772 * config/mips/mips.opt (mmips-tfile): Remove.
14774 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
14775 mips-tdump reference to ...
14776 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
14777 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
14778 reference by Tru64 UNIX.
14780 2011-04-26 Jakub Jelinek <jakub@redhat.com>
14783 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
14784 is error_mark_node, set value to NULL.
14786 PR tree-optimization/48734
14787 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
14788 if return value from maybe_fold_*_comparsions isn't something
14789 the code is prepared to handle.
14791 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
14793 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
14795 (ext_QIreg_nomode_operands): Remove.
14796 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
14800 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
14802 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
14804 2011-04-26 Richard Guenther <rguenther@suse.de>
14806 * c-typeck.c (build_unary_op): Do not expand array-refs via
14807 pointer arithmetic. Only adjust qualifiers for function types.
14809 2011-04-26 Richard Guenther <rguenther@suse.de>
14811 PR middle-end/48694
14812 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
14813 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
14814 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
14815 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
14817 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
14819 * doc/extend.texi: Document __underlying_type.
14821 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
14823 * config/rs6000/titan.md (automata_option "progress"): Remove.
14825 2011-04-25 Jeff Law <law@redhat.com>
14827 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
14829 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14831 * system.h (ENUM_BITFIELD): Remove.
14833 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
14834 Eric Botcazou <ebotcazou@adacore.com>
14836 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
14837 for STORE_FLAG_VALUE==-1 case.
14839 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
14842 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
14843 LEGITIMATE_PIC_OPERAND_P.
14845 2011-04-24 Jan Hubicka <jh@suse.cz>
14847 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
14849 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
14850 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
14851 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
14852 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
14853 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
14854 Sanity check predicate length.
14855 (remap_predicate): Likewise; sanity check jump functions.
14856 (inline_read_section, inline_write_summary): Sanity check
14859 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
14862 * doc/extend.texi (Type Traits): Document __is_standard_layout,
14863 __is_literal_type, and __is_trivial; update throughout about
14864 possibly cv-qualified void types.
14866 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
14868 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
14869 testsuite and make it version agnostic.
14871 2011-04-22 Jan Hubicka <jh@suse.cz>
14873 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
14875 2011-04-23 Jakub Jelinek <jakub@redhat.com>
14878 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
14879 to VOID_TYPE even around MODIFY_EXPR.
14881 2011-04-22 Mike Stump <mikestump@comcast.net>
14883 * gensupport.c (read_md_rtx): Fix typo in comment.
14884 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
14887 2011-04-22 Jan Hubicka <jh@suse.cz>
14889 * gengtype.c (open_base_files): Add ipa-inline.h include.
14890 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
14891 ipa-prop.c; update all uses.
14892 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
14893 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
14894 merge summary of inlined function into former caller.
14895 * ipa-inline.c (max_benefit): Remove.
14896 (edge_badness): Compensate for removal of benefits.
14897 (update_caller_keys): Use
14898 reset_node_growth_cache/reset_edge_growth_cache.
14899 (update_callee_keys): Likewise.
14900 (update_all_callee_keys): Likewise.
14901 (inline_small_functions): Do not collect max_benefit; do not reset
14902 estimated_growth; call free_growth_caches and initialize_growth_caches.
14903 * ipa-inline.h (struct condition, type clause_t, struct predicate,
14904 struct size_time_entry): New structures.
14905 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
14906 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
14907 and estimated_growth.
14908 (edge_growth_cache_entry): New structure.
14909 (node_growth_cache, edge_growth_cache): New global vars.
14910 (estimate_growth): Turn into inline.
14911 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
14912 initialize_growth_caches, free_growth_caches): Declare.
14913 (estimate_edge_growth): Rewrite.
14914 (estimate_edge_time): Implement as inline cache lookup.
14915 (reset_node_growth_cache, reset_edge_growth_cache): New inline
14917 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
14918 (NUM_CONDITIONS): New constant.
14919 (predicate_conditions): New enum.
14920 (IS_NOT_CONSTANT): New constant.
14921 (edge_removal_hook_holder): New var.
14922 (node_growth_cache, edge_growth_cache): New global vars.
14923 (true_predicate, single_cond_predicate, false_predicate,
14924 not_inlined_predicate, add_condition, add_clause, and_predicates,
14925 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
14926 dump_clause, dump_predicate, account_size_time,
14927 evaulate_conditions_for_edge): New functions.
14928 (inline_summary_alloc): Move to heap.
14929 (inline_node_removal_hook): Clear condition and entry vectors.
14930 (inline_edge_removal_hook): New function.
14931 (initialize_growth_caches, free_growth_caches): New function.
14932 (dump_inline_summary): Update.
14933 (edge_execution_predicate): New function.
14934 (will_be_nonconstant_predicate): New function.
14935 (estimate_function_body_sizes): Compute BB and constantness predicates.
14936 (compute_inline_parameters): Do not clear estimated_growth.
14937 (estimate_edge_size_and_time): New function.
14938 (estimate_calls_size_and_time): New function.
14939 (estimate_callee_size_and_time): New function.
14940 (remap_predicate): New function.
14941 (inline_merge_summary): New function.
14942 (do_estimate_edge_time): New function based on...
14943 (estimate_edge_time): ... this one.
14944 (do_estimate_edge_growth): New function.
14945 (do_estimate_growth): New function based on....
14946 (estimate_growth): ... this one.
14947 (inline_analyze_function): Analyze after deciding on jump functions.
14948 (inline_read_section): New function.
14949 (inline_read_summary): Use it.
14950 (inline_write_summary): Write all the new data.
14951 * ipa-prop.c (ipa_get_param_decl_index): Export.
14952 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
14953 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
14955 (ipa_get_lattice): Move here from ipa-cp.c
14956 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
14957 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
14958 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
14959 cgraph_edge_inlinable_p): Remove.
14960 * cgraphunit.c: Include ipainline.h
14961 (cgraph_process_new_functions): Update call of
14962 compute_inline_parameters.
14964 2011-04-22 Richard Guenther <rguenther@suse.de>
14966 * tree.c (build_int_cst): Properly create canonicalized integer
14968 (build_int_cst_type): Remove scary comments.
14970 2011-04-22 Xinliang David Li <davidxl@google.com>
14972 * toplev.c (process_options): Enable -Werror=coverage-mismatch
14973 by default when -Wno-error is not specified.
14974 * opts-global.c (decode_options): Remove call to
14975 control_warning_options.
14977 2011-04-22 Jakub Jelinek <jakub@redhat.com>
14979 PR tree-optimization/48717
14980 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
14981 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
14983 2011-04-22 Joseph Myers <joseph@codesourcery.com>
14985 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
14986 definition where used.
14988 2011-04-22 Jakub Jelinek <jakub@redhat.com>
14991 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
14992 TREE_STATIC variables declared inside of some OpenMP construct.
14994 2011-04-22 Martin Jambor <mjambor@suse.cz>
14996 PR middle-end/48585
14997 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
14999 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
15002 * c-typeck.c (pop_init_level): Do not warn about initializing
15005 2011-04-22 Alan Modra <amodra@gmail.com>
15007 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
15008 when returning call_cookie.
15009 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
15010 pointers, to functions with no more vector args than the current
15011 function, and some non-local calls for ABI_V4.
15012 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
15013 sibcall_nonlocal_aix64): Combine to ..
15014 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
15015 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
15016 (sibcall_value_nonlocal_aix<mode>): ..likewise.
15017 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
15018 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
15020 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
15021 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
15022 sibcall_value_symbolic_64): Delete.
15024 2011-04-21 Xinliang David Li <davidxl@google.com>
15026 * cgraph.h: Remove pid.
15027 * cgraph.c: Remove pid.
15028 * value-prof.c (init_node_map): New function.
15029 (del_node_map): New function.
15030 (find_func_by_funcdef_no): New function.
15031 (gimple_ic_transform): Call new function.
15032 * cgraphunit.c (cgraph_finalize_function): Remove pid.
15033 * function.c (get_last_funcdef_no): New function.
15034 * function.h (get_last_funcdef_no): New function.
15035 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
15036 to libgcov function.
15037 (tree-profiling): Call node map init and delete function.
15039 2011-04-21 Ian Lance Taylor <iant@google.com>
15041 * godump.c (go_format_type): Use exported Go name for anonymous
15044 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
15046 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
15047 Call builtin_function_type_list instead of builtin_function_type.
15048 (UNARY, BINARY, TRINARY, QUAD): Likewise.
15050 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
15052 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
15053 build_function_type_list instead of build_function_type.
15054 Delete variable `endlink'.
15056 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
15058 * config/s390/s390.c (s390_init_builtins): Call
15059 build_function_type_list instead of build_function_type.
15061 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
15063 * config/ia64/ia64.c (ia64_init_builtins): Call
15064 build_function_type_list instead of builtin_function_type.
15066 2011-04-21 Easwaran Raman <eraman@google.com>
15068 * cfgexpand.c (stack_var): Remove OFFSET...
15069 (add_stack_var): ...and its reference here...
15070 (expand_stack_vars): ...and here.
15071 (stack_var_cmp): Sort by descending order of size.
15072 (partition_stack_vars): Change heuristic.
15073 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
15074 (dump_stack_var_partition): Add newline after each partition.
15076 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
15077 Jeff Law <law@redhat.com>
15079 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
15080 * gengtype.c (matching_file_name_substitute): Likewise.
15082 2011-04-21 Richard Guenther <rguenther@suse.de>
15085 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
15087 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
15089 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
15091 2011-04-21 Richard Guenther <rguenther@suse.de>
15093 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
15096 2011-04-21 Richard Guenther <rguenther@suse.de>
15098 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
15099 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
15100 Use DECL_P, not SSA_VAR_P.
15101 (ptr_derefs_may_alias_p): Likewise.
15102 (ptr_deref_may_alias_ref_p_1): Likewise.
15103 (decl_refs_may_alias_p): Likewise.
15104 (refs_may_alias_p_1): Likewise.
15105 (ref_maybe_used_by_call_p_1): Likewise.
15106 (call_may_clobber_ref_p_1): Likewise.
15107 (indirect_ref_may_alias_decl_p): Assume indirect refrences
15108 are either MEM_REF or TARGET_MEM_REF.
15109 (indirect_refs_may_alias_p): Likewise.
15110 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
15111 for MEM_EXPR of indirect calls.
15113 2011-04-21 Tristan Gingold <gingold@adacore.com>
15115 * vmsdbgout.c (write_srccorr): Compute file length from the string.
15116 (dst_file_info_struct): Remove flen field.
15117 (lookup_filename): Remove code that set flen field.
15119 2011-04-21 Tristan Gingold <gingold@adacore.com>
15121 * config/ia64/ia64.c (ia64_start_function): Add a guard.
15123 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
15126 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
15127 vec_extract and vec_concat for non-SSE4_1 targets.
15129 2011-04-21 Richard Guenther <rguenther@suse.de>
15131 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
15134 2011-04-21 Joseph Myers <joseph@codesourcery.com>
15136 * config/i386/cygming.h (union tree_node, TREE): Don't define or
15138 (FILE): Don't undefine.
15140 2011-04-21 Joseph Myers <joseph@codesourcery.com>
15142 * config/alpha/alpha.c (struct machine_function): Use rtx, not
15144 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
15146 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
15147 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
15148 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
15150 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
15151 definitions where used.
15152 * config/microblaze/microblaze.h (struct microblaze_args): Use
15153 rtx, not struct rtx_def *.
15154 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
15156 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
15157 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
15158 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
15159 not struct rtx_def *.
15160 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
15162 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
15164 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
15166 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
15168 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
15169 operand_equal_p to compare DR_BASE_ADDRESSes.
15170 (vect_check_interleaving): Likewise.
15172 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
15175 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
15176 for all Neon struct constants.
15178 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
15180 * target.def (legitimate_constant_p): New hook.
15181 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
15182 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
15183 * doc/tm.texi: Regenerate.
15184 * hooks.h (hook_bool_mode_rtx_true): Declare.
15185 * hooks.c (hook_bool_mode_rtx_true): Define.
15186 * system.h (LEGITIMATE_CONSTANT_P): Poison.
15187 * calls.c (precompute_register_parameters): Replace uses of
15188 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
15189 (emit_library_call_value_1): Likewise.
15190 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
15191 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
15192 * ira-costs.c (scan_one_insn): Likewise.
15193 * recog.c (general_operand, immediate_operand): Likewise.
15194 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
15195 * reload1.c (init_eliminable_invariants): Likewise.
15197 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
15199 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
15200 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
15202 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15203 * config/alpha/predicates.md (input_operand): Update call to
15204 alpha_legitimate_constant_p.
15206 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
15207 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
15208 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
15209 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15210 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
15211 (arm_legitimate_constant_p): New functions.
15212 (arm_cannot_force_const_mem): Make static.
15214 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
15216 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
15217 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
15218 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
15219 instead of bfin_legitimate_constant_p.
15220 (bfin_legitimate_constant_p): Make static. Add a mode argument.
15221 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15223 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
15225 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
15227 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
15228 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
15229 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15230 (frv_legitimate_constant_p): Make static. Add a mode argument.
15232 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
15233 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
15234 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
15236 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
15237 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
15238 * config/i386/i386.c (legitimate_constant_p): Rename to...
15239 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
15241 (ix86_cannot_force_const_mem): Update accordingly.
15242 (ix86_legitimate_address_p): Likewise.
15243 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15244 * config/i386/i386.md: Update commentary.
15246 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
15247 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
15248 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15249 (ia64_legitimate_constant_p): Make static. Add a mode argument.
15251 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
15253 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
15254 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
15255 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15256 (lm32_legitimate_constant_p): Make static. Add a mode argument.
15258 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
15259 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
15260 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
15262 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
15263 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15264 (m32r_legitimate_constant_p): New function.
15266 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
15267 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
15268 LEGITIMATE_CONSTANT_P.
15269 (LEGITIMATE_CONSTANT_P): Delete.
15270 * config/m68k/m68k.c (m68k_expand_prologue): Call
15271 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
15272 (m68k_legitimate_constant_p): New function.
15273 * config/m68k/m68k.md: Update comments.
15275 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
15276 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15277 (mcore_legitimate_constant_p): New function.
15279 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
15280 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
15281 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
15282 Add a mode argument.
15283 (mep_legitimate_address): Update accordingly.
15284 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15286 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
15288 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
15289 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
15290 static. Check OP's mode for VOIDmode.
15291 (microblaze_legitimate_constant_p): New function.
15292 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15294 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
15295 * config/mips/mips.c (mips_legitimate_constant_p): New function.
15296 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
15297 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15298 * config/mips/predicates.md: Update comments.
15300 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
15301 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
15302 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15303 (mmix_legitimate_constant_p): Make static, return a bool, and take
15305 (mmix_print_operand_address): Update accordingly.
15307 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
15309 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
15310 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
15311 static. Add a mode argument.
15312 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15314 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
15316 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
15317 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15318 (pa_legitimate_constant_p): New function.
15320 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
15322 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
15323 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15324 (pdp11_legitimate_constant_p): New function.
15326 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
15327 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15328 (rs6000_legitimate_constant_p): New function.
15330 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
15331 (rx_legitimate_constant_p): ...this.
15332 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
15333 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
15334 (rx_legitimate_constant_p): ...this.
15335 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15336 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
15338 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
15339 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
15340 * config/s390/s390.c (legitimate_constant_p): Rename to...
15341 (s390_legitimate_constant_p): ...this. Make static, return a bool,
15342 and add a mode argument.
15343 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15345 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
15347 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
15348 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15349 (sh_legitimate_constant_p): New function.
15351 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
15352 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
15353 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15354 (legitimate_constant_p): Rename to...
15355 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
15357 (constant_address_p): Update accordingly.
15359 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
15360 argument and return a bool.
15361 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
15362 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15363 (spu_legitimate_constant_p): Add a mode argument and return a bool.
15364 (spu_rtx_costs): Update accordingly.
15365 * config/spu/predicates.md (vec_imm_operand): Likewise.
15367 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
15369 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
15370 * config/v850/v850.c (v850_legitimate_constant_p): New function.
15371 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15373 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
15374 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
15375 * config/vax/vax.c (legitimate_constant_p): Likewise.
15377 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
15378 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15379 (xtensa_legitimate_constant_p): New function.
15381 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
15383 * target.def (cannot_force_const_mem): Add a mode argument.
15384 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
15385 * doc/tm.texi: Regenerate.
15386 * hooks.h (hook_bool_mode_rtx_false): Declare.
15387 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
15388 (hook_bool_mode_const_rtx_true): Likewise.
15389 (hook_bool_mode_rtx_false): New function.
15390 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
15391 to be non-VOID. Update call to cannot_force_const_mem.
15392 (find_reloads): Update accordingly.
15393 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
15394 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
15396 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
15397 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
15398 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
15399 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
15400 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
15401 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
15402 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
15403 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
15404 (m68k_cannot_force_const_mem): ...this new function.
15405 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
15407 (mips_const_insns, mips_legitimize_const_move): Update calls.
15408 (mips_secondary_reload_class): Likewise.
15409 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
15410 (pa_cannot_force_const_mem): ...this new function.
15411 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
15412 (rs6000_cannot_force_const_mem): ...this new function.
15413 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
15415 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
15416 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
15418 (xtensa_cannot_force_const_mem): ...this new function.
15420 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
15422 * config/mips/mips.c (mips16_build_function_stub): Call
15423 build_function_type_list instead of build_function_type.
15424 (mips16_build_call_stub): Likewise.
15426 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
15428 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
15429 instead of build_function_type.
15431 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
15433 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
15434 instead of build_function_type.
15436 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
15439 * config/i386/i386.md (insv): Change operand 0 constraint to
15440 "register_operand". Change operand 1 and 2 constraint to
15441 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
15442 * config/i386/sse.md (sse4_1_pinsrb): Export.
15443 (sse2_pinsrw): Ditto.
15444 (sse4_1_pinsrd): Ditto.
15445 (sse4_1_pinsrq): Ditto.
15446 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
15447 * config/i386/i386.c (ix86_expand_pinsr): New.
15449 2011-04-20 Easwaran Raman <eraman@google.com>
15451 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
15452 containing union type only with -fstrict-aliasing.
15454 2011-04-20 Jim Meyering <meyering@redhat.com>
15456 Remove useless if-before-free tests.
15457 * calls.c (expand_call, save_area): Likewise.
15458 * cfgcleanup.c (try_forward_edges): Likewise.
15459 * collect2.c (collect_execute): Likewise.
15460 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
15461 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
15462 * coverage.c (coverage_checksum_string): Likewise.
15463 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
15464 * cselib.c (cselib_init): Likewise.
15465 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
15466 (df_set_clean_cfg): Likewise.
15467 * function.c (free_after_compilation): Likewise.
15468 * gcc.c (do_spec_1, main): Likewise.
15469 * gcov.c (create_file_names): Likewise.
15470 * gensupport.c (identify_predicable_attribute): Likewise.
15471 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
15472 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
15473 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
15474 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
15475 * ipa-pure-const.c (local_pure_const): Likewise.
15476 * ipa-reference.c (propagate): Likewise.
15477 * ira-costs.c (free_ira_costs): Likewise.
15478 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
15479 * matrix-reorg.c (mat_free): Likewise.
15480 * prefix.c (get_key_value): Likewise.
15481 * profile.c (compute_value_histograms): Likewise.
15482 * reload1.c (free_reg_equiv): Likewise.
15483 * sched-deps.c (free_deps): Likewise.
15484 * sel-sched-ir.c (fence_clear): Likewise.
15485 * sese.c (set_rename, if_region_set_false_region): Likewise.
15486 * tree-data-ref.c (free_rdg): Likewise.
15487 * tree-eh.c (lower_try_finally): Likewise.
15488 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
15489 * tree-ssa-live.c (delete_var_map): Likewise.
15490 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
15491 * tree-ssa-pre.c (phi_trans_add): Likewise.
15493 2011-04-20 Jakub Jelinek <jakub@redhat.com>
15495 PR tree-optimization/48611
15496 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
15497 beyond ERT_MUST_NOT_THROW region.
15499 2011-04-20 Catherine Moore <clm@codesourcery.com>
15501 * config/mips/mips.opt (mfix-24k): New.
15502 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
15503 * config/mips/mips.md (length): Increase by 4 for stores if
15505 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
15506 all noreorder if fixing 24K errata.
15507 * doc/invoke.texi: Document mfix-24k.
15509 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
15511 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
15512 quad-word modes, reduce to 9-bit index range when above 1016 limit.
15514 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
15516 * config/arm/arm.c (arm_gen_constant): Move movw support ....
15517 (const_ok_for_op): ... to here.
15519 2011-04-20 Kai Tietz <ktietz@redhat.com>
15521 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
15522 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
15524 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
15526 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
15528 2011-04-20 Richard Guenther <rguenther@suse.de>
15530 PR tree-optimization/47892
15531 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
15532 are if-convertible.
15534 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
15536 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
15538 2011-04-20 Tristan Gingold <gingold@adacore.com>
15540 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
15542 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
15546 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
15547 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
15548 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
15549 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
15550 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
15552 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
15555 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
15556 (avr_asm_named_section, avr_asm_output_aligned_common,
15557 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
15558 New functions to update...
15559 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
15560 (avr_asm_init_sections): Overwrite section callbacks for
15561 data_section, bss_section.
15562 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
15564 (avr_file_end): ...here.
15566 2011-04-20 Richard Guenther <rguenther@suse.de>
15568 PR middle-end/48695
15569 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
15570 objects and types here. Adjust for their offset before comparing.
15572 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
15574 * tree-vect-stmts.c (vectorizable_store): Only chain one related
15575 statement per copy.
15577 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
15579 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
15580 (GIMPLE_H): Include $(INTERNAL_FN_H).
15581 (OBJS-common): Add internal-fn.o.
15582 (internal-fn.o): New rule.
15583 * internal-fn.def: New file.
15584 * internal-fn.h: Likewise.
15585 * internal-fn.c: Likewise.
15586 * gimple.h: Include internal-fn.h.
15587 (GF_CALL_INTERNAL): New gf_mask.
15588 (gimple_statement_call): Put fntype into a union with a new
15590 (gimple_build_call_internal): Declare.
15591 (gimple_build_call_internal_vec): Likewise.
15592 (gimple_call_same_target_p): Likewise.
15593 (gimple_call_internal_p): New function.
15594 (gimple_call_internal_fn): Likewise.
15595 (gimple_call_fntype): Return null for internal calls.
15596 (gimple_call_set_fntype): Assert that the function is not internal.
15597 (gimple_call_set_fn): Likewise.
15598 (gimple_call_set_fndecl): Likewise.
15599 (gimple_call_set_internal_fn): New function.
15600 (gimple_call_addr_fndecl): Handle null functions.
15601 (gimple_call_return_type): Likewise null types.
15602 * gimple.c (gimple_build_call_internal_1): New function.
15603 (gimple_build_call_internal): Likewise.
15604 (gimple_build_call_internal_vec): Likewise.
15605 (gimple_call_same_target_p): Likewise.
15606 (gimple_call_flags): Handle calls to internal functions.
15607 (gimple_call_fnspec): New function.
15608 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
15609 (gimple_has_side_effects): Handle null functions.
15610 (gimple_rhs_has_side_effects): Likewise.
15611 (gimple_call_copy_skip_args): Handle calls to internal functions.
15612 * cfgexpand.c (expand_call_stmt): Likewise.
15613 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
15614 * gimple-fold.c (gimple_fold_call): Handle null functions.
15615 (gimple_fold_stmt_to_constant_1): Don't fold
15616 calls to internal functions.
15617 * gimple-low.c (gimple_check_call_args): Handle calls to internal
15619 * gimple-pretty-print.c (dump_gimple_call): Likewise.
15620 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
15621 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
15622 (do_warn_unused_result): Likewise.
15623 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
15624 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
15625 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
15626 the target of a call.
15627 (initialize_hash_element): Update accordingly.
15628 (hashable_expr_equal_p): Use gimple_call_same_target_p.
15629 (iterative_hash_hashable_expr): Handle calls to internal functions.
15630 (print_expr_hash_elt): Likewise.
15631 * tree-ssa-pre.c (can_value_number_call): Likewise.
15632 (eliminate): Handle null functions.
15633 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
15634 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
15635 (find_func_aliases): Likewise.
15636 * value-prof.c (gimple_ic_transform): Likewise.
15637 (gimple_indirect_call_to_profile): Likewise.
15638 * lto-streamer-in.c (input_gimple_stmt): Likewise.
15639 * lto-streamer-out.c (output_gimple_stmt): Likewise.
15641 2011-04-19 Jan Hubicka <jh@suse.cz>
15643 * ipa-inline-transform.c (save_inline_function_body): Add comments.
15644 * ipa-inline.c (inline_small_functions): Compute summaries first,
15645 populate heap later.
15647 2011-04-19 Jan Hubicka <jh@suse.cz>
15649 * cgraph.h (save_inline_function_body): Remove.
15650 * ipa-inline-transform.c: New file, broke out of...
15651 * ipa-inline.c: ... this one; Update toplevel comment.
15652 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
15654 (update_noncloned_frequencies): Move to ipa-inline-transform.c
15655 (cgraph_mark_inline_edge): Rename to inline_call; move to
15656 ipa-inline-transform.c.
15657 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
15658 move to ipa-inline-transform.c
15659 (recursive_inlining, inline_small_functions, flatten_function,
15660 ipa_inline, inline_always_inline_functions,
15661 early_inline_small_functions): Update.
15662 (inline_transform): Move to ipa-inline-transform.c.
15663 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
15665 * Makefile.in (ipa-inline-transform.o): New file.
15666 * cgraphunit.c (save_inline_function_body): Move to
15667 ipa-inline-transform.c
15669 2011-04-19 DJ Delorie <dj@redhat.com>
15671 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
15672 registers if we already know there aren't any.
15673 (m32c_emit_epilogue): Don't emit a barrier here.
15674 (m32c_emit_eh_epilogue): Likewise.
15675 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
15676 operands at expand time.
15677 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
15679 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
15680 duplicates. Provide aliases instead.
15681 * config/m32c/prologue.md (eh_return): Emit a barrier here.
15682 (eh_epilogue): Add a "(return)" here as a hint to other parts of
15685 2011-04-19 Anatoly Sokolov <aesok@post.ru>
15687 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
15688 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
15689 (general_or_i64_p, sparc_register_move_cost): New function.
15691 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15693 * doc/install.texi (Configuration, --enable-threads): Remove mach.
15694 Add lynx, mipssde. Sort table.
15696 2011-04-19 Xinliang David Li <davidxl@google.com>
15698 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
15701 2011-04-19 Jakub Jelinek <jakub@redhat.com>
15704 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
15705 is a SUBREG with non-MODE_INT mode inside of it.
15707 2011-04-19 Martin Jambor <mjambor@suse.cz>
15709 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
15710 also according to actual contants.
15711 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
15712 (gimple_fold_call): Use it.
15713 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
15715 2011-04-19 Martin Jambor <mjambor@suse.cz>
15717 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
15718 non-pointer assignments.
15720 2011-04-19 Martin Jambor <mjambor@suse.cz>
15722 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
15723 account anc_offset and otr_type from the indirect edge info.
15724 * ipa-prop.c (get_ancestor_addr_info): New function.
15725 (compute_complex_ancestor_jump_func): Assignment analysis moved to
15726 get_ancestor_addr_info, call it.
15727 (ipa_note_param_call): Do not initialize information about polymorphic
15728 calls, return the indirect call graph edge. Remove the last
15729 parameter, adjust all callers.
15730 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
15731 parameters. Initialize polymorphic information in the indirect edge.
15733 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
15736 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
15737 the types if they have different enumeration identifiers.
15739 2011-04-19 Jan Hubicka <jh@suse.cz>
15741 * cgraph.h (cgraph_optimize_for_size_p): Declare.
15742 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
15743 * predict.c (cgraph_optimize_for_size_p): Break out from ...
15744 (optimize_function_for_size_p) ... here.
15746 2011-04-19 Richard Guenther <rguenther@suse.de>
15749 * tree.c (free_lang_data): Do not reset the decl-assembler-name
15752 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
15754 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
15755 if DECL_NO_INLINE_WARNING_P is set on the function.
15757 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
15760 * reload1.c (inc_for_reload): Return void. All callers changed.
15761 (emit_input_reload_insns): Don't try to delete previous output
15762 reloads to a register, or record spill_reg_store for autoincs.
15764 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
15766 * gengtype.h: Updated copyright year.
15767 (struct input_file_st): Add inpisplugin field.
15768 (type_fileloc): New function.
15770 (write_typed_struct_alloc_def): Add gcc_assert.
15771 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
15772 (write_typed_alloc_defns): Don't output for plugin files.
15773 (input_file_by_name): Clear inpisplugin field.
15774 (main): Set inpisplugin field for plugin files.
15776 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
15778 * gengtype-state.c (string_eq): New.
15779 (read_state): Use string_eq instead of strcmp when creating the
15782 2011-04-19 Wei Guozhi <carrot@google.com>
15785 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
15786 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
15788 * config/arm/constraints.md (Uu): New constraint.
15789 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
15791 2011-04-19 Tristan Gingold <gingold@adacore.com>
15793 * config.gcc (-*-*-*vms): Added.
15794 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
15796 * config/vms/vms-ld.c: New file.
15797 * config/vms/vms-ar.c: New file.
15798 * config/vms/t-vmsnative: New file.
15800 2011-04-18 Xinliang David Li <davidxl@google.com>
15802 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
15804 2011-04-18 Jakub Jelinek <jakub@redhat.com>
15806 PR middle-end/48661
15807 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
15808 if TREE_TYPE (v) is non-NULL.
15810 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
15811 gimple_get_virt_mehtod_for_binfo.
15812 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
15813 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
15815 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15817 2011-04-18 Michael Matz <matz@suse.de>
15818 Steve Ellcey <sje@cup.hp.com>
15820 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
15821 use its mode as source mode if it isn't VOIDmode.
15823 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
15825 * doc/passes.texi: Fill crossref nodes.
15827 2011-04-18 Jim Meyering <meyering@redhat.com>
15829 Fix doubled-word typos in comments and strings
15830 * config/alpha/vms-unwind.h: s/for for/for/
15831 * config/arm/unwind-arm.h: Likewise.
15832 * config/microblaze/microblaze.c: Likewise.
15833 * config/sh/constraints.md: s/in in/in/
15834 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
15836 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
15838 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
15839 (AVX_FLOAT_MODE_P): Ditto.
15840 (AVX128_VEC_FLOAT_MODE_P): Ditto.
15841 (AVX256_VEC_FLOAT_MODE_P): Ditto.
15842 (AVX_VEC_FLOAT_MODE_P): Ditto.
15843 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
15844 (UNSPEC_MASKSTORE): Ditto.
15845 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
15846 Merge from <sse>_movmsk<ssemodesuffix> and
15847 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
15848 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
15850 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
15851 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
15852 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
15854 2011-04-18 Jan Hubicka <jh@suse.cz>
15856 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
15858 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
15859 (want_inline_function_called_once_p): Break out the logic from
15861 (edge_badness): Ensure that profile is not misupdated.
15862 (lookup_recursive_calls): Prioritize by call frequencies.
15863 (inline_small_functions): Move program size estimates here;
15864 actually process whole queue even when unit growth has been
15865 met. (to properly compute inline_failed reasons and for the
15866 case unit size decrease.) Revisit comments on recursive inlining.
15867 (ipa_inline): Remove unit summary code; first inline hot calls
15868 of functions called once, cold calls next.
15869 (order, nnodes): Remove unused variables.
15870 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
15871 (GTFILES): Remove ipa-inline.c
15872 * sel-sched.c (fill_insns): Silence uninitialized var warning.
15874 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
15876 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
15878 2011-04-18 Jie Zhang <jie@codesourcery.com>
15879 Richard Earnshaw <rearnsha@arm.com>
15881 * arm.c (neon_builtin_type_bits): Remove.
15882 (typedef enum neon_builtin_mode): New.
15883 (T_MAX): Don't define.
15884 (typedef enum neon_builtin_datum): Remove bits, codes[],
15885 num_vars and base_fcode. Add mode, code and fcode.
15886 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
15887 VAR10): Change accordingly.
15888 (neon_builtin_data[]): Change accordingly
15889 (arm_init_neon_builtins): Change accordingly.
15890 (neon_builtin_compare): Remove.
15891 (locate_neon_builtin_icode): Remove.
15892 (arm_expand_neon_builtin): Change accordingly.
15894 * arm.h (enum arm_builtins): Move to ...
15895 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
15897 * arm.c (arm_builtin_decl): Declare.
15898 (TARGET_BUILTIN_DECL): Define.
15899 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
15900 (arm_builtin_decls[]): New.
15901 (arm_init_neon_builtins): Store builtin declarations in
15902 arm_builtin_decls[].
15903 (arm_init_tls_builtins): Likewise.
15904 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
15905 (arm_builtin_decl): New.
15907 2011-04-18 Richard Guenther <rguenther@suse.de>
15909 * tree.c (upper_bound_in_type): Build properly canonicalized
15911 (lower_bound_in_type): Likewise.
15913 2011-04-18 Richard Guenther <rguenther@suse.de>
15915 * gimple.h (gimple_call_addr_fndecl): New function.
15916 (gimple_call_fndecl): Use it.
15917 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
15919 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
15920 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
15922 2011-04-18 Richard Guenther <rguenther@suse.de>
15924 PR middle-end/48650
15925 * tree.c (build_string): STRING_CST is now derived from tree_typed.
15927 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
15930 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
15931 DECL_IN_CONSTANT_POOL without RTL.
15933 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
15934 Ira Rosen <ira.rosen@linaro.org>
15937 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
15938 to match neon_vzip/vuzp/vtrn_internal.
15939 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
15940 outputs explicitly dependent on both inputs.
15941 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
15943 2011-04-18 Jakub Jelinek <jakub@redhat.com>
15945 PR tree-optimization/48616
15946 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
15947 whether the shift is by scalar or vector based on whether all SLP
15948 scalar stmts have the same rhs.
15950 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
15952 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
15955 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
15958 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
15961 2011-04-17 Jan Hubicka <jh@suse.cz>
15963 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
15964 * cgrpahunit.c (cgraph_finalize_function): Do not set
15965 finalized_by_frontend.
15966 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
15967 finalized_by_frontend.
15969 2011-04-17 Jan Hubicka <jh@suse.cz>
15971 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
15972 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
15973 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
15974 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
15976 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
15978 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
15980 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
15983 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
15984 is non-null before accessing it.
15985 (input_cgraph): Remove trailing spaces.
15987 2011-04-17 Revital Eres <revital.eres@linaro.org>
15989 * params.def (sms-min-sc): New param flag.
15990 * modulo-sched.c (sms_schedule): Use it.
15991 * doc/invoke.texi (sms-min-sc): Document it.
15993 2011-04-17 Jan Hubicka <jh@suse.cz>
15995 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
15996 present, also set gimple_call_set_cannot_inline.
15997 * ipa-inline.c: Update toplevel comment.
15998 (MAX_TIME): Remove.
15999 (cgraph_clone_inlined_nodes): Fix linebreaks.
16000 (cgraph_check_inline_limits): Restructure to ...
16001 (caller_growth_limits): ... this one; be more tolerant
16002 on growth in nested inline chains; add explanatory comment;
16003 fix stack accounting thinko introduced by previous patch.
16004 (cgraph_default_inline_p): Remove.
16005 (report_inline_failed_reason): New function.
16006 (can_inline_edge_p): New function.
16007 (can_early_inline_edge_p): New function.
16008 (leaf_node_p): Move upwards in file.
16009 (want_early_inline_function_p): New function.
16010 (want_inline_small_function_p): New function.
16011 (want_inline_self_recursive_call_p): New function.
16012 (cgraph_edge_badness): Rename to ...
16013 (edge_badness) ... this one; fix linebreaks.
16014 (update_edge_key): Update call of edge_baddness; add
16015 detailed dump about queue updates.
16016 (update_caller_keys): Use can_inline_edge_p and
16017 want_inline_small_function_p.
16018 (cgraph_decide_recursive_inlining): Rename to...
16019 (recursive_inlining): Use can_inline_edge_p and
16020 want_inline_self_recursive_call_p; simplify and remove no longer
16022 (cgraph_set_inline_failed): Remove.
16023 (add_new_edges_to_heap): Use can_inline_edge_p and
16024 want_inline_small_function_p.
16025 (cgraph_decide_inlining_of_small_functions): Rename to ...
16026 (inline_small_functions): ... this one; cleanup; use
16027 can/want predicates; cleanup debug ouput; work edges till fibheap
16028 is exhausted and do not stop once unit growth is reached; remove
16029 later loop processing remaining edges.
16030 (cgraph_flatten): Rename to ...
16031 (flatten_function): ... this one; use can_inline_edge_p
16032 and can_early_inline_edge_p predicates.
16033 (cgraph_decide_inlining): Rename to ...
16034 (ipa_inline): ... this one; remove unreachable nodes before
16035 inlining functions called once; simplify the pass.
16036 (cgraph_perform_always_inlining): Rename to ...
16037 (inline_always_inline_functions): ... this one; use
16038 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
16039 (cgraph_decide_inlining_incrementally): Rename to ...
16040 (early_inline_small_functions): ... this one; simplify
16041 using new predicates; cleanup; make dumps prettier.
16042 (cgraph_early_inlining): Rename to ...
16043 (early_inliner): newer inline regular functions into always-inlines;
16044 fix updating of call stmt summaries.
16045 (pass_early_inline): Update for new names.
16046 (inline_transform): Fix formating.
16047 (gate_cgraph_decide_inlining): Rename to ...
16048 (pass_ipa_inline): ... this one.
16049 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
16050 * ipa-inline-analysis.c (dump_inline_summary): Update.
16051 (compute_inline_parameters): Do not compute disregard_inline_limits;
16052 look for mismatching arguments.
16053 (estimate_growth): Fix handlig of non-trivial self recursion.
16054 (inline_read_summary): Do not read info->disregard_inline_limits.
16055 (inline_write_summary): Do not write info->disregard_inline_limits.
16056 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
16057 and move all checks into can_inline_edge_p predicate; re-enable code
16058 comparing optimization levels.
16059 (expand_call_inline): Do not test inline_forbidden_into_p.
16060 * Makefile.in (ipa-inline.o): Update arguments.
16062 2011-04-17 Revital Eres <revital.eres@linaro.org>
16064 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
16066 2011-04-17 Revital Eres <revital.eres@linaro.org>
16068 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
16070 2011-04-17 Michael Matz <matz@suse.de>
16072 PR tree-optimization/48622
16074 * ipa-inline-analysis.c (inline_read_summary): Read size/time
16075 in same order as they're written.
16077 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16079 * config/pa/predicates.md: Reorganize and simplify predicates.
16080 Eliminate duplicate code checks.
16081 (arith_operand): Rename to arith14_operand
16082 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
16083 * config/pa/pa.md: Use renamed operands.
16084 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
16085 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
16086 arith11_operand, adddi3_operand, indexed_memory_operand,
16087 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
16088 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
16089 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
16090 move_dest_operand, move_src_operand, prefetch_cc_operand,
16091 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
16092 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
16093 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
16094 div_operand, int5_operand, movb_comparison_operator,
16095 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
16096 arith_double_operand, ireg_operand, lhs_lshift_operand,
16097 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
16098 integer_store_memory_operand): Likewise.
16099 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
16100 (integer_store_memory_operand, read_only_operand,
16101 function_label_operand, borx_reg_operand,
16102 non_hard_reg_operand): Likewise.
16103 (eq_neq_comparison_operator): Delete unused operator.
16104 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
16105 function_label_operand.
16106 (emit_move_sequence): Likewise.
16108 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
16110 * config/i386/sse.md (sseunpackmode): New mode attribute.
16111 (ssepackmode): Ditto.
16112 (vec_pack_trunc_<mode>): Macroize expander from
16113 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
16114 (vec_unpacks_lo_<mode>): Macroize expander from
16115 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16116 (vec_unpacks_hi_<mode>): Macroize expander from
16117 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16118 (vec_unpacku_lo_<mode>): Macroize expander from
16119 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16120 (vec_unpacku_hi_<mode>): Macroize expander from
16121 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16122 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
16123 ix86_expand_sse4_unpack.
16124 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
16126 2011-04-16 Jan Hubicka <jh@suse.cz>
16128 * cgraphbuild.c: Include ipa-inline.h.
16129 (reset_inline_failed): Use initialize_inline_failed.
16130 * cgraph.c: Include ipa-inline.h.
16131 (cgraph_create_node_1): Do not initialize estimated_growth.
16132 (initialize_inline_failed): More to ipa-inline-analysis.c
16133 (dump_cgraph_node): Do not dump inline flags.
16134 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
16135 and disregard_inline_limits flags.
16136 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
16137 time, size, estimated_growth.
16138 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
16140 * cgraphunit.c (cgraph_decide_is_function_needed): Use
16141 DECL_DISREGARD_INLINE_LIMITS.
16142 (cgraph_analyze_function): Do not initialize
16143 node->local.disregard_inline_limits.
16144 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
16145 inlinable, versionable and disregard_inline_limits.
16146 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
16147 cgraph_check_inline_limits, cgraph_default_inline_p,
16148 cgraph_edge_badness, update_caller_keys, update_callee_keys,
16149 add_new_edges_to_heap): Update.
16150 (cgraph_decide_inlining_of_small_function): Update; set
16151 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
16152 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
16153 cgraph_decide_inlining_incrementally): Update.
16154 * ipa-inline.h (inline_summary): Add inlinable, versionable,
16155 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
16156 time, size and estimated_growth parameters.
16157 (estimate_edge_growth): Update.
16158 (initialize_inline_failed): Declare.
16159 * ipa-split.c: Include ipa-inline.h
16160 (execute_split_functions): Update.
16161 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
16162 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
16163 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
16164 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
16165 estimated_growth to INT_MIN.
16166 (inline_node_duplication_hook): Likewise.
16167 (dump_inline_summary): Dump new fields.
16168 (compute_inline_parameters): Update.
16169 (estimate_edge_time, estimate_time_after_inlining,
16170 estimate_size_after_inlining, estimate_growth, inline_read_summary,
16171 inline_write_summary):
16172 (initialize_inline_failed): Move here from cgraph.c.
16173 * tree-sra.c: Include ipa-inline.h.
16174 (ipa_sra_preliminary_function_checks): Update.
16175 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
16178 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
16180 * config/i386/sse.md (V16): New mode iterator.
16182 (AVXMODEQI, AVXMODEDI): Remove.
16183 (sse2, sse3): New mode attribute.
16184 (mov<mode>): Use V16 mode iterator.
16185 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
16186 (push<mode>1): Use V16 mode iterator.
16187 (movmisalign<mode>): Ditto.
16188 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
16189 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
16190 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
16191 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
16192 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
16193 avx_movdqu<avxmodesuffix>.
16194 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
16195 *avx_movdqu<avxmodesuffix>.
16196 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
16197 avx_lddqu<avxmodesuffix>.
16198 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
16199 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
16200 avx_movnt<AVXMODEDI:mode>.
16201 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
16202 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
16204 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
16207 * haifa-sched.c (prune_ready_list, schedule_block): Use
16208 sched_pressure_p rather than flag_sched_pressure.
16210 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
16212 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
16213 cgraph_get_node instead of cgraph_get_create_node.
16215 2011-04-15 Jakub Jelinek <jakub@redhat.com>
16217 * cfgexpand.c (expand_debug_expr): Use
16218 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
16220 2011-04-15 Michael Matz <matz@suse.de>
16222 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
16223 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
16224 * function.c (gimplify_parameters): Ditto.
16225 * gimplify.c (gimplify_vla_decl): Ditto.
16227 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
16228 (gimple_call_set_alloca_for_var): New inline function.
16229 (gimple_call_alloca_for_var_p): Ditto.
16230 * gimple.c (gimple_build_call_from_tree): Remember
16231 CALL_ALLOCA_FOR_VAR_P state.
16232 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
16234 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
16235 calls if they were for VLA objects.
16237 2011-04-15 Martin Jambor <mjambor@suse.cz>
16239 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
16242 2011-04-15 Martin Jambor <mjambor@suse.cz>
16244 PR middle-end/48601
16245 * tree-emutls.c (lower_emutls_function_body): Call
16246 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
16247 result is non-NULL.
16249 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
16251 * c-decl.c (detect_field_duplicates): Call
16252 objc_detect_field_duplicates instead of objc_get_interface_ivars.
16254 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
16256 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
16257 * gimple.c (gimple_asm_clobbers_memory_p): Define.
16258 * ipa-pure-const.c (check_stmt): Call it.
16259 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
16261 2011-04-15 Richard Guenther <rguenther@suse.de>
16263 PR tree-optimization/48290
16264 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
16265 Properly decide inhibiting propagation based on the valueized
16266 operand. Do loop-closed SSA form preserving here ...
16267 (init_copy_prop): ... not here.
16269 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
16272 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
16273 (*ieee_smax<mode>3): Likewise.
16275 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16277 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
16278 Replace match_operand with match_dup for the third operand in
16281 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
16283 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
16284 to track processing of conditionals. Update all callers.
16285 (try_combine, simplify_if_then_else): Update.
16287 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
16289 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
16292 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
16294 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
16295 instead of match_operand for operand 3.
16297 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
16299 * recog.h (insn_operand_data): Add an "allows_mem" field.
16300 * genoutput.c (output_operand_data): Initialize it.
16301 * optabs.c (maybe_legitimize_operand_same_code): New function.
16302 (maybe_legitimize_operand): Use it when matching the original
16305 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
16307 * gimplify.c: Fix issues in comments throughout.
16308 (voidify_wrapper_expr): Fix long line.
16309 (build_stack_save_restore): Likewise.
16310 (gimplify_loop_expr): Likewise.
16311 (gimplify_compound_lval): Likewise.
16312 (gimplify_init_ctor_eval): Likewise.
16313 (gimplify_modify_expr_rhs): Likewise.
16314 (omp_notice_threadprivate_variable): Likewise.
16316 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
16318 * cfgexpand.c (expand_call_stmt): Convert the function type to the
16319 original one if this is not a builtin function.
16321 2011-04-14 Jakub Jelinek <jakub@redhat.com>
16324 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
16325 offset it as needed based on top 2 bits in operands[3], change
16326 MEM mode to SFmode and mask those 2 bits away from operands[3].
16328 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
16330 * c-parser.c (c_parser_objc_protocol_definition): Updated for
16331 change from objc_declare_protocols() to objc_declare_protocol().
16333 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
16335 * config/i386/sse.md (sse4_1): New mode attribute.
16336 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
16337 avx_blend<ssemodesuffix><avxmodesuffix> and
16338 sse4_1_blend<ssemodesuffix> using VF mode iterator.
16339 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
16340 avx_blendv<ssemodesuffix><avxmodesuffix> and
16341 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
16342 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
16343 avx_dp<ssemodesuffix><avxmodesuffix> and
16344 sse4_1_dp<ssemodesuffix> using VF mode iterator.
16345 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
16346 (sse4_1_packusdw): Merge with *avx_packusdw.
16347 (sse4_1_pblendvb): Merge with *avx_pblendvb.
16348 (sse4_1_pblendw): Merge with *avx_pblendw.
16349 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
16350 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
16351 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
16353 (sse4_1_round<ssescalarmodesuffix>): Merge with
16354 *avx_round<ssescalarmodesuffix>.
16355 (aesenc): Merge with *avx_aesenc.
16356 (aesenclast): Merge with *avx_aesenclast.
16357 (aesdec): Merge with *avx_aesdec.
16358 (aesdeclast): Merge with *avx_aesdeclast.
16359 (pclmulqdq): Merge with *pclmulqdq.
16360 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
16362 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
16364 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
16366 PR middle-end/48608
16367 * cfgexpand.c (get_decl_align_unit): Renamed to ...
16368 (align_local_variable): This. Update DECL_ALIGN.
16369 (add_stack_var): Updated.
16370 (expand_one_stack_var): Likewise.
16372 2011-04-14 Richard Guenther <rguenther@suse.de>
16374 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
16376 (dse_initialize_block_local_data, dse_leave_block,
16377 record_voperand_set, get_stmt_uid): Likewise.
16378 (dse_possible_dead_store_p): Allow any kind of killing stmt.
16379 (dse_optimize_stmt): Remove voperand set handling code.
16380 Simplify and improve to handle any kind of killing stmt.
16381 (dse_record_phi): Remove.
16382 (dse_enter_block): Simplify.
16383 (tree_ssa_dse): Likewise.
16384 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
16386 2011-04-14 Jan Hubicka <jh@suse.cz>
16388 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
16389 * cgraph.h (struct inline_summary): Move to ipa-inline.h
16390 (cgraph_local_info): Remove inline_summary.
16391 * ipa-cp.c: Include ipa-inline.h.
16392 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
16393 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
16395 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
16396 (input_overwrite_node): Do not set inline summary.
16397 (input_node): Do not stream inline summary.
16398 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
16399 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
16400 growth; we do not have inline parameters computed for that anyway.
16401 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
16402 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
16403 (inline_summary_t): New type and VECtor.
16404 (debug_inline_summary, dump_inline_summaries): Declare.
16405 (inline_summary): Use VOCtor.
16406 (estimate_edge_growth): Kill hack computing call stmt size directly.
16407 * lto-section-in.c (lto_section_name): Add inline section.
16408 * ipa-inline-analysis.c: Include lto-streamer.h
16409 (node_removal_hook_holder, node_duplication_hook_holder): New holders
16410 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
16411 (inline_summary_vec): Define.
16412 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
16413 dump_inline_summaries): New functions.
16414 (estimate_function_body_sizes): Properly compute size/time of outgoing
16416 (compute_inline_parameters): Alloc inline_summary; do not compute
16417 size/time of incomming calls.
16418 (estimate_edge_time): Avoid missing time summary hack.
16419 (inline_read_summary): Read inline summary info.
16420 (inline_write_summary): Write inline summary info.
16421 (inline_free_summary): Free all hooks and inline summary vector.
16422 * lto-streamer.h: Add LTO_section_inline_summary section.
16423 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
16424 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
16426 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
16428 * tree-vectorizer.h (vect_strided_store_supported): Add a
16429 HOST_WIDE_INT argument.
16430 (vect_strided_load_supported): Likewise.
16431 (vect_permute_store_chain): Return void.
16432 (vect_transform_strided_load): Likewise.
16433 (vect_permute_load_chain): Delete.
16434 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
16435 count argument. Check that the count is a power of two.
16436 (vect_strided_load_supported): Likewise.
16437 (vect_permute_store_chain): Return void. Update after above changes.
16438 Assert that the access is supported.
16439 (vect_permute_load_chain): Likewise.
16440 (vect_transform_strided_load): Return void.
16441 * tree-vect-stmts.c (vectorizable_store): Update calls after
16442 above interface changes.
16443 (vectorizable_load): Likewise.
16444 (vect_analyze_stmt): Don't check for strided powers of two here.
16446 2011-04-14 Richard Guenther <rguenther@suse.de>
16448 PR tree-optimization/48590
16449 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
16450 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
16451 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
16452 BUILT_IN_STACK_SAVE.
16453 * tree-ssa-dce.c (propagate_necessity): Handle
16454 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
16456 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
16458 * c-parser.c (c_parser_objc_class_declaration): Updated call to
16459 objc_declare_class.
16461 2011-04-14 Richard Guenther <rguenther@suse.de>
16463 * tree.h (get_object_alignment_1): Declare.
16464 * builtins.c (get_object_alignment_1): Split out worker from ...
16465 (get_object_alignment): ... here.
16466 * fold-const.c (get_pointer_modulus_and_residue): Use
16467 get_object_alignment_1.
16469 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
16471 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
16473 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
16474 parameter. Generalise code to handle arrays as well as vectors.
16475 (vect_setup_realignment): Update accordingly.
16476 * tree-vect-stmts.c (vectorizable_store): Likewise.
16477 (vectorizable_load): Likewise.
16479 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
16481 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
16482 within the per-copy loop.
16484 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
16486 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
16489 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
16491 * doc/options.texi (Negative): Explicitly mention that the
16492 Negative chain must be circular.
16494 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
16496 * function.h (block_chainon): Declare.
16497 * function.c (block_chainon): Define.
16499 2011-04-14 Anatoly Sokolov <aesok@post.ru>
16500 Eric Weddington <eric.weddington@atmel.com>
16501 Georg-Johann Lay <avr@gjlay.de>
16503 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
16505 (avr_init_builtins, avr_expand_builtin,
16506 avr_expand_delay_cycles, avr_expand_unop_builtin,
16507 avr_expand_binop_builtin ): New functions.
16508 (avr_builtin_id): New enum
16509 (struct avr_builtin_description): New struct
16510 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
16511 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
16513 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
16514 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
16515 UNSPECV_DELAY_CYCLES): new enumeration values
16516 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
16517 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
16518 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
16519 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
16520 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
16521 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
16522 "fmulsu"): New insns
16524 * config/avr/avr-c.c: fix line endings
16525 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
16526 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
16527 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
16528 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
16529 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
16531 * doc/extend.texi (AVR Built-in Functions): New node
16532 (Target Builtins): Add documentation of AVR
16533 built-in functions.
16535 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
16538 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
16539 alone. Error if non-const data has attribute progmem.
16541 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16543 * tree.h (struct tree_constructor): Include tree_typed instead of
16545 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
16546 TS_TYPED instead of TS_COMMON.
16548 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
16550 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
16551 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
16552 (sse2_psadbw): Merge with *avx_psadbw.
16553 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
16554 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
16555 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
16556 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
16557 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
16558 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
16559 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
16560 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
16561 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
16562 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
16563 (ssse3_palignrti): Merge with *avx_palignrti.
16565 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16567 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
16568 * tree-ssanames.c (fini_ssanames): VEC_free it.
16569 (make_ssa_name_fn): Update for VECness of free_ssanames.
16570 (release_ssa_name, release_dead_ssa_names): Likewise.
16571 * tree.h (struct tree_ssa_name): Include tree_typed instead of
16573 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
16574 TS_TYPED instead of TS_COMMON.
16576 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16578 * postreload-gcse.c (gcse_after_reload_main): Add calls to
16579 statistics_counter_event.
16580 * tree-ssa-copyrename.c (stats): Define.
16581 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
16582 statistics_counter_event.
16583 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
16584 (bswap_stats, widen_mul_stats): Define.
16585 (insert_reciprocals): Increment rdivs_inserted.
16586 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
16587 rfuncs_inserted. Add calls to statistics_counter_event.
16588 (execute_cse_sincos_1): Increment inserted.
16589 (execute_cse_sincos): Zeroize sincos_stats. Add call to
16590 statistics_counter_event.
16591 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
16592 of bswap_stats. Add calls to statistics_counter_event.
16593 (convert_mult_to_widen): Increment widen_mults_inserted.
16594 (convert_plusminus_to_widen): Increment maccs_inserted.
16595 (convert_mult_to_fma): Increment fmas_inserted.
16596 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
16597 calls to statistics_counter_event.
16599 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
16601 PR rtl-optimization/48455
16602 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
16603 `temp_costs->mem_cost'.
16605 2011-04-13 Jan Hubicka <jh@suse.cz>
16607 * ipa-inline.h: New file.
16608 * ipa-inline-analysis.c: New file. Broken out of ...
16609 * ipa-inline.c: ... this file; update toplevel comment;
16610 include ipa-inline.h
16611 (inline_summary): Move to ipa-inline.h
16612 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
16613 ipa-inline-analysis.c.
16614 (cgraph_estimate_time_after_inlining): Rename to
16615 estiamte_time_after_inlining; move to ipa-inline-analysis.c
16616 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
16617 to estimate_edge_growth.
16618 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
16619 rename to estimate_size_after_inlining.
16620 (cgraph_mark_inline_edge): Update for new naming convention.
16621 (cgraph_check_inline_limits): Likewise.
16622 (cgraph_edge_badness): Likewise.
16623 (cgraph_decide_recursive_inlining): Likewise.
16624 (cgraph_decide_inlining_of_small_functions): Likewise.
16625 (cgraph_decide_inlining_incrementally): Likewise.
16626 (cgraph_estimate_growth): Rename to estimate_growth; move to
16627 ipa-inline-analysis.c.
16628 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
16629 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
16630 (compute_inline_parameters): Likewise.
16631 (compute_inline_parameters_for_current): Likewise.
16632 (pass_inline_parameters): Likewise.
16633 (inline_indirect_intraprocedural_analysis): Likewise.
16634 (analyze_function): Rename to inline_analyze_function; likewise.
16635 (add_new_function): Move to ipa-inline-analysis.c.
16636 (inline_generate_summary): Likewise.
16637 (inline_read_summary): Likewise.
16638 (inline_write_summary): Likewise.
16639 * Makefile.in (ipa-inline-analysis.c): New file.
16641 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16643 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
16644 * configure: Regenerate.
16646 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16648 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
16649 instead of tree_common.
16650 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
16652 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
16653 TS_TYPED rather than TS_COMMON.
16654 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
16656 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
16659 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
16660 r20 around calls of __tablejump_elpm__
16662 2011-04-13 Jakub Jelinek <jakub@redhat.com>
16664 PR middle-end/48591
16665 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
16667 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
16669 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
16671 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
16672 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
16673 (cfi_vec): New typedef.
16674 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
16675 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
16676 (cie_cfi_vec): New static variable.
16677 (cie_cfi_head): Delete.
16678 (add_cfi): Accept a cfi_vec * as first argument. All callers and
16679 declaration changed. Use vector rather than list operations.
16680 (new_cfi): Don't initialize the dw_cfi_next field.
16681 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
16682 rather than list operations.
16683 (lookup_cfa): Use vector rather than list operations.
16684 (output_cfis): New argument upto. Accept a cfi_vec rather than
16685 a dw_cfi_ref list head as argument. All callers changed.
16686 Iterate over the vector using upto as a maximum index.
16687 (output_all_cfis): New static function.
16688 (output_fde): Use vector rather than list operations. Use the
16689 new upto argument for output_cfis rather than manipulating a
16691 (dwarf2out_begin_prologue): Change initializations to match
16692 new struct members.
16693 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
16694 from the vector length rather than searching for the end of a list.
16695 Use output_all_cfis.
16696 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
16698 2011-04-13 Nick Clifton <nickc@redhat.com>
16700 * config/rx/rx.md (movmemsi): Do not use this pattern when
16701 volatile pointers are involved.
16703 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
16705 * config/i386/sse.md (pinsrbits): Remove.
16706 (sse2_packsswb): Merge with *avx_packsswb.
16707 (sse2_packssdw): Merge with *avx_packssdw.
16708 (sse2_packuswb): Merge with *avx_packuswb.
16709 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
16710 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
16711 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
16712 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
16713 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
16714 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
16715 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
16716 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
16717 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
16718 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
16719 (sse2_loadld): Merge with *avx_loadld.
16720 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
16721 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
16722 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
16723 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
16724 (vec_concatv2di): Merge with *vec_concatv2di_avx.
16726 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
16728 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
16729 calling TREE_CHAIN.
16730 * print-tree.c (print_node): Likewise.
16731 * tree-inline.c (copy_tree_r): Likewise.
16732 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
16733 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
16734 instead of TS_COMMON.
16735 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
16736 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
16737 (copy_node_stat): Zero TREE_CHAIN only if necessary.
16738 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
16739 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
16741 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
16743 (TREE_CHAIN): Check for a TS_COMMON structure.
16744 (TREE_TYPE): Check for a TS_TYPED structure.
16746 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
16748 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
16749 cgraph_get_create_node instead of cgraph_node.
16751 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
16753 * c-parser.c (c_parser_initelt): Updated call to
16754 objc_build_message_expr.
16755 (c_parser_postfix_expression): Likewise.
16757 2011-04-12 Kai Tietz <ktietz@redhat.com>
16759 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
16760 MASK_MS_BITFIELD_LAYOUT bit.
16762 2011-04-12 Jakub Jelinek <jakub@redhat.com>
16764 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
16765 assert it is always true.
16766 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
16769 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
16771 * c-parser.c (c_lex_one_token): Rewritten conditional used when
16772 compiling Objective-C to be more efficient.
16774 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
16776 * opts-common.c (decode_cmdline_options_to_array): Remove variable
16779 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16781 * recog.h, genoutput.c, optabs.c: Revert last patch.
16783 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16786 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
16788 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16790 * recog.h (insn_operand_data): Add an "allows_mem" field.
16791 * genoutput.c (output_operand_data): Initialize it.
16792 * optabs.c (maybe_legitimize_operand_same_code): New function.
16793 (maybe_legitimize_operand): Use it when matching the original
16796 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16798 * genpreds.c (process_define_predicate): Move most processing
16799 to gensupport.c. Continue to validate the expression.
16800 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
16801 (process_define_predicate): Move processing to gensupport.c.
16802 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
16803 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
16804 (compute_predicate_codes): Moved from genrecog.c. Add lineno
16806 (valid_predicate_name_p): New function, split out from old
16807 genpreds.c:process_define_predicate.
16808 (process_define_predicate): New function, combining code from
16809 old genpreds.c and genrecog.c functions.
16810 (process_rtx): Call it for DEFINE_PREDICATE and
16811 DEFINE_SPECIAL_PREDICATE.
16813 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16815 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
16816 size of a '%A' memory reference.
16817 (T_DREG, T_QREG): New neon_builtin_type_bits.
16818 (arm_init_neon_builtins): Assert that the load and store operands
16819 are neon_struct_operands.
16820 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
16821 (NEON_ARG_MEMORY): New builtin_arg.
16822 (neon_dereference_pointer): New function.
16823 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
16824 Handle NEON_ARG_MEMORY.
16825 (arm_expand_neon_builtin): Update after above interface changes.
16826 Use NEON_ARG_MEMORY for loads and stores.
16827 * config/arm/predicates.md (neon_struct_operand): New predicate.
16828 * config/arm/iterators.md (V_two_elem): Tweak formatting.
16829 (V_three_elem): Use BLKmode for accesses that have no associated mode.
16830 (V_four_elem): Tweak formatting.
16831 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
16832 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
16833 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
16834 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
16835 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
16836 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
16837 (neon_vst4<mode>): Replace pointer operand with a memory operand.
16838 Use %A in the output template.
16839 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
16840 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
16841 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
16842 the width of the memory access. Remove post-increment.
16843 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
16845 2011-04-12 Nick Clifton <nickc@redhat.com>
16847 * config/v850/v850.c (expand_prologue): Do not use the CALLT
16848 instruction for interrupt handlers if the target is the basic V850
16850 (expand_epilogue): Likewise.
16852 2011-04-12 Jakub Jelinek <jakub@redhat.com>
16854 PR rtl-optimization/48549
16855 * combine.c (propagate_for_debug): Also stop after BB_END of
16856 this_basic_block. Process LAST and just stop processing after it.
16857 (combine_instructions): If last_combined_insn has been deleted,
16858 set last_combined_insn to its PREV_INSN.
16860 2011-04-12 Richard Guenther <rguenther@suse.de>
16862 PR tree-optimization/46076
16863 * gimple.h (struct gimple_statement_call): Add fntype field.
16864 (gimple_call_fntype): Adjust.
16865 (gimple_call_set_fntype): New function.
16866 * gimple.c (gimple_build_call_1): Set the call function type.
16867 * gimplify.c (gimplify_call_expr): Preserve the function
16868 type the frontend used for the call.
16869 (gimplify_modify_expr): Likewise.
16870 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
16872 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
16874 * tree-ssa.c (useless_type_conversion_p): Function pointer
16875 conversions are useless.
16877 2011-04-12 Martin Jambor <mjambor@suse.cz>
16879 * cgraph.h (cgraph_node): Remove function declaration.
16880 (cgraph_create_node): Declare.
16881 (cgraph_get_create_node): Likewise.
16882 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
16883 Updated all callers.
16884 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
16885 the decl does not already exist. Call cgraph_get_create_node instead
16887 (cgraph_get_create_node): New function.
16888 (cgraph_same_body_alias): Update comment.
16889 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
16890 assert it does not return NULL.
16891 (cgraph_update_edges_for_call_stmt): Likewise.
16892 (cgraph_clone_edge): Likewise.
16893 (cgraph_create_virtual_clone): Likewise.
16894 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
16895 instead of cgraph_node.
16896 (cgraph_add_new_function): Call cgraph_create_node or
16897 cgraph_get_create_node instead of cgraph_node.
16898 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
16899 instead of cgraph_node.
16900 (record_eh_tables): Likewise.
16901 (mark_address): Likewise.
16902 (mark_load): Likewise.
16903 (build_cgraph_edges): Call cgraph_get_create_node instead
16905 (rebuild_cgraph_edges): Likewise.
16906 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
16907 instead of cgraph_node.
16908 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
16910 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
16911 cgraph_create_node instead of cgraph_node.
16912 * c-decl.c (finish_function): Call cgraph_get_create_node instead
16914 * lto-cgraph.c (input_node): Likewise.
16915 * lto-streamer-in.c (input_function): Likewise.
16916 * varasm.c (mark_decl_referenced): Likewise.
16917 (assemble_alias): Likewise.
16919 2011-04-12 Martin Jambor <mjambor@suse.cz>
16921 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
16922 instead of cgraph_node and assert it does not return NULL.
16923 * lto-streamer-in.c (lto_read_body): Likewise.
16924 * omp-low.c (new_omp_context): Likewise.
16925 (create_task_copyfn): Likewise.
16926 * tree-emutls.c (lower_emutls_function_body): Likewise.
16927 * matrix-reorg.c (transform_allocation_sites): Likewise.
16929 2011-04-12 Jakub Jelinek <jakub@redhat.com>
16932 * c-typeck.c (build_asm_expr): Error out on attempts to use
16933 void type outputs or inputs for constraints that allow reg or
16934 don't allow memory.
16936 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
16937 Richard Earnshaw <rearnsha@arm.com>
16940 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
16941 to use sign-magnitude offsets. Reject unsupported unaligned
16942 cases. Add detailed description in comments.
16943 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
16944 condition from TARGET_32BIT to TARGET_ARM.
16946 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
16948 * tree.h (struct typed_tree): New.
16949 (struct tree_common): Include it instead of tree_base.
16950 (TREE_TYPE): Update for new location of type field.
16951 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
16952 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
16953 (union tree_node): Add typed field.
16954 * treestruct.def (TS_TYPED): New.
16955 * lto-streamer.c (check_handled_ts_structures): Handle it.
16956 * tree.c (MARK_TS_TYPED): New macro.
16957 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
16959 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
16961 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
16962 (force_nonfallthru): Do not alter the loop nest if no basic block
16965 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
16967 * config/i386/sse.md (VI): New mode iterator.
16968 (SSEMODEI): Remove.
16969 (AVX256MODEI): Ditto.
16970 (AVXMODEF4P): Ditto.
16971 (avxvecpsmode): Ditto.
16972 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
16973 (sse2_andnot<mode>3): New expander.
16974 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
16975 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
16976 (<any_logic:code><mode>3): Use VI mode iterator.
16977 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
16978 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
16979 (*andnottf3): Handle AVX three-operand constraints.
16980 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
16982 2011-04-11 Joseph Myers <joseph@codesourcery.com>
16983 Robert Millan <rmh@gnu.org>
16985 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
16986 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
16987 GNU_USER_DYNAMIC_LINKER64): Define.
16988 (REG_NAME): Don't undefine.
16989 (MD_UNWIND_SUPPORT): Undefine.
16990 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
16991 (REG_NAME): Don't undefine.
16992 (MD_UNWIND_SUPPORT): Undefine.
16993 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
16995 2011-04-11 Joseph Myers <joseph@codesourcery.com>
16997 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
16998 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
17000 2011-04-11 Xinliang David Li <davidxl@google.com>
17002 * value-profile.c (check_ic_target): New function.
17003 (gimple_ic_transform): Sanity check indirect call target.
17004 * gimple-low.c (gimple_check_call_args): Interface change.
17005 (gimple_check_call_matching_types): New function.
17006 * tree-inline.c (tree_can_inline_p): Call new function.
17008 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
17010 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
17011 tree-pretty-print.h & realmpfr.h.
17013 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
17015 PR middle-end/48464
17016 * ira.c (setup_pressure_classes): Fix typo in loop condition.
17017 (setup_allocno_and_important_classes): Ditto.
17019 2011-04-11 Joseph Myers <joseph@codesourcery.com>
17021 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
17022 GNU_USER_DYNAMIC_LINKER.
17023 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
17024 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17025 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
17026 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17027 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17028 GNU_USER_TARGET_OS_CPP_BUILTINS.
17029 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
17030 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17031 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17032 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17033 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
17034 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17035 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17036 GNU_USER_TARGET_OS_CPP_BUILTINS.
17037 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17038 GNU_USER_DYNAMIC_LINKER.
17039 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17040 GNU_USER_TARGET_OS_CPP_BUILTINS.
17041 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
17042 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17043 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
17044 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17045 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
17046 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
17047 GNU_USER_DYNAMIC_LINKER64): Remove.
17048 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
17049 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17050 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17051 GNU_USER_DYNAMIC_LINKER.
17052 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17053 GNU_USER_TARGET_OS_CPP_BUILTINS.
17054 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17055 GNU_USER_TARGET_OS_CPP_BUILTINS.
17056 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
17057 to GNU_USER_TARGET_OS_CPP_BUILTINS.
17058 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17059 GNU_USER_TARGET_OS_CPP_BUILTINS.
17060 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
17061 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
17062 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
17063 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
17064 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17065 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17066 GNU_USER_DYNAMIC_LINKER.
17067 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17068 GNU_USER_TARGET_OS_CPP_BUILTINS.
17069 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
17070 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17071 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17072 GNU_USER_DYNAMIC_LINKER.
17073 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17074 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17075 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
17076 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17077 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17078 GNU_USER_DYNAMIC_LINKER.
17079 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
17080 GNU_USER_DYNAMIC_LINKERN32.
17081 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
17082 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
17083 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
17084 GNU_USER_DYNAMIC_LINKER32.
17085 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
17086 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17087 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17088 GNU_USER_DYNAMIC_LINKER.
17089 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17090 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17091 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
17092 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17093 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17094 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
17095 GNU_USER_DYNAMIC_LINKER32.
17096 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
17097 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
17098 GNU_USER_DYNAMIC_LINKER.
17099 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
17100 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17101 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
17102 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
17103 GNU_USER_DYNAMIC_LINKER64.
17104 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
17105 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17106 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17107 GNU_USER_DYNAMIC_LINKER.
17108 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
17109 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17110 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17111 GNU_USER_DYNAMIC_LINKER.
17112 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
17113 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17114 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
17115 GNU_USER_DYNAMIC_LINKER32.
17116 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
17117 GNU_USER_DYNAMIC_LINKER64.
17118 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
17119 GNU_USER_DYNAMIC_LINKER64.
17120 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
17121 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17122 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
17123 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17124 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17126 2011-04-11 Joseph Myers <joseph@codesourcery.com>
17128 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
17129 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
17130 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
17131 GNU_USER_DYNAMIC_LINKER.
17132 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
17133 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
17134 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
17135 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
17136 GNU_USER_DYNAMIC_LINKER64.
17137 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
17138 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
17139 GNU_USER_LINK_EMULATION.
17140 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
17141 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
17142 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
17143 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
17144 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
17145 CPP_SPEC, CC1_SPEC): Remove.
17146 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
17147 (GNU_USER_DYNAMIC_LINKER): Define.
17148 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
17149 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
17150 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
17151 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
17152 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
17153 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
17154 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
17155 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
17156 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
17157 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
17158 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
17159 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
17160 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
17161 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
17162 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
17163 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
17164 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17165 GNU_USER_DYNAMIC_LINKER.
17166 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17167 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
17168 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17169 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
17170 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17171 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
17172 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
17173 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
17174 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
17175 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
17177 2011-04-11 Kai Tietz <ktietz@redhat.com>
17181 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
17182 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
17184 (ix86_is_msabi_thiscall): Removed.
17185 (ix86_is_type_thiscall): Likewise.
17186 (ix86_get_callcvt): New function.
17187 (ix86_comp_type_attributes): Simplify check.
17188 (ix86_function_regparm): Use ix86_get_callcvt for calling
17189 convention attribute checks.
17190 (ix86_return_pops_args): Likewise.
17191 (ix86_static_chain): Likewise.
17192 (x86_this_parameter): Likewise.
17193 (x86_output_mi_thunk): Likewise.
17194 (ix86_function_type_abi): Optimize check for types without attributes.
17195 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
17196 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
17197 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
17199 (IX86_BASE_CALLCVT): Helper macro.
17200 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
17201 Use ix86_get_callcvt for calling convention attribute checks and avoid
17202 symbol-decoration for stdcall in TARGET_RTD case.
17203 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
17205 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
17208 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
17210 * config/i386/sse.md (VI_128): New mode iterator.
17211 (VI12_128): Rename from SSEMODE12.
17212 (VI14_128): Rename from SSEMODE14.
17213 (VI124_128): New mode iterator.
17214 (VI24_128): Rename from SSEMODE248.
17215 (VI248_128): Rename from SSEMODE248.
17216 (SSEMODE124C8): Remove.
17217 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
17218 (*sse2_<plusminus_insn><mode>3): Merge with
17219 *avx_<plusminus_insn><mode>3.
17220 (*mulv8hi3): Merge with *avx_mulv8hi3.
17221 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
17222 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
17223 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
17224 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
17225 (ashr<mode>3): Merge with *avx_ashr<mode>3.
17226 (lshr<mode>3): Merge with *avx_lshr<mode>3.
17227 (ashl<mode>3): Merge with *avx_ashl<mode>3.
17228 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
17229 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
17230 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17231 (*<smaxmin:code>v8hi3): Ditto.
17232 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
17233 (*<smaxmin:code>v16qi3): Ditto.
17234 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
17235 (*sse2_eq<mode>3): Ditto.
17236 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
17237 (*sse2_gt<mode>3): Ditto.
17238 (vcondv2di): Split out of vcond<mode>.
17239 (vconduv2di): Split out of vcondu<mode>.
17241 2011-04-11 Richard Guenther <rguenther@suse.de>
17243 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
17244 before calling tree_low_cst.
17246 2011-04-11 Richard Guenther <rguenther@suse.de>
17248 * stor-layout.c (layout_type): Compute all array index size operations
17249 in the original type.
17250 (initialize_sizetypes): Add comment.
17251 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
17253 2011-04-11 Joseph Myers <joseph@codesourcery.com>
17255 * common.opt (Tbss=, Tdata=, Ttext=): New options.
17257 2011-04-11 Martin Jambor <mjambor@suse.cz>
17259 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
17260 of cgraph_node, handle NULL return value.
17261 (cgraph_global_info): Likewise.
17262 (cgraph_rtl_info): Likewise.
17263 * tree-inline.c (estimate_num_insns): Likewise.
17264 * gimplify.c (unshare_body): Likewise.
17265 (unvisit_body): Likewise.
17266 (gimplify_body): Likewise.
17267 * predict.c (optimize_function_for_size_p): Likewise.
17268 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
17269 (call_may_clobber_ref_p_1): Likewise.
17270 * varasm.c (function_section_1): Likewise.
17271 (assemble_start_function): Likewise.
17273 2011-04-11 Martin Jambor <mjambor@suse.cz>
17275 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
17277 * final.c (rest_of_clean_state): Likewise.
17278 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
17279 * passes.c (pass_init_dump_file): Likewise.
17280 (execute_all_ipa_transforms): Likewise.
17281 (function_called_by_processed_nodes_p): Likewise.
17282 * predict.c (maybe_hot_frequency_p): Likewise.
17283 (probably_never_executed_bb_p): Likewise.
17284 (compute_function_frequency): Likewise.
17285 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
17286 (unnest_nesting_tree_1): Likewise.
17287 (lower_nested_functions): Likewise.
17288 * tree-optimize.c (execute_fixup_cfg): Likewise.
17289 (tree_rest_of_compilation): Likewise.
17290 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
17291 * tree-sra.c (ipa_early_sra): Likewise.
17292 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
17293 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
17294 * ipa.c (record_cdtor_fn): Likewise.
17295 * ipa-inline.c (cgraph_early_inlining): Likewise.
17296 (compute_inline_parameters_for_current): Likewise.
17297 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
17298 * ipa-pure-const.c (local_pure_const): Likewise.
17299 * ipa-split.c (split_function): Likewise.
17300 (execute_split_functions): Likewise.
17301 * cgraphbuild.c (build_cgraph_edges): Likewise.
17302 (rebuild_cgraph_edges): Likewise.
17303 (cgraph_rebuild_references): Likewise.
17304 (remove_cgraph_callee_edges): Likewise.
17305 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
17306 (verify_cgraph_node): Likewise.
17307 (cgraph_analyze_functions): Likewise.
17308 (cgraph_preserve_function_body_p): Likewise.
17309 (save_inline_function_body): Likewise.
17310 (save_inline_function_body): Likewise.
17311 * tree-inline.c (copy_bb): Likewise.
17312 (optimize_inline_calls): Likewise.
17314 2011-04-11 Martin Jambor <mjambor@suse.cz>
17316 PR tree-optimization/48195
17317 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
17318 ipa_check_create_edge_args.
17319 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
17320 ipa_check_create_edge_args.
17321 * ipa-inline.c (inline_generate_summary): Do not call
17322 ipa_check_create_node_params and ipa_check_create_edge_args.
17323 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
17324 ipa_check_create_edge_args.
17326 2011-04-09 Anatoly Sokolov <aesok@post.ru>
17328 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
17330 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
17331 * function.c (record_hard_reg_sets): Likewise.
17332 * ira.c (compute_regs_asm_clobbered): Likewise.
17333 * sched-deps.c (sched_analyze_1): Likewise.
17334 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
17336 2011-04-09 Xinliang David Li <davidxl@google.com>
17338 PR tree-optimization/PR48484
17339 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
17340 has_valid_pred lazily
17342 2011-04-09 Duncan Sands <baldrick@free.fr>
17344 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
17346 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
17348 * combine.c (combine_validate_cost): Adjust comments. Set registered
17349 cost of I0 to zero at the end, if any.
17351 2011-04-08 Xinliang David Li <davidxl@google.com>
17353 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
17354 to insane profile data.
17356 2011-04-08 Xinliang David Li <davidxl@google.com>
17358 * ipa-cp.c (ipcp_update_profiling): Correct
17359 negative scale factor due to insane profile data.
17361 2011-04-08 Xinliang David Li <davidxl@google.com>
17363 * final.c (dump_basic_block_info): New function.
17364 (final): Dump basic block.
17365 (final_scan_insn): Remove old dump.
17367 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
17370 * config.gcc (i386-*-freebsd): Disable unwind table generation for
17373 2011-04-08 Michael Matz <matz@suse.de>
17375 PR middle-end/48389
17376 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
17378 (rebuild_jump_labels): Call rebuild_jump_labels_1.
17379 * rtl.h (rebuild_jump_labels_chain): Declare.
17380 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
17381 insns inserted on edges.
17383 2011-04-08 Joseph Myers <joseph@codesourcery.com>
17385 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
17386 * config/arm/arm-arches.def: New.
17387 * config/arm/arm-opts.h: New.
17388 * config/arm/genopt.sh: New.
17389 * config/arm/arm-tables.opt: New (generated).
17390 * config/arm/arm.c (arm_handle_option, arm_target_help,
17391 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
17392 (all_architectures): Get most table contents from arm-arches.def.
17393 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
17394 arm_selected_tune here.
17395 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
17396 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
17397 (march=, mcpu=, mtune=): Use Enum and Var.
17398 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
17399 (arm.o): Update dependencies.
17401 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
17403 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
17405 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
17406 (write_typed_alloc_defns): Likewise.
17407 (main): Calls write_typed_alloc_defns with output_header.
17409 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
17411 PR inline-asm/48435
17412 * ira-color.c (setup_profitable_hard_regs): Add comments.
17413 Don't take prohibited hard regs into account.
17414 (setup_conflict_profitable_regs): Rename to
17415 get_conflict_profitable_regs.
17416 (check_hard_reg_p): Check prohibited hard regs.
17418 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
17420 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
17421 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
17422 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
17424 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17427 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
17428 move from floating point to shift amount register.
17429 (emit_move_sequence): Remove secondary reload support for floating
17430 point to shift amount amount register copies.
17431 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
17432 amount register copies.
17433 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
17434 register, return false if mode isn't a scalar integer mode.
17435 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
17437 2011-04-08 Richard Guenther <rguenther@suse.de>
17439 * gimple.c (gimple_call_flags): Remove kludge.
17441 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
17443 * sel-sched.c (sel_region_init): Move call to
17444 sel_setup_region_sched_flags after setup_current_loop_nest.
17446 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
17448 PR rtl-optimization/48272
17449 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
17450 init_insn_reg_pressure_info. Adjust a caller.
17451 * sched-int.h (init_insn_reg_pressure_info): Declare.
17452 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
17453 when sched-pressure is enabled.
17455 2011-04-08 Richard Guenther <rguenther@suse.de>
17457 * gimple.c (gimple_set_modified): Do not queue calls to
17458 MODIFIED_NORETURN_CALLS here ...
17459 * tree-ssa-operands.c (update_stmt_operands): ... but here.
17461 2011-04-08 Richard Guenther <rguenther@suse.de>
17464 * toplev.c (lang_dependent_init): Do not open asm_out_file
17465 in WPA mode, nor perform debug machinery initialization.
17466 (finalize): Do not unlink asm_out_file in WPA mode.
17468 2011-04-08 Richard Guenther <rguenther@suse.de>
17470 * gimple.h (gimple_call_fntype): New function.
17471 (gimple_call_return_type): Use it.
17472 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
17473 * gimple-low.c (gimple_check_call_args): Likewise.
17474 * gimple.c (gimple_call_flags): Likewise.
17475 (gimple_call_arg_flags): Likewise.
17476 (gimple_call_return_flags): Likewise.
17477 * tree-cfg.c (verify_gimple_call): Likewise.
17478 (do_warn_unused_result): Likewise.
17479 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
17480 * value-prof.c (gimple_ic_transform): Fix fndecl check.
17482 2011-04-08 Dmitry Melnik <dm@ispras.ru>
17484 PR rtl-optimization/48235
17485 * sel-sched.c (code_motion_process_successors): Recompute the last
17486 insn in basic block if control flow changed.
17487 (code_motion_path_driver): Ditto. Recompute the first insn as well.
17488 Update condition for ilist_remove.
17490 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
17492 PR rtl-optimization/48302
17493 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
17494 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
17495 it to record added preheader blocks.
17496 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
17497 on to sel_add_loop_preheaders.
17498 (sel_region_init): Move call to setup_current_loop_nest after
17501 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
17504 * cfgloop.h (loop_has_exit_edges): New helper.
17505 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
17507 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
17508 that have no exit edges.
17510 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
17512 PR rtl-optimization/48442
17513 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
17514 all callers. Adjust assert.
17516 2011-04-08 Jakub Jelinek <jakub@redhat.com>
17518 PR tree-optimization/48377
17519 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
17520 is_packed to true even for types with smaller TYPE_ALIGN than
17523 2011-04-08 Richard Guenther <rguenther@suse.de>
17526 * doc/tm.texi: Re-generate.
17528 2011-04-08 Wei Guozhi <carrot@google.com>
17531 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
17532 * config/arm/arm.c (arm_attr_length_push_multi): New function.
17533 * config/arm/arm.md (*push_multi): Change the length computation to
17536 2011-04-08 Anatoly Sokolov <aesok@post.ru>
17538 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
17539 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
17540 * doc/tm.texi: Regenerate.
17541 * system.h (ASM_OUTPUT_BSS): Poison.
17542 * varasm.c (asm_output_bss): Remove function.
17543 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
17545 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
17546 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
17547 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
17548 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17550 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17552 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17554 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
17556 2011-04-07 Joseph Myers <joseph@codesourcery.com>
17558 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
17561 2011-04-07 Joseph Myers <joseph@codesourcery.com>
17563 * config/m68k/m68k.c (m68k_handle_option): Don't handle
17564 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
17565 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
17567 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
17568 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
17569 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
17570 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
17571 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
17572 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
17573 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
17574 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
17575 options. Don't map other m68k options manually. Don't handle
17576 old-style options as canonical.
17577 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
17578 * doc/install.texi (m68k-*-*): Document binutils version requirement.
17580 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
17582 * basic-block.h (force_nonfallthru): Move to...
17583 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
17584 (force_nonfallthru): ...here.
17585 * cfghooks.c (force_nonfallthru): New function.
17586 * cfgrtl.c (force_nonfallthru): Rename into...
17587 (rtl_force_nonfallthru): ...this.
17588 (commit_one_edge_insertion): Do not set AUX field.
17589 (commit_edge_insertions): Do not discover new basic blocks.
17590 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
17591 (cfg_layout_rtl_cfg_hooks): Likewise.
17592 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
17593 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
17594 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
17596 2011-04-07 Anatoly Sokolov <aesok@post.ru>
17598 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
17601 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
17603 * config/i386/sse.md: Update copyright year.
17604 (avxcvtvecmode): Remove.
17605 (sse_movhlps): Merge with *avx_movhlps.
17606 (sse_movlhps): Merge with *avx_movlhps.
17607 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
17608 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
17609 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
17610 (sse_loadhps): Merge with *avx_loadhps.
17611 (sse_storelps): Merge with *avx_storelps.
17612 (sse_loadlps): Merge with *avx_loadlps.
17613 (sse_movss): Merge with *avx_movss.
17614 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
17615 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
17616 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
17617 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
17618 (vec_set<mode>_0): Ditto.
17619 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
17620 (sse4_1_insertps): Merge with *avx_insertps.
17621 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
17622 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
17623 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
17624 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
17625 (sse2_storehpd): Merge with *avx_storehpd.
17626 (sse2_loadhpd): Merge with *avx_loadhpd.
17627 (sse2_loadlpd): Merge with *avx_loadlpd.
17628 (sse2_movsd): Merge with *avx_movsd.
17629 (*vec_concatv2df): Merge with *vec_concatv2df.
17631 2011-04-07 Jakub Jelinek <jakub@redhat.com>
17634 * combine.c (combine_instructions): Add last_combined_insn,
17635 update it if insn is after it, pass it to all try_combine calls.
17636 (try_combine): Add last_combined_insn parameter, pass it instead of
17637 i3 to propagate_for_debug.
17639 2011-04-07 Nick Clifton <nickc@redhat.com>
17641 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
17642 to handle MDR <-> data register transfers.
17643 (movhi_internal): Likewise.
17645 2011-04-07 Alan Modra <amodra@gmail.com>
17647 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
17648 previous stack info.
17650 2011-04-07 Tom de Vries <tom@codesourcery.com>
17653 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
17654 flow_find_cross_jump. Swap variables to implement backward replacement.
17655 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
17657 2011-04-07 Tom de Vries <tom@codesourcery.com>
17660 * cfgcleanup.c (walk_to_nondebug_insn): New function.
17661 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
17663 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
17664 src1 or src2. Redirect edges to the last basic block. Update
17665 frequency and count on multiple basic blocks in case of fallthru.
17667 2011-04-07 Tom de Vries <tom@codesourcery.com>
17670 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
17672 (old_insns_match_p): Change return type. Replace return false/true
17673 with return dir_none/dir_both. Use can_replace_by.
17674 (flow_find_cross_jump): Add dir_p parameter. Init replacement
17675 direction from dir_p. Register replacement direction in dir, last_dir
17676 and afterlast_dir. Handle new return type of old_insns_match_p using
17677 merge_dir. Return replacement direction in dir_p.
17678 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
17679 return type of old_insns_match_p.
17680 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
17681 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
17682 flow_find_cross_jump.
17683 * basic-block.h (enum replace_direction): New type.
17684 (flow_find_cross_jump): Add parameter to declaration.
17686 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
17688 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
17689 (AVXMODEDCVTPS2DQ): Ditto.
17690 (VEC_FLOAT_MODE): Ditto.
17691 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
17692 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
17693 (<any_logic:code><mode>3): Use VF mode iterator.
17694 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
17695 Use VF mode iterator.
17696 (copysign<mode>3): Use VF mode iterator.
17697 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
17698 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
17699 (*<any_logic:code><MODEF:mode>3): Merge with
17700 *avx_<any_logic:code><MODEF:mode>3.
17701 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
17702 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
17703 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
17704 (avx_cvtdq2ps<avxmodesuffix>): Remove.
17705 (sse2_cvtdq2ps): Use %v modifier.
17706 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
17707 (avx_cvtps2dq<avxmodesuffix>): Remove.
17708 (sse2_cvtps2dq): Use %v modifier.
17709 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
17710 (avx_cvttps2dq<avxmodesuffix>): Remove.
17711 (sse2_cvttps2dq): Use %v modifier.
17712 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
17713 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
17714 (sse2_cvtsd2siq): Fix insn template.
17715 (sse2_cvtsd2siq_2): Ditto.
17716 (sse2_cvttsd2siq): Ditto.
17717 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
17718 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
17720 2011-04-06 Joseph Myers <joseph@codesourcery.com>
17722 * gcov-io.c: Use GCC Runtime Library Exception.
17724 2011-04-06 Jakub Jelinek <jakub@redhat.com>
17727 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
17728 as base_reg whatever register reg has been eliminated to, instead
17729 of hardcoding STACK_POINTER_REGNUM.
17731 2011-04-06 Joseph Myers <joseph@codesourcery.com>
17733 * doc/tm.texi.in: Document C target hooks as separate from general
17735 * doc/tm.texi: Regenerate.
17736 * genhooks.c (struct hook_desc): Add docname field.
17737 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
17739 (hook_array): Include c-target.def.
17740 (emit_documentation): Use docname field in output.
17741 (emit_init_macros): Take docname argument. Only emit definitions
17742 for hooks matching docname.
17743 (main): Expect additional arguments in all cases. Pass argument
17744 to emit_init_macros.
17745 * target.def: Move initial macro definitions and comments to
17746 target-hooks-macros.h.
17747 (gcc_targetcm): Move to c-family/c-target.def.
17748 * target.h (targetcm): Move declaration to c-family/c-target.h.
17749 * targhooks.c (default_handle_c_option): Move to
17751 * targhooks.h (default_handle_c_option): Move declaration to
17752 c-family/c-common.h.
17753 * target-hooks-macros.h: New file.
17754 * config.gcc (target_has_targetcm): Define and use to add to
17755 c_target_objs and cxx_target_objs.
17756 * config/default-c.c: New file.
17757 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
17758 of target.h and target-def.h.
17759 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
17760 (darwin_objc_construct_string, darwin_cfstring_ref_p,
17761 darwin_check_cfstring_format_arg): Make static.
17762 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
17763 TARGET_STRING_OBJECT_REF_TYPE_P,
17764 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
17765 * config/darwin-protos.h (darwin_objc_construct_string,
17766 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
17768 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
17769 TARGET_STRING_OBJECT_REF_TYPE_P,
17770 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
17771 * config/t-darwin (darwin-c.o): Update dependencies.
17772 * system.h (TARGET_HAS_TARGETCM): Poison.
17773 * Makefile.in (TARGET_H): Update.
17774 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
17775 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
17776 (default-c.o): New target.
17777 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
17778 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
17779 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
17781 (build/genhooks.o): Update dependencies.
17783 2011-04-06 Richard Guenther <rguenther@suse.de>
17785 * ipa-inline.c (enum inlining_mode): Remove.
17786 (cgraph_flatten): Use some other token.
17787 (cgraph_edge_early_inlinable_p): New function, split out from ...
17788 (cgraph_perform_always_inlining): New function, split out from ...
17789 (cgraph_decide_inlining_incrementally): ... here.
17790 (cgraph_mark_inline_edge): Adjust.
17791 (cgraph_early_inlining): Re-structure.
17792 (pass_early_inline): Require SSA form.
17794 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
17795 Julian Brown <julian@codesourcery.com>
17796 Mark Shinwell <shinwell@codesourcery.com>
17798 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
17799 LO_REGS only for Thumb-1.
17800 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
17801 be used in short instructions when optimising for size on Thumb-2.
17803 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
17805 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
17806 associated with user returns to be preserved.
17808 2011-04-06 Tristan Gingold <gingold@adacore.com>
17810 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
17811 symbol_queue_size, DBXOUT_DECR_NESTING,
17812 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
17813 if XCOFF_DEBUGGING_INFO.
17815 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
17817 * config/i386/i386.md (attribute isa): New.
17818 (attribute enabled): New.
17819 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
17820 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
17821 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
17822 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
17823 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
17824 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17825 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
17826 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
17828 * config/i386/sse.md (VF): New mode iterator.
17832 (SSEMODEF4): Remove.
17833 (attribute sse): Handle V8SF and V4DF modes.
17834 (<absneg:code><mode>2): Use VF mode iterator.
17835 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
17837 (<plusminus_insn><mode>3): Use VF mode iterator.
17838 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
17839 Use VF mode iterator.
17840 (<sse>_vm<plusminus_insn><mode>3): Merge with
17841 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
17842 (mul<mode>3): Use VF mode iterator.
17843 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
17844 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
17846 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
17847 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
17848 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
17849 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
17851 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
17852 Use VF1 mode iterator.
17853 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
17854 (sqrt<VF2:mode>2): New expander.
17855 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
17856 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
17857 and sqrtv2df2. Use VF mode iterator.
17858 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
17860 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
17861 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
17862 Use VF1 mode iterator.
17863 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
17864 (<smaxmin:code><mode>3): Use VF mode iterator.
17865 (*<smaxmin:code><mode>3_finite): Merge with
17866 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
17867 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17868 (<sse>_vm<smaxmin:code><mode>2): Merge with
17869 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
17870 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
17872 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
17874 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
17875 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
17876 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
17877 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
17878 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
17880 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
17881 Use VF_128 mode iterator.
17882 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
17884 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
17885 VF_128 mode iterator.
17886 (vcond<mode>): Use VF mode iterator.
17887 * config/i386/predicates.md (sse_comparison_operator): Merge with
17888 avx_comparison_float_operator. Do not declare as special_predicate.
17889 * config/i386/i386.c (struct builtin_description): Update for renamed
17891 (ix86_expand_args_builtin): Ditto.
17892 (ix86_expand_sse_compare_mask): Ditto.
17894 2011-04-06 Richard Guenther <rguenther@suse.de>
17896 * tree-inline.c (estimate_num_insns): For calls simply account
17897 for all passed arguments and a used return value.
17899 2011-04-06 Richard Guenther <rguenther@suse.de>
17901 PR tree-optimization/47663
17902 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
17903 call_stmt_time fields.
17904 (cgraph_edge_inlinable_p): Declare.
17905 (cgraph_edge_recursive_p): New inline function.
17906 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
17907 (cgraph_clone_edge): Copy it.
17908 * ipa-inline.c (cgraph_estimate_edge_time): New function.
17909 Account for call stmt time.
17910 (cgraph_estimate_time_after_inlining): Take edge argument.
17911 (cgraph_estimate_edge_growth): Account call stmt size.
17912 (cgraph_estimate_size_after_inlining): Take edge argument.
17913 (cgraph_mark_inline_edge): Adjust.
17914 (cgraph_check_inline_limits): Likewise.
17915 (cgraph_recursive_inlining_p): Remove.
17916 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
17917 (cgraph_decide_recursive_inlining): Take edge argument and
17919 (cgraph_decide_inlining_of_small_functions): Do not avoid
17920 diags for recursive inlining here.
17921 (cgraph_flatten): Adjust.
17922 (cgraph_decide_inlining_incrementally): Likewise.
17923 (estimate_function_body_sizes): Remove call cost handling.
17924 (compute_inline_parameters): Initialize caller edge call costs.
17925 (cgraph_estimate_edge_growth): New function.
17926 (cgraph_estimate_growth): Use it.
17927 (cgraph_edge_badness): Likewise.
17928 (cgraph_check_inline_limits): Take an edge argument.
17929 (cgraph_decide_inlining_of_small_functions): Adjust.
17930 (cgraph_decide_inlining): Likewise.
17931 * tree-inline.c (estimate_num_insns): Only account for call
17932 return value if it is used.
17933 (expand_call_inline): Avoid diagnostics on recursive inline
17935 * lto-cgraph.c (lto_output_edge): Output edge call costs.
17936 (input_edge): Input edge call costs.
17938 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17940 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
17942 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
17944 * doc/invoke.texi (Spec Files): Fix typo.
17946 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
17948 * profile.c (branch_prob): Move declaration of local variable. Remove
17949 obsolete ??? comment. Expand the location explicitly instead of using
17950 the LOCATION_FILE and LOCATION_LINE macros.
17952 2011-04-06 Wei Guozhi <carrot@google.com>
17955 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
17956 (arm_cond_branch): Likewise.
17957 (arm_cond_branch_reversed): Likewise.
17958 (arm_jump): Likewise.
17959 (push_multi): Likewise.
17960 * config/arm/constraints.md (Py): New constraint.
17962 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17965 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
17967 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
17968 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
17969 #ifdef DBX_DEBUGGING_INFO.
17971 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
17974 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
17975 if old and new states differ.
17977 2011-04-05 Joseph Myers <joseph@codesourcery.com>
17979 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
17980 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
17981 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
17982 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
17983 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
17984 mcfv4e): Use Alias.
17985 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
17986 ColdFire options to -mcpu= options.
17988 2011-04-05 Jeff Law <law@redhat.com>
17990 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
17991 check if BB is a successor of LOOP->header and return
17992 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
17994 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
17996 * cprop.c (struct reg_use): Remove.
17997 (reg_use_table): Make an array of RTX.
17998 (find_used_regs, constprop_register, local_cprop_pass,
17999 bypass_block): Simplify users of reg_use_table.
18000 (cprop_insn): Likewise. Iterate if copy propagation succeeded
18001 on one of the uses found by find_used_regs.
18003 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
18006 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
18009 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
18011 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
18013 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
18015 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
18017 PR middle-end/48441
18018 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
18020 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
18022 * combine.c: Include obstack.h.
18023 (struct insn_link): Define.
18024 (uid_log_links): Adjust type.
18025 (FOR_EACH_LOG_LINK): New macro.
18026 (insn_link_obstack): Declare.
18027 (alloc_insn_link): Define.
18028 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
18029 type of link variables.
18030 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
18031 (try_combine, record_promoted_values, distribute_notes): Likewise.
18032 (distribute_links): Likewise. Tweak prototype.
18033 (clear_log_links): Delete.
18034 (adjust_for_new_dest): Call alloc_insn_link.
18035 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
18037 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
18039 * gcse.c (modify_mem_list): Convert to an array of VECs.
18040 (canon_modify_mem_list, compute_transp): Tweak formatting.
18041 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
18042 (load_killed_in_block_p): Likewise.
18043 (record_last_mem_set_info): Likewise.
18044 (clear_modify_mem_tables): Likewise.
18046 2011-04-05 Tom de Vries <tom@codesourcery.com>
18048 PR middle-end/48461
18049 * function.c (emit_use_return_register_into_block): Only define if
18052 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
18054 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
18056 2011-04-05 Joseph Myers <joseph@codesourcery.com>
18058 * config/rx/rx-opts.h: New.
18059 * config/rx/rx.c (rx_cpu_type): Remove.
18060 (rx_handle_option): Don't assert that global structures are in
18061 use. Access variables via opts pointer. Defer most handling of
18062 OPT_mint_register_. Use error_at.
18063 (rx_option_override): Handle deferred OPT_mint_register_ here.
18064 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
18065 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
18066 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
18067 (rx_cpu_types): New Enum and EnumValue entries.
18068 (mint-register=): Use Defer and use Var accordingly.
18070 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
18072 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
18073 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
18074 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
18076 (debug_free_queue, debug_nesting, symbol_queue_index):
18078 * dbxout.c: ...to here. Make static.
18080 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
18082 * gcse.c (modify_pair): Define. Define a VEC of it.
18083 (canon_modify_mem_list): Convert to an array of VECs.
18084 (free_insn_expr_list_list): Delete.
18085 (clear_modify_mem_tables): Call VEC_free instead.
18086 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
18087 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
18088 (canon_list_insert, compute_transp): Likewise.
18090 2011-04-05 Tom de Vries <tom@codesourcery.com>
18093 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
18096 2011-04-05 Tom de Vries <tom@codesourcery.com>
18099 * function.c (emit_use_return_register_into_block): New function.
18100 (thread_prologue_and_epilogue_insns): Use
18101 emit_use_return_register_into_block.
18103 2011-04-05 Tom de Vries <tom@codesourcery.com>
18106 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
18109 2011-04-05 Tom de Vries <tom@codesourcery.com>
18111 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
18113 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
18115 * config/arm/arm.md (define_constants for unspec): Replace with
18117 (define_constants for unspecv): Replace with define_c_enum.
18118 * config/arm/neon.md (define_constants for unspec): Replace with
18121 2011-04-04 Richard Henderson <rth@redhat.com>
18124 * dwarf2out.c (output_line_info): Always emit line info from
18125 at least one section.
18126 (dwarf2out_init): Create text_section_line_info here ...
18127 (set_cur_line_info_table): ... not here.
18129 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
18132 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
18135 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
18137 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
18139 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
18140 (expr_equiv_p): Remove.
18141 (insert_set_in_table): Look at <dest, src> pair instead of expr.
18142 (hash_scan_set): Update call to insert_set_in_table.
18143 (dump_hash_table): Dump <dest, src> pair.
18144 (lookup_set): Simplify. Lookup <dest, src> pair.
18145 (compute_transp): Remove, fold heavily simplified code into...
18146 (compute_local_properties): ...here. Expect COMP and TRANSP
18148 (find_avail_set): Take set directly from struct expr.
18149 (find_bypass-set): Likewise.
18150 (bypass_block): Likewise.
18151 (cprop_insn): Likewise. Remove redundant INSN_P test.
18153 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
18154 checks on form of COND from find_implicit_sets to here.
18155 (find_implicit_sets): Cleanup control flow. Split critical edges
18156 if it exposes implicit sets. Allocate/resize implicit_sets as
18158 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
18159 changed something. Run df_analyze after find_implicit_sets if any
18160 edges were split. Do not allocate implicit_sets here.
18162 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
18163 (gcse_obstack): Renamed to cprop_obstack.
18164 (GNEW, GNEWVEC, GNEWVAR): Remove.
18166 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
18167 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
18168 (gcse_alloc): Likewise, and rename to cprop_alloc.
18169 (alloc_gcse_men, free_gcse_mem): Remove.
18170 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
18171 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
18172 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
18174 * cprop.c (oprs_not_set_p): Remove.
18175 (mark_set, mark_clobber): Remove.
18176 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
18177 (reg_not_set_p): New function.
18178 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
18179 (cprop_insn): Likewise.
18180 (cprop_jump): Use FOR_EACH_EDGE.
18182 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
18185 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
18186 (rank_for_schedule): Use scheduled_insns vector instead of
18187 last_scheduled_insn.
18188 (ok_for_early_queue_removal): Likewise.
18189 (queue_to_ready): Search forward in nonscheduled_insns_begin if
18191 (choose_ready): Likewise.
18192 (commit_schedule): Use VEC_iterate.
18193 (schedule_block): Initialize nonscheduled_insns_begin. If we have
18194 a dbg_cnt, use it and ensure the first insn is in the ready list.
18195 (haifa_sched_init): Allocate scheduled_insns.
18196 (sched_extend_ready_list): Don't allocate it; reserve space.
18197 (haifa_sched_finish): Free it.
18199 2011-04-04 Joseph Myers <joseph@codesourcery.com>
18201 * optc-gen.awk: Always remove type from Variable entry before
18202 recording in var_seen.
18204 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
18206 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
18207 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
18208 call to tidy_fallthru_edges.
18210 2011-04-04 Joseph Myers <joseph@codesourcery.com>
18212 * doc/options.texi (ToLower): Document.
18213 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
18214 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
18215 * opts.h (cl_option): Add cl_tolower field.
18216 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
18217 arguments with lowercase strings.
18218 * config/rx/rx.opt (mcpu=): Add ToLower.
18219 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
18222 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
18224 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
18226 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
18228 * config/vax/vax.c: Include reload.h.
18230 2011-04-04 Anatoly Sokolov <aesok@post.ru>
18232 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
18233 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18234 (sparc_preferred_reload_class): New function.
18236 2011-04-04 Jakub Jelinek <jakub@redhat.com>
18239 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
18240 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
18242 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
18244 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
18245 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
18247 2011-04-03 Anatoly Sokolov <aesok@post.ru>
18249 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
18250 (ASM_OUTPUT_ALIGNED_BSS): Define.
18252 2011-04-03 Michael Matz <matz@suse.de>
18254 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
18255 and next_slot members.
18256 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
18257 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
18258 (lto_streamer_cache_append): Declare.
18259 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
18260 unsigned index, remove offset parameter, ensure that we append
18261 or update existing entries.
18262 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
18263 parameter, update next_slot for append.
18264 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
18266 (lto_streamer_cache_insert_at): Likewise.
18267 (lto_streamer_cache_append): New function.
18268 (lto_streamer_cache_lookup): Use unsigned index.
18269 (lto_streamer_cache_get): Likewise.
18270 (lto_record_common_node): Don't test tree_node_can_be_shared.
18271 (preload_common_node): Adjust call to lto_streamer_cache_insert.
18272 (lto_streamer_cache_delete): Don't free offsets member.
18273 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
18274 (lto_output_string_with_length): Use lto_output_data_stream.
18275 (lto_output_tree_header): Remove ix parameter, don't write it.
18276 (lto_output_builtin_tree): Likewise.
18277 (lto_write_tree): Adjust callers to above, don't track and write
18278 offset, write unsigned index.
18279 (output_unreferenced_globals): Don't emit all global vars.
18280 (write_global_references): Use unsigned indices.
18281 (lto_output_decl_state_refs): Likewise.
18282 (write_symbol): Likewise.
18283 * lto-streamer-in.c (lto_input_chain): Move earlier.
18284 (input_function): Use unsigned index.
18285 (input_alias_pairs): Don't read and then ignore all global vars.
18286 (lto_materialize_tree): Remove ix_p parameter, don't read index,
18287 don't pass it back, use lto_streamer_cache_append.
18288 (lto_register_var_decl_in_symtab): Use unsigned index.
18289 (lto_register_function_decl_in_symtab): Likewise.
18290 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
18292 (lto_get_builtin_tree): Don't read index, use
18293 lto_streamer_cache_append.
18294 (lto_read_tree): Adjust call to lto_materialize_tree.
18296 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
18297 don't use function calls in arguments to MIN.
18299 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
18302 * gimple.c (gimple_type_leader_entry): Mark deletable.
18304 2011-04-03 Alan Modra <amodra@gmail.com>
18306 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
18308 2011-04-03 Michael Matz <matz@suse.de>
18310 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
18312 * tree.h (tree_decl_non_common.vindex): Adjust comment.
18314 2011-04-03 Michael Matz <matz@suse.de>
18316 * cgraphbuild.c (record_reference): Canonicalize constructor values.
18317 * gimple-fold.c (canonicalize_constructor_val): Accept being called
18318 without function context.
18319 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
18320 current_function_decl and cfun.
18322 2011-04-03 Michael Matz <matz@suse.de>
18324 * tree.c (decl_init_priority_insert): Don't create entry for
18326 (decl_fini_priority_insert): Ditto.
18327 (fields_compatible_p, find_compatible_field): Remove.
18328 * tree.h (fields_compatible_p, find_compatible_field): Remove.
18329 * gimple.c (gimple_compare_field_offset): Adjust block comment.
18331 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
18333 * combine.c (try_combine): Remove useless local variable.
18335 2011-04-03 Richard Guenther <rguenther@suse.de>
18336 Ira Rosen <ira.rosen@linaro.org>
18338 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
18339 non-variable offsets and compare the remaining bases of the two
18340 accesses instead of looking for exact same data-ref.
18342 2011-04-02 Kai Tietz <ktietz@redhat.com>
18345 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
18347 * i386.c (ix86_is_msabi_thiscall): New helper function.
18348 (ix86_is_type_thiscall): New helper function.
18349 (ix86_comp_type_attributes): Handle thiscall for method-functions
18351 (init_cumulative_args): Likewise.
18352 (find_drap_reg): Likewise.
18353 (ix86_static_chain): Likewise.
18354 (x86_this_parameter): Likewise.
18355 (x86_output_mi_thunk): Likewise.
18357 2011-04-01 Olivier Hainque <hainque@adacore.com>
18358 Nicolas Setton <setton@adacore.com>
18359 Eric Botcazou <ebotcazou@adacore.com>
18361 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
18362 (add_gnat_descriptive_type_attribute): New function.
18363 (gen_array_type_die): Call it.
18364 (gen_enumeration_type_die): Likewise.
18365 (gen_struct_or_union_type_die): Likewise.
18366 (modified_type_die): Likewise.
18367 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
18368 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
18369 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
18371 2011-04-01 Jakub Jelinek <jakub@redhat.com>
18374 * dwarf2out.c (resolve_addr): Don't call force_decl_die
18375 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
18378 2011-03-17 Richard Guenther <rguenther@suse.de>
18381 * lto-cgraph.c (input_overwrite_node): Clear the abstract
18382 origin for decls in other ltrans units.
18383 (input_varpool_node): Likewise.
18385 2011-04-01 Jakub Jelinek <jakub@redhat.com>
18387 PR middle-end/48335
18388 * expr.c (expand_assignment): Handle all possibilities
18389 if TO_RTX is CONCAT.
18390 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
18391 (store_split_bit_field): If SUBREG_REG (op0) or
18392 op0 itself has smaller mode than word, return it
18393 for offset 0 and const0_rtx for out-of-bounds stores.
18394 If word is const0_rtx, skip it.
18396 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
18398 * config/h8300/h8300.c (print_operand_address): Rename to...
18399 (h8300_print_operand_address): ...this. Make static. Adjust comments.
18400 Call h8300_print_operand and h8300_print_operand_address instead of
18401 print_operand and print_operand_address. Declare.
18402 (print_operand): Renake to...
18403 (h8300_print_operand): ...this. Make static. Adjust comments.
18404 Call h8300_print_operand instead of print_operand. Declare.
18405 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
18406 (h8300_register_move_cost): Likewise.
18407 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
18408 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
18409 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
18410 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
18411 * config/h8300/h8300-protos.h (print_operand): Delete.
18412 (print_operand_address): Delete.
18414 2011-04-01 Richard Henderson <rth@redhat.com>
18417 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
18418 in strict mode before dwarf4. Re-order tests to early out
18419 before switching sections.
18421 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
18423 * config/h8300/constraints.md: New file.
18424 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
18425 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
18426 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
18427 * config/h8300/predicates.md (bit_operand): Likewise.
18428 (incdec_operand): Use satisfies_constraint_M and
18429 satisfies_constraint_O. Don't use C code block.
18430 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
18431 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
18432 (compute_mov_length): Use satisfies_constraint_G.
18433 (fix_bit_operand): Use satisfies_constraint_U.
18434 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
18435 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
18436 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
18437 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
18438 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
18439 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
18440 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18441 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
18442 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
18443 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
18444 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
18445 (EXTRA_MEMORY_CONSTRAINT): Delete.
18447 2011-04-01 Andrew Pinski <pinskia@gmail.com>
18448 Michael Meissner <meissner@linux.vnet.ibm.com>
18451 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
18452 operands, as per the specifications.
18454 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
18455 (vec_extract_evenv4sf): Ditto.
18456 (vec_extract_evenv8hi): Ditto.
18457 (vec_extract_evenv16qi): Ditto.
18458 (vec_extract_oddv4si): Ditto.
18460 2011-03-31 Mark Wielaard <mjw@redhat.com>
18462 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
18463 high_pc attribute if the CU has no associated code. Only output
18464 DW_AT_entry_pc for CU if not generating strict dwarf and
18467 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
18469 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
18470 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
18472 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
18473 * final.c (final_start_function): Call the new function rather
18474 than using a NULL argument for dwarf2out_frame_debug.
18476 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
18477 that contains the prologue.
18479 * haifa-sched.c (queue_insn): New arg REASON. All callers
18480 changed. Print it in debugging output.
18482 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
18484 * sched-ebb.c (begin_schedule_ready): Remove second argument.
18485 Split most of the code into...
18486 (begin_move_insn): ... here. New function.
18487 (ebb_sched_info): Add a pointer to it.
18488 * haifa-sched.c (scheduled_insns): New static variable.
18489 (sched_extend_ready_list): Allocate it.
18490 (schedule_block): Use it to record the order of scheduled insns.
18491 Perform RTL changes to move insns only after all scheduling
18492 decisions have been made.
18493 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
18494 begin_move_insn field.
18495 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
18496 * sched-int.h (struct haifa_sched_info): Remove second argument
18497 from begin_schedule_ready hook. Add new member begin_move_insn.
18498 * sched-rgn.c (begin_schedule_ready): Remove second argument.
18499 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
18501 * haifa-sched.c (prune_ready_list): New function, broken out of
18503 (schedule_block): Use it.
18505 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18507 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
18509 2011-04-01 Kai Tietz <ktietz@redhat.com>
18511 * config.gcc (*-*-mingw*): Allow as option the
18512 posix threading model.
18513 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
18514 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
18516 (CPP_SPEC): Add pthread/no-pthread handling.
18517 (LIB_SPEC): Likewise.
18518 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
18519 (LIB_SPEC): Likewise.
18520 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
18521 flag to pass -pthread option for shared libgcc build.
18522 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
18523 for shared libgcc build.
18524 * config/i386/t-mingw-pthread: New file.
18525 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
18526 New define to enable use of library pthread by default.
18527 * config/i386/mingw.opt (pthread): New driver option.
18528 (no-pthread): New driver option.
18529 * config/i386/cygming.opt: Make sure trailing empty line is retained.
18530 * config/i386/mingw-w64.opt: Likewise.
18532 2011-04-01 Gary Funck <gary@intrepid.com>
18534 * c-decl.c (grokdeclarator): Fix formatting.
18536 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18538 * expr.c (emit_block_move_via_movmem): Use n_generator_args
18539 instead of n_operands.
18540 (set_storage_via_setmem): Likewise.
18541 * optabs.c (maybe_gen_insn): Likewise.
18542 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
18543 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
18544 (mips_expand_builtin_direct): Likewise.
18545 * config/spu/spu.c (expand_builtin_args): Likewise.
18547 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18549 * recog.h (insn_data_d): Add n_generator_args.
18550 * genoutput.c (data): Likewise.
18551 (output_insn_data): Print it.
18552 (max_opno, num_dups): Delete.
18553 (scan_operands): Just fill in "d->operand[...]".
18554 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
18556 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18558 * gensupport.h (pattern_stats): New structure.
18559 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
18560 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
18561 (max_operand_1, max_operand_vec): Delete.
18562 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
18564 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
18566 * emit-rtl.c (emit_pattern_after_setloc): New function.
18567 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
18568 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
18569 (emit_pattern_after): New function.
18570 (emit_insn_after, emit_jump_insn_after): Call it.
18571 (emit_call_insn_after, emit_debug_insn_after): Likewise.
18572 (emit_pattern_before_setloc): New function.
18573 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
18574 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
18576 (emit_pattern_before): New function.
18577 (emit_insn_before, emit_jump_insn_before): Call it.
18578 (emit_call_insn_before, emit_debug_insn_before): Likewise.
18580 2011-03-31 Richard Henderson <rth@redhat.com>
18582 * dwarf2out.c (dw_separate_line_info_ref): Remove.
18583 (dw_separate_line_info_entry): Remove.
18584 (enum dw_line_info_opcode): New.
18585 (dw_line_info_entry): Use it.
18586 (dw_line_info_table, dw_line_info_table_p): New.
18587 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
18588 (line_info_table, line_info_label_num): Remove.
18589 (line_info_table_in_use): Remove.
18590 (separate_line_info_table): Remove.
18591 (separate_line_info_table_allocated): Remove.
18592 (separate_line_info_table_in_use): Remove.
18593 (LINE_INFO_TABLE_INCREMENT): Remove.
18594 (line_info_label_num): New.
18595 (cur_line_info_table): New.
18596 (text_section_line_info, cold_text_section_line_info): New.
18597 (separate_line_info): New.
18598 (SEPARATE_LINE_CODE_LABEL): Remove.
18599 (print_dwarf_line_table): Remove.
18600 (debug_dwarf): Don't dump it.
18601 (output_one_line_info_table): New.
18602 (output_line_info): Use it.
18603 (new_line_info_table): New.
18604 (set_cur_line_info_table): New.
18605 (dwarf2out_switch_text_section): Use it.
18606 (dwarf2out_begin_function): Likewise.
18607 (push_dw_line_info_entry): New.
18608 (dwarf2out_source_line): Rewrite for new line info tables.
18609 (dwarf2out_init): Remove dead initailizations.
18611 2011-03-31 Joseph Myers <joseph@codesourcery.com>
18613 * opts.h (cl_option): Add comments to fields. Add bit-fields for
18615 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
18616 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
18617 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
18618 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
18619 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
18620 * opt-functions.awk (flag_init, switch_bit_fields): New.
18621 (switch_flags): Don't handle flags moved to bit-fields. Don't
18622 generate CL_MISSING_OK or CL_SAVE.
18623 * optc-gen.awk: Update to generate bit-field output as well as
18625 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
18626 bit-field instead of CL_REJECT_DRIVER flag.
18627 * opts-common.c (generate_canonical_option,
18628 decode_cmdline_option): Use bit-fields instead of CL_* flags.
18629 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
18630 instead of CL_REJECT_NEGATIVE flag.
18631 * toplev.c (print_switch_values): Use cl_report bit-field instead
18634 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
18636 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
18637 a zero minimum index only if it is redundant.
18639 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
18641 PR rtl-optimization/48381
18642 * ira-color.c (assign_hard_reg): Use hard reg set intersection
18643 instead of ira_class_hard_reg_index for calculating conflicting
18646 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
18648 * cprop.c: Clean up hash table building.
18649 (reg_avail_info): Remove.
18650 (oprs_available_p): Remove.
18651 (record_last_reg_set_info): Remove.
18652 (record_last_set_info): Remove.
18653 (reg_available_p): New function.
18654 (gcse_constant_p): Do not treat unfolded conditions as constants.
18655 (make_set_regs_unavailable): New function.
18656 (hash_scan_set): Simplify with new reg_available_p.
18657 (compute_hash_table_work): Traverse insns stream only once.
18658 Do not compute reg_avail_info. Traverse insns in reverse order.
18659 Record implicit sets after recording explicit sets from the block.
18661 2011-03-31 Michael Matz <matz@suse.de>
18663 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
18665 2011-03-31 Anatoly Sokolov <aesok@post.ru>
18667 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
18668 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
18669 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18670 (h8300_mode_dependent_address_p): New function.
18671 (h8300_get_index): Make static.
18673 2011-03-31 Jeff Law <law@redhat.com>
18675 * reload1.c (elimination_effects): Fix typo in recent change.
18677 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
18678 typo potentially leading to null pointer dereference.
18680 * caller-save.c (new_saved_hard_reg): Eliminate return value.
18681 (setup_save_areas): Corresponding changes to avoid useless
18684 * jump.c (reversed_comparison_code_parts): Avoid successive return
18685 statements when REVERSE_CONDITION is defined.
18687 * expr.c (expand_assignment): Avoid useless assignments.
18688 (expand_expr_real_1): Likewise.
18689 (expand_expr_real_2): Avoid useless statements.
18691 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
18693 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
18695 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
18698 * stmt.c (expand_expr_stmt): Avoid useless assignment.
18700 2011-03-31 Joseph Myers <joseph@codesourcery.com>
18703 * doc/tm.texi.in (TARGET_VERSION): Remove.
18704 * doc/tm.texi: Regenerate.
18705 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
18706 * collect2.c (main): Don't use TARGET_VERSION.
18707 * mips-tdump.c (main): Don't use TARGET_VERSION.
18708 * mips-tfile.c (main): Don't use TARGET_VERSION.
18709 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
18710 * config/rs6000/vxworksae.h: Remove.
18711 * config/alpha/alpha.h (TARGET_VERSION): Remove.
18712 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
18713 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
18714 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
18715 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
18716 * config/arm/arm.h (TARGET_VERSION): Remove.
18717 * config/arm/coff.h (TARGET_VERSION): Remove.
18718 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
18719 * config/arm/elf.h (TARGET_VERSION): Remove.
18720 * config/arm/freebsd.h (TARGET_VERSION): Remove.
18721 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
18722 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
18723 * config/arm/pe.h (TARGET_VERSION): Remove.
18724 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
18725 * config/arm/semi.h (TARGET_VERSION): Remove.
18726 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
18727 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
18728 * config/arm/vxworks.h (TARGET_VERSION): Remove.
18729 * config/avr/avr.h (TARGET_VERSION): Remove.
18730 * config/bfin/bfin.h (TARGET_VERSION): Remove.
18731 * config/fr30/fr30.h (TARGET_VERSION): Remove.
18732 * config/frv/frv.h (TARGET_VERSION): Remove.
18733 * config/h8300/h8300.h (TARGET_VERSION): Remove.
18734 * config/i386/cygwin.h (TARGET_VERSION): Remove.
18735 * config/i386/darwin.h (TARGET_VERSION): Remove.
18736 * config/i386/darwin64.h (TARGET_VERSION): Remove.
18737 * config/i386/djgpp.h (TARGET_VERSION): Remove.
18738 * config/i386/freebsd.h (TARGET_VERSION): Remove.
18739 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
18740 * config/i386/gnu.h (TARGET_VERSION): Remove.
18741 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
18742 * config/i386/i386elf.h (TARGET_VERSION): Remove.
18743 * config/i386/linux.h (TARGET_VERSION): Remove.
18744 * config/i386/linux64.h (TARGET_VERSION): Remove.
18745 * config/i386/lynx.h (TARGET_VERSION): Remove.
18746 * config/i386/mingw32.h (TARGET_VERSION): Remove.
18747 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
18748 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
18749 * config/i386/netware.h (TARGET_VERSION): Remove.
18750 * config/i386/nto.h (TARGET_VERSION): Remove.
18751 * config/i386/openbsd.h (TARGET_VERSION): Remove.
18752 * config/i386/vxworks.h (TARGET_VERSION): Remove.
18753 * config/ia64/elf.h (TARGET_VERSION): Remove.
18754 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
18755 * config/ia64/hpux.h (TARGET_VERSION): Remove.
18756 * config/ia64/linux.h (TARGET_VERSION): Remove.
18757 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
18758 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
18759 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
18760 * config/lm32/lm32.h (TARGET_VERSION): Remove.
18761 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
18762 * config/m32c/m32c.h (TARGET_VERSION): Remove.
18763 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
18764 * config/m32r/m32r.h (TARGET_VERSION): Remove.
18765 * config/m68k/linux.h (TARGET_VERSION): Remove.
18766 * config/m68k/m68k.h (TARGET_VERSION): Remove.
18767 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
18768 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
18769 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
18770 * config/mep/mep.h (TARGET_VERSION): Remove.
18771 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
18772 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
18773 * config/mips/iris6.h (MACHINE_TYPE): Remove.
18774 * config/mips/linux.h (TARGET_VERSION): Remove.
18775 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
18776 * config/mips/vxworks.h (TARGET_VERSION): Remove.
18777 * config/mmix/mmix.h (TARGET_VERSION): Remove.
18778 * config/mn10300/linux.h (TARGET_VERSION): Remove.
18779 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
18780 * config/pa/pa.h (TARGET_VERSION): Remove.
18781 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
18782 * config/picochip/picochip.h (TARGET_VERSION): Remove.
18783 * config/rs6000/aix.h (TARGET_VERSION): Remove.
18784 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
18785 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
18786 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
18787 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
18788 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
18789 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
18790 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
18791 * config/rs6000/linux.h (TARGET_VERSION): Remove.
18792 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
18793 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
18794 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
18795 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
18796 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
18797 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
18798 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
18799 * config/s390/linux.h (TARGET_VERSION): Remove.
18800 * config/s390/s390.h (TARGET_VERSION): Remove.
18801 * config/s390/tpf.h (TARGET_VERSION): Remove.
18802 * config/score/score.h (TARGET_VERSION): Remove.
18803 * config/sh/linux.h (TARGET_VERSION): Remove.
18804 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
18805 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
18806 * config/sh/sh.h (TARGET_VERSION): Remove.
18807 * config/sh/sh64.h (TARGET_VERSION): Remove.
18808 * config/sh/superh.h (TARGET_VERSION): Remove.
18809 * config/sh/vxworks.h (TARGET_VERSION): Remove.
18810 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
18811 * config/sparc/linux.h (TARGET_VERSION): Remove.
18812 * config/sparc/linux64.h (TARGET_VERSION): Remove.
18813 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
18814 TARGET_NAME32, TARGET_NAME): Remove.
18815 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
18816 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
18817 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
18818 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
18819 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
18820 * config/spu/spu.h (TARGET_VERSION): Remove.
18821 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
18822 * config/v850/v850.h (TARGET_VERSION): Remove.
18823 * config/vax/linux.h (TARGET_VERSION): Remove.
18824 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
18825 * config/xtensa/elf.h (TARGET_VERSION): Remove.
18826 * config/xtensa/linux.h (TARGET_VERSION): Remove.
18828 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
18831 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
18832 frame-related from frame-unrelated adjustments to the stack pointer.
18834 2011-03-31 Jakub Jelinek <jakub@redhat.com>
18836 * common.opt (fdebug-types-section): Move earlier.
18837 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
18839 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
18841 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
18844 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
18846 * tree.h (CASE_CHAIN): Define.
18847 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
18848 (gimple_redirect_edge_and_branch): Likewise.
18850 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
18852 PR middle-end/48367
18853 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
18856 2011-03-30 Jeff Law <law@redhat.com>
18858 * PR bootstrap/48371
18859 * reload1.c (reload): Fix botch in last change.
18861 * reload.h (struct reload): Fix typo introduced in last change.
18863 2011-03-30 Joseph Myers <joseph@codesourcery.com>
18865 * config/arm/arm.opt (mhard-float, msoft-float): Mark
18866 Undocumented. Remove help text.
18867 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
18870 2011-03-30 Joseph Myers <joseph@codesourcery.com>
18872 * doc/options.texi (NegativeAlias): Document.
18873 (Alias): Mention NegativeAlias.
18874 * opt-functions.awk: Handle NegativeAlias.
18875 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
18876 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
18877 * opts.h (CL_NEGATIVE_ALIAS): Define.
18878 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
18879 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
18881 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
18883 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
18884 mno-spe and mno-isel instead of mspe=no and -misel=no.
18886 2011-03-29 Mark Wielaard <mjw@redhat.com>
18888 * common.opt (fdebug-types-section): New flag.
18889 * doc/invoke.texi: Document new -fno-debug-types-section flag.
18890 * dwarf2out.c (use_debug_types): New define.
18891 (struct die_struct): Mark die_id with GTY desc use_debug_types.
18892 (print_die): Guard output of type unit signatures using
18894 (build_abbrev_table): Replace assert of dwarf_version >= 4
18895 with assert on use_debug_types.
18896 (size_of_die): Likewise.
18897 (unmark_dies): Likewise.
18898 (value_format): Decide AT_ref_external form on use_debug_types.
18899 (output_die): Replace dwarf_version version check guard with
18900 use_debug_types where appropriate.
18901 (modified_type_die): Likewise.
18902 (gen_reference_type_die): Likewise.
18903 (dwarf2out_start_source_file): Likewise.
18904 (dwarf2out_end_source_file): Likewise.
18905 (prune_unused_types_walk_attribs): Likewise.
18906 (dwarf2out_finish): Likewise.
18908 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
18910 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
18912 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18914 PR rtl-optimization/48332
18915 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
18916 mode of input operand N and modeN to its actual mode.
18918 2011-03-30 Jeff Law <law@redhat.com>
18920 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
18921 define accessor macro.
18922 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
18923 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
18924 (reg_equiv_init): Likewise.
18925 (reg_equivs_size): New variable.
18926 (reg_equiv_init_size): Remove.
18927 (allocate_initial_values): Move prototype to here from....
18928 * integrate.h (allocate_initial_values): Remove prototype.
18929 * integrate.c: Include reload.h.
18930 (allocate_initial_values): Corresponding changes.
18931 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
18932 (fix_reg_equiv_init, no_equiv): Corresponding changes.
18933 (update_equiv_regs): Corresponding changes.
18934 (ira): Corresponding changes.
18935 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
18936 (push_secondary_reload): Corresponding changes.
18937 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
18938 (make_memloc, find_reloads_address): Corresponding changes.
18939 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
18940 (find_reloads_address_1): Corresponding changes.
18941 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
18942 (refers_to_regno_for_reload_p): Corresponding changes.
18943 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
18944 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
18945 * reload1.c: Include ggc.h.
18946 (grow_reg_equivs): New function.
18947 (replace_pseudos_in, reload): Corresponding changes.
18948 (calculate_needs_all_insns, alter_regs): Corresponding changes.
18949 (eliminate_regs_1, elimination_effects): Corresponding changes.
18950 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
18951 (delete_output_reload): Likewise.
18952 * caller-save.c (mark_referenced_regs): Corresponding changes.
18953 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
18954 * frv/predicates.md (frv_load_operand): Corresponding changes.
18955 * microblaze/microblaze.c (double_memory_operand): Corresponding
18957 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
18958 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
18959 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
18960 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
18961 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
18963 * pa/pa.c (emit_move_sequence): Corresponding changes.
18964 * vax/vax.c (nonindexed_address_p): Corresponding changes.
18966 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18969 * config/arm/arm.c (coproc_secondary_reload_class): Handle
18970 structure modes. Don't check neon_vector_mem_operand for
18971 vector or structure modes.
18973 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18974 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18977 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
18978 operand 1 and reshuffle the operands to match.
18979 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
18981 2011-03-30 Christian Schüler <cschueler@gmx.de>
18984 * config/c.opt (F): Added 'Driver' to -F option.
18987 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
18989 * config/darwin.opt: Added '-arch' option.
18991 2011-03-30 Nick Clifton <nickc@redhat.com>
18993 * config/rx/rx.md: Add peepholes and patterns to combine
18994 extending loads and simple arithmetic instructions.
18995 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
18996 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
18997 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
18998 modes to use pre-decrement and post-increment addressing.
18999 (rx_is_restricted_memory_address): Add range checking of REG+INT
19001 (rx_print_operand): Add support for %Q. Fix handling of %Q.
19002 (rx_memory_move_cost): Adjust cost of stores.
19003 (rx_adjust_insn_length): New function.
19005 2011-03-30 Jakub Jelinek <jakub@redhat.com>
19008 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
19009 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
19010 matching arg00/arg01 types.
19012 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
19014 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
19015 last_location to UNKNOWN_LOCATION.
19017 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
19020 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
19023 2011-03-30 Joseph Myers <joseph@codesourcery.com>
19024 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19027 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
19028 Init(PROCESSOR_V7).
19029 (sparc_cpu): Likewise.
19030 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
19033 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
19036 PR middle-end/48342
19037 PR rtl-optimization/48345
19038 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
19039 hard regs for given mode from profitable regs when doing secondary
19042 2011-03-29 Jeff Law <law@redhat.com>
19045 * tree-ssa-threadupdate.c (struct redirection_data): Remove
19046 do_not_duplicate field.
19047 (lookup_redirection_data): Corresponding changes.
19048 (create_duplicates): Always create a template block.
19049 (redirect_edges): Remove code which reused the original block
19050 when it was going to become unreachable code.
19051 (thread_block): Don't set do_not_duplicate field.
19053 2011-03-29 Joseph Myers <joseph@codesourcery.com>
19055 * lto-opts.c (register_user_option_p, lto_register_user_option):
19056 Make type argument unsigned.
19057 * lto-streamer.h (lto_register_user_option): Make type argument
19059 * opth-gen.awk: Make CL_* macros unsigned.
19060 * opts-common.c (find_opt): Make lang_mask argument unsigned.
19061 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
19062 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
19063 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
19064 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
19065 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
19066 (find_opt): Make lang_mask argument unsigned.
19068 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
19070 PR rtl-optimization/48331
19071 PR rtl-optimization/48334
19072 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
19073 for any used algorithm.
19075 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
19077 * ira-conflicts.c (build_object_conflicts): Add unused attribute
19080 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
19082 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
19083 (alpha_option_override): Don't set alpha_sr_alias_set.
19084 (emit_frame_store_1): Use gen_frame_mem rather than calling
19086 (alpha_expand_epilogue): Ditto.
19088 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
19090 PR tree-optimization/48290
19091 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
19092 vectorization, check that relevant phis in the basic block after
19093 the inner loop are really inner loop's exit phis.
19095 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
19098 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
19099 (cached_dw_loc_list_def): New structure.
19100 (cached_dw_loc_list): New typedef.
19101 (cached_dw_loc_list_table): New variable.
19102 (cached_dw_loc_list_table_hash): New function.
19103 (cached_dw_loc_list_table_eq): Likewise.
19104 (add_location_or_const_value_attribute): Take a bool cache_p.
19105 Cache the list when the parameter is true.
19106 (gen_formal_parameter_die): Update caller.
19107 (gen_variable_die): Likewise.
19108 (dwarf2out_finish): Likewise.
19109 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
19110 while generating debug info for the decl.
19111 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
19112 (dwarf2out_init): Initialize cached_dw_loc_list_table.
19113 (resolve_addr): Cache the result of resolving a chain of
19116 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
19118 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
19119 conflict object hard regset nodes have intersecting hard reg sets.
19121 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
19122 after regstat_init_n_sets_and_refs.
19124 * ira.c: Add more comments at the top.
19125 (setup_stack_reg_pressure_class, setup_pressure_classes):
19126 Add comments how we compute the register pressure classes.
19127 (setup_allocno_and_important_classes): Add more comments.
19128 (setup_class_translate_array, reorder_important_classes)
19129 (setup_reg_class_relations): Add comments.
19131 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
19134 * ira-color.c: Add 2011 to the Copyright line.
19135 (assign_hard_reg): Add more comments.
19136 (improve_allocation): Ditto.
19138 * ira-costs.c: Add 2011 to the Copyright line.
19139 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
19141 (setup_regno_cost_classes_by_mode): Ditto.
19143 Initial patches from ira-improv branch:
19145 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
19147 * ira-build.c (ira_create_object): Remove initialization of
19148 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
19149 (ira_create_allocno): Remove initialization of
19150 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
19151 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
19152 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
19153 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
19154 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
19155 Initialize ALLOCNO_ADD_DATA.
19156 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
19157 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
19159 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
19160 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
19162 * ira.c (ira_reallocate): Remove.
19163 (setup_pressure_classes): Call
19164 ira_init_register_move_cost_if_necessary. Use
19165 ira_register_move_cost instead of ira_get_register_move_cost.
19166 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
19167 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
19169 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
19170 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
19171 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
19172 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
19173 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
19174 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
19176 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
19177 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
19178 (struct allocno_color_data): New.
19179 (allocno_color_data_t): New typedef.
19180 (allocno_color_data): New definition.
19181 (ALLOCNO_COLOR_DATA): New macro.
19182 (struct object_color_data): New.
19183 (object_color_data_t): New typedef.
19184 (object_color_data): New definition.
19185 (OBJECT_COLOR_DATA): New macro.
19186 (update_copy_costs, calculate_allocno_spill_cost): Call
19187 ira_init_register_move_cost_if_necessary. Use
19188 ira_register_move_cost instead of ira_get_register_move_cost.
19189 (move_spill_restore, update_curr_costs): Ditto.
19190 (allocno_spill_priority): Make it inline.
19191 (color_pass): Allocate and free allocno_color_dat and object_color_data.
19192 (struct coalesce_data, coalesce_data_t): New.
19193 (allocno_coalesce_data): New definition.
19194 (ALLOCNO_COALESCE_DATA): New macro.
19195 (merge_allocnos, coalesced_allocno_conflict_p): Use
19196 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
19197 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
19198 (coalesce_allocnos): Ditto.
19199 (setup_coalesced_allocno_costs_and_nums): Ditto.
19200 (collect_spilled_coalesced_allocnos): Ditto.
19201 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
19202 (setup_slot_coalesced_allocno_live_ranges): Ditto.
19203 (coalesce_spill_slots): Ditto.
19204 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
19205 free allocno_coalesce_data.
19207 * ira-conflicts.c: Fix formatting.
19208 (process_regs_for_copy): Call
19209 ira_init_register_move_cost_if_necessary. Use
19210 ira_register_move_cost instead of ira_get_register_move_cost.
19211 (build_object_conflicts): Optimize.
19213 * ira-costs.c (record_reg_classes): Optimize. Call
19214 ira_init_register_move_cost_if_necessary. Use
19215 ira_register_move_cost, ira_may_move_in_cost, and
19216 ira_may_move_out_cost instead of ira_get_register_move_cost and
19217 ira_get_may_move_cost.
19218 (record_address_regs): Ditto.
19219 (scan_one_insn): Optimize.
19220 (find_costs_and_classes): Optimize.
19221 (process_bb_node_for_hard_reg_moves): Call
19222 ira_init_register_move_cost_if_necessary. Use
19223 ira_register_move_cost instead of ira_get_register_move_cost.
19225 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
19226 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
19227 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
19228 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
19230 (ira_initiate_emit_data, ira_finish_emit_data)
19231 (create_new_allocno): New functions.
19232 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
19233 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
19234 Use ira_register_move_cost instead of ira_get_register_move_cost.
19236 * ira-int.h: Fix some comments.
19237 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
19238 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
19239 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
19240 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
19242 (struct ira_allocno): Make mode and aclass a bitfield. Move other
19243 bitfield after mode. Make hard_regno a short int. Make
19244 hard_regno short. Remove first_coalesced_allocno and
19245 next_coalesced_allocno. Move mem_optimized_dest_p,
19246 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
19247 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
19248 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
19249 temp, colorable_p. Add new member add_data.
19250 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
19251 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
19252 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
19253 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
19254 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
19255 (ALLOCNO_ADD_DATA): New macro.
19256 (ira_emit_data_t): New typedef.
19257 (struct ira_emit_data): New. Move mem_optimized_dest_p,
19258 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
19259 from struct ira_allocno.
19260 (ALLOCNO_EMIT_DATA): New macro.
19261 (ira_allocno_emit_data, allocno_emit_reg): New.
19262 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
19263 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
19264 (OBJECT_ADD_DATA): New macro.
19265 (ira_reallocate): Remove.
19266 (ira_initiate_emit_data, ira_finish_emit_data): New.
19267 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
19268 (ira_init_register_move_cost_if_necessary): New.
19269 (ira_object_conflict_iter_next): Merge into
19270 ira_object_conflict_iter_cond.
19271 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
19273 * ira-live.c (process_single_reg_class_operands): Call
19274 ira_init_register_move_cost_if_necessary. Use
19275 ira_register_move_cost instead of ira_get_register_move_cost.
19277 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
19279 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
19281 * ira-costs.c: Fix formatting.
19282 (cost_classes, cost_classes_num): Remove.
19283 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
19284 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
19285 (cost_classes_del, cost_classes_htab): New.
19286 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
19287 (initiate_regno_cost_classes, setup_cost_classes): New.
19288 (setup_regno_cost_classes_by_aclass): New.
19289 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
19290 (record_reg_classes): Use regno_cost_classes instead of
19291 cost_classes. Move checking opposite operand up.
19292 (record_address_regs): Use regno_cost_classes
19293 instead of cost_classes.
19294 (scan_one_insn): Ditto. Use always general register.
19295 (print_allocno_costs): Use regno_cost_classes instead of
19297 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
19298 (find_costs_and_classes): Set up cost classes for each registers.
19299 Use also their mode for this. Use regno_cost_classes instead of
19301 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
19303 (free_ira_costs, ira_init_costs): Don't use cost_classes.
19304 (ira_costs, ira_set_pseudo_classes): Call
19305 initiate_regno_cost_classes and finish_regno_cost_classes.
19307 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
19309 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
19311 * target.def (ira_cover_classes): Remove.
19313 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
19315 * doc/tm.texi.in: Ditto.
19317 * ira-conflicts.c: Remove mentioning cover classes from the file.
19318 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
19319 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
19321 * targhooks.c (default_ira_cover_classes): Remove.
19323 * targhooks.h (default_ira_cover_classes): Ditto.
19325 * haifa-sched.c: Remove mentioning cover classes from the file.
19326 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
19327 ira_pressure_classes and ira_pressure_classes_num instead of
19328 ira_reg_class_cover_size and ira_reg_class_cover. Use
19329 sched_regno_pressure_class instead of sched_regno_cover_class.
19330 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
19331 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
19333 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
19334 classes from the file.
19335 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
19336 (struct object_hard_regs, struct object_hard_regs_node): New.
19337 (struct ira_object): New members profitable_hard_regs,
19338 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
19339 (struct ira_allocno): Rename cover_class to aclass. Rename
19340 cover_class_cost and updated_cover_class_cost to class_cost and
19341 updated_class_cost. Remove splay_removed_p and
19342 left_conflict_size. Add new members colorable_p.
19343 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
19344 (ALLOCNO_COLORABLE_P): New macro.
19345 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
19346 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
19347 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
19348 (OBJECT_...): Rename parameter C to O.
19349 (OBJECT_PROFITABLE_HARD_REGS): New macro.
19350 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
19351 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
19352 (struct target_ira_int): New members x_ira_max_memory_move_cost,
19353 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
19354 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
19355 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
19356 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
19357 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
19358 x_ira_reg_class_subunion.
19359 (ira_max_memory_move_cost, ira_max_register_move_cost)
19360 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
19361 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
19362 (ira_important_class_nums, ira_reg_class_superunion): New macros.
19363 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
19364 (ira_reg_class_union): Rename to ira_reg_class_subunion.
19365 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
19366 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
19367 (ira_tune_allocno_costs_and_cover_classes): Rename to
19368 ira_tune_allocno_costs.
19369 (ira_debug_hard_regs_forest): New.
19370 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
19371 (ira_object_conflict_iter_next): Fix comments.
19372 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
19373 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
19374 cover_class to aclass.
19375 (ira_allocate_and_accumulate_costs): Ditto.
19376 (ira_allocate_and_set_or_copy_costs): Ditto.
19378 * opts.c (decode_options): Remove ira_cover_class check.
19380 * ira-color.c: Remove mentioning cover classes from the file. Use
19381 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
19382 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
19383 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
19384 (splay-tree.h): Remove include.
19385 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
19386 before copy_freq_compare_func.
19387 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
19388 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
19390 (hard_regs_roots, hard_regs_node_vec): Ditto.
19391 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
19392 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
19393 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
19394 (create_new_object_hard_regs_node): Ditto.
19395 (add_new_object_hard_regs_node_to_forest): Ditto.
19396 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
19397 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
19399 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
19400 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
19401 (remove_unused_object_hard_regs_nodes): Ditto.
19402 (enumerate_object_hard_regs_nodes): Ditto.
19403 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
19404 (object_hard_regs_subnode_t): Ditto.
19405 (struct object_hard_regs_subnode): Ditto.
19406 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
19407 (setup_object_hard_regs_subnode_index): Ditto.
19408 (get_object_hard_regs_subnodes_num): Ditto.
19409 (form_object_hard_regs_nodes_forest): Ditto.
19410 (finish_object_hard_regs_nodes_tree): Ditto.
19411 (finish_object_hard_regs_nodes_forest): Ditto.
19412 (allocnos_have_intersected_live_ranges_p): Rename to
19413 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
19414 (pseudos_have_intersected_live_ranges_p): Rename to
19415 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
19416 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
19417 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
19418 (update_copy_costs): Remove assert. Skip cost update if the hard
19419 reg does not belong the class.
19420 (assign_hard_reg): Process only profitable hard regs.
19421 (uncolorable_allocnos_num): Make it scalar.
19422 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
19423 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
19424 and ira_reg_class_max_nregs.
19425 (bucket_allocno_compare_func): Check frequency first.
19426 (sort_bucket): Add compare function as a parameter.
19427 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
19428 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
19429 (push_allocno_to_stack): Rewrite for checking new allocno
19431 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
19432 (push_only_colorable): Pass new parameter to sort_bucket.
19433 (push_allocno_to_spill): Remove.
19434 (allocno_spill_priority_compare): Make it inline and rewrite.
19435 (splay_tree_allocate, splay_tree_free): Remove.
19436 (allocno_spill_sort_compare): New function.
19437 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
19438 build and use splay tree. Choose first allocno in uncolorable
19439 allocno bucket to spill. Remove setting spill cost.
19440 (all_conflicting_hard_regs): Remove.
19441 (setup_allocno_available_regs_num): Check only profitable hard
19442 regs. Print info about hard regs nodes.
19443 (setup_allocno_left_conflicts_size): Remove.
19444 (put_allocno_into_bucket): Don't call
19445 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
19446 (improve_allocation): New.
19447 (color_allocnos): Call setup_profitable_hard_regs,
19448 form_object_hard_regs_nodes_forest, improve_allocation,
19449 finish_object_hard_regs_nodes_forest. Setup spill cost.
19450 (print_loop_title): Use pressure classes.
19451 (color_allocnso): Ditto.
19452 (do_coloring): Remove allocation and freeing splay_tree_node_pool
19453 and allocnos_for_spilling.
19454 (ira_sort_regnos_for_alter_reg): Don't setup members
19455 {first,next}_coalesced_allocno.
19456 (color): Remove allocating and freeing removed_splay_allocno_vec.
19457 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
19458 prohibited_class_mode_regs.
19460 * ira-lives.c: Remove mentioning cover classes from the file. Fix
19462 (update_allocno_pressure_excess_length): Use pressure classes.
19463 (inc_register_pressure, dec_register_pressure): Check for pressure
19465 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
19466 pressure class. Use ira_reg_class_nregs instead of
19467 ira_reg_class_max_nregs.
19468 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
19469 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
19470 (single_reg_class): Use ira_reg_class_nregs instead of
19471 ira_reg_class_max_nregs.
19472 (process_bb_node_lives): Use pressure classes.
19474 * ira-emit.c: Remove mentioning cover classes from the file. Use
19475 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
19476 (change_loop): Use pressure classes.
19477 (modify_move_list): Call ira_set_allocno_class instead of
19478 ira_set_allocno_cover_class.
19480 * ira-build.c: Remove mentioning cover classes from the file. Use
19481 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
19482 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
19483 ALLOCNO_UPDATED_CLASS_COST instead of
19484 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
19485 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
19486 (ira_create_allocno): Remove initialization of
19487 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
19488 ALLOCNO_COLORABLE_P.
19489 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
19490 Update conflict regs for the objects.
19491 (create_cap_allocno): Remove assert. Don't propagate
19492 ALLOCNO_AVAILABLE_REGS_NUM.
19493 (ira_free_allocno_costs): New function.
19494 (finish_allocno): Change a part of code into call of
19495 ira_free_allocno_costs.
19496 (low_pressure_loop_node_p): Use pressure classes.
19497 (object_range_compare_func): Don't compare classes.
19498 (setup_min_max_conflict_allocno_ids): Ditto.
19500 * loop-invariant.c: Remove mentioning cover classes from the file.
19501 Use ira_pressure_classes and ira_pressure_classes_num instead of
19502 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
19503 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
19504 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
19505 Use reg_allocno_class instead of reg_cover_class.
19506 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
19507 STACK_REG_COVER_CLASS.
19508 (get_regno_cover_class): Rename to get_regno_pressure_class.
19509 (move_loop_invariants): Initialize and finalize regstat.
19511 * ira.c: Remove mentioning cover classes from the file. Add
19512 comments about coloring without cover classes. Use ALLOCNO_CLASS
19513 instead of ALLOCNO_COVER_CLASS. Fix formatting.
19514 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
19515 setup_class_subset_and_memory_move_costs.
19516 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
19517 (setup_cover_and_important_classes): Rename to
19518 setup_allocno_and_important_classes.
19519 (setup_class_translate_array): New.
19520 (setup_class_translate): Call it for allocno and pressure classes.
19521 (cover_class_order): Rename to allocno_class_order.
19522 (comp_reg_classes_func): Use ira_allocno_class_translate instead
19523 of ira_class_translate.
19524 (reorder_important_classes): Set up ira_important_class_nums.
19525 (setup_reg_class_relations): Set up ira_reg_class_superunion.
19526 (print_class_cover): Rename to print_classes. Add parameter.
19527 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
19528 Print pressure classes too.
19529 (find_reg_class_closure): Rename to find_reg_classes. Don't call
19530 setup_reg_subclasses.
19531 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
19532 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
19533 (setup_prohibited_class_mode_regs): Use
19534 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
19535 (clarify_prohibited_class_mode_regs): New function.
19536 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
19537 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
19538 (ira_init_once): Initialize them.
19539 (free_register_move_costs): Process them.
19540 (ira_init): Move calls of find_reg_classes and
19541 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
19542 Call clarify_prohibited_class_mode_regs.
19543 (ira_no_alloc_reg): Remove.
19544 (too_high_register_pressure_p): Use pressure classes.
19546 * sched-deps.c: Remove mentioning cover classes from the file.
19547 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
19548 ira_pressure_classes and ira_pressure_classes_num instead of
19549 ira_reg_class_cover_size and ira_reg_class_cover.
19550 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
19551 sched_regno_pressure_class instead of sched_regno_cover_class.
19552 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
19553 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
19555 * ira.h: Add 2010 to Copyright.
19556 (ira_no_alloc_reg): Remove external.
19557 (struct target_ira): Rename x_ira_hard_regno_cover_class,
19558 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
19559 x_ira_class_translate to x_ira_hard_regno_allocno_class,
19560 x_ira_allocno_classes_num, x_ira_allocno_classes, and
19561 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
19562 x_ira_pressure_classes, x_ira_pressure_class_translate, and
19563 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
19564 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
19565 x_ira_no_alloc_regs.
19566 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
19567 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
19568 ira_allocno_classes_num and ira_allocno_classes.
19569 (ira_class_translate): Rename to ira_allocno_class_translate.
19570 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
19571 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
19572 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
19573 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
19574 (ira_no_alloc_regs): New.
19576 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
19577 classes from the file. Use ALLOCNO_CLASS instead of
19578 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
19579 ALLOCNO_COVER_CLASS_COST.
19580 (regno_cover_class): Rename to regno_aclass.
19581 (record_reg_classes): Use ira_reg_class_subunion instead of
19582 ira_reg_class_union.
19583 (record_address_regs): Check overflow.
19584 (scan_one_insn): Ditto.
19585 (print_allocno_costs): Print total mem cost fore regional allocation.
19586 (print_pseudo_costs): Use REG_N_REFS.
19587 (find_costs_and_classes): Use classes intersected with them on the
19588 1st pass. Check overflow. Use ira_reg_class_subunion instead of
19589 ira_reg_class_union. Use ira_allocno_class_translate and
19590 regno_aclass instead of ira_class_translate and regno_cover_class.
19591 Modify code for finding regno_aclass. Setup preferred classes for
19593 (setup_allocno_cover_class_and_costs): Rename to
19594 setup_allocno_class_and_costs. Use regno_aclass instead of
19595 regno_cover_class. Use ira_set_allocno_class instead of
19596 ira_set_allocno_cover_class.
19597 (init_costs, finish_costs): Use regno_aclass instead of
19599 (ira_costs): Use setup_allocno_class_and_costs instead of
19600 setup_allocno_cover_class_and_costs.
19601 (ira_tune_allocno_costs_and_cover_classes): Rename to
19602 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
19603 by processing objects. Use ira_reg_class_max_nregs instead of
19604 ira_reg_class_nregs.
19606 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
19608 * sched-int.h: Remove mentioning cover classes from the file.
19609 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
19611 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
19612 classes from the file.
19613 (struct reg_pref): Rename coverclass into allocnoclass.
19614 (reg_cover_class): Rename to reg_allocno_class.
19616 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
19618 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
19620 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
19622 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
19624 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
19626 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
19628 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
19630 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
19632 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
19634 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
19636 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
19637 (i386_ira_cover_classes): Ditto.
19639 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
19641 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
19643 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
19645 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
19647 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
19649 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
19651 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
19652 (mips_ira_cover_classes): Ditto.
19654 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
19656 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
19658 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
19660 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
19662 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
19664 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
19665 (IRA_COVER_CLASSES_VSX): Ditto.
19667 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
19668 (rs6000_ira_cover_classes): Ditto.
19670 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
19672 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
19674 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
19676 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
19678 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
19680 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
19682 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
19684 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
19686 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
19688 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
19690 2011-03-29 Jakub Jelinek <jakub@redhat.com>
19693 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
19694 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
19695 dw_fde_unlikely_section_end_label, cold_in_std_section,
19696 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
19697 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
19699 (output_fde): Use dw_fde_second_{begin,end} if second is
19700 true, otherwise dw_fde_{begin,end}.
19701 (output_call_frame_info): Test dw_fde_second_begin != NULL
19702 instead of dw_fde_switched_sections.
19703 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
19704 fields, initialize new fields. Initialize in_std_section
19705 unconditionally from the first partition.
19706 (dwarf2out_end_epilogue): Don't override dw_fde_end when
19707 dw_fde_second_begin is non-NULL.
19708 (dwarf2out_switch_text_section): Stop initializing removed
19709 dw_fde_struct fields, initialize new fields, initialize
19710 also dw_fde_end here. Set dw_fde_switch_cfi even when
19711 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
19712 (struct var_loc_list_def): Add last_before_switch field.
19713 (arange_table, arange_table_allocated, arange_table_in_use,
19714 ARANGE_TABLE_INCREMENT, add_arange): Removed.
19715 (size_of_aranges): Count !in_std_section and !second_in_std_section
19716 hunks in fdes, instead of looking at arange_table_in_use.
19717 (output_aranges): Add aranges_length argument, don't call
19718 size_of_aranges here. Instead of using aranges_table*
19719 emit ranges for fdes when !in_std_section resp.
19720 !second_in_std_section.
19721 (dw_loc_list): Break ranges crossing section switch.
19722 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
19723 use dw_fde_second_end instead of dw_fde_end as end of last range.
19724 (gen_subprogram_die): Don't call add_arange. Use
19725 dw_fde_{begin,end} for first partition and if switched
19726 section dw_fde_second_{begin,end} for the second.
19727 (var_location_switch_text_section_1,
19728 var_location_switch_text_section): New functions.
19729 (dwarf2out_begin_function): Initialize cold_text_section even
19730 when function_section () isn't text_section.
19731 (prune_unused_types): Don't walk arange_table.
19732 (dwarf2out_finish): Don't needlessly test
19733 flag_reorder_blocks_and_partition when testing cold_text_section_used.
19734 If info_section_emitted, call size_of_aranges and if it indicates
19735 non-empty .debug_aranges, call output_aranges with the computed
19736 size. Stop using removed dw_fde_struct fields, use
19737 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
19741 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
19742 create ENTRY_VALUE if incoming or address of incoming's MEM
19744 * dwarf2out.c (mem_loc_descriptor): Don't emit
19745 DW_OP_GNU_entry_value of DW_OP_fbreg.
19746 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
19747 on ENTRY_VALUE is able to find the canonical parameter VALUE.
19748 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
19749 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
19751 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
19752 is a REG_P or MEM_P with REG_P address, compute hash directly
19753 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
19754 (preserve_only_constants): Don't clear VALUES forwaring
19755 ENTRY_VALUE to some other VALUE.
19757 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
19759 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
19760 instead of GEN_INT.
19762 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
19764 * cfgexpand.c (expand_gimple_cond): Always set the source location and
19765 block before expanding the statement.
19766 (expand_gimple_stmt_1): Likewise. Set them here...
19767 (expand_gimple_stmt): ...and not here. Tidy.
19768 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
19771 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
19773 * Makefile.in: New rule for cprop.o.
19774 * gcse.c: Move constant/copy propagation to cprop.c.
19775 (compute_local_properties): Only handle expression tables.
19776 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
19777 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
19778 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
19779 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
19780 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
19781 compute_cprop_data, find_used_regs, try_replace_reg,
19782 find_avail_set, cprop_jump, constprop_register, cprop_insn,
19783 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
19784 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
19785 find_bypass_set, reg_killed_on_edge, bypass_block,
19786 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
19787 execute_rtl_cprop, pass_rtl_cprop): Move to...
19788 * cprop.c: ...here. New file, constant/copy propagation for RTL
19789 moved from gcse.c to here with minor cleanups in duplicated code.
19791 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
19793 * config/i386/i386.c (flag_opts): Fix a typo in
19794 -mavx256-split-unaligned-store.
19796 2011-03-28 Anatoly Sokolov <aesok@post.ru>
19798 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
19799 LIBCALL_VALUE): Remove macros.
19800 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19801 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19802 (h8300_function_value, h8300_libcall_value,
19803 h8300_function_value_regno_p): New functions.
19805 2011-03-28 Anatoly Sokolov <aesok@post.ru>
19807 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
19809 2011-03-28 Jeff Law <law@redhat.com>
19811 * tree-ssa-threadupdate.c (redirect_edges): Call
19812 create_edge_and_update_destination_phis as needed.
19813 (create_edge_and_update_destination_phis): Accept new BB argument.
19814 All callers updated.
19815 (thread_block): Do not update the profile when threading around
19816 intermediate blocks.
19817 (thread_single_edge): Likewise.
19818 (determine_bb_domination_status): If BB is not a successor of the
19819 loop header, return NONDOMINATING.
19820 (register_jump_thread): Note when we register a jump thread around
19821 an intermediate block.
19822 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
19823 (thread_across_edge): Use it.
19825 2011-03-28 Tristan Gingold <gingold@adacore.com>
19827 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
19828 when for_return is 2.
19830 2011-03-28 Jeff Law <law@redhat.com>
19832 * var-tracking.c (canonicalize_values_mark): Delete unused
19834 (canonicalize_values_star, set_variable_part): Likewise.
19835 (clobber_variable_part, delete_variable_part): Likewise.
19837 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
19839 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
19841 2011-03-28 Martin Jambor <mjambor@suse.cz>
19843 * tree-inline.c (expand_call_inline): Do not check that destination
19845 (optimize_inline_calls): Assert that destination node is analyzed.
19846 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
19847 not call tree_lowering_passes.
19848 * cgraph.h (cgraph_analyze_function): Declare.
19849 * cgraphunit.c (cgraph_analyze_function): Make public.
19851 2011-03-28 Joseph Myers <joseph@codesourcery.com>
19853 * config/sparc/sparc-opts.h: New.
19854 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
19855 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
19856 (sparc_option_override): Store processor_type enumeration rather
19857 than string in cpu_default. Remove name and enumeration from
19858 cpu_table. Directly default -mcpu then default -mtune from -mcpu
19859 without using sparc_select. Use target_flags_explicit instead of
19861 * config/sparc/sparc.h (enum processor_type): Move to
19863 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
19864 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
19865 HeaderInclude entry.
19866 (mcpu=, mtune=): Use Var and Enum.
19867 (sparc_processor_type): New Enum and EnumValue entries.
19869 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19870 Iain Sandoe <iains@gcc.gnu.org>
19873 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
19875 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
19877 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
19878 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
19879 Insert new statements at it in lieu of STMT.
19880 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
19881 * tree-vect-stmts.c (vectorizable_store): Likewise.
19882 (vectorizable_load): Likewise.
19884 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
19886 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
19891 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
19893 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
19894 unaligned 256bit load/store.
19895 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
19896 (*avx_movdqu<avxmodesuffix>): Likewise.
19898 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19901 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
19902 * config/pa/pa.md (iordi3): Use new predicate in expander.
19903 (iorsi3): Likewise.
19905 2011-03-27 Anatoly Sokolov <aesok@post.ru>
19907 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
19908 FUNCTION_VALUE_REGNO_P): Remove macros.
19909 * config/mips/mips-protos.h (mips_function_value): Remove.
19910 * config/mips/mips.c (mips_function_value): Rename to...
19911 (mips_function_value_1): ... this. Make static. Handle receiving
19912 the function type in 'fn_decl_or_type' argument.
19913 (mips_function_value, mips_libcall_value,
19914 mips_function_value_regno_p): New function.
19915 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19916 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19918 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
19920 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
19921 and -mavx256-split-unaligned-store.
19922 (ix86_option_override_internal): Split 32-byte AVX unaligned
19923 load/store by default.
19924 (ix86_avx256_split_vector_move_misalign): New.
19925 (ix86_expand_vector_move_misalign): Use it.
19927 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
19928 -mavx256-split-unaligned-store.
19930 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
19931 256bit load/store. Generate unaligned store on misaligned memory
19933 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
19935 (*avx_movdqu<avxmodesuffix>): Likewise.
19937 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
19938 -mavx256-split-unaligned-store.
19940 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
19943 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
19946 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
19948 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
19949 opno arguments with an expand_operand. Use create_input_operand.
19950 (mips_prepare_builtin_target): Delete.
19951 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
19953 (mips_expand_builtin_direct): Use create_output_operand and
19954 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
19955 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
19956 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
19958 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
19960 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
19962 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
19964 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
19966 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
19967 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
19968 basic blocks and call commit_edge_insertions directly.
19969 (fixup_abnormal_edges): Move from here to...
19970 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
19971 on the edges and return whether some have actually been inserted.
19972 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
19975 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
19977 PR rtl-optimization/48144
19978 * sel-sched-ir.c (merge_history_vect): Factor out from ...
19979 (merge_expr_data): ... here.
19980 (av_set_intersect): Rename to av_set_code_motion_filter.
19981 Update all callers. Call merge_history_vect when an expression
19982 is found in both sets.
19983 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
19985 2011-03-26 Alan Modra <amodra@gmail.com>
19987 * config/rs6000/predicates.md (word_offset_memref_op): Handle
19988 cmodel medium addresses.
19989 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
19990 64-bit gpr loads and stores.
19991 (rs6000_secondary_reload_ppc64): New function.
19992 * config/rs6000/rs6000-protos.h: Declare it.
19993 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
19995 2011-03-26 Alan Modra <amodra@gmail.com>
19998 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
19999 GNU Go in traceback table.
20001 2011-03-25 Richard Henderson <rth@redhat.com>
20003 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
20004 if there are exactly 6 operands.
20005 (set_storage_via_setmem): Similarly.
20007 2011-03-25 Kai Tietz <ktietz@redhat.com>
20009 * collect2.c (write_c_file_stat): Handle backslash
20010 as right-hand directory separator.
20011 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
20012 checking just for slash.
20013 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
20014 instead of checking for trailing slash.
20015 * gcc.c (record_temp_file): Use filename_cmp instead
20017 (do_spec_1): Likewise.
20018 (replace_outfile_spec_function): Likewise.
20019 (is_directory): Use filename_ncmp instead of strncmp.
20020 (print_multilib_info): Likewise.
20021 * gcov.c (find_source): Use filename_cmp instead
20023 (make_gcov_file_name): Fix order of slash/backslash
20025 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
20026 (add_standard_paths): Likewise.
20027 * mips-tfile.c (saber_stop): Handle backslash.
20028 * prefix.c (update_path): Use filename_ncmp instead of
20030 * profile.c (output_location): Use filename_cmp instead
20032 * read-md.c (handle_toplevel_file): Handle backslash.
20033 * tlink.c (frob_extension): Likewise.
20034 * tree-cfg.c (same_line_p): Use filename_cmp instead of
20036 * tree-dump.c (dequeue_and_dump): Handle backslash.
20037 * tree.c (get_file_function_name): Likewise.
20038 * gengtype.c (read_input_list): Likewise.
20039 (get_file_realbasename): Likewise.
20040 (get_output_file_with_visibility): Use filename_cmp
20043 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
20045 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
20048 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
20050 * fold-const.c (expr_location_or): New function.
20051 (fold_truth_not_expr): Call it.
20053 2011-03-25 Jeff Law <law@redhat.com>
20055 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
20057 * c-family/c-common.c (def_fn_type): Likewise.
20058 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
20059 * emit-rtl.c (gen_rtvec): Likewise.
20060 * lto/lto-lang.c (def_fn_type): Likewise.
20062 2011-03-25 Richard Guenther <rguenther@suse.de>
20064 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
20065 also generate copies.
20066 (fini_copy_prop): Handle constant values properly.
20068 2011-03-25 Jakub Jelinek <jakub@redhat.com>
20070 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
20071 mode size instead of bitsize with DWARF2_ADDR_SIZE.
20072 (hash_loc_operands, compare_loc_operands): Handle
20073 DW_OP_GNU_entry_value.
20075 2011-03-25 Kai Tietz <ktietz@redhat.com>
20077 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
20078 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
20079 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
20080 comment and use macro TARGET_64BIT_MS_ABI instead.
20081 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
20082 and change default behavior for 32-bit MS_ABI.
20083 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
20084 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
20086 (ix86_cfun_abi): Likewise.
20087 (ix86_maybe_switch_abi): Adjust comment.
20088 (init_cumulative_args): Check for bit-ness in MS_ABI case.
20089 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
20090 instead of checking for SYSV_ABI.
20091 (ix86_nsaved_sseregs): Likewise.
20092 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
20094 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
20095 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
20096 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
20097 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
20098 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
20100 2011-03-25 Richard Guenther <rguenther@suse.de>
20102 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
20103 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
20104 (verify_gimple): Remove.
20105 * tree-cfg.c (verify_gimple_call): Merge verification
20107 (verify_gimple_phi): Merge verification from verify_stmts.
20108 (verify_gimple_label): New function.
20109 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
20110 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
20111 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
20112 (verify_stmts): Rename to verify_gimple_in_cfg.
20113 (verify_gimple_in_cfg): New function.
20114 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
20115 * tree-ssa.c (verify_ssa): Likewise.
20116 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
20118 2011-03-25 Richard Guenther <rguenther@suse.de>
20120 * passes.c (init_optimization_passes): Add FRE pass after
20123 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
20124 Andrew Stubbs <ams@codesourcery.com>
20126 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
20128 (arm_movdi_vfp_cortexa8): New pattern.
20129 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
20130 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
20131 instructions when tuning for Cortex-A8. Set attribute "arch".
20132 * config/arm/arm.md: Move include arm-tune.md up a bit.
20133 (define_attr "arch"): Add "onlya8" and "nota8" values.
20134 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
20136 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
20140 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
20142 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
20143 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
20144 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
20145 * passes.c (init_optimization_passes): Move
20146 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
20148 2011-03-25 Kai Tietz <ktietz@redhat.com>
20150 * c-typeck.c (comptypes_internal): Replace target
20151 hook call of comp_type_attributes by version in tree.c file.
20152 * gimple.c (gimple_types_compatible_p_1): Likewise.
20153 * tree-ssa.c (useless_type_conversion_p): Likewise.
20154 * tree.c (build_type_attribute_qual_variant): Likewise.
20155 (attribute_value_equal): New static helper function.
20156 (comp_type_attributes): New function.
20157 (merge_attributes): Use attribute_value_equal for comparison.
20158 (attribute_list_contained): Likewise.
20159 * tree.h (comp_type_attributes): New prototype.
20161 2011-03-25 Richard Guenther <rguenther@suse.de>
20163 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
20164 of complex types at -O0.
20165 (verify_gimple_assign_binary): Likewise.
20166 (verify_gimple_assign_ternary): Likewise.
20168 2011-03-24 Mark Wielaard <mjw@redhat.com>
20170 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
20171 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
20173 2011-03-24 Mark Wielaard <mjw@redhat.com>
20176 * dwarf2out.c (output_abbrev_section): Only write table when
20177 abbrev_die_table_in_use > 1.
20179 2011-02-24 Richard Henderson <rth@redhat.com>
20181 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
20182 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
20183 (alpha_expand_unaligned_load_words): Use extql.
20184 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
20185 (emit_insxl): Handle all modes for consistency.
20187 2011-02-24 Richard Henderson <rth@redhat.com>
20189 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
20190 (alpha_expand_unaligned_load): Likewise.
20191 (alpha_expand_unaligned_store): Likewise.
20192 (alpha_expand_unaligned_load_words): Likewise.
20193 (alpha_expand_unaligned_store_words): Likewise.
20194 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
20195 (alpha_split_lock_test_and_set_12): Likewise.
20196 (print_operand, alpha_fold_builtin_extxx): Likewise.
20197 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
20198 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
20199 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
20200 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
20201 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
20202 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
20203 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
20204 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
20205 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
20206 (extwl, extll, extql): Similarly.
20207 (inswh, inslh, insqh): Similarly.
20208 (mskbl, mskwl, mskll, mskql): Similarly.
20209 (mskwh, msklh, mskqh): Similarly.
20211 2011-02-24 Richard Henderson <rth@redhat.com>
20213 * config/alpha/alpha.md (attribute isa): Add er, ner.
20214 (attribute enabled): Handle them.
20215 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
20217 2011-02-24 Richard Henderson <rth@redhat.com>
20219 * config/alpha/alpha.md (attribute isa): Add vms.
20220 (attribute enabled): Handle it.
20221 (*movsf): Merge *movsf_{nofix,fix,nofp}.
20222 (*movdf): Merge *movdf_{nofix,fix,nofp}.
20223 (*movtf): Rename from *movtf_internal for consistency.
20224 (*movsi): Merge with *movsi_nt_vms.
20225 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
20226 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
20227 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
20228 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
20230 2011-02-24 Richard Henderson <rth@redhat.com>
20232 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
20233 (extendqisi2, extendhisi2): Likewise.
20234 (extendqidi2): Simplify BWX/non-BWX expansions.
20235 (extendhidi2): Similarly.
20237 2011-02-24 Richard Henderson <rth@redhat.com>
20239 * config/alpha/alpha.md (attribute isa): New.
20240 (attribute enabled): New.
20241 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
20242 (zero_extendqisi2, zero_extendqidi2): Similarly.
20243 (zero_extendhisi2, zero_extendhidi2): Similarly.
20244 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
20246 2011-02-24 Richard Henderson <rth@redhat.com>
20248 * config/alpha/predicates.md (input_operand): Revert last change;
20249 update comment to mention 32-bit VMS rather than Windows.
20251 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
20253 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
20254 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
20255 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
20256 * passes.c (init_optimization_passes): Move
20257 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
20259 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
20261 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
20263 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
20265 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
20268 2011-03-24 Jakub Jelinek <jakub@redhat.com>
20271 * simplify-rtx.c (simplify_const_unary_operation): Call
20272 real_convert when changing mode class with FLOAT_EXTEND.
20274 2011-03-24 Nick Clifton <nickc@redhat.com>
20276 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
20277 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
20278 * config/rx/rx.c (rx_option_override): Set align_jumps,
20279 align_loops and align_labels if not set by the user.
20280 (rx_align_for_label): New function.
20281 (rx_max_skip_for_label): New function.
20282 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
20283 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
20284 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
20285 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
20286 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
20288 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
20290 PR rtl-optimization/48263
20291 * optabs.c (expand_binop_directly): Reinstate convert_modes code
20292 and original commutative_p handling. Use maybe_gen_insn.
20294 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20296 * reload.c (find_reloads_subreg_address): Add address_reloaded
20297 parameter and return true there if the full address has been
20299 (find_reloads_toplev): Pass address_reloaded flag.
20300 (find_reloads_address_1): Don't use address_reloaded parameter.
20302 2011-03-24 Jeff Law <law@redhat.com>
20304 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
20305 unused variable "ann".
20306 (remove_unused_locals): Likewise.
20308 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
20311 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
20314 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20316 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
20317 for invalid symbolic addresses.
20318 (s390_secondary_reload): Don't use s390_check_symref_alignment for
20321 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
20323 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
20324 the argument in calls to fold_truth_not_expr.
20326 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
20328 * tree.c (record_node_allocation_statistics): New function.
20329 (make_node_stat, copy_node_stat, build_string): Call it.
20330 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
20331 (build1_stat, build_omp_clause): Likewise.
20333 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
20335 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
20338 2011-03-24 Richard Guenther <rguenther@suse.de>
20340 PR tree-optimization/48271
20341 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
20342 blocks that still exist.
20344 2011-03-24 Richard Guenther <rguenther@suse.de>
20346 PR tree-optimization/48270
20347 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
20348 not free datarefs before ddrs.
20350 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
20352 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
20353 from the address built for a reference with variable offset.
20355 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
20358 * config/i386/i386.md (*movdf_internal_rex64): Do not split
20359 alternatives that can be handled with movq or movabsq insn.
20360 (*movdf_internal): Disable for !TARGET_64BIT.
20361 (*movdf_internal_nointeger): Ditto.
20362 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
20364 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
20366 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
20367 (FUNCTION_ARG_ADVANCE): Likewise.
20368 * tm.texi.in: Change references to them to hook references.
20369 * tm.texi: Regenerate.
20370 * targhooks.c (default_function_arg): Eliminate check for target macro.
20371 (default_function_incoming_arg): Likewise.
20372 (default_function_arg_advance): Likewise.
20373 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
20374 (function_arg_advance): Likewise.
20375 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
20377 2011-03-24 Richard Guenther <rguenther@suse.de>
20379 PR middle-end/48269
20380 * tree-object-size.c (addr_object_size): Do not double-account
20381 for MEM_REF offsets.
20383 2011-03-24 Diego Novillo <dnovillo@google.com>
20385 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
20386 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
20387 (lto_input_data_block): Move from lto-opts.c. Make extern.
20389 (lto_input_string): Rename from input_string. Make extern.
20391 * lto-streamer-out.c (lto_output_string_with_length): Rename from
20392 output_string_with_length.
20393 Output 0 to indicate a non-NULL string. Update all callers to
20395 (lto_output_string): Rename from output_string. Make extern.
20397 (lto_output_decl_state_streams): Make extern.
20398 (lto_output_decl_state_refs): Make extern.
20399 * lto-streamer.h (lto_input_string): Declare.
20400 (lto_input_data_block): Declare.
20401 (lto_output_string): Declare.
20402 (lto_output_string_with_length): Declare.
20403 (lto_output_decl_state_streams): Declare.
20404 (lto_output_decl_state_refs): Declare.
20406 2011-03-24 Richard Guenther <rguenther@suse.de>
20408 PR tree-optimization/46562
20409 * tree.c (build_invariant_address): New function.
20410 * tree.h (build_invariant_address): Declare.
20411 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
20412 a renamed function moved ...
20413 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
20414 Take valueization callback parameter.
20415 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
20416 * gimple-fold.h: New file.
20417 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
20418 (ccp_fold, fold_const_aggregate_ref,
20419 fold_ctor_reference, fold_nonarray_ctor_reference,
20420 fold_array_ctor_reference, fold_string_cst_ctor_reference,
20421 get_base_constructor): Move ...
20422 * gimple-fold.c: ... here.
20423 (gimple_fold_stmt_to_constant_1): New function
20424 split out from ccp_fold. Take a valueization callback parameter.
20425 Valueize all operands.
20426 (gimple_fold_stmt_to_constant): New wrapper function.
20427 (fold_const_aggregate_ref_1): New function split out from
20428 fold_const_aggregate_ref. Take a valueization callback parameter.
20429 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
20430 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
20431 invariant POINTER_PLUS_EXPRs to invariant form.
20432 (vn_valueize): New function.
20433 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
20434 * tree-vrp.c (vrp_valueize): New function.
20435 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
20436 to fold statements to constants.
20437 * tree-ssa-pre.c (eliminate): Properly guard propagation of
20438 function declarations.
20439 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
20440 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
20442 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
20444 * config/h8300/predicates.md (jump_address_operand): Fix register
20447 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
20449 * doc/invoke.texi (max-stores-to-sink): Document.
20450 * params.h (MAX_STORES_TO_SINK): Define.
20451 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
20452 if either vectorization or if-conversion is disabled.
20453 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
20454 tree-vect-data-refs.c vect_equal_offsets.
20455 (dr_equal_offsets_p): New function.
20456 (find_data_references_in_bb): Remove static.
20457 * tree-data-ref.h (find_data_references_in_bb): Declare.
20458 (dr_equal_offsets_p): Likewise.
20459 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
20460 (vect_drs_dependent_in_basic_block): Update calls to
20461 vect_equal_offsets.
20462 (vect_check_interleaving): Likewise.
20463 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
20464 (cond_if_else_store_replacement): Rename to...
20465 (cond_if_else_store_replacement_1): ... this. Change arguments and
20467 (cond_if_else_store_replacement): New function.
20468 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
20469 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
20471 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
20474 * config/arm/arm.md (casesi): Use the gen_int_mode() function
20475 to subtract lower bound instead of GEN_INT().
20477 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
20482 * doc/extend.texi (Alignment): Move section to match order in TOC.
20483 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
20484 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
20486 2011-03-23 Jeff Law <law@redhat.com>
20488 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
20489 before removing the edge.
20491 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
20492 it may have been freed by redirect_branch_edge or
20493 redirect_edge_succ_nodup.
20495 2011-03-23 Richard Guenther <rguenther@suse.de>
20497 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
20498 (check_va_list_escapes): Likewise.
20499 (check_all_va_list_escapes): Likewise.
20501 2011-03-23 Richard Guenther <rguenther@suse.de>
20503 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
20504 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
20505 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
20506 (alias.o): Likewise.
20507 (ipa-type-escape.o): Remove.
20508 (ipa-struct-reorg.o): Likewise.
20509 (GTFILES): Remove ipa-struct-reorg.c.
20510 * alias.c: Do not include ipa-type-escape.h.
20511 * tree-ssa-alias.c: Likewise.
20512 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
20513 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
20514 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
20515 and ipa-type-escape passes.
20516 * tree-pass.h (pass_ipa_type_escape): Remove.
20517 (pass_ipa_struct_reorg): Likewise.
20518 * ipa-struct-reorg.h: Remove.
20519 * ipa-struct-reorg.c: Likewise.
20520 * ipa-type-escape.h: Likewise.
20521 * ipa-type-escape.c: Likewise.
20522 * doc/invoke.texi (-fipa-struct-reorg): Remove.
20523 (--param struct-reorg-cold-struct-ratio): Likewise.
20524 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
20525 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
20526 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
20528 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20530 * config/s390/2084.md: Enable all insn reservations also for z9_ec
20531 cpu attribute value.
20532 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
20533 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
20534 * config/s390/s390.c (processor_flags_table): New constant array.
20535 (s390_handle_arch_option): Remove.
20536 (s390_handle_option): Remove s390_handle_arch_option invocations
20537 and OPT_mwarn_framesize_ handling.
20538 (s390_option_override): Remove s390_handle_arch_option invocation.
20539 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
20541 * config/s390/s390.md (cpu attribute): Add z9_ec value.
20542 * config/s390/s390.opt (s390_tune, s390_arch)
20543 (march=): Replace s390_arch_option enum and values with
20544 processor_type. Set variable name to s390_arch. Set
20545 initialization value.
20546 (mtune=): Replace s390_arch_option with processor_type. Set
20547 variable name to s390_tune. Set initialization value.
20549 2011-03-23 Julian Brown <julian@codesourcery.com>
20551 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
20552 accesses which are not naturally aligned.
20554 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
20557 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
20559 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
20561 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
20562 parameter from "int" to "enum insn_code".
20563 (expand_operand_type): New enum.
20564 (expand_operand): New structure.
20565 (create_expand_operand): New function.
20566 (create_fixed_operand, create_output_operand): Likewise
20567 (create_input_operand, create_convert_operand_to): Likewise.
20568 (create_convert_operand_from, create_address_operand): Likewise.
20569 (create_integer_operand): Likewise.
20570 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
20571 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
20572 (expand_insn, expand_jump_insn): Likewise.
20573 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
20574 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
20575 (expand_movstr, expand_builtin___clear_cache): Likewise.
20576 (expand_builtin_lock_release): Likewise.
20577 * explow.c (allocate_dynamic_stack_space): Likewise.
20578 (probe_stack_range): Likewise. Allow check_stack to FAIL,
20579 and use the default handling in that case.
20580 * expmed.c (check_predicate_volatile_ok): Delete.
20581 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
20582 (emit_cstore): Likewise.
20583 * expr.c (emit_block_move_via_movmem): Likewise.
20584 (set_storage_via_setmem, expand_assignment): Likewise.
20585 (emit_storent_insn, try_casesi): Likewise.
20586 (emit_single_push_insn): Likewise. Allow the expansion to fail.
20587 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
20588 (expand_vec_shift_expr, expand_binop_directly): Likewise.
20589 (expand_twoval_unop, expand_twoval_binop): Likewise.
20590 (expand_unop_direct, emit_indirect_jump): Likewise.
20591 (emit_conditional_move, vector_compare_rtx): Likewise.
20592 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
20593 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
20594 (expand_sync_lock_test_and_set): Likewise.
20595 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
20596 (emit_unop_insn): Likewise.
20597 (expand_copysign_absneg): Change icode to an insn_code.
20598 (create_convert_operand_from_type): New function.
20599 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
20600 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
20601 (expand_insn, expand_jump_insn): Likewise.
20602 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
20603 than const_int_operand for operand 2.
20605 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20607 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
20610 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20612 * emit-rtl.c (emit_pattern_before_noloc): New function.
20613 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
20614 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
20615 (emit_pattern_after_noloc): New function.
20616 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
20617 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
20619 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20621 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
20622 (__ffsDI2): Likewise.
20624 2011-03-22 Richard Henderson <rth@redhat.com>
20626 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
20627 of !TARGET_ABI_OPEN_VMS.
20628 (alpha_trampoline_init, alpha_start_function): Likewise.
20629 (alpha_expand_epilogue, alpha_file_start): Likewise.
20630 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
20631 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
20632 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
20633 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
20634 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
20636 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20638 * config/s390/s390-opts.h: New.
20639 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
20640 s390_arch_flags, s390_warn_framesize, s390_stack_size,
20641 s390_stack_guard): Remove.
20642 (s390_handle_arch_option): Return void. Take enum
20643 s390_arch_option value instead of string and searching array.
20644 (s390_handle_option): Don't assert that global structures are in
20645 use. Access variables via opts pointer. Use error_at. Don't use
20646 sscanf for -mstack-guard= or -mstack-size=. Update call to
20647 s390_handle_arch_option.
20648 (s390_option_override): Update call to s390_handle_arch_option.
20649 (s390_emit_prologue): Use %d format for s390_stack_size in
20650 diagnostic. Use %wd for HOST_WIDE_INT.
20651 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
20652 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
20653 * config/s390/s390.opt (config/s390/s390-opts.h): New
20654 HeaderInclude entry.
20655 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
20656 s390_arch_flags, s390_warn_framesize): New Variable entries.
20657 (s390_arch_option): New Enum and EnumValue entries.
20658 (march=): Use Enum instead of Var.
20659 (mstack-guard=, mstack-size=): Use UInteger and Var.
20660 (mtune=): Use Enum.
20662 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20664 * config/score/score.c (score_handle_option): Don't assert that
20665 global structures are in use. Access target_flags via opts
20666 pointer. Use value of -march= option to determine target_flags
20668 * config/score/score.opt (march=): Use Enum.
20669 (score_arch): New Enum and EnumValue entries.
20671 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20673 * config/mep/mep.c (option_mtiny_specified): Remove.
20674 (mep_option_override): Move register handling for -mivc2 from
20675 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
20676 instead of option_mtiny_specified.
20677 (mep_handle_option): Access target_flags via opts pointer. Don't
20678 assert that global structures are in use. Defer part of -mivc2
20679 handling and move it to mep_option_override.
20680 * config/mep/mep.opt (IVC2): New Mask entry.
20681 (mivc2): Use Var and Defer instead of Mask.
20683 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20685 * config/v850/v850-opts.h: New.
20686 * config/v850/v850.c (small_memory): Replace with
20687 small_memory_physical_max array. Make that array static const.
20688 (v850_handle_memory_option): Take integer value of argument. Take
20689 gcc_options pointer, option text and location. Return void.
20690 Update for changes to small memory structures.
20691 (v850_handle_option): Access target_flags via opts pointer. Don't
20692 assert that global structures are in use. Update calls to
20693 v850_handle_memory_option.
20694 (v850_encode_data_area): Update references to small memory settings.
20695 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
20696 (enum small_memory_type): Move to v850-opts.h.
20697 * config/v850/v850.opt (config/v850/v850-opts.h): New
20698 HeaderInclude entry.
20699 (small_memory_max): New Variable entry.
20700 (msda): Replace by pair of options msda= and msda-. Use UInteger.
20701 (mtda, mzda): Likewise.
20703 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20705 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
20706 pointer. Don't assert that global structures are in use.
20708 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20710 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
20711 via opts pointer. Don't assert that global structures are in use.
20713 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20715 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
20716 (munix=93): Use Var.
20717 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
20718 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
20719 * config/pa/pa-opts.h: New.
20720 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
20721 (pa_handle_option): Don't assert that global structures are in
20722 use. Access target_flags via opts pointer. Don't handle
20723 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
20725 (pa_option_override): Handle deferred OPT_mfixed_range_.
20727 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20729 * config/mn10300/mn10300-opts.h: New.
20730 * config/mn10300/mn10300.c (mn10300_processor,
20731 mn10300_tune_string): Remove.
20732 (mn10300_handle_option): Don't assert that global structures are
20733 in use. Access mn10300_processor via opts pointer. Don't handle
20735 * config/mn10300/mn10300.h (enum processor_type): Move to
20737 (mn10300_processor): Remove.
20738 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
20739 HeaderInclude entry.
20740 (mn10300_processor): New Variable entry.
20743 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20745 * config/microblaze/microblaze.c: Don't include opts.h.
20746 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
20747 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
20748 (mno-clearbss): Use Var and Warn.
20750 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20752 * config/m32r/m32r-opts.h: New.
20753 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
20754 (m32r_handle_option): Don't assert that global structures are in
20755 use. Access target_flags and m32r_cache_flush_func via opts
20756 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
20757 OPT_mno_flush_trap here.
20758 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
20759 include of m32r-opts.h.
20760 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
20761 HeaderInclude entry.
20762 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
20763 (mmodel=): Use Enum and Var.
20764 (m32r_model): New Enum and EnumValue entries.
20765 (mno-flush-trap): Use Var.
20766 (msdata=): Use Enum and Var.
20767 (m32r_sdata): New Enum and EnumValue entries.
20769 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20771 * config/m32c/m32c.c: Don't include opts.h.
20772 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
20773 m32c_handle_option): Remove.
20774 (m32c_option_override): Check global_options_set.x_target_memregs
20775 instead of target_memregs_set.
20776 * config/m32c/m32c.h (target_memregs): Remove.
20777 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
20780 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20782 * config/iq2000/iq2000-opts.h: New.
20783 * config/iq2000/iq2000.c: Don't include opts.h.
20784 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
20785 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
20786 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
20787 HeaderInclude entry.
20788 (iq2000_tune): New Variable entry.
20789 (march=): Add comment. Use Enum.
20790 (iq2000_arch): New Enum and EnumValue entries.
20791 (mcpu=): Use Enum and Var.
20792 (iq2000_tune): New Enum and EnumValue entries.
20794 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20796 * config/ia64/ia64-opts.h: New.
20797 * config/ia64/ia64.c (ia64_tune): Remove.
20798 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
20799 here. Use error_at.
20800 (ia64_option_override): Handle deferred OPT_mfixed_range_.
20801 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
20802 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
20803 HeaderInclude entry.
20804 (ia64_tune): New Variable entry.
20805 (mfixed-range=): Use Defer and Var.
20806 (mtune=): Use Enum and Var.
20807 (ia64_tune): New Enum and EnumValue entries.
20809 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20811 * config/frv/frv-opts.h: New.
20812 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
20814 (frv_cpu_type): Remove.
20815 * config/frv/frv.c: Don't include opts.h.
20816 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
20817 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
20818 (frv_cpu_type): New Variable entry.
20819 (frv_cpu): New Enum and EnumValue entries.
20821 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20823 * config/cris/cris.c (cris_handle_option): Access target_flags via
20824 opts pointer. Don't assert that global structures are in use.
20825 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
20826 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
20828 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20830 * config/bfin/bfin-opts.h: New.
20831 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
20832 bfin_si_revision, bfin_workarounds): Remove.
20833 (bfin_cpus): Make static const.
20834 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
20835 not bfin_lib_id_given.
20836 (bfin_handle_option): Don't set bfin_lib_id_given. Access
20837 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
20838 pointer. Use error_at. Don't assert that global structures are in use.
20839 * config/bfin/bfin.h: Include bfin-opts.h.
20840 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
20841 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
20842 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
20843 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
20846 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20848 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
20849 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
20850 or -msoft-float here.
20851 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
20852 -msoft-float and -mhard-float.
20853 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
20854 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
20856 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
20858 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
20859 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
20861 (LIBGCC_SPEC): Don't handle -msoft-float.
20862 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
20864 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
20866 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
20867 -mfloat-abi=*, not -msoft-float and -mhard-float.
20868 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
20870 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
20871 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
20872 mhard-float and msoft-float.
20873 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
20874 mfloat-abi=soft in comments, not mhard-float and msoft-float.
20875 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20876 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
20878 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
20879 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
20881 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
20883 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
20886 2011-03-22 Richard Henderson <rth@redhat.com>
20888 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
20889 TARGET_ABI_WINDOWS_NT.
20890 (alpha_output_function_end_prologue): Likewise.
20891 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
20892 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20893 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
20894 (trap, *movsi_nt_vms): Likewise.
20895 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
20896 (*tablejump_osf_nt_internal): Remove.
20897 * config/alpha/predicates.md (input_operand): Only test Pmode.
20899 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20901 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
20902 via opts pointer. Use error_at. Don't assert that global
20903 structures are in use.
20905 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20907 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
20908 (ix86_handle_option): Access ix86_isa_flags and
20909 ix86_isa_flags_explicit via opts pointer. Don't assert that
20910 global structures are in use.
20911 (ix86_function_specific_save, ix86_function_specific_restore):
20912 Update ix86_isa_flags_explicit field name.
20913 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
20914 (ix86_isa_flags_explicit): Rename TargetSave entry to
20915 x_ix86_isa_flags_explicit.
20917 2011-03-22 Richard Henderson <rth@redhat.com>
20919 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
20920 (alpha_option_override, direct_return): Likewise.
20921 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
20922 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
20923 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
20924 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
20925 (alpha_expand_epilogue, alpha_end_function): Likewise.
20926 (alpha_init_libfuncs): Likewise.
20927 (struct machine_function): Remove unicosmk members.
20928 (print_operand) ['t']: Remove.
20929 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
20930 unicosmk_output_module_name, unicosmk_output_common,
20931 current_section_align, unicosmk_output_text_section_asm_op,
20932 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
20933 unicosmk_section_type_flags, unicosmk_unique_section,
20934 unicosmk_asm_named_section, unicosmk_insert_attributes,
20935 unicosmk_output_align, unicosmk_defer_case_vector,
20936 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
20937 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
20938 unicosmk_output_ssib, unicosmk_add_call_info_word,
20939 unicosmk_extern_head, unicosmk_output_default_externs,
20940 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
20941 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
20942 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
20943 * config/alpha/alpha-protos.h: Update.
20944 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
20945 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
20946 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
20947 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
20948 (*mulsi_se, mulvsi3): Likewise.
20949 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
20950 (*divmodsi_internal, call, call_value, realign): Likewise.
20951 (moddi3, umoddi3): Likewise; remove duplicate expander.
20952 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
20953 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
20954 (*movdi_nofix): Remove r/U alternative.
20955 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
20956 * config/alpha/constraints.md ("U"): Remove.
20957 * config/alpha/predicates.md (call_operand"): Don't test
20958 TARGET_ABI_UNICOSMK.
20960 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20962 * target.def (handle_option): Take gcc_options and
20963 cl_decoded_option pointers and location_t.
20964 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
20965 * doc/tm.texi: Regenerate.
20966 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
20967 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
20968 * lto-opts.c (lto_reissue_options): Generate option structure for
20969 targetm.handle_option call.
20970 * opts.c (target_handle_option): Update call to
20971 targetm.handle_option. Remove assertions about values now passed
20973 * targhooks.c (default_target_handle_option): New.
20974 * targhooks.h (default_target_handle_option): Declare.
20975 * config/alpha/alpha.c: Include opts.h.
20976 (alpha_handle_option): Update to new hook interface.
20977 * config/arm/arm.c: Include opts.h.
20978 (arm_handle_option): Update to new hook interface.
20979 * config/arm/t-arm (arm.o): Update dependencies.
20980 * config/bfin/bfin.c: Include opts.h.
20981 (bfin_handle_option): Update to new hook interface.
20982 * config/cris/cris.c: Include opts.h.
20983 (cris_handle_option): Update to new hook interface.
20984 * config/frv/frv.c: Include opts.h.
20985 (frv_handle_option): Update to new hook interface.
20986 * config/i386/i386.c: Include opts.h.
20987 (ix86_handle_option): Update to new hook interface.
20988 (ix86_valid_target_attribute_inner_p): Generate option structure
20989 for call to ix86_handle_option.
20990 * config/i386/t-i386 (i386.o): Update dependencies.
20991 * config/ia64/ia64.c: Include opts.h.
20992 (ia64_handle_option): Update to new hook interface.
20993 * config/ia64/t-ia64 (ia64.o): Update dependencies.
20994 * config/iq2000/iq2000.c: Include opts.h.
20995 (iq2000_handle_option): Update to new hook interface.
20996 * config/m32c/m32c.c: Include opts.h.
20997 (m32c_handle_option): Update to new hook interface.
20998 * config/m32r/m32r.c: Include opts.h.
20999 (m32r_handle_option): Update to new hook interface.
21000 * config/m68k/m68k.c: Include opts.h.
21001 (m68k_handle_option): Update to new hook interface.
21002 * config/mep/mep.c: Include opts.h.
21003 (mep_handle_option): Update to new hook interface.
21004 * config/microblaze/microblaze.c: Include opts.h.
21005 (microblaze_handle_option): Update to new hook interface.
21006 * config/mips/mips.c: Include opts.h.
21007 (mips_handle_option): Update to new hook interface.
21008 * config/mn10300/mn10300.c: Include opts.h.
21009 (mn10300_handle_option): Update to new hook interface.
21010 * config/pa/pa.c: Include opts.h.
21011 (pa_handle_option): Update to new hook interface.
21012 * config/pdp11/pdp11.c: Include opts.h.
21013 (pdp11_handle_option): Update to new hook interface.
21014 * config/rs6000/rs6000.c: Include opts.h.
21015 (rs6000_handle_option): Update to new hook interface.
21016 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
21017 * config/rx/rx.c: Include opts.h.
21018 (rx_handle_option): Update to new hook interface.
21019 * config/s390/s390.c: Include opts.h.
21020 (s390_handle_option): Update to new hook interface.
21021 * config/score/score.c: Include opts.h.
21022 (score_handle_option): Update to new hook interface.
21023 * config/sh/sh.c: Include opts.h.
21024 (sh_handle_option): Update to new hook interface.
21025 * config/sparc/sparc.c: Include opts.h.
21026 (sparc_handle_option): Update to new hook interface.
21027 * config/v850/v850.c: Include opts.h.
21028 (v850_handle_option): Update to new hook interface.
21030 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21032 * gcc.c (driver_unknown_option_callback): Only permit and save
21033 unknown -Wno- options.
21034 (driver_wrong_lang_callback): Save options directly instead of via
21035 driver_unknown_option_callback.
21037 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
21039 * combine.c (simplify_set): Try harder to find the best CC mode when
21040 simplifying a nested COMPARE on the RHS.
21042 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21044 * config/alpha/gnu.h: Remove.
21045 * config/arc: Remove directory.
21046 * config/arm/netbsd.h: Remove.
21047 * config/arm/t-pe: Remove.
21048 * config/crx: Remove directory.
21049 * config/i386/netbsd.h: Remove.
21050 * config/m68hc11: Remove directory.
21051 * config/m68k/uclinux-oldabi.h: Remove.
21052 * config/mcore/mcore-pe.h: Remove.
21053 * config/mcore/t-mcore-pe: Remove.
21054 * config/netbsd-aout.h: Remove.
21055 * config/rs6000/gnu.h: Remove.
21056 * config/sh/sh-symbian.h: Remove.
21057 * config/sh/symbian-base.c: Remove.
21058 * config/sh/symbian-c.c: Remove.
21059 * config/sh/symbian-cxx.c: Remove.
21060 * config/sh/symbian-post.h: Remove.
21061 * config/sh/symbian-pre.h: Remove.
21062 * config/sh/t-symbian: Remove.
21063 * config/svr3.h: Remove.
21064 * config/vax/netbsd.h: Remove.
21065 * config.build: Don't handle i[34567]86-*-pe.
21066 * config.gcc: Remove handling of deprecations for most deprecated
21068 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
21069 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
21070 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
21071 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
21072 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
21073 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
21075 * config.host: Don't handle i[34567]86-*-pe.
21076 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
21077 (ASM_SPEC32): Don't handle -mcall-gnu.
21078 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
21080 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
21081 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
21082 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
21083 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
21084 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
21085 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
21086 conditional on SYMBIAN.
21087 * configure.ac: Don't handle powerpc*-*-gnu*.
21088 * configure: Regenerate.
21089 * doc/extend.texi (interrupt attribute): Don't mention CRX.
21090 * doc/install-old.texi (m6811, m6812): Don't mention.
21091 * doc/install.texi (arc-*-elf*): Don't document multilib option.
21092 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
21093 (m68k-uclinuxoldabi): Don't mention.
21094 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
21096 (-mcall-gnu): Remove.
21097 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
21098 families): Remove constraint documentation.
21100 2011-03-22 Marius Strobl <marius@FreeBSD.org>
21102 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
21103 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
21104 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
21106 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
21109 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
21110 vector when peeking at the next token for vector, don't expand the
21113 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
21115 * config/avr/avr-protos.h (expand_epilogue): Change prototype
21116 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
21117 * config/avr/avr.c (init_cumulative_args)
21118 (avr_function_arg_advance): Use it.
21119 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
21121 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
21122 (avr_function_ok_for_sibcall): ...this new function.
21123 (avr_lookup_function_attribute1): New static Function.
21124 (avr_naked_function_p, interrupt_function_p)
21125 (signal_function_p, avr_OS_task_function_p)
21126 (avr_OS_main_function_p): Use it.
21127 * config/avr/avr.md ("sibcall", "sibcall_value")
21128 ("sibcall_epilogue"): New expander.
21129 ("*call_insn", "*call_value_insn"): New insn.
21130 ("call_insn", "call_value_insn"): Remove
21131 ("call", "call_value", "epilogue"): Change expander to handle
21134 2011-03-21 Nick Clifton <nickc@redhat.com>
21136 * doc/invoke.texi (Overall Options): Move closing brace to end of
21138 (Optimization Options): Add missing @gol.
21139 (Directory Options): Likewise.
21140 (i386 and x86-64 Options): Likewise.
21141 (RS6000 and PowerPC Options): Likewise.
21142 (i386 and x86-64 Windows Options): Likewise.
21143 (V850 Options): Add text missing from descriptions.
21145 2011-03-22 Richard Henderson <rth@redhat.com>
21147 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
21148 (avr_incoming_return_addr_rtx): New.
21149 (emit_push_byte): New.
21150 (expand_prologue): Use it. Remove incorrect dwarf annotation for
21151 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
21152 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
21153 (emit_pop_byte): New.
21154 (expand_epilogue): Use it. Pop frame pointer by bytes.
21155 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
21156 (INCOMING_RETURN_ADDR_RTX): New.
21157 (INCOMING_FRAME_SP_OFFSET): New.
21158 (ARG_POINTER_CFA_OFFSET): New.
21159 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
21160 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
21163 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
21165 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
21167 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
21168 (FUNCTION_ARG_ADVANCE): Likewise.
21169 * tm.texi.in: Change references to them to hook references.
21170 * tm.texi: Regenerate.
21171 * targhooks.c (default_function_arg): Eliminate check for target
21173 (default_function_incoming_arg): Likewise.
21174 (default_function_arg_advance): Likewise.
21175 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
21176 (function_arg_advance): Likewise.
21177 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
21179 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
21181 * tree.c (build_call_1): New function.
21182 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
21184 2011-03-22 Richard Guenther <rguenther@suse.de>
21186 PR tree-optimization/48228
21187 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
21188 for single-arg PHIs.
21190 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
21192 PR rtl-optimization/48143
21193 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
21194 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
21195 sse2_cvtps2pd): Likewise.
21197 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21199 * recog.c (canonicalize_change_group): Use validate_unshare_change.
21201 2011-03-22 Richard Guenther <rguenther@suse.de>
21203 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
21204 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
21205 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
21206 and REALIGN_LOAD_EXPR.
21207 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
21208 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
21209 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
21210 DOT_PROD_EXPR case ...
21211 (expand_expr_real_2): ... here.
21212 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
21213 and REALIGN_LOAD_EXPR.
21214 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
21215 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
21216 (vect_create_epilog_for_reduction): Likewise.
21217 (vectorizable_reduction): Likewise.
21218 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
21219 * tree-vect-stmts.c (vectorizable_load): Likewise.
21221 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
21223 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
21225 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21227 * config/s390/s390.c (s390_delegitimize_address): Fix offset
21228 handling for PLTOFF/GOTOFF.
21230 2011-03-22 Nick Clifton <nickc@redhat.com>
21232 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
21233 trailing backslash from the end of the macro definition.
21235 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21237 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
21240 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
21242 * expr.h (prepare_operand): Move to...
21243 * optabs.h (prepare_operand): ...here and change the insn code
21244 parameter from "int" to "enum insn_code".
21245 (insn_operand_matches): Declare.
21246 * expr.c (init_expr_target): Use insn_operand_matches.
21247 (compress_float_constant): Likewise.
21248 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
21249 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
21250 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
21251 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
21253 (gen_cond_trap): Likewise.
21254 (prepare_operand): Likewise. Change icode to an insn_code.
21255 (insn_operand_matches): New function.
21256 * reload.c (find_reloads_address_1): Use insn_operand_matches.
21257 * reload1.c (gen_reload): Likewise.
21258 * targhooks.c (default_secondary_reload): Likewise.
21260 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
21262 * config/alpha/alpha.md (unspec): New define_c_enum.
21265 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
21268 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
21269 between a call and its CALL_ARG_LOCATION note.
21271 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
21273 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
21275 2011-03-21 Jakub Jelinek <jakub@redhat.com>
21279 * c-common.c (shorten_compare): If primopN is first sign-extended
21280 to opN and then zero-extended to result type, set primopN to opN.
21282 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
21284 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
21285 for barrier handlers.
21287 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
21289 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
21290 UNSPEC constants to be in the unspec enumeration, and redefine
21291 all UNSPECV constants to be in the unspecv enumeration, so that
21292 dumps print which unspec/unspec_volatile this is.
21293 * config/rs6000/vector.md (UNSPEC_*): Ditto.
21294 * config/rs6000/paired.md (UNSPEC_*): Ditto.
21295 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
21296 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
21297 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
21299 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
21300 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
21301 UNSPECV_LWSYNC, since these are used as unspec_volatile.
21302 * config/rs6000/sync.md (isync, lwsync): Ditto.
21304 2011-03-21 Richard Guenther <rguenther@suse.de>
21306 * params.def (lto-min-partition): Fix typo.
21308 2011-03-21 Richard Guenther <rguenther@suse.de>
21311 * c-decl.c (grokdeclarator): Drop to the main variant only
21312 for array types. Drop flag_gen_aux_info check.
21314 2011-03-21 Richard Guenther <rguenther@suse.de>
21316 PR translation/47911
21317 * params.def (lto-partitions): Fix typo.
21318 (lto-min-partition): Fix wording.
21320 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
21322 * config/rs6000/t-freebsd: Remove duplication from file.
21324 2011-03-21 Richard Guenther <rguenther@suse.de>
21326 PR middle-end/47661
21327 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
21329 2011-03-21 Richard Guenther <rguenther@suse.de>
21332 * params.def (lto-partitions): Require at least 1 partition.
21334 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21336 * gthr-solaris.h: Remove.
21337 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
21338 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
21339 (LIB_SPEC): Likewise.
21340 * config/sol2.opt (threads): Remove.
21341 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
21342 (sparc*-*-solaris2*): Likewise.
21343 * configure.ac (enable_threads): Enable solaris support.
21344 * configure: Regenerate.
21345 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
21346 * doc/install.texi (Configuration, --enable-threads=lib): Remove
21349 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21351 * config.gcc: Obsolete *-*-solaris2.8*.
21352 * doc/install.texi (Specific, *-*-solaris2*): Document it.
21354 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21357 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
21358 reference. Solaris 8 perl works.
21360 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21363 * doc/install.texi (Prerequisites): Move jar etc. up.
21364 Explain support library version requirements.
21366 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21369 * doc/install.texi (Prerequisites): Move Perl to build
21370 requirements. Always necessary on Solaris 2 with Sun ld.
21372 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21374 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
21376 (Specific, i?86-*-solaris2.[89]): Likewise.
21377 (Specific, i?86-*-solaris2.10): Likewise.
21378 (Specific, mips-sgi-irix6): Likewise.
21379 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
21380 Update for binutils 2.21.
21382 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21384 * configure.ac (gcc_cv_lto_plugin): Fix typo.
21385 Allow -fuse-linker-plugin for non-default plugin linker.
21386 * configure: Regenerate.
21388 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
21391 * gengtype.c (files_rules): Added rule for cp/parser.h.
21393 2011-03-21 Jakub Jelinek <jakub@redhat.com>
21396 * config/s390/s390.c (s390_delegitimize_address): Don't call
21397 lowpart_subreg if orig_x has BLKmode.
21399 2011-03-21 Kai Tietz <ktietz@redhat.com>
21402 * doc/plugins.texi: Adjust documentation for plugin register_callback.
21403 * tree.h (attribute_spec): Add new member affects_type_identity.
21404 * attribs.c (empty_attribute_table): Adjust attribute_spec
21406 * config/alpha/alpha.c: Likewise.
21407 * config/arc/arc.c: Likewise.
21408 * config/arm/arm.c: Likewise.
21409 * config/avr/avr.c: Likewise.
21410 * config/bfin/bfin.c: Likewise.
21411 * config/crx/crx.c: Likewise.
21412 * config/darwin.h: Likewise.
21413 * config/h8300/h8300.c: Likewise.
21414 * config/i386/cygming.h: Likewise.
21415 * config/i386/i386.c: Likewise.
21416 * config/ia64/ia64.c: Likewise.
21417 * config/m32c/m32c.c: Likewise.
21418 * config/m32r/m32r.c: Likewise.
21419 * config/m68hc11/m68hc11.c: Likewise.
21420 * config/m68k/m68k.c: Likewise.
21421 * config/mcore/mcore.c: Likewise.
21422 * config/mep/mep.c: Likewise.
21423 * config/microblaze/microblaze.c: Likewise.
21424 * config/mips/mips.c: Likewise.
21425 * config/rs6000/rs6000.c: Likewise.
21426 * config/rx/rx.c: Likewise.
21427 * config/sh/sh.c: Likewise.
21428 * config/sol2.h: Likewise.
21429 * config/sparc/sparc.c: Likewise.
21430 * config/spu/spu.c: Likewise.
21431 * config/stormy16/stormy16.c: Likewise.
21432 * config/v850/v850.c: Likewise.
21434 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
21436 * simplify-rtx.c (simplify_binary_operation_1): Handle
21437 (xor (and A B) C) case when B and C are both constants.
21439 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
21441 * tree-dfa.c (add_referenced_var): Fix typo in comment.
21443 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
21446 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
21448 2011-03-20 Jakub Jelinek <jakub@redhat.com>
21450 PR rtl-optimization/48156
21451 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
21452 assume df and df_lr are not NULL.
21454 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21457 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
21458 between a call and its CALL_ARG_LOCATION note.
21460 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21463 * config/sh/sh.c (find_barrier): Don't emit a constant pool
21464 between a call and its corresponding CALL_ARG_LOCATION note.
21466 2011-03-19 Anatoly Sokolov <aesok@post.ru>
21468 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
21469 instead of loop. Use HARD_REGISTER_NUM_P predicate.
21470 * haifa-sched.c (setup_ref_regs): Ditto.
21471 * caller-save.c (add_used_regs_1): Ditto.
21472 * dse.c (look_for_hardregs): Ditto.
21473 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
21474 * sched-rgn.c (check_live_1): Ditto.
21476 2011-03-18 Joseph Myers <joseph@codesourcery.com>
21478 * c-decl.c (diagnose_mismatched_decls): Give an error for
21479 redefining a typedef with variably modified type.
21481 2011-03-18 Joseph Myers <joseph@codesourcery.com>
21483 * c-decl.c (grokfield): Don't allow typedefs for structures or
21484 unions with no tag by default.
21485 * doc/extend.texi (Unnamed Fields): Update.
21487 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
21489 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
21490 Rewrite using indirect functions.
21491 (lwp_slwpcb): Ditto.
21492 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
21493 (avx_vinsertf128<mode>): Ditto.
21495 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21497 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
21500 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21502 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
21503 splitting between a call and its corresponding CALL_ARG_LOCATION note.
21505 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
21507 PR rtl-optimization/48170
21508 * gcse.c (hoist_code): Remove bogus asserts.
21510 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
21512 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
21513 computation for prologue/epilogue.
21515 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21517 * Makefile.in (check-consistency): Remove.
21519 2011-03-18 Jakub Jelinek <jakub@redhat.com>
21522 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
21523 arange_table_in_use is 0, but either text_section_used or
21524 cold_text_section_used is true. Don't call it if
21525 !info_section_emitted.
21527 2011-03-18 Anatoly Sokolov <aesok@post.ru>
21529 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
21530 FUNCTION_VALUE_REGNO_P): Remove.
21531 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
21533 * config/avr/avr.c (avr_ret_register): Make static inline.
21534 (avr_function_value_regno_p): New function.
21535 (avr_libcall_value): Make static. Add 'func' argument.
21536 (avr_function_value): Make static. Rename 'func' argument to
21537 'fn_decl_or_type', forward it to avr_libcall_value. Call
21538 avr_ret_register function instead of RET_REGISTER macro.
21539 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21541 2011-03-18 Jason Merrill <jason@redhat.com>
21544 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
21546 2011-03-18 Richard Guenther <rguenther@suse.de>
21548 * doc/install.texi (--enable-gold): Remove.
21549 (--with-plugin-ld): Document.
21550 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
21552 2011-03-18 Andrew Pinski <pinskia@gmail.com>
21554 PR middle-end/47790
21555 * expr.c (optimize_bitfield_assignment_op): Revamp to work
21556 again after expansion changes.
21558 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
21560 * combine.c (try_combine): Do simplification only call of
21561 subst() on i2 even when i1 is present. Update comments.
21563 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
21565 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
21566 and UNSPEC_PCREL_SYMOFF.
21568 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21570 * config/s390/s390.md: Use define_c_enum for the unspec constant
21573 2011-03-18 Richard Henderson <rth@redhat.com>
21574 Jakub Jelinek <jakub@redhat.com>
21577 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
21578 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
21580 2011-03-17 Anatoly Sokolov <aesok@post.ru>
21582 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21583 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
21584 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
21585 Change return type to bool.
21586 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21588 2011-03-17 Jakub Jelinek <jakub@redhat.com>
21591 * var-tracking.c (prepare_call_arguments): If CALL target
21592 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
21593 pc instead of looking it up using cselib_lookup and use
21594 Pmode for it if x has VOIDmode.
21595 * dwarf2out.c (gen_subprogram_die): If also both first and
21596 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
21599 * function.c (assign_parms): For data.passed_pointer parms
21600 use MEM of data.entry_parm instead of data.entry_parm itself
21601 as DECL_INCOMING_RTL.
21602 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
21603 also when passed and declared mode is the same, DECL_RTL
21604 is a MEM with pseudo as address and DECL_INCOMING_RTL is
21607 2011-03-16 Jeff Law <law@redhat.com>
21609 PR rtl-optimization/37273
21610 * ira-costs.c (scan_one_insn): Detect constants living in memory and
21611 handle them like argument loads from stack slots. Do not double
21612 count memory for memory constants and argument loads from stack slots.
21614 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
21617 * var-tracking.c (prepare_call_arguments): Check SUBREG.
21619 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
21622 * config/i386/i386.opt: Add Save to -mavx and -mfma.
21624 2011-03-17 Jakub Jelinek <jakub@redhat.com>
21627 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
21629 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
21630 Clear call_arg_locations and call_arg_loc_last always.
21632 PR middle-end/48152
21633 * var-tracking.c (prepare_call_arguments): If argument needs to be
21634 passed by reference, adjust argtype and mode.
21636 2011-03-17 Richard Guenther <rguenther@suse.de>
21638 PR middle-end/48134
21639 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
21640 a value make sure to fold the statement.
21642 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
21645 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
21646 return condition with !cfun->calls_alloca.
21648 2011-03-17 Richard Guenther <rguenther@suse.de>
21651 * lto-cgraph.c (input_overwrite_node): Clear the abstract
21652 origin for decls in other ltrans units.
21653 (input_varpool_node): Likewise.
21655 2011-03-17 Richard Guenther <rguenther@suse.de>
21657 PR middle-end/48165
21658 * tree-object-size.c (compute_object_offset): Properly return
21659 the offset operand of MEM_REFs as sizetype.
21661 2011-03-17 Jakub Jelinek <jakub@redhat.com>
21663 PR rtl-optimization/48141
21664 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
21665 * dse.c: Include params.h.
21666 (active_local_stores_len): New variable.
21667 (add_wild_read, dse_step1): Clear it when setting active_local_stores
21669 (record_store, check_mem_read_rtx): Decrease it when removing
21671 (scan_insn): Likewise. Increase it when adding to chain, if it
21672 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
21673 set active_local_stores to NULL before the addition.
21674 * Makefile.in (dse.o): Depend on $(PARAMS_H).
21676 PR rtl-optimization/48141
21677 * dse.c (record_store): If no positions are needed in an insn
21678 that cannot be deleted, at least unchain it from active_local_stores.
21680 2011-03-16 Dodji Seketeli <dodji@redhat.com>
21683 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
21684 (lookup_type_die_strip_naming_typedef): ... here.
21685 (get_context_die): Use it.
21686 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
21687 the anonymous struct named by the naming typedef.
21689 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
21692 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
21693 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
21695 2011-03-16 Jeff Law <law@redhat.com>
21697 * tree-vrp.c (identify_jump_threads): Slightly simplify type
21698 check for operands of conditional. Allow type to be a pointer.
21700 2011-03-16 Richard Guenther <rguenther@suse.de>
21702 PR tree-optimization/48149
21703 * fold-const.c (fold_binary_loc): Fold
21704 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
21706 2011-03-16 Richard Guenther <rguenther@suse.de>
21708 PR tree-optimization/26134
21709 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
21710 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
21711 (non_rewritable_mem_ref_base): Handle complex type component
21712 accesses, constrain offsets for vector and complex extracts
21715 2011-03-16 Richard Guenther <rguenther@suse.de>
21717 PR tree-optimization/48146
21718 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
21719 operands avoiding the need for renaming.
21721 2011-03-16 Richard Guenther <rguenther@suse.de>
21723 * gimple-fold.c (maybe_fold_reference): Open-code relevant
21724 constant folding. Move MEM_REF canonicalization first.
21725 Rely on fold_const_aggregate_ref for initializer folding.
21726 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
21728 2011-03-16 Jakub Jelinek <jakub@redhat.com>
21730 PR middle-end/48136
21731 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
21732 arg0/arg1 or their arguments are always fold converted to matching
21735 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
21738 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21741 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
21742 Handle in-tree gold.
21743 (ld_vers): Extract binutils version for gold.
21744 (gcc_cv_ld_hidden): Handle gold here.
21745 (gcc_cv_lto_plugin): Determine level of linker plugin support.
21746 * configure: Regenerate.
21747 * config.in: Regenerate.
21748 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
21749 -fuse-linker-plugin otherwise.
21750 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
21751 (LINK_COMMAND_SPEC): Use it.
21752 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
21754 2011-03-16 Jakub Jelinek <jakub@redhat.com>
21756 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
21757 * calls.c: Remove debug.h include.
21758 (emit_call_1): Don't call virtual_call_token debug hook.
21759 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
21760 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
21761 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
21762 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
21763 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
21764 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
21765 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
21766 dwarf2out_virtual_call): Remove.
21767 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
21768 copy_call_info and virtual_call hooks.
21769 (dwarf2out_init): Don't initialize vcall_insn_table,
21770 debug_dcall_section and debug_vcall_section.
21771 (prune_unused_types): Don't mark nodes from dcall_table.
21772 (dwarf2out_finish): Don't output dcall or vcall tables.
21773 * final.c (final_scan_insn): Don't call direct_call or
21774 virtual_call debug hooks.
21775 * debug.h (struct gcc_debug_hooks): Remove direct_call,
21776 virtual_call_token, copy_call_info and virtual_call hooks.
21777 (debug_nothing_uid): Remove prototype.
21778 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
21779 copy_call_info and virtual_call hooks.
21780 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21781 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
21782 * debug.c (do_nothing_debug_hooks): Likewise.
21783 (debug_nothing_uid): Remove.
21784 * doc/invoke.texi (-fenable-icf-debug): Remove.
21785 * common.opt (-fenable-icf-debug): Likewise.
21787 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
21788 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
21789 call's MEM. Handle functions returning aggregate through a hidden
21790 first pointer. For virtual calls add clobbered pc to call arguments
21792 * dwarf2out.c (gen_subprogram_die): Emit
21793 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
21797 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
21798 * rtl.h (ENTRY_VALUE_EXP): Define.
21799 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
21800 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
21801 * print-rtl.c (print_rtx): Likewise.
21802 * gengtype.c (adjust_field_rtx_def): Likewise.
21803 * var-tracking.c (vt_add_function_parameter): Adjust
21804 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
21805 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
21806 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
21807 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
21808 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
21810 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
21811 Call var_location debug hook even on CALL_INSNs.
21812 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
21813 * rtl.def (ENTRY_VALUE): New.
21814 * dwarf2out.c: Include cfglayout.h.
21815 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
21816 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
21817 (struct call_arg_loc_node): New type.
21818 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
21819 tail_call_site_count): New variables.
21820 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
21821 DW_TAG_GNU_call_site_parameter.
21822 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
21823 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
21824 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
21825 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
21826 and DW_AT_GNU_all_source_call_sites.
21827 (mem_loc_descriptor): Handle ENTRY_VALUE.
21828 (add_src_coords_attributes): Don't add enything if
21829 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
21830 (dwarf2out_abstract_function): Save and clear call_arg_location,
21831 call_site_count and tail_call_site_count around dwarf2out_decl call.
21832 (gen_call_site_die): New function.
21833 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
21834 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
21835 (dwarf2out_function_decl): Clear call_arg_locations,
21836 call_arg_loc_last, set call_site_count and tail_call_site_count
21837 to -1 and free block_map.
21838 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
21839 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
21840 followed by any real instructions.
21841 (dwarf2out_begin_function): Set call_site_count and
21842 tail_call_site_count to 0.
21843 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
21844 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
21845 attempt to force a DIE for it and worst case remove the attribute.
21846 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
21847 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
21849 * var-tracking.c: Include tm_p.h.
21850 (vt_stack_adjustments): For calls call note_register_arguments.
21851 (argument_reg_set): New variable.
21852 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
21853 ensure the VALUE is resolved.
21854 (call_arguments): New variable.
21855 (prepare_call_arguments): New function.
21856 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
21857 (struct expand_loc_callback_data): Add ignore_cur_loc field.
21858 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
21859 always use the best expression.
21860 (vt_expand_loc): Add ignore_cur_loc argument.
21861 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
21862 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
21863 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
21864 note for all calls.
21865 (vt_add_function_parameter): Use cselib_lookup_from_insn.
21866 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
21867 argument. Don't call cselib_preserve_only_values and
21868 cselib_reset_table.
21869 (note_register_arguments): New function.
21870 (vt_initialize): Compute argument_reg_set. Call
21871 vt_add_function_parameters before processing basic blocks instead of
21872 afterwards. For calls call prepare_call_arguments before calling
21873 cselib_process_insn.
21874 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
21875 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
21876 (var-tracking.o): Depend on $(TM_P_H).
21877 * cfglayout.h (insn_scope): New prototype.
21878 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
21879 * cfglayout.c (insn_scope): No longer static.
21880 * insn-notes.def (CALL_ARG_LOCATION): New.
21881 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
21882 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
21883 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
21884 nothing for DECL_EXTERNAL BLOCK_VARS.
21886 2011-03-16 Alan Modra <amodra@gmail.com>
21889 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21890 create invalid offset address for vsx splat insn.
21891 * config/rs6000/predicates.md (splat_input_operand): New.
21892 * config/rs6000/vsx.md (vsx_splat_*): Use it.
21894 2011-03-15 Xinliang David Li <davidxl@google.com>
21897 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
21898 (normalize_preds): New function.
21899 (is_use_properly_guarded): Normalize def predicates.
21901 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21904 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
21905 in the output template.
21907 2011-03-15 Richard Guenther <rguenther@suse.de>
21909 PR middle-end/47650
21910 * tree-pretty-print.c (dump_function_declaration): Properly
21911 dump unprototyped and varargs function types.
21913 2011-03-15 Richard Guenther <rguenther@suse.de>
21915 PR tree-optimization/13954
21916 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
21919 2011-03-15 Richard Guenther <rguenther@suse.de>
21921 PR tree-optimization/48037
21922 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
21923 selects into BIT_FIELD_REFs.
21924 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
21927 2011-03-15 Jakub Jelinek <jakub@redhat.com>
21929 PR tree-optimization/48129
21930 * builtins.c (fold_builtin_snprintf): Convert to type of
21931 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
21932 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
21934 2011-03-15 Richard Guenther <rguenther@suse.de>
21936 PR tree-optimization/41490
21937 * tree-ssa-dce.c (propagate_necessity): Handle returns without
21938 value but with VUSE.
21939 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
21941 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
21942 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
21943 * tree-tailcall.c (find_tail_calls): Ignore returns.
21945 2011-03-15 Richard Guenther <rguenther@suse.de>
21947 PR middle-end/48031
21948 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
21949 or variable-indexed array accesses when in gimple form.
21951 2011-03-15 Richard Guenther <rguenther@suse.de>
21953 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
21955 2011-03-15 Alan Modra <amodra@gmail.com>
21958 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
21959 presume symbol_refs without a symbol_ref_decl are suitably
21960 aligned, nor other trees we may see here. Handle anchor symbols.
21961 (legitimate_constant_pool_address_p): Comment. Add mode param.
21962 Check cmodel=medium addresses. Adjust all calls.
21963 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
21964 creating cmodel=medium optimized access to locals.
21965 * config/rs6000/constraints.md (R): Pass QImode to
21966 legitimate_constant_pool_address_p.
21967 * config/rs6000/predicates.md (input_operand): Pass mode to
21968 legitimate_constant_pool_address_p.
21969 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
21972 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21975 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
21976 64-bit constants being loaded into registers other than GPRs such
21977 as loading 0 into a VSX register.
21979 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21981 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
21983 2011-03-14 Jakub Jelinek <jakub@redhat.com>
21985 PR middle-end/47917
21986 * builtins.c (fold_builtin_snprintf): New function.
21987 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
21988 (fold_builtin_4): Likewise.
21990 PR middle-end/38878
21991 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
21992 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
21993 and C - X == X also strip nops from +/-/p+ operand.
21994 When optimizing -X == C, fold C to arg0's type.
21997 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
21998 emit it as add_AT_int instead of add_AT_unsigned.
22000 2011-03-14 Tom Tromey <tromey@redhat.com>
22002 * unwind-dw2.c: Include sys/sdt.h if it exists.
22003 (_Unwind_DebugHook): Use STAP_PROBE2.
22004 * config.in, configure: Rebuild.
22005 * configure.ac: Check for sys/sdt.h.
22007 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
22009 * config/i386/i386.md (ROUND_FLOOR): New constant.
22010 (ROUND_CEIL): Ditto.
22011 (ROUND_TRUNC): Ditto.
22012 (ROUND_MXCSR): Ditto.
22013 (ROUND_NO_EXC): Ditto.
22014 (rint<mode>2): Use new defines instead of numerical constants.
22015 (floor<mode>2): Ditto.
22016 (ceil<mode>2): Ditto.
22017 (btrunc<mode>2): Ditto.
22018 * config/i386/i386-builtin-types.def: Define ROUND function type
22020 * config/i386/i386.c (enum ix86_builtins): Add
22021 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
22022 (struct builtin_description): Add
22023 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
22024 (ix86_expand_sse_round): New static function.
22025 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
22027 (ix86_builtin_vectorized_function): Handle
22028 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
22030 2011-03-14 Tom Tromey <tromey@redhat.com>
22032 * c-parser.c (c_parser_asm_string_literal): Clear
22033 warn_overlength_strings.
22035 2011-03-14 Tom Tromey <tromey@redhat.com>
22037 * c-parser.c (disable_extension_diagnostics): Save
22038 warn_overlength_strings.
22039 (restore_extension_diagnostics): Restore warn_overlength_strings.
22041 2011-03-14 Jakub Jelinek <jakub@redhat.com>
22043 * BASE-VER: Change to 4.7.0.
22045 2011-03-14 Richard Guenther <rguenther@suse.de>
22047 PR middle-end/48098
22048 * tree.c (build_vector_from_val): Adjust assert to requirements
22051 2011-03-14 Jakub Jelinek <jakub@redhat.com>
22054 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
22056 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
22058 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
22059 terms of target_flags_explicit. Adjust copyright year.
22061 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
22062 * config/rs6000/t-freebsd: New file. Add override for
22065 2011-03-13 Chris Demetriou <cgd@google.com>
22067 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
22068 (-fno-diagnostics-show-option): this, to reflect current default.
22069 (-Werror=): Update text about -fno-diagnostics-show-option.
22071 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
22074 * config/rs6000/predicates.md (easy_vector_constant_add_self,
22075 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
22076 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
22077 mode is not V2DImode or V2DFmode.
22078 (vspltis_constant): Do not handle V2DImode and V2DFmode.
22079 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
22080 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
22082 (movdi_internal64): Likewise.
22084 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
22086 PR tree-optimization/47127
22087 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
22089 (set_cloog_options): Same.
22090 (scop_to_clast): Same.
22091 (print_clast_stmt): Do not call cloog_state_malloc and
22093 (print_generated_program): Same.
22095 * graphite-clast-to-gimple.h (cloog_state): Declared.
22096 (scop_to_clast): Adjust declaration.
22097 * graphite.c (cloog_state): Defined here.
22098 (graphite_initialize): Call cloog_state_malloc.
22099 (graphite_finalize): Call cloog_state_free.
22101 2011-03-11 Jason Merrill <jason@redhat.com>
22103 * attribs.c (lookup_attribute_spec): Take const_tree.
22106 2011-03-11 Joseph Myers <joseph@codesourcery.com>
22108 * config/sparc/sparc.c (sparc_option_override): Use
22109 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
22111 2011-03-11 Richard Guenther <rguenther@suse.de>
22113 PR tree-optimization/48067
22114 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
22115 multiplication result will be only used once on the target
22118 2011-03-11 Richard Guenther <rguenther@suse.de>
22120 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
22122 2011-03-11 Richard Guenther <rguenther@suse.de>
22125 * tree.c (find_decls_types_r): Do not walk types only reachable
22126 from IDENTIFIER_NODEs.
22128 2011-03-11 Jakub Jelinek <jakub@redhat.com>
22130 PR middle-end/48044
22131 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
22132 all vnode->force_output nodes as needed.
22134 2011-03-11 Jason Merrill <jason@redhat.com>
22137 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
22138 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
22140 2011-03-11 Martin Jambor <mjambor@suse.cz>
22142 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
22145 2011-03-11 Jakub Jelinek <jakub@redhat.com>
22147 PR tree-optimization/48063
22148 * ipa-inline.c (cgraph_decide_inlining): Don't try to
22149 inline functions called once if !tree_can_inline_p (node->callers).
22151 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
22153 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
22155 * config/score/score3.c: Delete.
22156 * config/score/score3.h: Delete.
22157 * config/score/mul-div.S: Delete.
22158 * config/score/sfp-machine.h: Add new file.
22159 * config/score/constraints.md: Add new file.
22160 * config/score/t-score-softfp: Add new file.
22161 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
22162 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
22163 (score7_extra_constraint): Delete.
22164 (score7_option_override): Remove unused code.
22165 * config/score/score.c: Remove score3 and score5 define and code.
22166 * config/score/score.h: Remove score3 and score5 define and code.
22167 * config/score/score.md: Remove score3 template and unusual insn.
22168 * config/score/score.opt: Remove score3 and score5 options.
22170 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22172 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
22173 when _HPUX_SOURCE is defined.
22174 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
22176 2011-03-10 Jason Merrill <jason@redhat.com>
22179 * stor-layout.c (layout_type): Don't set structural equality
22180 on arrays of incomplete type.
22181 * tree.c (type_hash_eq): Handle comparing them properly.
22183 2011-03-10 Jakub Jelinek <jakub@redhat.com>
22186 * config/s390/s390.c (s390_delegitimize_address): Make sure the
22187 result mode matches original rtl mode.
22189 2011-03-10 Nick Clifton <nickc@redhat.com>
22191 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
22192 (andsi3, andsi3_flags): Fix timings for three operand alternative.
22194 2011-03-09 Jakub Jelinek <jakub@redhat.com>
22196 PR rtl-optimization/47866
22197 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
22198 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
22199 if target wasn't scalar.
22200 * function.c (assign_stack_temp_for_type): Assert that neither
22201 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
22202 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
22204 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
22206 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22208 * config/s390/s390-protos.h (s390_label_align): New prototype.
22209 * config/s390/s390.c (s390_label_align): New function.
22210 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
22212 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
22215 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
22216 V2DI/V2DF constants. Only all 0's or all 1's are easy.
22217 (output_vec_const_move): Ditto.
22219 2011-03-08 Anatoly Sokolov <aesok@post.ru>
22221 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
22222 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
22223 * config/mips/mips.c (mips_preferred_reload_class): Make static.
22224 Change 'rclass' argument and result type to reg_class_t.
22225 (TARGET_PREFERRED_RELOAD_CLASS): Define.
22227 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
22229 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
22230 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
22231 (TARGET_MEMORY_MOVE_COST): Define.
22232 (avr_register_move_cost, avr_memory_move_cost): New Functions.
22234 2011-03-08 Jakub Jelinek <jakub@redhat.com>
22237 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
22240 PR tree-optimization/48022
22241 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
22244 2011-03-07 Jakub Jelinek <jakub@redhat.com>
22247 * var-tracking.c (find_use_val): Return NULL for
22248 cui->sets && cui->store_p BLKmode MEMs.
22250 2011-03-07 Anatoly Sokolov <aesok@post.ru>
22252 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
22254 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
22255 xstormy16_print_operand_address): Remove.
22256 * config/stormy16/stormy16.c (xstormy16_print_operand,
22257 xstormy16_print_operand_address): Make static.
22258 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22260 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
22263 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
22264 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
22267 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
22270 * cfgloopmanip.c (fix_bb_placements): Return immediately
22271 if FROM is BASE_LOOP's header.
22273 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
22275 * gimplify.c (gimplify_function_tree): Fix building calls
22276 to __builtin_return_address.
22278 2011-03-07 Alan Modra <amodra@gmail.com>
22280 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
22281 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
22282 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
22283 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
22285 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
22286 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
22287 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
22288 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
22289 * config/rs6000/rs6000.c
22290 (rs6000_elf_end_indicate_exec_stack): Rename to..
22291 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
22292 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
22293 (rs6000_file_start): ..here.
22294 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
22295 file scope variables.
22296 (call_ABI_of_interest): New function.
22297 (init_cumulative_args): Set above vars when function return value
22298 is a float, vector, or small struct.
22299 (rs6000_function_arg_advance_1): Likewise for function args.
22300 (rs6000_va_start): Set rs6000_passes_float if variable arg function
22301 references float args.
22303 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
22305 * doc/cfg.texi: Remove "See" before @ref.
22306 * doc/invoke.texi: Likewise.
22308 2011-03-05 Jason Merrill <jason@redhat.com>
22310 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
22312 2011-03-05 Anthony Green <green@moxielogic.com>
22314 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
22316 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
22318 PR rtl-optimization/47899
22319 * cfgloopmanip.c (fix_bb_placements): Fix first argument
22320 to flow_loop_nested_p when moving the loop upward.
22322 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
22325 * arm.md (movhi_insn_arch4): Accept any immediate constant.
22327 2011-03-05 Jakub Jelinek <jakub@redhat.com>
22329 PR tree-optimization/47967
22330 * ipa-cp.c (build_const_val): Return NULL instead of creating
22331 VIEW_CONVERT_EXPR for mismatching sizes.
22332 (ipcp_create_replace_map): Return NULL if build_const_val failed.
22333 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
22334 give up on versioning.
22336 2011-03-05 Alan Modra <amodra@gmail.com>
22339 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
22340 full cmodel medium/large lo_sum + high addresses.
22342 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22344 * config/s390/s390.c (s390_decompose_address): Reject non-literal
22345 pool references in UNSPEC_LTREL_OFFSET.
22347 2011-03-04 Jan Hubicka <jh@suse.cz>
22350 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
22351 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
22352 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
22354 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
22355 cgraph_add_thunk): Add node pointers.
22356 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
22357 associated to right node.
22358 (input_node): Update use of cgraph_same_body_alias
22359 and cgraph_add_thunk.
22361 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
22363 * config/i386/i386.opt (mprefer-avx128): New flag.
22364 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
22365 modes when the flag -mprefer-avx128 is on.
22367 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
22369 * dwarf2out.c (compare_loc_operands): Fix address handling.
22371 2011-03-04 Alan Modra <amodra@gmail.com>
22373 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
22375 2011-03-04 Richard Guenther <rguenther@suse.de>
22377 PR middle-end/47968
22378 * expmed.c (extract_bit_field_1): Prefer vector modes that
22379 vec_extract patterns can handle.
22381 2011-03-04 Richard Guenther <rguenther@suse.de>
22383 PR middle-end/47975
22384 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
22386 2011-03-04 Richard Henderson <rth@redhat.com>
22388 * explow.c (emit_stack_save): Remove 'after' parameter.
22389 (emit_stack_restore): Likewise.
22390 * expr.h: Update to match.
22391 * builtins.c, calls.c, stmt.c: Likewise.
22392 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
22393 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
22394 * function.c (expand_function_end): Insert the emit_stack_save
22395 sequence before parm_birth_insn instead of after.
22397 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
22399 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
22400 (ssse3_pmaddubsw128): Ditto.
22401 (ssse3_pmaddubsw): Ditto.
22403 2011-03-03 Steve Ellcey <sje@cup.hp.com>
22405 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
22407 2011-03-03 Jakub Jelinek <jakub@redhat.com>
22410 * gimplify.c (omp_add_variable): Only call omp_notice_variable
22411 on TYPE_SIZE_UNIT if it is a DECL.
22414 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
22415 first operand is not is_gimple_mem_ref_addr, try to fold it.
22416 If the operand still isn't is_gimple_mem_ref_addr, clear
22419 2011-03-03 Richard Guenther <rguenther@suse.de>
22421 PR middle-end/47283
22422 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
22424 (refs_may_alias_p_1): For release branches return true if
22425 we are confused by our input.
22427 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22429 * config/s390/s390.c (s390_function_value): Rename to ...
22430 (s390_function_and_libcall_value): ... this.
22431 (s390_function_value): New function.
22432 (s390_libcall_value): New function.
22433 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
22434 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
22435 target macro definitions.
22436 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
22438 2011-03-02 Joseph Myers <joseph@codesourcery.com>
22440 * config/i386/freebsd64.h (CC1_SPEC): Define.
22441 * config/i386/linux64.h (CC1_SPEC): Define.
22442 * config/i386/x86-64.h (CC1_SPEC): Don't define.
22444 2011-03-02 Anatoly Sokolov <aesok@post.ru>
22446 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
22448 * config/stormy16/stormy16.c: Include reload.h.
22449 (xstormy16_memory_move_cost): New function.
22450 (TARGET_MEMORY_MOVE_COST): Define.
22452 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
22454 PR rtl-optimization/47925
22455 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
22456 with side effects. Remove the more-specific check for volatile asms.
22458 2011-03-02 Alan Modra <amodra@gmail.com>
22461 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
22462 toc relative addresses for valid offsets.
22464 2011-03-01 Richard Guenther <rguenther@suse.de>
22466 PR tree-optimization/47890
22467 * tree-vect-loop.c (get_initial_def_for_induction): Set
22468 related stmt properly.
22470 2011-03-01 Richard Guenther <rguenther@suse.de>
22473 * lto-streamer.c (lto_record_common_node): Also register
22474 the canonical type.
22476 2011-03-01 Richard Guenther <rguenther@suse.de>
22479 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
22480 Do not stream DECL_ABSTRACT_ORIGIN.
22481 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
22482 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
22483 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
22484 Do not stream DECL_ABSTRACT_ORIGIN.
22485 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
22486 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
22488 2011-02-28 Anatoly Sokolov <aesok@post.ru>
22490 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
22491 FUNCTION_VALUE_REGNO_P): Remove.
22492 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
22493 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
22494 Add 'outgoing' argument.
22495 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
22497 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22498 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22500 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
22503 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
22504 (lookup_filename): Likewise.
22505 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
22507 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
22508 Jakub Jelinek <jakub@redhat.com>
22510 PR middle-end/47893
22511 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
22512 (assign_stack_local_1): Change last argument type to int.
22513 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
22514 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
22515 don't record padding space into frame_space_list nor use those areas.
22516 (assign_stack_local): Adjust caller.
22517 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
22518 of assign_stack_local, pass 0 as last argument.
22519 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
22522 2011-02-28 Jakub Jelinek <jakub@redhat.com>
22525 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
22526 Use target address_mode and pointer_mode hooks instead of hardcoded
22527 Pmode and ptr_mode. Handle some simple cases of extending if
22528 POINTERS_EXTEND_UNSIGNED < 0.
22529 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
22530 Call convert_debug_memory_address.
22531 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
22532 convert_debug_memory_address.
22534 PR middle-end/46790
22535 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
22536 * configure: Regenerated.
22537 * config.in: Regenerated.
22538 * varasm.c (default_function_section): Return NULL
22539 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
22541 2011-02-28 Martin Jambor <mjambor@suse.cz>
22543 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
22544 the description to match the printed values.
22546 2011-02-28 Richard Guenther <rguenther@suse.de>
22548 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
22549 of the copied scope tree.
22551 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22553 * doc/extend.texi (Function Attributes): Avoid deeply (and
22554 wrongly) nested tables.
22556 2011-02-27 Jakub Jelinek <jakub@redhat.com>
22558 PR middle-end/47903
22559 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
22560 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
22561 r isn't op0 nor op1.
22563 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
22565 * config/avr/avr.md: Remove magic comment for emacs.
22567 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
22570 * config/avr/avr.c (avr_option_override): Use error on bad options.
22571 (avr_help): New function.
22572 (TARGET_HELP): Define.
22574 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
22577 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
22578 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
22580 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
22582 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
22583 (ARM Options): Ditto.
22584 (i386 and x86-64 Options): Ditto.
22585 (RX Options): Ditto.
22586 (SPARC Options): Ditto.
22588 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
22590 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
22591 FreeBSD 6 and later. Generally use cpu generic.
22593 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
22595 * doc/cpp.texi: Update copyright years.
22597 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
22600 * config/lm32/lm32.md (ashrsi3): Added needed variable.
22602 2011-02-25 Jon Beniston <jon@beniston.com>
22605 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
22606 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
22607 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
22608 (lm32_block_move_inline): Add type cast to remove warning.
22609 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
22610 (gen_int_relational): Move declarations to start of function.
22612 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
22614 PR tree-optimization/45470
22615 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
22616 can throw internally only.
22617 * tree-vect-stmts.c (vectorizable_call): Likewise.
22619 2011-02-24 Anatoly Sokolov <aesok@post.ru>
22621 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
22622 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
22623 * config/stormy16/stormy16-protos.h
22624 (xstormy16_preferred_reload_class): Remove.
22625 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
22626 static. Change 'rclass' argument and return type to reg_class_t.
22627 (TARGET_PREFERRED_RELOAD_CLASS,
22628 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
22630 2011-02-24 Richard Guenther <rguenther@suse.de>
22632 * lto-streamer-in.c (input_bb): Do not find referenced vars
22633 in debug statements.
22635 2011-02-23 Jason Merrill <jason@redhat.com>
22637 * common.opt (fabi-version): Document v5 and v6.
22639 2011-02-23 Richard Guenther <rguenther@suse.de>
22641 PR tree-optimization/47849
22642 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
22644 2011-02-23 Jie Zhang <jie@codesourcery.com>
22646 * opts-common.c (decode_cmdline_option): Print empty string
22647 argument as "" in decoded->orig_option_with_args_text.
22648 * gcc.c (execute): Print empty string argument as ""
22649 in the verbose output.
22650 (do_spec_1): Keep empty string argument.
22652 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
22654 * config.gcc: Declare score-* and crx-* obsolete.
22656 2011-02-23 Jie Zhang <jie@codesourcery.com>
22658 PR rtl-optimization/47763
22659 * web.c (web_main): Ignore naked clobber when replacing register.
22661 2011-02-22 Anatoly Sokolov <aesok@post.ru>
22663 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
22666 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
22669 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
22671 2011-02-22 Mike Stump <mikestump@comcast.net>
22673 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
22675 * configure: Regenerate.
22677 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
22679 PR rtl-optimization/46002
22680 * ira-color.c (update_copy_costs): Change class intersection
22681 test to reg_class_contents[] test of 'hard_regno'.
22683 2011-02-21 Joseph Myers <joseph@codesourcery.com>
22685 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
22686 than Driver option.
22687 * config/hpux11.opt (mt): Likewise.
22688 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
22689 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
22690 * config/vax/elf.opt (mno-asm-pic): Likewise.
22691 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
22693 2011-02-21 Mike Stump <mikestump@comcast.net>
22696 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
22697 tree so we can get save the type.
22698 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
22699 for CFString instead of trying to use past the end of the builtins.
22700 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
22701 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
22702 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
22703 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
22704 Rename to darwin_builtin_cfstring.
22705 (darwin_init_cfstring_builtins): Return the built type.
22707 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
22710 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
22711 (_mm256_insert_epi64): Use _mm_insert_epi64.
22713 2011-02-21 Anatoly Sokolov <aesok@post.ru>
22715 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22716 * config/stormy16/stormy16-protos.h
22717 (xstormy16_mode_dependent_address_p): Remove.
22718 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
22719 Make static. Change return type to bool. Change argument type to
22720 const_rtx. Remove dead code.
22721 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22723 2011-02-21 Richard Guenther <rguenther@suse.de>
22726 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
22727 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
22728 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
22730 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
22731 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
22733 2011-02-20 Richard Guenther <rguenther@suse.de>
22736 * tree.c (free_lang_data_in_decl): Clean builtins from
22737 the TU decl BLOCK_VARS.
22739 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
22743 * haifa-sched.c (fix_tick_ready): Skip tick computation
22746 2011-02-19 Richard Guenther <rguenther@suse.de>
22749 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
22750 Remove lazy BLOCK_VARS streaming.
22751 (lto_input_ts_block_tree_pointers): Likewise.
22752 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
22754 2011-02-19 Joseph Myers <joseph@codesourcery.com>
22756 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
22758 2011-02-19 Joseph Myers <joseph@codesourcery.com>
22760 * config/i386/biarch32.h, config/i386/mach.h,
22761 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
22763 2011-02-19 Jakub Jelinek <jakub@redhat.com>
22766 * config/i386/i386.md (peephole2 for shift and plus): Use
22767 operands[1] original mode in the first insn.
22769 2011-02-18 Mike Stump <mikestump@comcast.net>
22771 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
22773 2011-02-18 Jan Hubicka <jh@suse.cz>
22775 PR middle-end/47788
22776 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
22777 to zero when the function is not inlinable at all.
22779 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22781 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
22782 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
22783 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
22784 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
22785 * config/pa/t-pa64: Likewise.
22786 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
22788 2011-02-18 Jakub Jelinek <jakub@redhat.com>
22791 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
22793 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22796 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
22798 2011-02-18 Anatoly Sokolov <aesok@post.ru>
22800 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
22801 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
22802 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
22803 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22804 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
22805 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
22806 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
22807 m32r_load_postinc_p, m32r_store_preinc_predec_p,
22808 m32r_legitimate_address_p): New functions.
22809 * config/m32r/constraints.md (constraint "S"): Don't use
22810 STORE_PREINC_PREDEC_P.
22811 (constraint "U"): Don't use LOAD_POSTINC_P.
22813 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
22815 PR rtl-optimization/46178
22816 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
22817 compute ira_hard_regno_cover_class[].
22819 2011-02-18 Richard Guenther <rguenther@suse.de>
22822 * lto-streamer.h (lto_global_var_decls): Declare.
22823 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
22824 statics for global var processing.
22826 2011-02-18 Richard Guenther <rguenther@suse.de>
22828 PR tree-optimization/47737
22829 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
22830 edge dominance check.
22832 2011-02-18 Jakub Jelinek <jakub@redhat.com>
22835 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
22836 avoid invalid rtx sharing.
22838 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
22840 * doc/cpp.texi (Obsolete Features): Add background on the
22841 origin of assertions.
22843 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
22845 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
22847 * config/darwin.c (output_objc_section_asm_op): Added support for
22849 (is_objc_metadata): New.
22850 (darwin_objc2_section): New.
22851 (darwin_objc1_section): New.
22852 (machopic_select_section): Added support for ABI v1 and v2.
22853 (darwin_emit_objc_zeroed): New.
22854 (darwin_output_aligned_bss): Detect objc metadata and treat it
22856 (darwin_asm_output_aligned_decl_common): Same.
22857 (darwin_asm_output_aligned_decl_local): Same.
22858 * config/darwin-sections.def: Updated for ABI v1 and v2.
22859 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
22860 compiling Objective-C code for the NeXT runtime, default to using
22861 ABI version 0 for 32-bit, and version 2 for 64-bit.
22863 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22865 * common.opt (optimize_fast): New Variable.
22866 * opts.c (default_options_optimization): Use opts->x_optimize_fast
22867 instead of local variable ofast.
22869 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
22871 * doc/invoke.texi (fobjc-abi-version): Documented.
22872 (fobjc-nilcheck): Documented.
22873 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
22876 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22879 * common.opt (export-dynamic): New Driver option.
22880 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
22882 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22884 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
22886 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
22887 Jan Hubicka <jh@suse.cz>
22891 * cfgexpand.c (account_used_vars_for_block): Remove.
22892 (estimated_stack_frame_size): Use referenced vars.
22893 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
22894 that were referenced in the original function. Test src_fn
22895 rather than cfun. Drop redundant get_var_ann.
22896 (setup_one_parameter): Drop redundant get_var_ann.
22897 (declare_return_variable): Likewise.
22898 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
22899 (copy_arguments_for_versioning): Drop redundant get_var_ann.
22900 * ipa-inline.c (compute_inline_parameters): Do not compute
22901 disregard_inline_limits here.
22902 (compute_inlinable_for_current, pass_inlinable): New.
22903 (pass_inline_parameters): Require PROP_referenced_vars.
22904 * cgraphunit.c (cgraph_process_new_functions): Don't run
22905 compute_inline_parameters explicitly unless function is in SSA form.
22906 (cgraph_analyze_function): Set .disregard_inline_limits.
22907 * tree-sra.c (convert_callers): Compute inliner parameters
22908 only for functions already in SSA form.
22910 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22912 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
22913 -mlittle-endian-data.
22915 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22917 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
22918 -mno-fpu, not -fpu and -no-fpu.
22919 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
22920 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
22922 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
22925 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
22926 input reload with PLUS RTX.
22928 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22930 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
22931 of InverseVar(MDMX).
22933 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22935 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
22938 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22940 * config/mn10300/mn10300.opt (mno-crt0): New.
22942 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22944 * config/m68k/uclinux.opt (static-libc): New Driver option.
22946 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22948 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
22950 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22952 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
22953 %{muser-extend-enabled}.
22955 2011-02-16 Richard Guenther <rguenther@suse.de>
22957 PR tree-optimization/47738
22958 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
22959 the TODO from tree_predictive_commoning.
22961 2011-02-15 Jeff Law <law@redhat.com>
22964 2011-01-25 Jeff Law <law@redhat.com>
22966 PR rtl-optimization/37273
22967 * ira-costs.c (scan_one_insn): Detect constants living in memory and
22968 handle them like argument loads from stack slots. Do not double
22969 count memory for memory constants and argument loads from stack slots.
22971 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22974 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
22975 mode for vector constants. Remove code that checks for TImode.
22977 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
22981 * cgraph.h (compute_inline_parameters): Return void.
22982 * ipa-inline.c (compute_inline_parameters): Adjust.
22984 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
22988 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
22990 * cfgexpand.c (estimated_stack_frame_size): Likewise.
22991 * ipa-inline.c (compute_inline_parameters): Adjust.
22993 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
22997 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
22998 Adjust all users. Pass FN to...
22999 * tree-flow-inline.h (first_referenced_var): ... this. Add
23001 * ipa-struct-reorg.c: Adjust.
23002 * tree-dfa.c: Adjust.
23003 * tree-into-ssa.c: Adjust.
23004 * tree-sra.c: Adjust.
23005 * tree-ssa-alias.c: Adjust.
23006 * tree-ssa-live.c: Adjust.
23007 * tree-ssa.c: Adjust.
23008 * tree-ssanames.c: Adjust.
23009 * tree-tailcall.c: Adjust.
23011 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
23015 * tree-flow.h (referenced_var_lookup): Add fn parameter.
23016 Adjust all callers.
23017 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
23018 * tree-flow-inline.h: Adjust.
23019 * gimple-pretty-print.c: Adjust.
23020 * tree-into-ssa.c: Adjust.
23021 * tree-ssa.c: Adjust.
23022 * cfgexpand.c: Adjust.
23024 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
23026 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
23027 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23028 (EXTRA_CONSTRAINT): Delete.
23029 * config/iq2000/constraints.md: New file.
23030 * config/iq2000/iq2000.md: Include it.
23031 (define_insn ""): Delete.
23032 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
23033 unsupported constraint letters from patterns.
23034 (call_value, call_value_internal1): Likewise.
23035 (call_value_multiple_internal1): Likewise.
23037 2011-02-15 Nick Clifton <nickc@redhat.com>
23039 * config/mn10300/mn10300.c: Include tm-constrs.h.
23040 (struct liw_data): New data structure describing an LIW candidate
23042 (extract_bundle): Use struct liw_data. Allow small integer
23043 operands for some instructions.
23044 (check_liw_constraints): Use struct liw_data. Remove swapped
23045 parameter. Add comments describing the checks. Fix bug when
23046 assigning the source of liw1 to the source of liw2.
23047 (liw_candidate): Delete. Code moved into extract_bundle.
23048 (mn10300_bundle_liw): Use struct liw_data. Check constraints
23050 * config/mn10300/predicates.md (liw_operand): New predicate.
23051 Allows registers and small integer constants.
23052 * config/mn10300/constraints.md (O): New constraint. Accetps
23053 integers in the range -8 to +7 inclusive.
23054 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
23055 for moving a small integer into a register. Give this alternative
23057 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
23058 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
23059 using the J,K,L and M constraints,
23060 (liw): Remove SI mode on second operands to allow for HI and QI
23062 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
23065 2011-02-15 Richard Guenther <rguenther@suse.de>
23067 PR tree-optimization/47743
23068 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
23069 for a non-type-compatible VN lookup bail out.
23071 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
23073 * config/fr30/constraints.md: New file.
23074 * config/fr30/fr30.md: Include it.
23075 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
23076 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23077 (EXTRA_CONSTRAINT): Delete.
23079 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
23081 * config/frv/constraints.md: New file.
23082 * config/frv/predicates.md: Include it.
23083 * config/frv/frv.c (reg_class_from_letter): Delete.
23084 (frv_option_override): Don't initialize it.
23085 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
23086 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
23087 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
23088 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
23089 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
23090 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23091 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
23092 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
23093 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
23094 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
23095 (REG_CLASS_FROM_CONSTRAINT): Delete.
23097 2011-02-15 Jakub Jelinek <jakub@redhat.com>
23099 PR middle-end/47581
23100 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
23101 if frame size is 0 in a leaf function.
23103 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23106 * config/alpha/host-osf.c: New file.
23107 * config/alpha/x-osf: New file.
23108 * config.host (alpha*-dec-osf*): Use it.
23110 2011-02-14 Anatoly Sokolov <aesok@post.ru>
23112 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23113 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
23114 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
23115 (rx_mode_dependent_address_p): ...this. Make static. Change argument
23117 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23119 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
23121 * config/stormy16/constraints.md: New file.
23122 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
23123 Use satisfies_constraint_Q and satisfies_constraint_R.
23124 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
23126 (xstormy16_legitiamte_address_p): Declare.
23127 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
23128 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23129 (EXTRA_CONSTRAINT): Delete.
23130 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
23132 (xstormy16_extra_constraint_p): Delete.
23134 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
23136 PR tree-optimization/46494
23137 * loop-unroll.c (split_edge_and_insert): Adjust comment.
23138 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
23139 (pass_rtl_loop_done): Add TODO_verify_flow.
23140 * fwprop.c (pass_rtl_fwprop): Likewise.
23141 * modulo-sched.c (pass_sms): Likewise.
23142 * tree-ssa-dom.c (pass_dominator): Likewise.
23143 * tree-ssa-loop-ch.c (pass_ch): Likewise.
23144 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
23145 (pass_tree_loop_done): Likewise.
23146 * tree-ssa-pre.c (execute_pre): Likewise.
23147 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
23148 * tree-ssa-sink.c (pass_sink_code): Likewise.
23149 * tree-vrp.c (pass_vrp): Likewise.
23151 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
23153 * config/v850/constraints.md: New file.
23154 * config/v850/v850.md: Include it.
23155 * config/v850/predicates.md (reg_or_0_operand): Use
23156 satisfies_constraint_G.
23157 (special_symbolref_operand): Use satisfies_constraint_K.
23158 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
23159 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
23160 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
23161 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
23162 (EXTRA_CONSTRAINT): Delete.
23163 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
23164 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
23165 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
23167 2011-02-14 Anatoly Sokolov <aesok@post.ru>
23170 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
23173 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
23175 * config/mcore/constraints.md: New file.
23176 * config/mcore/mcore.md: Include it.
23177 * config/mcore/mcore.c (reg_class_from_letter): Delete.
23178 * config/mcore/mcore.h (reg_class_from_letter): Delete.
23179 (REG_CLASS_FROM_LETTER): Delete.
23180 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
23181 insn_const_int_ok_for_constraint.
23182 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
23183 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
23184 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23185 (EXTRA_CONSTRAINT): Delete.
23187 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23190 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
23191 (IS_SIGHANDLER): Define.
23192 (sparc64_is_sighandler): New function, split off from
23193 sparc64_fallback_frame_state.
23194 (sparc_is_sighandler): New function, split off from
23195 sparc_fallback_frame_state.
23196 (sparc64_fallback_frame_state): Merge with ...
23197 (sparc_fallback_frame_state): ... this into ...
23198 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
23199 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
23200 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
23201 stack instead of hardcoded offsets.
23203 2011-02-14 Andriy Gapon <avg@freebsd.org>
23206 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
23208 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23210 * configure: Regenerate.
23212 2011-02-12 Joseph Myers <joseph@codesourcery.com>
23215 * gcc.c (asm_options): Correct spec matching --target-help.
23217 2011-02-12 Martin Jambor <mjambor@suse.cz>
23219 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
23220 to gimple call error.
23222 2011-02-12 Mike Stump <mikestump@comcast.net>
23224 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
23225 comments in backslash regions.
23227 2011-02-12 Mike Stump <mikestump@comcast.net>
23228 Jakub Jelinek <jakub@redhat.com>
23229 Iain Sandoe <iains@gcc.gnu.org>
23232 * dwarf2out.c (output_cfa_loc): When required, apply the
23233 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
23234 (output_loc_sequence): Likewise.
23235 (output_loc_operands_raw): Likewise.
23236 (output_loc_sequence_raw): Likewise.
23237 (output_cfa_loc): Likewise.
23238 (output_loc_list): Suppress register number adjustment when
23239 calling output_loc_sequence()
23240 (output_die): Likewise.
23242 2011-02-12 Anatoly Sokolov <aesok@post.ru>
23244 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
23246 * config/xtensa/xtensa.c (xtensa_register_move_cost,
23247 xtensa_memory_move_cost): New functions.
23248 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
23250 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
23253 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
23254 in the current directory.
23255 * configure: Rebuilt.
23257 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
23259 * config/darwin.c (darwin_override_options): Add a hunk missed
23260 from the commit of r168571. Trim comment line lengths and
23261 correct indents of the preceding block.
23263 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
23265 * gcc.c (driver_handle_option): Concatenate the argument to -F with
23268 2011-02-11 Joseph Myers <joseph@codesourcery.com>
23270 * common.opt (nostartfiles): New Driver option.
23272 2011-02-11 Xinliang David Li <davidxl@google.com>
23274 PR tree-optimization/47707
23275 * tree-chrec.c (convert_affine_scev): Keep type precision.
23277 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
23279 PR tree-optimization/47420
23280 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
23282 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
23284 PR rtl-optimization/47614
23285 * rtl.h (check_for_inc_dec): Declare.
23286 * dse.c (check_for_inc_dec): Externalize...
23287 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
23288 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
23290 2011-02-11 Joseph Myers <joseph@codesourcery.com>
23293 * gcc.c (main): Do not compile inputs if there were errors in
23295 * opts-common.c (read_cmdline_option): Check for wrong language
23296 after other error checks.
23298 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
23300 * cgraph.c: Fix comment typos.
23301 * cgraph.h: Likewise.
23302 * cgraphunit.c: Likewise.
23303 * ipa-cp.c: Likewise.
23304 * ipa-inline.c: Likewise.
23305 * ipa-prop.c: Likewise.
23306 * ipa-pure-const.c: Likewise.
23307 * ipa-ref.c: Likewise.
23308 * ipa-reference.c: Likewise.
23310 2011-02-11 Jakub Jelinek <jakub@redhat.com>
23313 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
23315 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23318 * doc/sourcebuild.texi (Require Support): Document
23319 dg-require-ascii-locale.
23321 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
23323 * doc/lto.texi (Write summary): Fix missing parentheses.
23325 2011-02-10 DJ Delorie <dj@redhat.com>
23327 * config/m32c/m32c.c (m32c_option_override): Disable
23328 -fcombine-stack-adjustments until flag value tracking and compare
23329 optimization can be rewritten.
23331 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
23333 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
23335 (PROCESSOR_DEFAULT64): Likewise.
23337 2011-02-10 Richard Henderson <rth@redhat.com>
23339 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
23340 change from 2011-02-03.
23341 * config/rx/rx.c (flags_from_code): Likewise.
23342 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
23343 is valid, n/pz otherwise.
23344 (rx_select_cc_mode): Return CCmode if Y is not zero.
23346 2011-02-10 Richard Guenther <rguenther@suse.de>
23348 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
23350 2011-02-10 Richard Guenther <rguenther@suse.de>
23352 PR tree-optimization/47677
23353 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
23355 2011-02-10 Jakub Jelinek <jakub@redhat.com>
23358 * combine.c (make_compound_operation): Only change shifts into
23359 multiplication for SCALAR_INT_MODE_P.
23361 2011-02-10 Jie Zhang <jie@codesourcery.com>
23365 2011-02-05 Jie Zhang <jie@codesourcery.com>
23367 * web.c (entry_register): Don't clobber the number of the
23368 first uninitialized reference in used[].
23370 2011-02-09 Richard Guenther <rguenther@suse.de>
23372 PR tree-optimization/47664
23373 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
23376 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
23380 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
23382 (PROCESSOR_DEFAULT64): Same.
23383 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
23385 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23387 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
23389 2011-02-09 Martin Jambor <mjambor@suse.cz>
23391 PR middle-end/45505
23392 * tree-sra.c (struct access): New flags grp_scalar_read and
23393 grp_scalar_write. Changed description of assignment read and write
23395 (dump_access): Dump new flags, reorder all of them.
23396 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
23397 to detect multiple scalar reads.
23398 (analyze_access_subtree): Use the new scalar read write flags instead
23399 of the old flags. Adjusted comments.
23401 2011-02-08 DJ Delorie <dj@redhat.com>
23404 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
23407 2011-02-08 Joseph Myers <joseph@codesourcery.com>
23409 * config/m68k/uclinux.opt: New.
23410 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
23412 2011-02-08 Joseph Myers <joseph@codesourcery.com>
23414 * config/cris/elf.opt (sim): New Driver option.
23416 2011-02-08 Joseph Myers <joseph@codesourcery.com>
23418 * config/xtensa/elf.opt: New.
23419 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
23421 2011-02-08 Joseph Myers <joseph@codesourcery.com>
23423 * config/vax/elf.opt: New.
23424 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
23426 2011-02-08 Joseph Myers <joseph@codesourcery.com>
23428 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
23430 2011-02-08 Joseph Myers <joseph@codesourcery.com>
23432 * config/gnu-user.opt: New.
23433 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
23434 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
23435 *-*-uclinux*): Use gnu-user.opt.
23437 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
23439 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
23440 * config/i386/gnu.h (CPP_SPEC): Likewise.
23442 2011-02-08 Ian Lance Taylor <iant@google.com>
23444 * common.opt (fcx-limited-range): Add SetByCombined flag.
23445 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
23446 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
23447 (fassociative-math, freciprocal-math): Likewise.
23448 (funsafe-math-optimizations): Likewise.
23449 * opth-gen.awk: Handle SetByCombined.
23450 * optc-gen.awk: Likewise.
23451 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
23452 (set_unsafe_math_optimizations_flags): Likewise.
23453 * doc/options.texi (Option properties): Document SetByCombined.
23455 2011-02-08 Joseph Myers <joseph@codesourcery.com>
23457 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
23458 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
23459 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
23460 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
23461 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
23463 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
23465 PR tree-optimization/46834
23466 PR tree-optimization/46994
23467 PR tree-optimization/46995
23468 * graphite-sese-to-poly.c (used_outside_reduction): New.
23469 (detect_commutative_reduction): Call used_outside_reduction.
23470 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
23471 translate_scalar_reduction_to_array only when at least one
23472 loop-phi/close-phi tuple has been detected.
23474 2011-02-08 Richard Guenther <rguenther@suse.de>
23476 PR middle-end/47639
23477 * tree-vect-generic.c (expand_vector_operations_1): Update
23479 (expand_vector_operations): ... not here. Cleanup EH info
23480 and the CFG if required.
23482 2011-02-08 Richard Guenther <rguenther@suse.de>
23484 PR tree-optimization/47641
23485 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
23486 require type compatibility.
23488 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23490 * gimple-low.c (lower_function_body): Don't remove the location of
23491 the return statement here.
23492 (lower_gimple_return): Do it here instead but only if the return
23493 statement is actually used twice.
23495 2011-02-08 Richard Guenther <rguenther@suse.de>
23497 PR tree-optimization/47632
23498 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
23499 unused up_to_stmt parameter, return whether cfg-cleanup is
23500 necessary, remove EH info properly.
23501 (forward_propagate_into_gimple_cond): Adjust caller.
23502 (forward_propagate_into_cond): Likewise.
23503 (forward_propagate_comparison): Likewise.
23504 (tree_ssa_forward_propagate_single_use_vars): Make
23505 forward_propagate_comparison case similar to the two others.
23507 2011-02-08 Nick Clifton <nickc@redhat.com>
23509 * config/mn10300/mn10300.opt (mliw): New command line option.
23510 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
23511 (liw_bundling): New automaton.
23512 (liw): New attribute.
23513 (liw_op): New attribute.
23514 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
23515 (movsi_internal): Add LIW attributes.
23516 (andsi3): Likewise.
23517 (iorsi3): Likewise.
23518 (xorsi3): Likewise.
23519 (addsi3): Separate register and immediate alternatives.
23520 Add LIW attributes.
23521 (subsi3): Likewise.
23523 (aslsi3): Likewise.
23524 (lshrsi3): Likewise.
23525 (ashrsi3): Likewise.
23526 (liw): New pattern.
23527 * config/mn10300/mn10300.c (liw_op_names): New
23528 (mn10300_print_operand): Handle 'W' operand descriptor.
23529 (extract_bundle): New function.
23530 (check_liw_constraints): New function.
23531 (liw_candidate): New function.
23532 (mn10300_bundle_liw): New function.
23533 (mn10300_reorg): New function.
23534 (TARGET_MACHINE_DEPENDENT_REORG): Define.
23535 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
23536 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
23537 __LIW__ or __NO_LIW__.
23538 * doc/invoke.texi: Describe the -mliw command line option.
23540 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23542 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
23543 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
23544 pthread_mutex_unlock): Remove.
23545 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
23546 * config/pa/t-pa64: Likewise.
23547 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
23548 shared libc if not linking against libpthread.
23549 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23551 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
23554 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
23555 on 10.6 and later to ensure that we always use the unwinder from
23556 the system. Only add -no_compact_unwind when tarteting darwin
23559 2011-02-07 Steve Ellcey <sje@cup.hp.com>
23562 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
23563 (vec_interleave_lowv2sf): Ditto.
23564 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
23565 (vec_extract_oddv2sf): Ditto.
23567 2011-02-07 Mike Stump <mikestump@comcast.net>
23570 Add __ieee_divdc3 entry point.
23571 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
23573 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
23574 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
23575 * config/darwin.c (darwin_rename_builtins): Add.
23576 * config/darwin-protos.h (darwin_rename_builtins): Add.
23578 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
23581 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
23584 2011-02-07 Mike Stump <mikestump@comcast.net>
23586 * config/darwin.opt (mmacosx-version-min): Update default OS version.
23588 2011-02-07 Denis Chertykov <chertykov@gmail.com>
23591 * config/avr/libgcc.S (exit): Move .endfunc
23593 2011-02-07 Richard Guenther <rguenther@suse.de>
23595 PR tree-optimization/47615
23596 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
23597 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
23598 (run_scc_vn): Initialize it.
23599 (visit_reference_op_load): Use it.
23600 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
23602 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23604 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
23605 DImode trapping arithmetic libfuncs.
23607 2011-02-07 Richard Guenther <rguenther@suse.de>
23609 PR tree-optimization/47621
23610 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
23612 (execute_update_addresses_taken): ... here. Make it more
23613 conservative in what we accept.
23615 2011-02-06 Joseph Myers <joseph@codesourcery.com>
23617 * config/sparc/freebsd.h (ASM_SPEC): Define.
23618 * config/sparc/vxworks.h (ASM_SPEC): Define.
23620 2011-02-06 Joseph Myers <joseph@codesourcery.com>
23622 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
23624 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
23626 * doc/invoke.texi: Remove reference to compiler internals from
23627 user documentation.
23629 * reg-notes.def: Remove REG_VALUE_PROFILE.
23630 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
23632 2011-02-05 Jakub Jelinek <jakub@redhat.com>
23634 PR middle-end/47610
23635 * varasm.c (default_section_type_flags): If decl is NULL,
23636 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
23638 2011-02-05 Jie Zhang <jie@codesourcery.com>
23641 * web.c (entry_register): Don't clobber the number of the
23642 first uninitialized reference in used[].
23644 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
23646 PR tree-optimization/46194
23647 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
23648 (build_classic_dist_vector_1): Do not represent classic distance
23649 vectors when the access functions are variating in different loops.
23651 2011-02-04 Joseph Myers <joseph@codesourcery.com>
23653 * config/mips/iris6.opt: New.
23654 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
23656 2011-02-04 Richard Henderson <rth@redhat.com>
23657 Steve Ellcey <sje@cup.hp.com>
23660 * config/ia64/predicates.md (mux1_brcst_element): New.
23661 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
23662 * config/ia64/ia64.c (ia64_unpack_assemble): New.
23663 (ia64_unpack_sign): New.
23664 (ia64_expand_unpack): Rewrite using new routines.
23665 (ia64_expand_widen_sum): Ditto.
23666 (ia64_expand_dot_prod_v8qi): Ditto.
23667 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
23668 routines, add endian check.
23669 (pmpy2_even): Rename from pmpy2_r, add endian check.
23670 (pmpy2_odd): Rename from pmpy2_l, add endian check.
23671 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
23672 (vec_widen_smult_hi_v4hi): Ditto.
23673 (vec_widen_umult_lo_v4hi): Ditto.
23674 (vec_widen_umult_hi_v4hi): Ditto.
23675 (mulv2si3): Change endian checks.
23676 (sdot_prodv4hi): Rewrite with new calls.
23677 (udot_prodv4hi): New.
23678 (vec_pack_ssat_v4hi): Add endian check.
23679 (vec_pack_usat_v4hi): Ditto.
23680 (vec_pack_ssat_v2si): Ditto.
23681 (max1_even): Rename from max1_r, add endian check.
23682 (max1_odd): Rename from max1_l, add endian check.
23683 (*mux1_rev): Format change.
23684 (*mux1_mix): Ditto.
23685 (*mux1_shuf): Ditto.
23686 (*mux1_alt): Ditto.
23687 (*mux1_brcst_v8qi): Use new predicate.
23688 (vec_extract_evenv8qi): Remove endian check.
23689 (vec_extract_oddv8qi): Ditto.
23690 (vec_interleave_lowv4hi): Format change.
23691 (vec_interleave_highv4hi): Ditto.
23692 (mix2_even): Rename from mix2_r, add endian check.
23693 (mix2_odd): Rename from mux2_l, add endian check.
23694 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
23695 (vec_extract_evenodd_helper): Format change.
23696 (vec_extract_evenv4hi): Remove endian check.
23697 (vec_extract_oddv4hi): Remove endian check.
23698 (vec_interleave_lowv2si): Format change.
23699 (vec_interleave_highv2si): Format change.
23700 (vec_initv2si): Remove endian check.
23701 (vecinit_v2si): Add endian check.
23702 (reduc_splus_v2sf): Add endian check.
23703 (reduc_smax_v2sf): Ditto.
23704 (reduc_smin_v2sf): Ditto.
23705 (vec_initv2sf): Remove endian check.
23706 (fpack): Add endian check.
23707 (fswap): Add endian check.
23708 (vec_interleave_highv2sf): Add endian check.
23709 (vec_interleave_lowv2sf): Add endian check.
23710 (fmix_lr): Add endian check.
23711 (vec_setv2sf): Format change.
23712 (*vec_extractv2sf_0_be): Use shift to extract operand.
23713 (*vec_extractv2sf_1_be): New.
23714 (vec_pack_trunc_v4hi): Add endian check.
23715 (vec_pack_trunc_v2si): Format change.
23717 2011-02-04 Jakub Jelinek <jakub@redhat.com>
23719 PR inline-asm/23200
23720 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
23721 do bb, locus and block comparison and disallow loads if it is not set.
23722 (stmt_is_replaceable_p): New function.
23723 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
23725 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
23726 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
23728 * tree-flow.h (stmt_is_replaceable_p): New prototype.
23730 2011-02-04 Joseph Myers <joseph@codesourcery.com>
23732 * config/rs6000/xilinx.opt: New.
23733 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
23735 2011-02-04 Joseph Myers <joseph@codesourcery.com>
23737 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
23739 2011-02-03 Anatoly Sokolov <aesok@post.ru>
23741 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
23742 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23743 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
23744 secondary_reload_info, xtensa_secondary_reload): Remove.
23745 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
23746 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
23747 (xtensa_preferred_reload_class): Make static. Change return and
23748 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
23749 Use CONST_DOUBLE_P predicate.
23750 (xtensa_preferred_output_reload_class): New function.
23751 (xtensa_secondary_reload): Make static.
23753 2011-02-03 Joseph Myers <joseph@codesourcery.com>
23755 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
23756 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
23757 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
23759 2011-02-03 Jakub Jelinek <jakub@redhat.com>
23761 PR middle-end/31490
23762 * output.h (SECTION_RELRO): Define.
23763 (SECTION_MACH_DEP): Adjust.
23764 (get_variable_section): New prototype.
23765 * varpool.c (varpool_finalize_named_section_flags): New function.
23766 (varpool_assemble_pending_decls): Call it.
23767 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
23768 * cgraphunit.c (cgraph_output_in_order): Call
23769 varpool_finalize_named_section_flags.
23770 * varasm.c (get_section): Allow section flags conflicts between
23771 relro and read-only sections if the section hasn't been declared yet.
23772 Set SECTION_OVERRIDE after diagnosing section type conflict.
23773 (get_variable_section): No longer static.
23774 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
23775 readonly sections that need relocations.
23776 (decl_readonly_section_1): New function.
23777 (decl_readonly_section): Use it.
23780 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
23781 Steve Ellcey <sje@cup.hp.com>
23783 PR middle-end/31490
23784 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
23785 if section attribute used.
23787 2011-02-03 Jakub Jelinek <jakub@redhat.com>
23789 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
23790 * config/darwin.c (SECTION_NO_ANCHOR): Define.
23791 (darwin_init_sections): Remove assertion.
23793 2011-02-03 Nick Clifton <nickc@redhat.com>
23795 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
23797 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
23798 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
23799 instead of "n" and "pz".
23800 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
23803 2011-02-03 Jakub Jelinek <jakub@redhat.com>
23806 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
23807 fma, expand FMA_EXPR as fma{,f,l} call.
23810 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
23811 copy them into a unsigned char variable and pass address of it to
23812 lto_output_data_stream.
23815 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
23816 around backend_init_target and lang_dependent_init_target calls.
23817 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
23818 (verify_cgraph_node): Don't call set_cfun here. Use
23819 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
23820 Set error_found for incorrectly represented calls to thunks.
23822 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
23825 PR rtl-optimization/43494
23826 * rtl.h (for_each_inc_dec_fn): New type.
23827 (for_each_inc_dec): Declare.
23828 * rtlanal.c (struct for_each_inc_dec_ops): New type.
23829 (for_each_inc_dec_find_inc_dec): New fn.
23830 (for_each_inc_dec_find_mem): New fn.
23831 (for_each_inc_dec): New fn.
23832 * dse.c (struct insn_size): Remove.
23833 (replace_inc_dec, replace_inc_dec_mem): Remove.
23834 (emit_inc_dec_insn_before): New fn.
23835 (check_for_inc_dec): Use it, along with for_each_inc_dec.
23836 (canon_address): Pass mem modes to cselib_lookup.
23837 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
23838 (cselib_lookup_from_insn): Likewise.
23839 (cselib_subst_to_values): Likewise.
23840 * cselib.c (find_slot_memmode): New var.
23841 (cselib_find_slot): New fn. Use it instead of
23842 htab_find_slot_with_hash everywhere.
23843 (entry_and_rtx_equal_p): Use find_slot_memmode.
23844 (autoinc_split): New fn.
23845 (rtx_equal_for_cselib_p): Rename and implement in terms of...
23846 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
23847 Deal with autoinc. Special-case recursion into MEMs.
23848 (cselib_hash_rtx): Likewise.
23849 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
23850 address and MEM modes.
23851 (cselib_subst_to_values): Add memmode, pass it on.
23853 (cselib_lookup): Add memmode argument, pass it on.
23854 (cselib_lookup_from_insn): Add memmode.
23855 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
23856 (struct cselib_record_autoinc_data): New.
23857 (cselib_record_autoinc_cb): New fn.
23858 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
23859 mode to cselib_lookup. Reset autoinced REGs here instead of...
23860 (cselib_process_insn): ... here.
23861 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
23863 (add_uses): Likewise, also to cselib_subst_to_values.
23864 (add_stores): Likewise.
23865 * sched-deps.c (add_insn_mem_dependence): Pass mode to
23866 cselib_subst_to_values.
23867 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
23868 * gcse.c (do_local_cprop): Adjusted.
23869 * postreload.c (reload_cse_simplify_set): Adjusted.
23870 (reload_cse_simplify_operands): Adjusted.
23871 * sel-sched-dump (debug_mem_addr_value): Pass mode.
23873 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
23875 PR tree-optimization/45122
23876 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
23877 unsafe assumptions when there's more than one loop exit.
23879 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23882 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23883 Document using vector double with the load/store builtins, and
23884 that the load/store builtins always use Altivec instructions.
23886 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
23887 to use altivec memory instructions, even on VSX.
23888 (vector_altivec_store_<mode>): Ditto.
23890 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
23893 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23894 V2DF, V2DI support to load/store overloaded builtins.
23896 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
23897 altivec load/store builtins for V2DF/V2DI types.
23899 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23900 set avoid indexed addresses on power6 if -maltivec.
23901 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
23902 vector_altivec_load/vector_altivec_store builtins.
23903 (altivec_expand_st_builtin): Ditto.
23904 (altivec_expand_builtin): Add VSX memory builtins.
23905 (rs6000_init_builtins): Add V2DI types to internal types.
23906 (altivec_init_builtins): Add support for V2DF/V2DI altivec
23907 load/store builtins.
23908 (rs6000_address_for_altivec): Insure memory address is appropriate
23911 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
23912 vec_vsx_ld and vec_vsx_st.
23913 (vsx_store_<mode>): Ditto.
23915 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
23916 variables to hold long long types for VSX vector memory builtins.
23917 (RS6000_BTI_unsigned_long_long): Ditto.
23918 (long_long_integer_type_internal_node): Ditti.
23919 (long_long_unsigned_type_internal_node): Ditti.
23921 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
23922 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
23923 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
23925 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
23927 (vec_vsx_st): Ditto.
23929 2011-02-02 Joseph Myers <joseph@codesourcery.com>
23931 * config/pa/pa-hpux10.opt: New.
23932 * config/hpux11.opt (pthread): New Driver option.
23933 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
23934 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
23936 2011-02-02 Joseph Myers <joseph@codesourcery.com>
23938 * config/ia64/vms.opt: New.
23939 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
23941 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
23944 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
23945 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
23946 generator functions.
23947 (vsx_floatuns<VSi><mode>2): Ditto.
23948 (vsx_fix_trunc<mode><VSi>2): Ditto.
23949 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
23951 2011-02-02 Joseph Myers <joseph@codesourcery.com>
23953 * config/i386/djgpp.opt (posix): New Driver option.
23955 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
23957 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
23958 Move to the unsupported targets list.
23960 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
23962 PR rtl-optimization/47525
23963 * df-scan.c: Update copyright years.
23964 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
23965 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
23967 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23969 * config/i386/sysv4.h (TARGET_VERSION): Remove.
23970 (SUBTARGET_RETURN_IN_MEMORY): Remove.
23971 (ASM_OUTPUT_ASCII): Remove.
23972 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
23974 2011-02-02 Jeff Law <law@redhat.com>
23976 PR middle-end/47543
23977 * reload.c (find_reloads_address): Handle reg+d address where both
23978 components are invalid by reloading the entire address.
23980 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
23981 Richard Guenther <rguenther@suse.de>
23983 PR tree-optimization/40979
23985 * passes.c (init_optimization_passes): After LIM call copy_prop
23986 and DCE to clean up.
23987 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
23989 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
23991 PR tree-optimization/47576
23992 PR tree-optimization/47555
23993 * doc/invoke.texi (scev-max-expr-complexity): Documented.
23994 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
23995 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
23996 * tree-scalar-evolution.c (follow_ssa_edge): Use
23997 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
23999 2011-02-02 Richard Guenther <rguenther@suse.de>
24001 PR tree-optimization/47566
24002 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
24004 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
24008 * tree-inline.c (declare_return_variable): Remove unused caller
24013 * tree-flow-inline.h (clear_is_used, is_used_p): New.
24014 * cfgexpand.c (account_used_vars_for_block): Use them.
24015 * tree-nrv.c (tree_nrv): Likewise.
24016 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
24017 (dump_scope_block): Likewise.
24018 (remove_unused_locals): Likewise.
24022 * tree-inline.c (declare_return_variable): Add result decl to
24023 local decls only once.
24024 * gimple-low.c (record_vars_into): Mark newly-created variables
24027 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
24033 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24035 (no_real_insns_p, schedule_block, set_priorities): Drop special
24036 treatment of boundary debug insns.
24037 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
24038 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
24039 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24040 (BOUNDARY_DEBUG_INSN_P): Likewise.
24041 (SCHEDULE_DEBUG_INSN_P): Likewise.
24042 * sched-rgn.c (init_ready_list): Drop special treatment of
24043 boundary debug insns.
24044 * final.c (rest_of_clean_state): Clear notes' BB.
24046 2011-02-01 Joseph Myers <joseph@codesourcery.com>
24048 * config/openbsd.opt (assert=): New Driver option.
24050 2011-02-01 Joseph Myers <joseph@codesourcery.com>
24052 * config/i386/nto.opt: New.
24053 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
24055 2011-02-01 Joseph Myers <joseph@codesourcery.com>
24057 * config/i386/netware.opt: New.
24058 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
24060 2011-02-01 Joseph Myers <joseph@codesourcery.com>
24062 * config/interix.opt (posix): New Driver option.
24064 2011-02-01 DJ Delorie <dj@redhat.com>
24066 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
24068 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
24071 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
24073 PR tree-optimization/47561
24074 * toplev.c (process_options): Print the Graphite flags. Add
24075 flag_loop_flatten to the list of options requiring Graphite.
24077 2011-02-01 Joseph Myers <joseph@codesourcery.com>
24079 * config/i386/cygming.opt (posix): New Driver option.
24081 2011-02-01 Joseph Myers <joseph@codesourcery.com>
24083 * config/arm/vxworks.opt: New.
24084 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
24086 2011-02-01 Joseph Myers <joseph@codesourcery.com>
24088 * config/alpha/elf.opt: New.
24089 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
24090 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
24092 2011-02-01 Richard Guenther <rguenther@suse.de>
24094 PR tree-optimization/47559
24095 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
24096 store-motion on references that can throw.
24098 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
24100 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
24101 * tree-pass.h (TDF_CSELIB): New macro.
24102 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
24103 cselib_lookup): Check for it rather than for TDF_DETAILS.
24105 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
24108 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
24109 is HOST_BIT_BUCKET.
24111 * opts.c (finish_options): Don't add x_aux_base_name if it is
24114 2011-02-01 Richard Guenther <rguenther@suse.de>
24116 PR tree-optimization/47555
24118 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
24120 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
24122 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
24125 * config/lm32/t-lm32: Add multilib for all CPU options.
24127 2011-02-01 Richard Guenther <rguenther@suse.de>
24129 PR tree-optimization/47541
24130 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
24131 sure to have a field at offset zero.
24133 2011-01-31 Joseph Myers <joseph@codesourcery.com>
24135 * config/arc/arc.opt (EB, EL): New Driver options.
24137 2011-01-31 Joseph Myers <joseph@codesourcery.com>
24139 * config/alpha/osf5.opt: New.
24140 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
24142 2011-01-31 Joseph Myers <joseph@codesourcery.com>
24144 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
24146 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
24148 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
24149 -floop-interchange.
24150 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
24151 is an alias of -floop-interchange and that it requires the
24152 Graphite infrastructure.
24153 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
24154 flag_loop_interchange based on the value of flag_tree_loop_linear.
24156 2011-01-31 Jakub Jelinek <jakub@redhat.com>
24157 Richard Guenther <rguenther@suse.de>
24159 PR tree-optimization/47538
24160 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
24161 type instead of r1type, except for comparisons. For right
24162 shifts and comparisons punt if there are mismatches in
24163 sizetype vs. non-sizetype types.
24165 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24167 * doc/sourcebuild.texi (Effective-Target Keywords): Document
24170 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24172 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
24174 * configure: Regenerate.
24176 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24178 * configure.ac (gcc_cv_ld_static_option): Define.
24179 (gcc_cv_ld_dynamic_option): Define.
24180 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
24182 (HAVE_LD_STATIC_DYNAMIC): Update message.
24183 (LD_STATIC_OPTION): Define.
24184 (LD_DYNAMIC_OPTION): Define.
24185 * configure: Regenerate.
24186 * config.in: Regenerate.
24187 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
24188 HAVE_LD_STATIC_DYNAMIC]: Use them.
24190 2011-01-31 Nick Clifton <nickc@redhat.com>
24192 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
24193 registers inside interrupt handlers if the handler is not a leaf
24196 2011-01-31 Nick Clifton <nickc@redhat.com>
24198 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
24199 reg_renumber returning an INVALID_REGNUM.
24201 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
24204 * doc/install.texi: Document host options discarded when cross
24205 configuring target libraries.
24207 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
24210 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
24213 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24215 (no_real_insns_p, schedule_block, set_priorities): Drop special
24216 treatment of boundary debug insns.
24217 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
24218 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
24219 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24220 (BOUNDARY_DEBUG_INSN_P): Likewise.
24221 (SCHEDULE_DEBUG_INSN_P): Likewise.
24222 * sched-rgn.c (init_ready_list): Drop special treatment of
24223 boundary debug insns.
24224 * final.c (rest_of_clean-state): Clear notes' BB.
24226 2011-01-31 Alan Modra <amodra@gmail.com>
24228 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
24229 toc relative expressions as we do in print_operand_address.
24231 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
24233 * doc/extend.texi: Follow spelling conventions.
24234 * doc/invoke.texi: Fix a typo.
24236 2011-01-30 Joseph Myers <joseph@codesourcery.com>
24238 * config/hpux11.opt: New.
24239 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
24240 ia64*-*-hpux*): Use hpux11.opt.
24242 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
24244 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
24247 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
24249 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
24252 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
24254 * doc/install.texi (Binaries): Remove outdated reference for
24255 Motorola 68HC11/68HC12 downloads.
24257 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
24259 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
24262 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
24265 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
24268 2011-01-28 Ahmad Sharif <asharif@google.com>
24270 * value-prof.c (check_counter): Corrected error message.
24272 2011-01-29 Jie Zhang <jie@codesourcery.com>
24274 * config/arm/arm.c (arm_legitimize_reload_address): New.
24275 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
24276 arm_legitimize_reload_address.
24277 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
24279 2011-01-28 Ian Lance Taylor <iant@google.com>
24281 * godump.c (go_define): Ignore macros whose definitions include
24282 two adjacent operands.
24284 2011-01-28 Jakub Jelinek <jakub@redhat.com>
24287 * varasm.c (force_const_mem): Store copy of x in desc->constant
24288 instead of x itself.
24289 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
24290 itself into REG_EQUAL note.
24292 2011-01-28 Joseph Myers <joseph@codesourcery.com>
24294 * config/freebsd.opt (posix, rdynamic): New Driver options.
24296 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24298 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
24299 -Bstatic/-Bdynamic.
24300 * configure: Regenerate.
24302 2011-01-27 Joseph Myers <joseph@codesourcery.com>
24304 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
24305 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
24307 2011-01-27 Anatoly Sokolov <aesok@post.ru>
24309 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
24310 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
24311 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
24312 (s390_preferred_reload_class): Make static. Change return and
24313 'rclass' argument type to reg_class_t.
24315 2011-01-27 Jan Hubicka <jh@suse.cz>
24317 PR middle-end/46949
24318 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
24319 (process_function_and_variable_attributes): Check defined weakrefs.
24321 2011-01-27 Martin Jambor <mjambor@suse.cz>
24323 PR tree-optimization/47228
24324 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
24325 build_ref_for_offset.
24327 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24329 * config/spu/spu-elf.h (ASM_SPEC): Remove.
24331 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
24333 PR rtl-optimization/46856
24334 * postreload.c (reload_combine_recognize_const_pattern): Do not
24335 separate cc0 setter and user on cc0 targets.
24337 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
24340 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
24341 passed a VOID_TYPE expression, immediately emit an error and
24342 return error_mark_node.
24344 2011-01-26 Jeff Law <law@redhat.com>
24346 PR rtl-optimization/47464
24347 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
24348 rather than may_trap_p as needed.
24350 2011-01-26 DJ Delorie <dj@redhat.com>
24352 PR rtl-optimization/46878
24353 * combine.c (insn_a_feeds_b): Check for the implicit cc0
24354 setter/user dependency as well.
24356 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
24358 PR rtl-optimization/44469
24359 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
24360 after removing trivially dead basic blocks.
24362 2011-01-26 Joseph Myers <joseph@codesourcery.com>
24364 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
24365 * config/frv/frv.h (LINK_SPEC): Likewise.
24366 * config/i386/netware.h (LINK_SPEC): Likewise.
24367 * config/m68k/linux.h (ASM_SPEC): Likewise.
24368 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
24369 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
24370 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24371 * config/sparc/linux.h (ASM_SPEC): Likewise.
24372 * config/sparc/linux64.h (ASM_SPEC): Likewise.
24373 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24375 2011-01-26 Joseph Myers <joseph@codesourcery.com>
24377 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
24378 * config/frv/frv.h (ASM_SPEC): Likewise.
24379 * config/m68k/linux.h (ASM_SPEC): Likewise.
24380 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
24381 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
24382 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24383 * config/sparc/linux.h (ASM_SPEC): Likewise.
24384 * config/sparc/linux64.h (ASM_SPEC): Likewise.
24385 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24387 2011-01-26 Joseph Myers <joseph@codesourcery.com>
24389 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
24390 * config/frv/frv.h (LINK_SPEC): Likewise.
24391 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
24393 2011-01-26 Joseph Myers <joseph@codesourcery.com>
24395 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
24396 * config/frv/frv.h (ASM_SPEC): Likewise.
24397 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
24398 * config/m68k/linux.h (ASM_SPEC): Likewise.
24399 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
24400 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
24401 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24402 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
24403 * config/sparc/linux.h (ASM_SPEC): Likewise.
24404 * config/sparc/linux64.h (ASM_SPEC): Likewise.
24405 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24406 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
24408 2011-01-26 Steve Ellcey <sje@cup.hp.com>
24411 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
24413 (vec_extract_evenodd_help): Ditto.
24414 (vec_extract_evenv4hi): Ditto.
24415 (vec_extract_oddv4hi): Ditto.
24416 (vec_interleave_lowv2si): Ditto.
24417 (vec_interleave_highv2si): Ditto.
24418 (vec_extract_evenv2si): Ditto.
24419 (vec_extract_oddv2si: Ditto.
24420 (vec_pack_trunc_v2si): Ditto.
24422 2011-01-22 Jan Hubicka <jh@suse.cz>
24425 * cgraph.h (cgraph_local_info): New field can_change_signature.
24426 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
24427 signature can change.
24428 (ipcp_estimate_growth): Call sequence simplify only if calle signature
24430 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
24431 (cgraph_function_versioning): We can not change signature of functions
24432 that don't allow that.
24433 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
24434 (lto_input_node): Likewise.
24435 * ipa-inline.c (compute_inline_parameters): Compute
24436 local.can_change_signature.
24437 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
24438 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
24439 functions that can not change signature.
24440 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
24441 init_cumulative_args): Do not use local calling conventions
24442 for functions that can not change signature.
24444 2011-01-22 Jan Hubicka <jh@suse.cz>
24446 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
24448 2011-01-26 Richard Guenther <rguenther@suse.de>
24450 PR tree-optimization/47190
24451 * cgraphunit.c (process_common_attributes): New function.
24452 (process_function_and_variable_attributes): Use it.
24454 2011-01-26 Richard Guenther <rguenther@suse.de>
24457 * cgraphbuild.c (record_eh_tables): Record reference to personality
24460 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
24463 * sel-sched.c (moveup_expr): Don't let debug insns prevent
24464 non-debug insns from moving up.
24466 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
24469 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
24470 t-dlldir{,-x} fragment for build and add it to tmake_file.
24471 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
24472 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
24473 * config/i386/t-dlldir: New file.
24474 (SHLIB_DLLDIR): Define.
24475 * config/i386/t-dlldir-x: New file.
24476 (SHLIB_DLLDIR): Define.
24477 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
24478 (SHLIB_INSTALL): Use it.
24480 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
24483 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
24484 lower bound of the allowed Thumb-2 coprocessor load/store
24485 index range to -256. Add explaining comment.
24487 2011-01-25 Ian Lance Taylor <iant@google.com>
24489 * godump.c (go_define): Improve lexing of macro expansion to only
24490 accept expressions which match Go spec.
24492 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
24495 * tree.c (handle_dll_attribute): Handle it.
24496 * doc/extend.texi (@item dllexport): Mention it.
24497 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
24499 2011-01-25 Ian Lance Taylor <iant@google.com>
24501 PR tree-optimization/26854
24502 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
24503 (decl_jump_unsafe): Move higher in file, with no other change.
24504 (bind): Set has_jump_unsafe_decl if appropriate.
24505 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
24506 (check_earlier_gotos): Likewise.
24507 (c_check_switch_jump_warnings): Likewise.
24509 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
24511 * doc/invoke.texi (Warning Options): Add missing hyphen.
24512 (-fprofile-dir): Minor grammatical fixes.
24513 (-fbranch-probabilities): Likewise.
24515 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
24519 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24521 (no_real_insns_p, schedule_block, set_priorities): Drop special
24522 treatment of boundary debug insns.
24523 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
24524 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
24525 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24526 (BOUNDARY_DEBUG_INSN_P): Likewise.
24527 (SCHEDULE_DEBUG_INSN_P): Likewise.
24528 * sched-rgn.c (init_ready_list): Drop special treatment of
24529 boundary debug insns.
24530 * final.c (rest_of_clean-state): Clear notes' BB.
24532 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24534 * Makefile.in (LAMBDA_H): Removed.
24535 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
24536 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
24537 lambda-trans.o, and tree-loop-linear.o.
24538 (lto-symtab.o): Remove dependence on LAMBDA_H.
24539 (tree-loop-linear.o): Remove rule.
24540 (lambda-mat.o): Same.
24541 (lambda-trans.o): Same.
24542 (lambda-code.o): Same.
24543 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
24544 (tree-vect-slp.o): Same.
24545 * hwint.h (gcd): Moved here.
24546 (least_common_multiple): Same.
24547 * lambda-code.c: Removed.
24548 * lambda-mat.c: Removed.
24549 * lambda-trans.c: Removed.
24550 * lambda.h: Removed.
24551 * tree-loop-linear.c: Removed.
24552 * lto-symtab.c: Do not include lambda.h.
24553 * omega.c (gcd): Removed.
24554 * passes.c (init_optimization_passes): Remove pass_linear_transform.
24555 * tree-data-ref.c (print_lambda_vector): Moved here.
24556 (lambda_vector_copy): Same.
24557 (lambda_matrix_copy): Same.
24558 (lambda_matrix_id): Same.
24559 (lambda_vector_first_nz): Same.
24560 (lambda_matrix_row_add): Same.
24561 (lambda_matrix_row_exchange): Same.
24562 (lambda_vector_mult_const): Same.
24563 (lambda_vector_negate): Same.
24564 (lambda_matrix_row_negate): Same.
24565 (lambda_vector_equal): Same.
24566 (lambda_matrix_right_hermite): Same.
24567 * tree-data-ref.h: Do not include lambda.h.
24568 (lambda_vector): Moved here.
24569 (lambda_matrix): Same.
24570 (dependence_level): Same.
24571 (lambda_transform_legal_p): Removed declaration.
24572 (lambda_collect_parameters): Same.
24573 (lambda_compute_access_matrices): Same.
24574 (lambda_vector_gcd): Same.
24575 (lambda_vector_new): Same.
24576 (lambda_vector_clear): Same.
24577 (lambda_vector_lexico_pos): Same.
24578 (lambda_vector_zerop): Same.
24579 (lambda_matrix_new): Same.
24580 * tree-flow.h (least_common_multiple): Removed declaration.
24581 * tree-parloops.c (lambda_trans_matrix): Moved here.
24582 (LTM_MATRIX): Same.
24583 (LTM_ROWSIZE): Same.
24584 (LTM_COLSIZE): Same.
24585 (LTM_DENOMINATOR): Same.
24586 (lambda_trans_matrix_new): Same.
24587 (lambda_matrix_vector_mult): Same.
24588 (lambda_transform_legal_p): Same.
24589 * tree-pass.h (pass_linear_transform): Removed declaration.
24590 * tree-ssa-loop.c (tree_linear_transform): Removed.
24591 (gate_tree_linear_transform): Removed.
24592 (pass_linear_transform): Removed.
24593 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
24594 flag_loop_interchange.
24596 2011-01-25 Jakub Jelinek <jakub@redhat.com>
24598 PR tree-optimization/47265
24599 PR tree-optimization/47443
24600 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
24601 if name still has some uses.
24603 2011-01-25 Martin Jambor <mjambor@suse.cz>
24605 PR tree-optimization/47382
24606 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
24607 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
24609 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
24611 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
24612 sjlj_except_unwind_info.
24614 2011-01-25 Richard Guenther <rguenther@suse.de>
24616 PR tree-optimization/47426
24617 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
24618 visible functions results escape.
24620 2011-01-25 Jakub Jelinek <jakub@redhat.com>
24623 * config/arm/arm.c (any_sibcall_uses_r3): New function.
24624 (arm_get_frame_offsets): Use it.
24626 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24627 Jakub Jelinek <jakub@redhat.com>
24629 PR tree-optimization/47271
24630 * tree-if-conv.c (bb_postdominates_preds): New.
24631 (if_convertible_bb_p): Call bb_postdominates_preds.
24632 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
24633 (predicate_scalar_phi): Call bb_postdominates_preds.
24635 2011-01-25 Nick Clifton <nickc@redhat.com>
24637 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
24638 * config/rx/rx.c (rx_function_value): Likewise.
24639 (rx_promote_function_mode): Likewise.
24640 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
24641 in order to make it legitimate.
24642 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
24643 make sure that the first operand is the same as the result register.
24644 (addsi3_unspec): Delete.
24645 (subdi3): Do not accept immediate operands.
24646 (subdi3_internal): Likewise.
24648 2011-01-25 Jeff Law <law@redhat.com>
24650 PR rtl-optimization/37273
24651 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24652 handle them like argument loads from stack slots. Do not double
24653 count memory for memory constants and argument loads from stack slots.
24655 2011-01-25 Jakub Jelinek <jakub@redhat.com>
24657 PR tree-optimization/47427
24658 PR tree-optimization/47428
24659 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
24660 coalesce if the new root var would be TREE_READONLY.
24662 2011-01-25 Richard Guenther <rguenther@suse.de>
24664 PR middle-end/47414
24665 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
24666 correct type for TBAA.
24668 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24670 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
24671 (close_phi_written_to_memory): Call for_each_index with
24672 dr_indices_valid_in_loop.
24674 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24676 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
24677 when it is initialized.
24679 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24681 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
24682 call to graphite_find_data_references_in_stmt.
24683 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
24684 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
24685 call to graphite_find_data_references_in_stmt.
24686 (analyze_drs_in_stmts): Same.
24687 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
24688 in which the scalar analysis of indices is performed.
24689 (create_data_ref): Same. Update call to dr_analyze_indices.
24690 (find_data_references_in_stmt): Update call to create_data_ref.
24691 (graphite_find_data_references_in_stmt): Same.
24692 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
24694 (create_data_ref): Same.
24695 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
24696 call to create_data_ref.
24698 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24700 * graphite-sese-to-poly.c (build_poly_scop): Move
24701 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
24703 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24705 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
24706 VAR_DECL, PARM_DECL, and RESULT_DECL.
24708 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24710 * graphite-dependences.c (reduction_dr_1): Allow several reductions
24711 in a reduction PBB.
24712 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
24713 that have already been marked as PBB_IS_REDUCTION.
24715 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24717 * graphite-scop-detection.c (same_close_phi_node): New.
24718 (remove_duplicate_close_phi): New.
24719 (make_close_phi_nodes_unique): New.
24720 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
24722 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24724 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
24725 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
24726 of both data references to be the same.
24728 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24730 * graphite-dependences.c (build_lexicographical_constraint): Remove
24731 the gdim parameter.
24732 (build_lexicographical_constraint): Adjust call to
24733 ppl_powerset_is_empty.
24734 (dependence_polyhedron): Same.
24735 (graphite_legal_transform_dr): Same.
24736 (graphite_carried_dependence_level_k): Same.
24737 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
24739 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
24741 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24743 * graphite-sese-to-poly.c
24744 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
24745 (close_phi_written_to_memory): New.
24746 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
24749 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24751 * doc/install.texi: Update the expected version number of PPL to 0.11.
24752 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
24753 #if PPL_VERSION_MINOR < 11.
24755 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24757 * graphite-dependences.c: Include graphite-cloog-util.h.
24758 (new_poly_ddr): Inlined into dependence_polyhedron.
24759 (free_poly_ddr): Moved close by new_poly_ddr.
24760 (dependence_polyhedron_1): Renamed dependence_polyhedron.
24761 Early return NULL when ppl_powerset_is_empty returns true.
24762 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
24763 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
24764 (graphite_legal_transform_dr): Call new_poly_ddr.
24765 (graphite_carried_dependence_level_k): Same.
24766 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
24767 (dot_transformed_deps_stmt_1): Removed.
24768 (dot_deps_stmt_1): Call dot_deps_stmt_2.
24769 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
24770 (dot_deps_1): Call dot_deps_2.
24771 * Makefile.in (graphite-dependences.o): Add missing dependence on
24772 graphite-cloog-util.h.
24774 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24776 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
24777 (build_lexicographical_constraint): Same.
24778 (dependence_polyhedron_1): Same.
24779 (graphite_legal_transform_dr): Same.
24780 (graphite_carried_dependence_level_k): Same.
24781 * graphite-ppl.c (ppl_powerset_is_empty): New.
24782 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
24783 * tree-data-ref.c (dump_data_reference): Print the basic block index.
24785 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24787 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
24788 the "a followed by b" relation and document it.
24790 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24792 * graphite-dependences.c (build_lexicographical_constraint): Stop the
24793 iteration when the bag of constraints is empty.
24795 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24797 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
24799 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24801 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
24802 nest and two loop depths as parameters.
24803 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
24804 lst_perfect_nestify.
24806 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24808 * graphite-dependences.c (print_pddr): Call
24809 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
24811 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24813 * graphite-ppl.c (debug_gmp_value): New.
24814 * graphite-ppl.h (debug_gmp_value): Declared.
24816 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
24818 * doc/install.texi: Document availability of cloog-0.16.
24820 2011-01-25 Vladimir Kargov <kargov@gmail.com>
24822 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
24823 invalid postdominance info.
24825 2011-01-24 Jan Hubicka <jh@suse.cz>
24828 * doc/extend.texi (weak pragma): Drop claim that it must
24829 appear before definition.
24830 * varasm.c (merge_weak, declare_weak): Only sanity check
24831 that DECL is not output at a time it is declared weak.
24833 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
24835 * machmode.def: Fixed comments.
24837 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
24839 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
24841 2011-01-24 Paul Koning <ni1d@arrl.net>
24843 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
24846 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
24849 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
24850 (block_info): Add scanned and prev.
24851 (move_or_delete_vzeroupper_2): Return if the basic block
24852 has been scanned and the upper 128bit state is unchanged
24853 from the last scan.
24854 (move_or_delete_vzeroupper_1): Return true if the exit
24856 (move_or_delete_vzeroupper): Visit basic blocks using the
24857 work-list based algorithm based on vt_find_locations in
24860 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
24862 2011-01-24 Nick Clifton <nickc@redhat.com>
24864 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
24865 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
24866 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
24867 then define __v850e1__.
24868 * doc/invoke.texi: Document -mv850es.
24870 2011-01-24 Richard Henderson <rth@redhat.com>
24872 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
24873 compound unordered comparisons.
24874 * config/rx/rx.c (rx_split_fp_compare): Remove.
24875 * config/rx/rx-protos.h: Update.
24876 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
24877 (cbranchsf4): Don't call rx_split_fp_compare.
24878 (*cbranchsf4): Use rx_split_cbranch.
24879 (*cmpsf): Don't accept "i" constraint.
24880 (*conditional_branch): Only valid after reload.
24881 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
24883 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24886 * config/rs6000/altivec.md (vector constant splitters): Add
24887 support for creating vector single precision constants if -mvsx is
24888 used and we would create the constant using Altivec primitives.
24890 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
24891 Richard Sandiford <rdsandiford@googlemail.com>
24893 PR rtl-optimization/47166
24894 * reload1.c (emit_reload_insns): Disable the spill_reg_store
24895 mechanism for PRE_MODIFY and POST_MODIFY.
24896 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
24899 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
24901 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
24903 2011-01-22 Jan Hubicka <jh@suse.cz>
24906 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
24908 2011-01-22 Jan Hubicka <jh@suse.cz>
24910 PR tree-optimization/43884
24912 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
24913 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
24915 2011-01-22 Anatoly Sokolov <aesok@post.ru>
24917 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
24918 * config/s390/s390.c (s390_register_move_cost,
24919 s390_memory_move_cost): New.
24920 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
24922 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24924 PR middle-end/47401
24925 * except.c (sjlj_assign_call_site_values): Move setting the
24926 crtl->uses_eh_lsda flag to ...
24927 (sjlj_mark_call_sites): ... here.
24928 (sjlj_emit_function_enter): Support NULL dispatch label.
24929 (sjlj_build_landing_pads): In a function with no landing pads
24930 that still has must-not-throw regions, generate code to register
24931 a personality function with empty LSDA.
24933 2011-01-21 Richard Henderson <rth@redhat.com>
24935 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
24937 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
24939 * compare-elim.c: New file.
24940 * Makefile.in (OBJS-common): Add it.
24941 (compare-elim.o): New.
24942 * common.opt (fcompare-elim): New.
24943 * opts.c (default_options_table): Add OPT_fcompare_elim.
24944 * tree-pass.h (pass_compare_elim_after_reload): New.
24945 * passes.c (init_optimization_passes): Add it.
24946 * recog.h: Protect against re-inclusion.
24947 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
24948 * doc/invoke.texi (-fcompare-elim): Document it.
24949 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
24950 * doc/tm.texi: Rebuild.
24952 2011-01-22 Nick Clifton <nickc@redhat.com>
24954 * config/rx/rx.md (cstoresf4): Pass comparison operator to
24955 rx_split_fp_compare.
24957 2011-01-22 Nick Clifton <nickc@redhat.com>
24959 * config/rx/rx.md (UNSPEC_CONST): New.
24960 (deallocate_and_return): Wrap the amount popped off the stack in
24961 an UNSPEC_CONST in order to stop it being rejected by
24962 -mmax-constant-size.
24963 (pop_and_return): Add a "(return)" rtx.
24964 (call): Drop the immediate operand.
24965 (call_internal): Likewise.
24966 (call_value): Likewise.
24967 (call_value_internal): Likewise.
24968 (sibcall_internal): Likewise.
24969 (sibcall_value_internal): Likewise.
24970 (sibcall): Likewise. Generate an explicit call using
24972 (sibcall_value): Likewise.
24973 (mov<>): FAIL if a constant operand is not legitimate.
24974 (addsi3_unpsec): New pattern.
24976 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
24977 (ok_for_max_constant): New function.
24978 (gen_safe_add): New function.
24979 (rx_expand_prologue): Use gen_safe_add.
24980 (rx_expand_epilogue): Likewise.
24981 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
24984 2011-01-21 Jeff Law <law@redhat.com>
24986 PR tree-optimization/47053
24987 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
24988 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
24989 statements are deleted.
24990 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
24991 is nonempty, then purge dead edges and cleanup the CFG.
24993 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
24996 Temporarily revert:
24997 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
24999 * tree-dfa.c (create_var_ann): Mark variable as used.
25001 2011-01-21 Jakub Jelinek <jakub@redhat.com>
25003 PR middle-end/45566
25004 * except.c (convert_to_eh_region_ranges): Emit queued no-region
25005 notes from other section in hot/cold partitioning even if
25006 last_action is -3. Increment call_site_base.
25008 PR rtl-optimization/47366
25009 * fwprop.c (forward_propagate_into): Return bool. If
25010 any changes are made, -fnon-call-exceptions is used and
25011 REG_EH_REGION note is present, call purge_dead_edges
25012 and return true if it purged anything.
25013 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
25014 any EH edges were purged.
25016 2011-01-21 Jeff Law <law@redhat.com>
25018 PR rtl-optimization/41619
25019 * caller-save.c (setup_save_areas): Break out code to determine
25020 which hard regs are live across calls by examining the reload chains
25021 so that it is always used.
25022 Eliminate code which checked REG_N_CALLS_CROSSED.
25024 2011-01-21 Jakub Jelinek <jakub@redhat.com>
25026 PR tree-optimization/47355
25027 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
25028 NOP has non-debug uses beyond PHIs in new_bb.
25030 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
25033 * cfgexpand.c (account_used_vars_for_block): Only account vars
25034 that are annotated as used.
25035 (estimated_stack_frame_size): Don't set TREE_USED.
25036 * tree-dfa.c (create_var_ann): Mark variable as used.
25038 2011-01-21 Richard Guenther <rguenther@suse.de>
25040 PR middle-end/47395
25041 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
25043 2011-01-21 Richard Guenther <rguenther@suse.de>
25045 PR tree-optimization/47365
25046 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
25047 (vn_reference_lookup_pieces): Adjust.
25048 (vn_reference_lookup): Likewise.
25049 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
25050 (vn_reference_lookup_3): Only look through kills if in
25051 VN_WALKREWRITE mode.
25052 (vn_reference_lookup_pieces): Adjust.
25053 (vn_reference_lookup): Likewise.
25054 (visit_reference_op_load): Likewise.
25055 (visit_reference_op_store): Likewise.
25056 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
25057 (compute_avail): Likewise.
25058 (eliminate): Likewise.
25060 2011-01-21 Jakub Jelinek <jakub@redhat.com>
25062 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
25063 DECL_IGNORED_P non-reg vars if they are used.
25065 PR tree-optimization/47391
25066 * varpool.c (const_value_known_p): Return false if
25069 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
25072 * config/i386/i386.c (ix86_local_alignment): Handle
25073 case for va_list_type_node is nil.
25074 (ix86_canonical_va_list_type): Likewise.
25076 2011-01-21 Alan Modra <amodra@gmail.com>
25078 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
25079 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
25081 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25083 * config/arm/arm.md (define_attr type): Rename f_load
25084 and f_store to f_fpa_load and f_fpa_store. Update.
25085 (write_conflict): Deal with rename fallout.
25086 (*push_fp_multi): Likewise.
25087 * config/arm/fpa.md (f_load): Use f_fpa_load.
25088 (f_store): Use f_fpa_store.
25089 (*movsf_fpa): Likewise.
25090 (*movdf_fpa): Likewise.
25091 (*movxf_fpa): Likewise.
25092 (*thumb2_movsf_fpa): Likewise.
25093 (*thumb2_movdf_fpa): Likewise.
25094 (*thumb2_movxf_fpa): Likewise.
25095 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
25096 f_loadd and f_stored.
25097 (*thumb2_movdi_vfp): Likewise.
25098 (*thumb2_movsf_vfp): Fix attribute to f_loads.
25099 (*thumb2_movsi_vfp): Likewise.
25100 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
25101 Use f_loads instead of f_load.
25102 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
25104 2011-01-20 Anatoly Sokolov <aesok@post.ru>
25106 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25107 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
25108 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25109 (xtensa_mode_dependent_address_p): New function.
25110 (constantpool_address_p): Make static. Change return type to bool.
25111 Change argument type to const_rtx. Use CONST_INT_P predicate.
25113 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
25116 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
25118 2011-01-20 Jakub Jelinek <jakub@redhat.com>
25121 * cfgexpand.c (expand_debug_expr): Instead of generating
25122 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
25125 2011-01-20 Richard Guenther <rguenther@suse.de>
25127 PR middle-end/47370
25128 * tree-inline.c (remap_gimple_op_r): Recurse manually for
25129 the pointer operand of MEM_REFs.
25131 2011-01-20 Jakub Jelinek <jakub@redhat.com>
25133 PR tree-optimization/46130
25134 * ipa-split.c (consider_split): If return_bb contains non-virtual
25135 PHIs other than for retval or if split_function would not adjust it,
25138 2011-01-20 Richard Guenther <rguenther@suse.de>
25140 PR tree-optimization/47167
25141 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
25142 Revert previous change, only avoid enumeral type changes.
25144 2011-01-19 Mike Stump <mikestump@comcast.net>
25146 * doc/tm.texi.in (BRANCH_COST): Englishify.
25147 * doc/tm.texi (BRANCH_COST): Likewise.
25149 2011-01-19 Dodji Seketeli <dodji@redhat.com>
25152 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
25153 (gen_scheduled_generic_parms_dies): New functions.
25154 (gen_struct_or_union_type_die): Schedule template parameters DIEs
25155 generation for the end of CU compilation.
25156 (dwarf2out_finish): Generate template parameters DIEs here.
25158 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
25161 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
25162 debug bind stmt on merge edges.
25164 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
25168 * function.c (instantiate_expr): Instantiate incoming rtl of
25169 implicit arguments, and recurse on VALUE_EXPRs.
25170 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
25171 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
25173 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
25175 * c-parser.c (c_parser_for_statement): Initialize
25176 collection_expression.
25178 2011-01-19 Joseph Myers <joseph@codesourcery.com>
25180 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
25182 2011-01-19 Joseph Myers <joseph@codesourcery.com>
25184 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
25185 (LINK_SHLIB_SPEC): Don't use %(link_path).
25186 (SUBTARGET_EXTRA_SPECS): Remove link_path.
25188 2011-01-19 Joseph Myers <joseph@codesourcery.com>
25190 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
25191 (NO_SHARED_LIB_SUPPORT): Remove.
25192 (LINK_SHLIB_SPEC): Remove one conditional definition.
25194 2011-01-19 Joseph Myers <joseph@codesourcery.com>
25196 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
25198 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
25199 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
25200 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
25201 %{call_shared} and conditionals on these options not being passed.
25202 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
25205 2011-01-19 Jakub Jelinek <jakub@redhat.com>
25207 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
25210 * ipa-split.c: Spelling fixes.
25212 2011-01-19 Richard Henderson <rth@redhat.com>
25214 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
25215 (*mulsi3): Likewise.
25217 * longlong.h [__mn10300__] (count_leading_zeros): New.
25218 [__mn10300__] (umul_ppmm, smul_ppmm): New.
25219 [__mn10300__] (add_ssaaaa, subddmmss): New.
25220 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
25221 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
25223 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25225 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
25227 2011-01-19 Richard Henderson <rth@redhat.com>
25229 * config/mn10300/mn10300.md (addsi3_flags): New.
25230 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
25231 (subsi3_flags, subc_internal, subdi3): New.
25232 (subdi3_internal, *subdi3_degenerate): New.
25233 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
25235 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
25236 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
25237 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
25238 * config/mn10300/mn10300-protos.h: Update.
25239 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
25240 (return_ret): Likewise. Rename from return_internal_regs.
25241 (return_internal): Remove.
25243 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
25244 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
25245 (mn10300_legitimate_constant_p): Likewise.
25246 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
25247 (mn10300_frame_size): New.
25248 (mn10300_expand_prologue): Use it.
25249 (mn10300_expand_epilogue): Likewise.
25250 (mn10300_initial_offset): Likewise.
25251 * config/mn10300/mn10300-protos.h: Update.
25252 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
25253 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
25254 (prologue, epilogue, return_internal): Tidy output code.
25255 (mn10300_store_multiple_operation, return): Likewise.
25256 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
25257 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
25258 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
25259 (load_pic, am33_load_pic): New.
25260 (mn10300_load_pic0, mn10300_load_pic1): New.
25262 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
25263 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
25264 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
25265 (cc_flags_for_mode, cc_flags_for_code): New.
25266 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
25267 overflow flag is not valid. Validate that the flags we need
25268 for the comparison are valid.
25269 (mn10300_output_cmp): Remove.
25270 (mn10300_output_add): New.
25271 (mn10300_select_cc_mode): Use cc_flags_for_code.
25272 (mn10300_split_cbranch): New.
25273 (mn10300_match_ccmode): New.
25274 (mn10300_split_and_operand_count): New.
25275 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
25277 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
25278 (addsi3): ... here. Use mn10300_output_add.
25279 (*addsi3_flags): New.
25280 (*am33_subsi3, *mn10300_subsi3): Merge...
25281 (subsi3): ... here. Use attribute isa.
25282 (*subsi3_flags): New.
25283 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
25285 (*am33_andsi3, *mn10300_andsi3): Merge...
25286 (andsi3): ... here.
25287 (*andsi3_flags): New.
25288 (andsi3 splitters): New.
25289 (*am33_iorsi3, *mn10300_iorsi3): Merge...
25290 (iorsi3): ... here.
25291 (*iorsi3_flags): New.
25292 (*am33_xorsi3, *mn10300_xorsi3): Merge...
25293 (xorsi3): ... here.
25294 (*xorsi3_flags): New.
25295 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
25296 (one_cmplsi2): ... here.
25297 (*one_cmplsi2_flags): New.
25298 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
25299 instead of "dax" in constraints. Use mn10300_split_cbranch.
25300 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
25301 use matching constraints to eliminate a self-comparison.
25302 (*integer_conditional_branch): Rename from integer_conditional_branch.
25303 Use int_mode_flags to match CC_REG.
25304 (*cbranchsi4_btst, *btstsi): New.
25305 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
25306 mn10300_split_cbranch.
25307 (*am33_cmpsf): Rename from am33_cmpsf.
25308 (*float_conditional_branch): Rename from float_conditional_branch.
25309 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
25310 (zero_extendqisi2): ... here.
25311 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
25312 (zero_extendhisi2): ... here.
25313 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
25314 (extendqisi2): ... here.
25315 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
25316 (extendhisi2): ... here.
25317 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
25318 (ashlsi3): ... here.
25319 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
25320 (lshrsi3): ... here.
25321 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
25322 (ashrsi3): ... here.
25323 (consecutive add peephole): Remove.
25324 * config/mn10300/predicates.md (label_ref_operand): New.
25325 (int_mode_flags): New.
25326 (CCZN_comparison_operator): New.
25328 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
25329 (throughput_42_latency_43): New reservation.
25330 (mulsidi3, umulsidi3): New expanders.
25331 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
25332 the MDR register to allocation; separately allocate the low and
25333 high parts of the DImode result.
25334 (umulsidi3_internal): Similarly.
25335 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
25336 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
25337 (udivsi3, umodsi3): Remove.
25338 (udivmodsi4, divmodsi4): New expanders.
25339 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
25340 (*divmodsi4): Simiarly.
25341 (ext_internal): New.
25343 * config/mn10300/constraints.md ("z"): New constraint.
25344 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
25345 (FIXED_REGISTERS): Don't fix MDR.
25346 (CALL_USED_REGSITERS): Reformat nicely.
25347 (REG_ALLOC_ORDER): Add MDR.
25348 (enum regclass): Add MDR_REGS.
25349 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
25350 (IRA_COVER_CLASSES): Add MDR_REGS.
25351 (REGNO_REG_CLASS): Handle MDR_REG.
25352 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
25353 (mn10300_register_move_cost): Likewise.
25354 * config/mn10300/mn10300.md (MDR_REG): New.
25355 (*movsi_internal): Handle moves to/from MDR_REGS.
25357 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
25359 (mn10300_secondary_reload): Tidy combination reload classes.
25360 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
25361 addresses for AM33. Allow symbolic offsets for reg+imm.
25362 (mn10300_regno_in_class_p): New.
25363 (mn10300_legitimize_reload_address): New.
25364 * config/mn10300/mn10300.h (enum reg_class): Remove
25365 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
25366 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
25367 SP_OR_GENERAL_REGS.
25368 (REG_CLASS_NAMES): Update to match.
25369 (REG_CLASS_CONTENTS): Likewise.
25370 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
25371 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
25372 (REGNO_IN_RANGE_P): Remove.
25373 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
25374 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
25375 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
25376 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
25377 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
25378 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
25379 (REGNO_GENERAL_P): New.
25380 (HAVE_POST_MODIFY_DISP): New.
25381 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
25382 (LEGITIMIZE_RELOAD_ADDRESS): New.
25383 * config/mn10300/mn10300-protos.h: Update.
25385 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
25386 DATA_REGS for AM33 stack-pointer destination.
25387 (mn10300_preferred_output_reload_class): Likewise.
25388 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
25389 into a form appropriate for ...
25390 (TARGET_SECONDARY_RELOAD): New.
25391 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
25392 * config/mn10300/mn10300-protos.h: Update.
25393 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
25394 reload_insi; use the "A" constraint for the scratch; handle AM33
25395 moves of sp to non-address registers.
25397 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
25398 (*movqi_internal): ... here.
25399 (*am33_movhi, *mn10300_movhi): Merge into...
25400 (*movhi_internal): ... here.
25401 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
25402 as the source/destination of moves from/to SP.
25403 (movsf): Only allow for AM33-2.
25404 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
25405 any integer constant constraint. Only allow for AM33-2. Tidy
25406 all of the alternative outputs.
25407 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
25408 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
25410 (udivsi3, umodsi3): New patterns for MN103 only.
25412 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
25414 * doc/tm.texi.in: Spell out that a lack of register class unions
25416 * doc/tm.texi: Regenerate.
25418 2011-01-19 Jakub Jelinek <jakub@redhat.com>
25420 PR rtl-optimization/47337
25421 * dce.c (check_argument_store): New function.
25422 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
25424 PR tree-optimization/47290
25425 * tree-eh.c (infinite_empty_loop_p): New function.
25426 (cleanup_empty_eh): Use it.
25428 2011-01-18 Steve Ellcey <sje@cup.hp.com>
25431 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
25432 (a64_expand_widen_sum): Ditto.
25433 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
25434 (vec_extract_evenodd_help): Ditto.
25435 (vec_extract_evenv4hi): Ditto.
25436 (vec_extract_oddv4hi): Ditto.
25437 (vec_extract_evenv2si): Ditto.
25438 (vec_extract_oddv2si): Ditto.
25439 (vec_extract_evenv2sf): Ditto.
25440 (vec_extract_oddv2sf): Ditto.
25441 (vec_pack_trunc_v4hi: Ditto.
25442 (vec_pack_trunc_v2si): Ditto.
25443 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
25444 (vec_interleave_highv8qi): Ditto.
25446 (vec_extract_oddv8qi): Ditto.
25447 (vec_interleave_lowv4hi): Ditto.
25448 (vec_interleave_highv4hi): Ditto.
25449 (vec_interleave_lowv2si): Ditto.
25450 (vec_interleave_highv2si): Ditto.
25452 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25454 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
25455 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
25456 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
25457 (pa_c_mode_for_suffix): New.
25458 (TARGET_EXPAND_BUILTIN): Define.
25459 (TARGET_C_MODE_FOR_SUFFIX): Define.
25460 (pa_builtins): Define.
25461 (pa_init_builtins): Register __float128 type and init new support
25463 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
25464 * config/pa/quadlib.c (_U_Qfcopysign): New.
25466 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
25468 PR middle-end/46894
25469 * explow.c (allocate_dynamic_stack_space): Do not assume more than
25470 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
25473 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25475 PR tree-optimization/47179
25476 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
25477 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
25479 2011-01-18 Richard Guenther <rguenther@suse.de>
25481 PR rtl-optimization/47216
25482 * emit-rtl.c: Include tree-flow.h.
25483 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
25484 of replicating it with different semantics.
25485 * Makefile.in (emit-rtl.o): Adjust.
25487 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25489 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
25490 (cortex_a9_dp): Handle neon types correctly.
25492 2011-01-18 Jakub Jelinek <jakub@redhat.com>
25494 PR rtl-optimization/47299
25495 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
25496 subtarget. Use normal multiplication if both operands are constants.
25497 * expmed.c (expand_widening_mult): Don't try to optimize constant
25498 multiplication if op0 has VOIDmode. Convert op1 constant to mode
25501 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25503 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
25504 spacing after 'e.g.', typos, comma, hyphenation.
25506 2011-01-17 Richard Henderson <rth@redhat.com>
25508 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
25509 (rx_restricted_mem_operand): New.
25510 (rx_shift_operand): Use register_operand.
25511 (rx_source_operand, rx_compare_operand): Likewise.
25512 * config/rx/rx.md (addsi3_flags): New expander.
25513 (adddi3): Rewrite as expander.
25514 (adc_internal, *adc_flags, adddi3_internal): New patterns.
25515 (subsi3_flags): New expander.
25516 (subdi3): Rewrite as expander.
25517 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
25519 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
25520 (rx_init_builtins): Remove sat builtin.
25521 (rx_expand_builtin): Likewise.
25522 * config/rx/rx.md (ssaddsi3): New.
25523 (*sat): Rename from sat. Represent the CC_REG input.
25525 * config/rx/predicates.md (rshift_operator): New.
25526 * config/rx/rx.c (rx_expand_insv): Remove.
25527 * config/rx/rx-protos.h: Update.
25528 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
25529 operand to the canonical position.
25530 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
25531 (*bitclr, *bitclr_in_memory): Similarly.
25532 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
25533 (insv): Retain the zero_extract in the expansion.
25535 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
25536 (bswaphi2, bitinvert, revw): Likewise.
25538 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
25539 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
25540 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
25541 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
25542 (bitset, bitset_in_memory): Likewise.
25543 (bitinvert, bitinvert_in_memory): Likewise.
25544 (bitclr, bitclr_in_memory): Likewise.
25545 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
25546 (rx_strend, rx_cmpstrn): Likewise.
25547 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
25548 (bitop peep2 patterns): Remove.
25550 * config/rx/rx.c (rx_match_ccmode): New.
25551 * config/rx/rx-protos.h: Update.
25552 * config/rx/rx.md (abssi2): Clobber, don't set flags.
25553 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
25554 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
25555 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
25556 (fix_truncsfsi2, floatsisf2): Likewise.
25557 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
25558 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
25559 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
25560 (*subsi3_flags, *xorsi3_flags): New.
25562 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
25564 * config/rx/rx.c (rx_print_operand): Remove workaround for
25565 unsplit comparison operations.
25567 * config/rx/rx.md (movsicc): Split after reload.
25568 (*movsicc): Merge *movsieq and *movsine via match_operator.
25569 (*stcc): New pattern.
25571 * config/rx/rx.c (rx_float_compare_mode): Remove.
25572 * config/rx/rx.h (rx_float_compare_mode): Remove.
25573 * config/rx/rx.md (cstoresi4): Split after reload.
25574 (*sccc): New pattern.
25576 * config/rx/predicates.md (label_ref_operand): New.
25577 (rx_z_comparison_operator): New.
25578 (rx_zs_comparison_operator): New.
25579 (rx_fp_comparison_operator): New.
25580 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
25581 Validate that the flags are set properly for the comparison.
25582 (rx_gen_cond_branch_template): Remove.
25583 (rx_cc_modes_compatible): Remove.
25584 (mode_from_flags): New.
25585 (flags_from_code): Rename from flags_needed_for_conditional.
25586 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
25587 (rx_select_cc_mode): Likewise.
25588 (rx_split_fp_compare): New.
25589 (rx_split_cbranch): New.
25590 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
25591 (*cbranchsi4): Use match_operator and rx_split_cbranch.
25592 (*cbranchsf4): Similarly.
25593 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
25594 match_operator and rx_split_cbranch.
25595 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
25596 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
25597 (*cmpsi): Rename from cmpsi.
25598 (*tstsi): Rename from tstsi.
25599 (*cmpsf): Rename from cmpsf; use CC_Fmode.
25600 (*conditional_branch): Rename from conditional_branch.
25601 (*reveresed_conditional_branch): Remove.
25602 (b<code>): Remove expander.
25603 * config/rx/rx-protos.h: Update.
25605 * config/rx/rx.c (rx_compare_redundant): Remove.
25606 * config/rx/rx.md (cmpsi): Don't use it.
25607 * config/rx/rx-protos.h: Update.
25609 * config/rx/rx-modes.def (CC_F): New mode.
25610 * config/rx/rx.c (rx_select_cc_mode): New.
25611 * config/rx/rx.h (SELECT_CC_MODE): Use it.
25612 * config/rx/rx-protos.h: Update.
25614 2011-01-17 Richard Henderson <rth@redhat.com>
25616 * except.c (dump_eh_tree): Fix stray ; after for statement.
25618 2011-01-17 Richard Guenther <rguenther@suse.de>
25620 PR tree-optimization/47313
25621 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
25622 handling before copying the body. Properly deal with
25623 by-reference result in SSA form.
25625 2011-01-17 Ian Lance Taylor <iant@google.com>
25628 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
25629 (struct_value_alias_set): Don't define.
25630 (sparc_option_override): Don't set sparc_sr_alias_set and
25631 struct_value_alias_set.
25632 (save_or_restore_regs): Use gen_frame_mem rather than calling
25634 (sparc_struct_value_rtx): Likewise.
25636 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
25639 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
25640 (_mm_maskstore_pd): Likewise.
25641 (_mm_maskload_ps): Likewise.
25642 (_mm_maskstore_ps): Likewise.
25643 (_mm256_maskload_pd): Change mask to __m256i.
25644 (_mm256_maskstore_pd): Likewise.
25645 (_mm256_maskload_ps): Likewise.
25646 (_mm256_maskstore_ps): Likewise.
25648 * config/i386/i386-builtin-types.def: Updated.
25649 (ix86_expand_special_args_builtin): Likewise.
25651 * config/i386/i386.c (bdesc_special_args): Update
25652 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
25653 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
25654 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
25655 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
25657 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
25658 Use <avxpermvecmode> on mask register.
25659 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
25661 2011-01-17 Olivier Hainque <hainque@adacore.com>
25662 Michael Haubenwallner <michael.haubenwallner@salomon.at>
25663 Eric Botcazou <ebotcazou@adacore.com>
25666 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
25667 if <= USHRT_MAX in 32-bit mode.
25669 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25671 * doc/install.texi (Configuration, Specific): Wrap long
25672 lines in examples. Allow line wrapping in long options
25673 and URLs where beneficial for PDF output.
25675 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
25677 * config/mips/mips.c (mips_classify_symbol): Don't return
25678 SYMBOL_PC_RELATIVE for nonlocal labels.
25680 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
25682 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
25684 2011-01-15 Jan Hubicka <jh@suse.cz>
25686 PR tree-optimization/47276
25687 * ipa.c (function_and_variable_visibility): Do not try to mark alias
25688 declarations as needed.
25690 2011-01-15 Martin Jambor <mjambor@suse.cz>
25692 * common.opt (fdevirtualize): New flag.
25693 * doc/invoke.texi (Option Summary): Document it.
25694 * opts.c (default_options_table): Add devirtualize flag.
25695 * ipa-prop.c (detect_type_change): Return immediately if
25696 devirtualize flag is not set.
25697 (detect_type_change_ssa): Likewise.
25698 (compute_known_type_jump_func): Likewise.
25699 (ipa_analyze_virtual_call_uses): Likewise.
25701 2011-01-14 Martin Jambor <mjambor@suse.cz>
25703 PR tree-optimization/45934
25704 PR tree-optimization/46302
25705 * ipa-prop.c (type_change_info): New type.
25706 (stmt_may_be_vtbl_ptr_store): New function.
25707 (check_stmt_for_type_change): Likewise.
25708 (detect_type_change): Likewise.
25709 (detect_type_change_ssa): Likewise.
25710 (compute_complex_assign_jump_func): Check for dynamic type change.
25711 (compute_complex_ancestor_jump_func): Likewise.
25712 (compute_known_type_jump_func): Likewise.
25713 (compute_scalar_jump_functions): Likewise.
25714 (ipa_analyze_virtual_call_uses): Likewise.
25715 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
25717 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25719 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
25720 * config/i386/i386.opt (msse5): New Alias.
25722 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25724 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25725 * config/sparc/linux64.h (CC1_SPEC): Likewise.
25726 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25727 * config/sparc/sparc.h (CC1_SPEC): Likewise.
25729 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25731 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
25733 * config/sparc/linux64.h (CC1_SPEC): Likewise.
25734 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25735 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
25736 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
25738 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
25740 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25742 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
25744 2011-01-14 Mike Stump <mikestump@comcast.net>
25746 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
25747 * config/fr30/fr30.md: Likweise
25748 (movsi_push): Likewise.
25749 (movsi_pop): Likewise.
25750 (enter_func): Likewise.
25751 * config/moxie/moxie.md (movsi_push): Likewise.
25752 (movsi_pop): Likewise.
25754 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25756 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
25757 %{no_archive} %{exact_version}.
25758 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
25759 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
25760 %{no_archive} %{exact_version}.
25761 * config/mips/openbsd.h (LINK_SPEC): Likewise.
25762 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
25763 * config/mips/vxworks.h: Likewise.
25765 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25767 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
25769 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25771 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
25772 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
25774 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25776 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
25779 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25781 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
25783 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
25784 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
25786 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
25787 Don't handle -shlib.
25789 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25791 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
25792 (CC1_SPEC): Don't handle -profile.
25794 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25796 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
25797 * config/mips/mips.h (CC1_SPEC): Likewise.
25799 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25801 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
25802 * config/mips/mips.h (CC1_SPEC): Likewise.
25804 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25806 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
25807 * config/m32r/linux.h (LINK_SPEC): Likewise.
25808 * config/mips/linux.h (LINK_SPEC): Likewise.
25809 * config/mips/linux64.h (LINK_SPEC): Likewise.
25810 * config/sparc/linux.h (LINK_SPEC): Likewise.
25811 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
25812 LINK_SPEC): Likewise.
25813 * config/xtensa/linux.h (LINK_SPEC): Likewise.
25815 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25817 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
25819 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
25821 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25823 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
25824 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
25826 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25828 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
25830 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25832 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
25833 supports -Bstatic/-Bdynamic.
25834 * configure: Regenerate.
25836 2011-01-14 Jan Hubicka <jh@suse.cz>
25837 Jack Howarth <howarth@bromo.med.uc.edu>
25840 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
25841 when checking debug_info_level. Test write_symbols instead of
25842 debug_hooks->var_location when setting flag_var_tracking_uninit.
25844 2011-01-14 Richard Guenther <rguenther@suse.de>
25846 PR tree-optimization/47179
25847 * target.def (ref_may_alias_errno): New target hook.
25848 * targhooks.h (default_ref_may_alias_errno): Declare.
25849 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
25850 (default_ref_may_alias_errno): New function.
25851 * target.h (struct ao_ref_s): Declare.
25852 * tree-ssa-alias.c: Include target.h.
25853 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
25854 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
25855 (targhooks.o): Likewise.
25856 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
25857 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
25859 2011-01-14 Richard Guenther <rguenther@suse.de>
25861 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
25863 2011-01-14 Richard Guenther <rguenther@suse.de>
25865 PR tree-optimization/47280
25866 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
25867 return CFG changes.
25868 (tree_ssa_forward_propagate_single_use_vars): Deal with
25869 CFG changes from associate_plusminus.
25871 2011-01-14 Richard Guenther <rguenther@suse.de>
25873 PR middle-end/47281
25875 2011-01-11 Richard Guenther <rguenther@suse.de>
25877 PR tree-optimization/46076
25878 * tree-ssa.c (useless_type_conversion_p): Conversions from
25879 unprototyped to empty argument list function types are useless.
25881 2011-01-14 Richard Guenther <rguenther@suse.de>
25883 PR tree-optimization/47286
25884 * tree-ssa-structalias.c (new_var_info): Register variables are global.
25886 2011-01-14 Martin Jambor <mjambor@suse.cz>
25888 PR middle-end/46823
25889 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
25891 2011-01-13 Anatoly Sokolov <aesok@post.ru>
25893 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
25894 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25895 * config/xtensa/xtensa.c (xtensa_libcall_value,
25896 xtensa_function_value_regno_p): New functions.
25897 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25899 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
25902 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
25904 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
25905 New function prototype.
25906 * config/i386/winnt.c (i386_pe_assemble_visibility):
25907 Warn only if attribute was specified by user.
25909 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
25912 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
25914 (floatunsdidf2_fcfidu): Ditto.
25916 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25918 * config/s390/s390.c (print_operand_address): Replace 'error' with
25919 'output_operand_lossage'.
25920 (print_operand): Likewise.
25922 2011-01-13 Jeff Law <law@redhat.com>
25924 PR rtl-optimization/39077
25925 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
25926 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
25927 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
25928 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
25929 * gcse.c (prune_insertions_deletions): New function.
25930 (compute_pre_data): Use it.
25932 2011-01-13 Dodji Seketeli <dodji@redhat.com>
25935 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
25937 (prune_unused_types_mark): Use it.
25939 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
25941 PR rtl-optimization/45352
25942 * sel-sched.c: Update copyright years.
25943 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
25944 in the advancing loop when we have issued issue_rate insns.
25946 2011-01-12 Richard Henderson <rth@redhat.com>
25948 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
25949 (TARGET_MD_ASM_CLOBBERS): New.
25951 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
25952 (TARGET_DELEGITIMIZE_ADDRESS): New.
25954 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
25955 (clzsi2, *bsch): New patterns.
25957 * config/mn10300/mn10300.md (INT): New mode iterator.
25958 (*mov<INT>_clr): New pattern, and peep2 to generate it.
25960 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
25961 flag_split_wide_types.
25963 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
25964 (mn10300_trampoline_init): Rewrite without a template, an immediate
25965 load and a direct branch.
25966 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
25968 2011-01-12 Anatoly Sokolov <aesok@post.ru>
25970 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25971 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
25972 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
25973 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25975 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
25978 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
25981 2011-01-12 Jan Hubicka <jh@suse.cz>
25984 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
25985 (PLUGIN_COND_CLOSE): New macro.
25986 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
25988 2011-01-12 Richard Guenther <rguenther@suse.de>
25991 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
25992 register variables in a MEM_REF.
25994 2011-01-12 Joseph Myers <joseph@codesourcery.com>
25996 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
25997 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
25998 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
25999 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
26000 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
26001 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
26002 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
26003 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
26004 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
26005 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
26006 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
26007 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
26008 * config/gnu-user.h: New. Copied from linux.h.
26009 (LINUX_TARGET_STARTFILE_SPEC): Rename to
26010 GNU_USER_TARGET_STARTFILE_SPEC.
26011 (LINUX_TARGET_ENDFILE_SPEC): Rename to
26012 GNU_USER_TARGET_ENDFILE_SPEC.
26013 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
26014 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
26015 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
26016 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
26017 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
26018 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
26019 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
26020 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
26021 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
26022 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
26023 * config/arm/linux-eabi.h (CC1_SPEC): Use
26024 GNU_USER_TARGET_CC1_SPEC.
26025 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
26026 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
26027 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
26028 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
26029 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
26030 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
26031 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
26032 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
26034 2011-01-12 Richard Guenther <rguenther@suse.de>
26037 * doc/invoke.texi (ffast-math): Document it is turned on
26040 2011-01-12 Jan Hubicka <jh@suse.cz>
26042 PR tree-optimization/47233
26043 * opts.c (common_handle_option): Disable ipa-reference with profile
26046 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
26048 * c-parser.c (c_parser_objc_at_property_declaration): Improved
26051 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
26053 * c-parser.c (c_lex_one_token): Updated and reindented some
26054 comments. No changes in code.
26056 2011-01-11 Ian Lance Taylor <iant@google.com>
26058 * godump.c (go_output_var): Don't output the variable if there is
26059 already a type with the same name.
26061 2011-01-11 Ian Lance Taylor <iant@google.com>
26063 * godump.c (go_format_type): Don't generate float80.
26065 2011-01-11 Richard Henderson <rth@redhat.com>
26067 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
26068 declaration. Rewrite for both speed and size.
26069 (mn10300_address_cost_1): Remove.
26070 (mn10300_register_move_cost): New.
26071 (mn10300_memory_move_cost): New.
26072 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
26073 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
26074 extensions, shifts, BSWAP, CLZ.
26075 (mn10300_wide_const_load_uses_clr): Remove.
26076 (TARGET_REGISTER_MOVE_COST): New.
26077 (TARGET_MEMORY_MOVE_COST): New.
26078 * config/mn10300/mn10300-protos.h: Update.
26079 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
26081 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
26082 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
26083 * config/mn10300/mn10300-protos.h: Update.
26084 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
26085 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
26086 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
26087 (*test_int_bitfield, *test_byte_bitfield): Remove.
26088 (*bit_test, *subreg_bit_test): Remove.
26089 * config/mn10300/predicates.md (const_8bit_operand): Remove.
26091 * config/mn10300/constraints.md ("c"): Rename from "A".
26092 ("A", "D"): New constraint letters.
26093 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
26094 (fmssf4, fnmasf4, fnmssf4): Likewise.
26096 * config/mn10300/mn10300.md (isa): New attribute.
26097 (enabled): New attribute.
26099 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
26100 (abssf2, negsf2): Define only for hardware fp.
26101 (sqrtsf2): Reformat.
26102 (addsf3, subsf3, mulsf3): Merge expander and insn.
26104 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
26105 (DEBUGGER_AUTO_OFFSET): Remove.
26106 (DEBUGGER_ARG_OFFSET): Remove.
26108 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
26109 Emit register stores with the same offsets as the hardware.
26110 (mn10300_store_multiple_operation): Don't check that the register
26111 save offsets are monotonic.
26112 * config/mn10300/mn10300-protos.h: Update.
26114 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
26116 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
26117 in terms of the value on the stack, not the MDR register.
26119 2011-01-11 Jan Hubicka <jh@suse.cz>
26123 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
26124 (symbol_alias_set_destroy, symbol_alias_set_contains,
26125 propagate_aliases_backward): Declare.
26126 * lto-streamer-out.c (struct sets): New sturcture.
26127 (trivally_defined_alias): New function.
26128 (output_alias_pair_p): Rewrite.
26129 (output_unreferenced_globals): Fix output of alias pairs.
26130 (produce_symtab): Likewise.
26131 * ipa.c (function_and_variable_visibility): Set weak alias destination
26133 * varasm.c (symbol_alias_set_t): Remove.
26134 (symbol_alias_set_destroy): Export.
26135 (propagate_aliases_forward, propagate_aliases_backward): New functions
26137 (compute_visible_aliases): ... this one; remove.
26138 (trivially_visible_alias): New
26139 (trivially_defined_alias): New.
26140 (remove_unreachable_alias_pairs): Rewrite.
26141 (finish_aliases_1): Reorganize code checking if alias is defined.
26142 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
26145 2011-01-11 Richard Guenther <rguenther@suse.de>
26147 PR tree-optimization/46076
26148 * tree-ssa.c (useless_type_conversion_p): Conversions from
26149 unprototyped to empty argument list function types are useless.
26151 2011-01-11 Richard Guenther <rguenther@suse.de>
26153 PR middle-end/45235
26154 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
26155 volatile MEMs as MEM_READONLY_P.
26157 2011-01-11 Richard Guenther <rguenther@suse.de>
26159 PR tree-optimization/47239
26160 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
26162 2011-01-11 Jeff Law <law@redhat.com>
26164 PR tree-optimization/47086
26165 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
26166 IVs from statements that might throw.
26168 2011-01-10 Jan Hubicka <jh@suse.cz>
26171 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
26173 2011-01-10 Jan Hubicka <jh@suse.cz>
26176 * profile.c (read_profile_edge_counts): Ignore profile inconistency
26177 when correcting profile.
26179 2011-01-10 Jan Hubicka <jh@suse.cz>
26182 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
26183 DECL_FINI_PRIORITY.
26184 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
26185 Restore DECL_FINI_PRIORITY.
26187 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26189 * doc/gimple.texi: Fix quoting of multi-word return values in
26190 @deftypefn statements. Ensure presence of return value. Wrap
26191 overlong @deftypefn lines.
26192 (is_gimple_operand, is_gimple_min_invariant_address): Remove
26193 descriptions of removed functions.
26194 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
26195 of multi-word return value in @deftypefn statement.
26197 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26199 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
26200 (Conditional Expressions, Logical Operators)
26201 (Statement and operand traversals): Do not indent smallexample
26202 code. Fix duplicate function argument in example.
26204 2011-01-10 Jeff Law <law@redhat.com>
26206 PR tree-optimization/47141
26207 * ipa-split.c (split_function): Handle case where we are
26208 returning a value and the return block has a virtual operand phi.
26210 2011-01-10 Jan Hubicka <jh@suse.cz>
26212 PR tree-optimization/47234
26213 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
26214 (pass_feedback_split_functions): Declare.
26215 * passes.c (init_optimization_passes): Add ipa-split as subpass of
26217 * ipa-split.c (gate_split_functions): Update comments; disable
26218 split-functions for profile_arc_flag and branch_probabilities.
26219 (gate_feedback_split_functions): New function.
26220 (execute_feedback_split_functions): New function.
26221 (pass_feedback_split_functions): New global var.
26223 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
26226 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
26227 calling gimple_call_set_cannot_inline.
26229 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
26231 * config/darwin-sections.def: Remove unused section.
26233 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
26236 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
26238 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
26241 * c-parser.c (c_parser_declaration_or_fndef): Improved
26244 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
26246 * config/i386/winnt.c (i386_pe_start_function): Make sure
26247 to switch back to function's section.
26249 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
26253 * plugin.c: Move include of dlfcn.h from here...
26254 * system.h: ... to here.
26256 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26258 * doc/cpp.texi (C++ Named Operators): Fix markup for header
26260 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
26261 two extra empty pages in PDF output.
26263 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
26266 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
26267 for error recovery purposes behave as if it was not specified so
26268 that the default type is usd.
26270 2011-01-07 Jan Hubicka <jh@suse.cz>
26272 PR tree-optmization/46469
26273 * ipa.c (function_and_variable_visibility): Clear needed flags on
26274 nodes with external decls; handle weakrefs merging correctly.
26276 2011-01-07 Joseph Myers <joseph@codesourcery.com>
26278 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
26281 2011-01-07 Jan Hubicka <jh@suse.cz>
26283 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
26284 and no longer claim that gold is required for linker plugin.
26285 * configure: Regenerate.
26286 * gcc.c (PLUGIN_COND): New macro.
26287 (LINK_COMMAND_SPEC): Use it.
26288 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
26289 * config.in (HAVE_LTO_PLUGIN): New.
26290 * configure.ac (--with-lto-plugin): New parameter; autodetect
26293 2011-01-07 Jan Hubicka <jh@suse.cz>
26295 PR tree-optimization/46367
26296 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
26297 when we can update original.
26298 (cgraph_mark_inline_edge): Sanity check.
26299 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
26301 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26303 * config/spu/spu.h (ASM_COMMENT_START): Define.
26305 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
26308 * gcc.c (%>S): New.
26309 (SWITCH_KEEP_FOR_GCC): Likewise.
26310 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
26311 (do_spec_1): Handle "%>".
26313 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
26315 2011-01-07 Jakub Jelinek <jakub@redhat.com>
26318 * config/i386/i386.c (ix86_delegitimize_address): If
26319 simplify_gen_subreg fails, return orig_x.
26322 * value-prof.c (gimple_stringop_fixed_value): Handle
26323 lhs of the call properly.
26325 2011-01-07 Jan Hubicka <jh@suse.cz>
26328 * lto-opt.c (lto_reissue_options): Set flag_shlib.
26330 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
26332 * target.def (function_switched_text_sections): New hook.
26333 * doc/tm.texi: Regenerated.
26334 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
26335 * final.c (default_function_switched_text_sections): New.
26336 (final_scan_insn): Call function_switched_text_sections when a
26337 mid-function section change occurs.
26338 * output.h (default_function_switched_text_sections): Declare.
26339 * config/darwin-protos.h (darwin_function_switched_text_sections):
26341 * config/darwin.c (darwin_function_switched_text_sections): New.
26342 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
26344 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
26346 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
26347 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
26348 the secondary code fragment when outputting for DWARF == 2.
26350 2011-01-07 Anatoly Sokolov <aesok@post.ru>
26352 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
26353 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
26355 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
26356 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
26358 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
26361 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
26362 when it is not empty.
26364 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
26367 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
26368 (case ${target}): Add btver1.
26369 * config/i386/driver-i386.c (host_detect_local_cpu): Let
26370 -march=native recognize btver1 processors.
26371 * config/i386/i386-c.c (ix86_target_macros_internal): Add
26372 btver1 def_and_undef
26373 * config/i386/i386.c (struct processor_costs btver1_cost): New
26375 (m_BTVER1): New definition.
26376 (m_AMD_MULTIPLE): Includes m_BTVER1.
26377 (initial_ix86_tune_features): Add btver1 tune.
26378 (processor_target_table): Add btver1 entry.
26379 (static const char *const cpu_names): Add btver1 entry.
26380 (software_prefetching_beneficial_p): Add btver1.
26381 (ix86_option_override_internal): Add btver1 instruction sets.
26382 (ix86_issue_rate): Add btver1.
26383 (ix86_adjust_cost): Add btver1.
26384 * config/i386/i386.h (TARGET_BTVER1): New definition.
26385 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
26386 (enum processor_type): Add PROCESSOR_BTVER1.
26387 * config/i386/i386.md (define_attr "cpu"): Add btver1.
26389 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26392 * config/i386/i386.c (legitimize_tls_address)
26393 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
26394 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
26395 (tls_initial_exec_64_sun): New pattern.
26397 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
26399 * doc/invoke.texi (Overall Options): Improve wording and markup
26400 of the description of -wrapper.
26402 2011-01-06 Joseph Myers <joseph@codesourcery.com>
26404 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
26405 rdynamic, threads): New Driver options.
26407 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26410 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
26411 if coming from .tdata.
26412 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
26414 2011-01-06 Jan Hubicka <jh@suse.cz>
26417 * collect2.c (main): Do not enable LTOmode when plugin is active.
26419 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26422 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
26423 --version output if supported.
26424 * configure: Regenerate.
26426 2011-01-06 Joseph Myers <joseph@codesourcery.com>
26428 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
26431 2011-01-06 Jakub Jelinek <jakub@redhat.com>
26434 * c-convert.c (convert): When converting a complex expression
26435 other than COMPLEX_EXPR to a different complex type, ensure
26436 c_save_expr is called instead of save_expr, unless in_late_binary_op.
26437 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
26438 when converting COMPLEX_TYPE.
26440 2011-01-06 Ira Rosen <irar@il.ibm.com>
26442 PR tree-optimization/47139
26443 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
26444 only the last reduction value is used outside the loop. Update
26447 2011-01-05 Joseph Myers <joseph@codesourcery.com>
26449 * config/rtems.opt: New.
26450 * config.gcc (*-*-rtems*): Use rtems.opt.
26452 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
26454 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
26455 processors do not support 3DNow instructions.
26457 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26459 * config/spu/spu.c (spu_option_override): Set parameter
26460 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
26462 2011-01-05 Jan Hubicka <jh@suse.cz>
26464 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
26465 at the command line.
26467 2011-01-05 Martin Jambor <mjambor@suse.cz>
26470 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
26471 deltas on streamed outgoing edges.
26472 (output_node_opt_summary): Output info for outgoing edges only when
26473 the node is in new parameter set.
26474 (output_cgraph_opt_summary): New parameter set, passed to the two
26475 aforementioned functions. Update its forward declaration and its
26478 2011-01-05 Tom Tromey <tromey@redhat.com>
26480 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
26481 operator to c_finish_omp_atomic.
26482 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
26483 (build_unary_op): Update.
26484 (build_modify_expr): Update.
26485 (build_asm_expr): Update.
26487 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26489 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
26490 newly inserted insns.
26491 (pad_bb): Likewise.
26492 (spu_emit_branch_hint): Likewise.
26493 (insert_hbrp_for_ilb_runout): Likewise.
26494 (spu_machine_dependent_reorg): Call df_finish_pass after
26495 schedule_insns returns.
26497 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26499 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
26501 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
26503 PR tree-optimization/47005
26504 * tree-sra.c (struct access): Add 'non_addressable' bit.
26505 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
26506 (decide_one_param_reduction): Return 0 if the parameter is passed by
26507 reference and one of the accesses in the group is non_addressable.
26509 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
26511 PR tree-optimization/47056
26512 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
26513 (mark_load): Likewise. Handle FUNCTION_DECL specially.
26514 (mark_store): Likewise. Pass STMT to ipa_record_reference.
26516 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
26518 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
26519 initializer. Skip view conversions from aggregate types.
26521 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
26524 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
26526 2011-01-04 Philipp Thomas <pth@suse.de>
26528 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
26531 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26533 * function.c (thread_prologue_and_epilogue_insns): Do not crash
26534 on empty epilogue sequences.
26536 2011-01-04 Joseph Myers <joseph@codesourcery.com>
26538 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
26539 non-static): New Driver options.
26541 2011-01-04 Jie Zhang <jie@codesourcery.com>
26544 * gcc.c (default_compilers[]): Set combinable field to 0
26545 for all assembly languages.
26547 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
26549 * config/mips/loongson3a.md: New file.
26550 * config/mips/mips.md: Include loongson3a.md.
26551 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
26554 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
26556 PR middle-end/47017
26557 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
26558 instead of convert_memory_address_addr_space on the base expression.
26560 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26562 * config/spu/spu.c (spu_option_override): Update error text
26563 for bad -march= / -mtune= values.
26565 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26567 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
26568 if branch-hint optimization will be performed.
26570 2011-01-03 Jakub Jelinek <jakub@redhat.com>
26572 PR tree-optimization/47148
26573 * ipa-split.c (split_function): Convert arguments to
26574 DECL_ARG_TYPE if possible.
26576 PR tree-optimization/47155
26577 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
26578 when computing uns.
26580 PR rtl-optimization/47157
26581 * combine.c (try_combine): If undobuf.other_insn becomes
26582 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
26583 and set *new_direct_jump_p too.
26585 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
26587 PR tree-optimization/47021
26588 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
26590 2011-01-03 Jakub Jelinek <jakub@redhat.com>
26592 * gcc.c (process_command): Update copyright notice dates.
26593 * gcov.c (print_version): Likewise.
26594 * gcov-dump.c (print_version): Likewise.
26595 * mips-tfile.c (main): Likewise.
26596 * mips-tdump.c (main): Likewise.
26598 2011-01-03 Martin Jambor <mjambor@suse.cz>
26600 PR tree-optimization/46801
26601 * tree-sra.c (type_internals_preclude_sra_p): Check whether
26602 aggregate fields start at byte boundary instead of the bit-field flag.
26604 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
26607 * gcc.c (main): Revert revision 168407.
26609 2011-01-03 Martin Jambor <mjambor@suse.cz>
26611 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
26613 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26615 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
26616 vector optab to expand vector/scalar shift, update gimple to vector.
26618 2011-01-03 Martin Jambor <mjambor@suse.cz>
26620 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
26623 2011-01-03 Martin Jambor <mjambor@suse.cz>
26625 PR tree-optimization/46984
26626 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
26628 (cgraph_create_indirect_edge): Fixed line length.
26629 (cgraph_indirect_call_info): Declare.
26630 (cgraph_make_edge_direct) Update declaration.
26631 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
26632 (cgraph_create_indirect_edge): Use it.
26633 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
26635 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
26636 the new thunk_delta representation.
26637 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
26639 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
26640 (ipa_read_indirect_edge_info): Likewise.
26641 * lto-cgraph.c (output_edge_opt_summary): New function.
26642 (output_node_opt_summary): Call it on all outgoing edges.
26643 (input_edge_opt_summary): New function.
26644 (input_node_opt_summary): Call it on all outgoing edges.
26646 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
26649 * gcc.c (main): Don't check have_o when settting combine_inputs.
26651 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
26653 * regrename.c: Add general comment describing the pass.
26654 (struct du_head): Remove 'length' field.
26655 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
26656 (regrename_optimize): Do not sort chains. Rework comments, add others.
26657 Force renaming to the preferred class (if any) in the first pass and do
26658 not consider registers that belong to it in the second pass.
26659 (create_new_chain): Do not set 'length' field.
26660 (scan_rtx_reg): Likewise.
26662 2011-01-02 Jakub Jelinek <jakub@redhat.com>
26664 PR tree-optimization/47140
26665 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
26666 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
26667 to bit_value_binop.
26669 PR rtl-optimization/47028
26670 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
26671 parm_birth_insn instead of at the beginning of first bb.
26673 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
26675 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
26676 Remove the word "see" before "@pxref".
26677 * doc/rtl.texi: Remove the word "see" before "@pxref".
26679 2011-01-01 Jan Hubicka <jh@suse.cz>
26681 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
26684 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
26687 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
26690 Copyright (C) 2011 Free Software Foundation, Inc.
26692 Copying and distribution of this file, with or without modification,
26693 are permitted in any medium without royalty provided the copyright
26694 notice and this notice are preserved.