]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
dd5531a702dca2973e8b4bb6b023bb5e4d92a2b1
[thirdparty/gcc.git] / gcc / ChangeLog
1 2011-08-22 Dodji Seketeli <dodji@redhat.com>
2
3 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
4 after reading in the pch.
5
6 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
7
8 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't
9 defined.
10 * configure: Regenerated.
11
12 2011-08-22 Jakub Jelinek <jakub@redhat.com>
13
14 PR tree-optimization/50133
15 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
16 from stmt instead of some statement around gsi.
17
18 PR middle-end/50141
19 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
20 innerdecl is a VAR_DECL.
21
22 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
23
24 * config/i386/avx2intrin.h: New file.
25 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
26 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
27 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
28 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
29 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
30 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
31 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
32 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
33 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
34 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
35 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
36 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
37 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
38 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
39 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
40 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
41 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
42 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
43 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
44 VOID_FTYPE_PV8SI_V8SI_V8SI,
45 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
46 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
47 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
48 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
49 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
50 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
51 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
52 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
53 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
54 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
55 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
56 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
57 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
58 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
59 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
60 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
61 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
62 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
63 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
64 V4DI_FTYPE_V4DI_INT_CONVERT,
65 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
66 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
67 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
68 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
69 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
70 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
71 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
72 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
73 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
74 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
75 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
76 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
77 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
78 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
79 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
80 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
81 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
82 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
83 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
84 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
85 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
86 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
87 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
88 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
89 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
90 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
91 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
92 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
93 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
94 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
95 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
96 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
97 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
98 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
99 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
100 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
101 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
102 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
103 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
104 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
105 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
106 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
107 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
108 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
109 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
110 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
111 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
112 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
113 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
114 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
115 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
116 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
117 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
118 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
119 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
120 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
121 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
122 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
123 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
124 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
125 IX86_BUILTIN_VBROADCASTSS_PS256,
126 IX86_BUILTIN_VBROADCASTSD_PD256,
127 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
128 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
129 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
130 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
131 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
132 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
133 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
134 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
135 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
136 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
137 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
138 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
139 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
140 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
141 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
142 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
143 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
144 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
145 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
146 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
147 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
148 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
149 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
150 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
151 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
152 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
153 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
154 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
155 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
156 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
157 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
158 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
159 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
160 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
161 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
162 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
163 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
164 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
165 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
166 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
167 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
168 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
169 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
170 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
171 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
172 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
173 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
174 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
175 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
176 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
177 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
178 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
179 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
180 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
181 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
182 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
183 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
184 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
185 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
186 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
187 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
188 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
189 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
190 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
191 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
192 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
193 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
194 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
195 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
196 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
197 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
198 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
199 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
200 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
201 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
202 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
203 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
204 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
205 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
206 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
207 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
208 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
209 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
210 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
211 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
212 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
213 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
214 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
215 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
216 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
217 IX86_BUILTIN_VBROADCASTSD_PD256,
218 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
219 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
220 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
221 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
222 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
223 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
224 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
225 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
226 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
227 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
228 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
229 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
230 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
231 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
232 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
233 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
234 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
235 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
236 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
237 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
238 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
239 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
240 IX86_BUILTIN_GATHERDIV8SI.
241 (ix86_preferred_simd_mode): Support AVX2 modes.
242 (ix86_expand_args_builtin): Support AVX2 builtins.
243 (ix86_expand_special_args_builtin): Likewise.
244 (ix86_expand_builtin): Likewise.
245 * config/i386/i386.md (UNSPEC_VPERMSI): New.
246 (UNSPEC_VPERMDF): Likewise.
247 (UNSPEC_VPERMSF): Likewise.
248 (UNSPEC_VPERMDI): Likewise.
249 (UNSPEC_VPERMTI): Likewise.
250 (UNSPEC_GATHER): Likewise.
251 (ssemodesuffix): Extend.
252 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
253 is defined.
254 * config/i386/predicates.md (const1248_operand): New.
255 * config/i386/sse.md (VI_AVX2): New mode iterator.
256 (VI1_AVX2): Likewise.
257 (VI2_AVX2): Likewise.
258 (VI4_AVX2): Likewise.
259 (VI8_AVX2): Likewise.
260 (VIMAX_AVX2): Likewise.
261 (SSESCALARMODE): Likewise.
262 (VI12_AVX2): Likewise.
263 (VI24_AVX2): Likewise.
264 (VI124_AVX2): Likewise.
265 (VI248_AVX2): Likewise.
266 (VI48_AVX2): Likewise.
267 (VI4SD_AVX2): Likewise.
268 (V48_AVX2): Likewise.
269 (AVX256MODE2P): Likewise.
270 (AVXMODE48P_DI): Likewise.
271 (sse2_avx2): New mode attribute.
272 (ssse3_avx2): Likewise.
273 (sse4_1_avx2): Likewise.
274 (avx_avx2): Likewise.
275 (ssebytemode): Likewise.
276 (AVXTOSSEMODE): Likewise.
277 (AVXMODE48P_DI): Likewise.
278 (gthrfirstp): Likewise.
279 (gthrlastp): Likewise.
280 (lshift): New code_iterator
281 (lshift): New code attribute.
282 (lshift): Likewise.
283 (ssescalarmodesuffix): Update.
284 (sseunpackmode): Likewise.
285 (ssepackmode): Likewise.
286 (avx2_vec_dupv4sf): New insn pattern.
287 (avx2_vec_dupv8sf): Likewise.
288 (avx2_interleave_highv4di): Likewise.
289 (avx2_interleave_lowv4di): Likewise.
290 (avx2_umulv4siv4di3): Likewise
291 (*avx2_umulv4siv4di3): Likewise
292 (avx2_pmaddwd): Likewise.
293 (*avx2_pmaddwd): Likewise.
294 (avx2_lshrqv4di3): Likewise.
295 (avx2_lshlqv4di3): Likewise.
296 (avx2_lshl<mode>3): Likewise.
297 (avx2_<umaxmin:code><mode>3): Likewise.
298 (*avx2_<umaxmin:code><mode>3): Likewise.
299 (avx2_<smaxmin:code><mode>3): Likewise.
300 (*avx2_<smaxmin:code><mode>3): Likewise.
301 (avx2_eq<mode>3): Likewise.
302 (*avx2_eq<mode>3): Likewise.
303 (avx2_gt<mode>3): Likewise.
304 (avx2_interleave_highv32qi): New.
305 (avx2_interleave_lowv32qi): Likewise.
306 (avx2_interleave_highv16hi): Likewise.
307 (avx2_interleave_lowv16hi): Likewise.
308 (avx2_interleave_highv8si): Likewise.
309 (avx2_interleave_lowv8si): Likewise.
310 (avx2_pshufd): Likewise.
311 (avx2_pshufd_1): Likewise.
312 (avx2_pshuflwv3): Likewise.
313 (avx2_pshuflw_1): Likewise.
314 (avx2_pshufhwv3): Likewise.
315 (avx2_pshufhw_1): Likewise.
316 (avx2_uavgv32qi3): Likewise.
317 (*avx2_uavgv32qi3): Likewise.
318 (avx2_uavgv16hi3): Likewise.
319 (*avx2_uavgv16hi3): Likewise.
320 (avx2_pmovmskb): Likewise.
321 (avx2_phaddwv16hi3): Likewise.
322 (avx2_phadddv8si3): Likewise.
323 (avx2_phaddswv16hi3): Likewise.
324 (avx2_phsubwv16hi3): Likewise.
325 (avx2_phsubdv8si3): Likewise.
326 (avx2_phsubswv16hi3): Likewise.
327 (avx2_pmaddubsw256): Likewise.
328 (avx2_umulhrswv16hi3): Likewise.
329 (*avx2_umulhrswv16hi3): Likewise.
330 (avx2_packusdw): Likewise.
331 (avx2_pblendd<mode>): Likewise.
332 (avx2_<code>v16qiv16hi2): Likewise.
333 (avx2_<code>v8qiv8si2): Likewise.
334 (avx2_<code>v8hiv8si2): Likewise.
335 (avx2_<code>v4qiv4di2): Likewise.
336 (avx2_<code>v4hiv4di2): Likewise.
337 (avx2_<code>v4siv4di2): Likewise.
338 (avx2_pbroadcast<mode>): Likewise.
339 (avx2_permvarv8si): Likewise.
340 (avx2_permv4df): Likewise.
341 (avx2_permvarv8sf): Likewise.
342 (avx2_permv4di): Likewise.
343 (avx2_permv2ti): Likewise.
344 (avx2_vec_dupv4df): Likewise.
345 (avx2_vbroadcasti128_<mode>): Likewise.
346 (avx2_vec_set_lo_v4di): Likewise.
347 (avx2_vec_set_hi_v4di): Likewise.
348 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
349 (avx2_extracti128): Likewise.
350 (avx2_inserti128): Likewise.
351 (avx2_ashrvv8si): Likewise.
352 (avx2_ashrvv4si): Likewise.
353 (avx2_<lshift>vv8si): Likewise.
354 (avx2_<lshift>v<mode>): Likewise.
355 (avx2_<lshift>vv2di): Likewise.
356 (avx2_gathersi<mode>): Likewise.
357 (*avx2_gathersi<mode>): Likewise.
358 (avx2_gatherdi<mode>): Likewise.
359 (*avx2_gatherdi<mode>): Likewise.
360 (avx2_gatherdi<mode>256): Likewise.
361 (*avx2_gatherdi<mode>256): Likewise.
362 (*<plusminus_insn><mode>3): Update for AVX2.
363 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
364 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
365 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
366 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
367 (mul<mode>3): Rename from mulv8hi3. Use VI4_AVX2 mode iterator.
368 (*mul<mode>3): Rename from *mulv8hi3. Use VI4_AVX2 mode iterator.
369 Update for VI2_AVX2.
370 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
371 Use VI2_AVX2 mode iterator.
372 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
373 Use VI2_AVX2 mode iterator. Update for AVX2.
374 (*sse4_1_mulv2siv2di3): Update for AVX2.
375 (ashr<mode>3): Use VI24_AVX2 mode iterator. Update for AVX2.
376 (lshr<mode>3): Use VI248_AVX2 mode iterator. Update for AVX2.
377 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3. Use VIMAX_AVX2
378 mode iterator. Update for AVX2.
379 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3. Use VI
380 mode iterator.
381 (*andnot<mode>3): Likewise. Update for AVX2.
382 (<any_logic:code><mode>3): Use VI mode iterator.
383 (*<any_logic:code><mode>3): Likewise. Update for AVX2.
384 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
385 Use VI1_AVX mode iterator. Update for AVX2.
386 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
387 Use VI2_AVX mode iterator. Update for AVX2.
388 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
389 Use VI1_AVX mode iterator. Update for AVX2.
390 (<sse2_avx2>_psadbw): Rename from sse2_psadbw. Use VI8_AVX2
391 mode iterator. Update for AVX2.
392 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3. Use
393 Vi1_AVX2 mode iterator. Update for AVX2.
394 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3. Use
395 VI124_AVX2 mode iterator. Update for AVX2.
396 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti. Use
397 SSESCALARMODE mode iterator. Update for AVX2.
398 (abs<mode>2): Use VI124_AVX2 mode iterator. Update for AVX2.
399 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa. Use VI8_AVX2
400 mode iterator. Update for AVX2.
401 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw. Use VI1_AVX2
402 mode iterator. Update for AVX2.
403 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb. Use VI1_AVX2
404 mode iterator. Update for AVX2.
405 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb. Use VI2_AVX2
406 mode iterator. Update for AVX2.
407 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
408 avx_maskload<ssemodesuffix><avxsizesuffix>. Use VI48_AVX2
409 mode iterator.
410 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
411 avx_maskstore<ssemodesuffix><avxsizesuffix>. Use VI48_AVX2
412 mode iterator.
413 * doc/extend.texi: Document AVX2 built-in functions.
414 * doc/invoke.texi: Document -mavx2.
415
416 2011-08-22 Matthias Klose <doko@debian.org>
417
418 Revert:
419 2011-07-11 Arthur Loiret <aloiret@debian.org>
420 Matthias Klose <doko@debian.org>
421 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
422 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
423 convention.
424 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
425
426 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
427
428 PR bootstrap/50146
429 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
430 to #ifndef HONOR_REG_ALLOC_ORDER block.
431
432 2011-08-21 Richard Henderson <rth@redhat.com>
433
434 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
435 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
436 * resource.c (next_insn_no_annul): Likewise.
437 (mark_set_resources): Likewise.
438 * reorg.c (delete_from_delay_slot): Likewise.
439 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
440 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
441
442 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
443
444 * config/i386/i386.md (any_div): Remove.
445 (sgnprefix): Update for removal.
446 (u): Ditto.
447
448 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
449
450 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
451 for ira_reg_class_max_nregs. Increase pressure by 1.
452 (mark_pseudo_regno_subword_dead): Use allocno class
453 for ira_reg_class_max_nregs.
454
455 2011-08-20 Richard Henderson <rth@redhat.com>
456
457 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
458 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
459 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
460 config/c6x/ltf.c: Adjust include path for soft-fp.
461
462 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
463
464 PR other/46770
465 * config.gcc (tm_file): Add initfini-array.h if
466 .init_arrary/.fini_array are supported.
467
468 * crtstuff.c: Don't generate .ctors nor .dtors sections if
469 USE_INITFINI_ARRAY is defined.
470
471 * output.h (default_elf_init_array_asm_out_constructor): New.
472 (default_elf_fini_array_asm_out_destructor): Likewise.
473 * varasm.c (elf_init_array_section): Likewise.
474 (elf_fini_array_section): Likewise.
475 (get_elf_initfini_array_priority_section): Likewise.
476 (default_elf_init_array_asm_out_constructor): Likewise.
477 (default_elf_fini_array_asm_out_destructor): Likewise.
478
479 * config/initfini-array.h: New.
480
481 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
482
483 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
484 OK for ST_REGS and FP_REGS before taking those classes into account.
485
486 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
487
488 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
489 before checking for annulled branches.
490
491 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
492
493 * config/i386/i386.c (ix86_binary_operator_ok): Use
494 satisfies_constraint_L.
495
496 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
497 Michael Matz <matz@suse.de>
498
499 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
500 trunc (a + copysign (nextafter (0.5, 0.0), a)).
501
502 2011-08-20 Anatoly Sokolov <aesok@post.ru>
503
504 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
505 * doc/tm.texi: Regenerate.
506 * targhooks.c (default_preferred_output_reload_class): Don't use
507 PREFERRED_OUTPUT_RELOAD_CLASS macro.
508 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
509
510 2011-08-20 Jakub Jelinek <jakub@redhat.com>
511
512 PR tree-optimization/48739
513 * tree-ssa.c: Include cfgloop.h.
514 (execute_update_addresses_taken): When updating ssa, if in loop closed
515 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
516 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
517
518 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
519
520 PR rtl-optimization/49936
521 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
522 for calculation of max register move costs.
523
524 2011-08-19 Joseph Myers <joseph@codesourcery.com>
525
526 * c-parser.c (c_parser_postfix_expression): Convert operands of
527 __builtin_complex to their semantic types.
528
529 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
530
531 PR middle-end/49721
532 * explow.c (convert_memory_address_addr_space): Also permute the
533 conversion and addition of constant for zero-extend.
534
535 2011-08-19 Joseph Myers <joseph@codesourcery.com>
536
537 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
538 * doc/extend.texi (__builtin_complex): Document.
539
540 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
541
542 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
543 beyond conversions.
544 (convert_mult_to_widen): Convert constant inputs to the right type.
545 (convert_plusminus_to_widen): Don't automatically reject inputs that
546 are not an SSA_NAME.
547 Convert constant inputs to the right type.
548
549 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
550
551 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
552 to the correct type.
553
554 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
555
556 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
557 unsigned inputs of different modes.
558 (convert_plusminus_to_widen): Likewise.
559
560 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
561
562 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
563 'type'.
564 Use 'type' from caller, not inferred from 'rhs'.
565 Don't reject non-conversion statements. Do return lhs in this case.
566 (is_widening_mult_p): Add new argument 'type'.
567 Use 'type' from caller, not inferred from 'stmt'.
568 Pass type to is_widening_mult_rhs_p.
569 (convert_mult_to_widen): Pass type to is_widening_mult_p.
570 (convert_plusminus_to_widen): Likewise.
571
572 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
573
574 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
575 Ensure the the larger type is the first operand.
576
577 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
578
579 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
580 unsupported unsigned multiplies to signed.
581 (convert_plusminus_to_widen): Likewise.
582
583 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
584
585 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
586 conversion statement separating multiply-and-accumulate.
587
588 2011-08-19 Richard Guenther <rguenther@suse.de>
589
590 PR tree-optimization/50067
591 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
592 offset only if we accounted for it.
593
594 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
595
596 * config/arm/arm.md (maddhidi4): Remove '*' from name.
597 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
598 * optabs.c (find_widening_optab_handler_and_mode): New function.
599 (expand_widen_pattern_expr): Use find_widening_optab_handler.
600 (expand_binop_directly): Likewise.
601 (expand_binop): Likewise.
602 * optabs.h (find_widening_optab_handler): New macro define.
603 (find_widening_optab_handler_and_mode): New prototype.
604 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
605 type precision rules.
606 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
607 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
608 (is_widening_mult_rhs_p): Allow widening by more than one mode.
609 Explicitly disallow mis-matched input types.
610 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
611 input types to fit the new handler.
612 (convert_plusminus_to_widen): Likewise.
613
614 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
615
616 * expr.c (expand_expr_real_2): Use widening_optab_handler.
617 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
618 (gen_insn): $N now means $a must be wider than $b, not consecutive.
619 * optabs.c (widened_mode): New function.
620 (expand_widen_pattern_expr): Use widening_optab_handler.
621 (expand_binop_directly): Likewise.
622 (expand_binop): Likewise.
623 * optabs.h (widening_optab_handlers): New struct.
624 (optab_d): New member, 'widening'.
625 (widening_optab_handler): New function.
626 (set_widening_optab_handler): New function.
627 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
628 widening_optab_handler.
629 (convert_plusminus_to_widen): Likewise.
630
631 2011-08-19 Joseph Myers <joseph@codesourcery.com>
632
633 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
634 pedantic.
635 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
636 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
637
638 2011-08-19 Joseph Myers <joseph@codesourcery.com>
639
640 * opth-gen.awk: Do not declare target save/restore structures and
641 functions if IN_RTS defined.
642
643 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
644
645 PR target/49437
646 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
647 when stack was realigned in interrupt handler prologue.
648
649 2011-08-18 Joseph Myers <joseph@codesourcery.com>
650
651 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
652 (quals_from_declspecs): Assert _Noreturn not present.
653 (grokdeclarator): Handle _Noreturn.
654 (build_null_declspecs): Initialize noreturn_p.
655 (declspecs_add_scspec): Handle RID_NORETURN.
656 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
657 (c_parser_attributes): Handle RID_NORETURN.
658 * c-tree.h (struct c_declspecs): Add noreturn_p.
659 * ginclude/stdnoreturn.h: New.
660 * Makefile.in (USER_H): Add stdnoreturn.h.
661
662 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
663
664 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
665 (OPTION_MASK_ISA_AVX_UNSET): Update.
666 (OPTION_MASK_ISA_AVX2_UNSET): New.
667 (ix86_handle_option): Handle OPT_mavx2 case.
668 * config/i386/cpuid.h (bit_AVX2): New.
669 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
670 AVX2 feature.
671 * config/i386/i386-c.c (ix86_target_macros_internal):
672 Conditionally define __AVX2__.
673 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
674 Define "core-avx2" processor alias. Handle avx2 option.
675 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
676 * config/i386/i386.h (TARGET_AVX2): New.
677 * config/i386/i386.opt (mavx2): New.
678 * doc/invoke.texi: Document -mavx2.
679
680 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
681
682 PR rtl-optimization/49890
683 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
684 subclasses of class which is superset of a pressure class.
685
686 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
687 Igor Zamyatin <igor.zamyatin@intel.com>
688
689 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
690 with HOST_WIDE_INT for isa_flag.
691 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
692 isa variables.
693
694 * config/i386/i386.c (ix86_target_string): Replace int with
695 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
696 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
697 (pta_flags): Removed.
698 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
699 (pta): Use HOST_WIDE_INT on flags.
700 (builtin_isa): Use HOST_WIDE_INT on isa.
701 (ix86_add_new_builtins): Likewise.
702 (def_builtin): Use HOST_WIDE_INT on mask.
703 (def_builtin_const): Likewise.
704 (builtin_description): Likewise.
705
706 * config/i386/i386.opt (ix86_isa_flags): Replace int with
707 HOST_WIDE_INT.
708 (ix86_isa_flags_explicit): Likewise.
709 (x_ix86_isa_flags_explicit): Likewise.
710
711 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
712
713 PR rtl-optimization/50107
714 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
715 (ira_hard_reg_in_set_p): New.
716
717 * ira-color.c (calculate_saved_nregs): New.
718 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
719 hard regs.
720 (allocno_reload_assign, fast_allocation): Use
721 ira_hard_reg_set_intersection_p instead of
722 ira_hard_reg_not_in_set_p.
723
724 * ira.c (setup_reg_renumber): Use
725 ira_hard_reg_set_intersection_p instead of
726 ira_hard_reg_not_in_set_p.
727 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
728 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
729
730 * ira-costs.c (ira_tune_allocno_costs): Use
731 ira_hard_reg_set_intersection_p instead of
732 ira_hard_reg_not_in_set_p.
733
734 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
735 Igor Zamyatin <igor.zamyatin@intel.com>
736
737 * hwint.h (HOST_WIDE_INT_1): New.
738
739 * opt-functions.awk (switch_bit_fields): Initialize the
740 host_wide_int field.
741 (host_wide_int_var_name): New.
742 (var_type_struct): Check and return HOST_WIDE_INT.
743
744 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
745
746 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
747
748 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
749 check masks for HOST_WIDE_INT.
750
751 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
752 (option_enabled): Likewise.
753 (get_option_state): Likewise.
754
755 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
756 to HOST_WIDE_INT.
757
758 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
759 Marc Glisse <marc.glisse@normalesup.org>
760
761 PR libstdc++-v3/1773
762 * target.def (decl_mangling_context): New C++ hook.
763 * doc/tm.texi: Regenerate.
764 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
765 * config/sol2-protos.h: Group by source file.
766 (solaris_cxx_decl_mangling_context): Declare.
767 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
768 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
769 Use $<.
770 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
771 Add sol2-stubs.o to extra_objs.
772
773 2011-08-18 Jakub Jelinek <jakub@redhat.com>
774
775 PR target/50009
776 * stor-layout.c (update_alignment_for_field): Don't ICE on
777 packed flexible array members if ms_bitfield_layout_p.
778
779 PR target/50092
780 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
781 on the result before returning it.
782
783 PR debug/50017
784 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
785 is a debug stmt, use location of the first non-debug stmt after it.
786
787 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
788
789 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
790 (arm_size_rtx_costs): Likewise.
791
792 2011-08-18 Richard Guenther <rguenther@suse.de>
793
794 * tree.h (tree_int_cst_msb): Remove.
795 * tree.c (tree_int_cst_msb): Likewise.
796 (tree_int_cst_sign_bit): Move from ...
797 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
798
799 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
800
801 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
802 * doc/tm.texi: Regenerate.
803 * target.def (rtx_costs): Add an opno parameter.
804 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
805 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
806 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
807 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
808 * cse.c (COST_IN): Add an opno parameter.
809 (notreg_cost): Likewise. Update call to rtx_cost.
810 (COST, fold_rtx): Update accordingly.
811 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
812 * expmed.c (emit_store_flag): Likewise.
813 * optabs.c (avoid_expensive_constant): Add an opno parameter.
814 Update call to rtx_cost.
815 (expand_binop_directly, expand_binop): Likewise.
816 (expand_twoval_binop, prepare_cmp_insn): Likewise.
817 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
818 (set_src_cost, get_full_set_src_cost): Update accordingly.
819 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
820 to target hook.
821 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
822 (default_adress_cost): Update calls to rtx_cost.
823
824 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
825 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
826 (arm_rtx_costs): Add an opno parameter.
827 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
828 adjust any recursive rtx-cost calls.
829 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
830 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
831 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
832 * config/cris/cris.c (cris_rtx_costs): Likewise.
833 * config/frv/frv.c (frv_rtx_costs): Likewise.
834 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
835 * config/i386/i386.c (ix86_rtx_costs): Likewise.
836 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
837 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
838 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
839 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
840 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
841 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
842 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
843 * config/mep/mep.c (mep_rtx_cost): Likewise.
844 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
845 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
846 (mips_zero_extend_cost): Add an opno parameter.
847 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
848 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
849 to rtx_cost.
850 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
851 rtx-cost calls.
852 * config/pa/pa.c (hppa_rtx_costs): Likewise.
853 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
854 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
855 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
856 (rs6000_debug_rtx_costs): Likewise.
857 * config/s390/s390.c (s390_rtx_costs): Likewise.
858 * config/score/score-protos.h (score_rtx_costs): Likewise.
859 * config/score/score.c (score_rtx_costs): Likewise.
860 * config/sh/sh.c (andcosts): Update call to rtx_cost.
861 (sh_rtx_costs): Add an opno parameter.
862 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
863 * config/spu/spu.c (spu_rtx_costs): Likewise.
864 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
865 * config/v850/v850.c (v850_rtx_costs): Likewise.
866 * config/vax/vax.c (vax_rtx_costs): Likewise.
867 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
868
869 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
870
871 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
872 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
873 rtx_cost.
874 * calls.c (precompute_register_parameters): Likewise.
875 * combine.c (expand_compound_operation, make_extraction): Likewise.
876 (force_to_mode, distribute_and_simplify_rtx): Likewise.
877 * dse.c (find_shift_sequence): Likewise.
878 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
879 * expr.c (compress_float_constant): Likewise.
880 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
881 * gcse.c (want_to_gcse_p): Likewise.
882 * ifcvt.c (noce_try_sign_mask): Likewise.
883 * loop-doloop.c (doloop_optimize): Likewise.
884 * loop-invariant.c (create_new_invariant): Likewise.
885 * optabs.c (avoid_expensive_constant): Likewise.
886 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
887 (try_replace_in_use, reload_cse_move2add): Likewise.
888 * reload1.c (calculate_elim_costs_all_insns): Likewise.
889 (note_reg_elim_costly): Likewise.
890 * rtlanal.c (insn_rtx_cost): Likewise.
891 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
892 * stmt.c (lshift_cheap_p): Likewise.
893 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
894 * config/avr/avr.c (final_prescan_insn): Likewise.
895 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
896 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
897
898 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
899
900 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
901 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
902 * cfgloopanal.c (seq_cost): Likewise.
903 * loop-invariant.c (create_new_invariant): Likewise.
904 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
905 (reload_cse_move2add): Use get_full_set_rtx_cost.
906
907 2011-08-18 Richard Guenther <rguenther@suse.de>
908
909 * expr.c (get_inner_reference): Fix typo in last change.
910
911 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
912 Joseph Myers <joseph@codesourcery.com>
913
914 PR tree-optimization/49963
915 * hwint.c (absu_hwi): Define.
916 * hwint.h (absu_hwi): Declare.
917 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
918 of abs_hwi.
919 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
920 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
921
922 2011-08-18 Richard Guenther <rguenther@suse.de>
923
924 * expr.c (get_inner_reference): Sign-extend the constant
925 twos-complement offset before doing arbitrary precision
926 arithmetic on it.
927 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
928 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
929 to get_constraint_for_ptr_offset.
930
931 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
932
933 PR target/50068
934 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
935
936 2011-08-17 Richard Guenther <rguenther@suse.de>
937
938 * tree.h (convert_to_ptrofftype_loc): New function.
939 (convert_to_ptrofftype): Define.
940 * builtins.c (expand_builtin_bzero): Use size_type_node.
941 (fold_builtin_bzero): Likewise.
942 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
943 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
944 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
945 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
946 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
947 * fold-const.c (build_range_check): Negate using the original type.
948 (fold_unary_loc): Use fold_build_pointer_plus_loc.
949 * gimple-fold.c (gimple_adjust_this_by_delta): Use
950 convert_to_ptrofftype.
951 * gimplify.c (gimplify_self_mod_expr): Likewise.
952 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
953 (graphite_create_new_loop_guard): Likewise.
954 * graphite-sese-to-poly.c (my_long_long): Remove.
955 (scop_ivs_can_be_represented): Adjust.
956 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
957 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
958 * tree-loop-distribution.c (build_size_arg_loc): Use
959 size_type_node.
960 (generate_memset_zero): Simplify.
961 * tree-mudflap.c: Use fold_convert, not convert.
962 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
963 its own type.
964 (determine_offset): Likewise for DR_STEP.
965 (valid_initializer_p): Likewise.
966 * tree-profile.c (prepare_instrumented_value): Convert the pointer
967 to an integer type of same size.
968 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
969 to sizetype without need.
970 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
971 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
972 * tree-ssa-loop-manip.c (create_iv): Likewise.
973 (determine_exit_conditions): Adjust comment.
974 * tree-ssa-pre.c (create_expression_by_pieces): Use
975 convert_to_ptrofftype.
976 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
977 * varasm.c (array_size_for_constructor): Compute using double_ints.
978
979 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
980
981 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
982 when generating an integer result where possible. Short-cut
983 comparison against 0 also for QImode.
984
985 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
986
987 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
988 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
989 prototype.
990 * config/spu/spu.c (spu_legitimize_reload_address): New function.
991 (spu_legitimate_address_p): Do not check displacement if the base
992 is an eliminable stack register.
993
994 2011-08-16 Anatoly Sokolov <aesok@post.ru>
995
996 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
997 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
998 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
999 m32c_preferred_output_reload_class): Remove.
1000 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
1001 Change rclass argument and return types to reg_class_t. Use
1002 reg_class_subset_p instead of class_sizes.
1003 (m32c_preferred_output_reload_class): Make static. Change rclass
1004 argument and return types to reg_class_t.
1005 (TARGET_PREFERRED_RELOAD_CLASS,
1006 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1007
1008 2011-08-16 Kai Tietz <ktietz@redhat.com>
1009
1010 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
1011
1012 2011-08-16 Richard GUenther <rguenther@suse.de>
1013
1014 PR tree-optimization/50082
1015 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
1016 warnings here, instead of ...
1017 (ssa_forward_propagate_and_combine): ... here.
1018 (forward_propagate_into_comparison_1): Adjust.
1019 (forward_propagate_into_comparison): Likewise.
1020 (forward_propagate_into_gimple_cond): Likewise.
1021 (forward_propagate_into_cond): Likewise.
1022
1023 2011-08-16 Andreas Schwab <schwab@redhat.com>
1024
1025 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
1026 instead of ggc_alloc_zone_vec_rtvec_def.
1027
1028 2011-08-16 Richard Guenther <rguenther@suse.de>
1029
1030 * tree.h (ptrofftype_p): New helper function.
1031 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
1032 offset verification.
1033 (verify_gimple_assign_binary): Likewise.
1034 * tree.c (build2_stat): Likewise.
1035 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
1036 (reset_evolution_in_loop): Likewise.
1037 * tree-chrec.h (build_polynomial_chrec): Likewise.
1038
1039 2011-08-16 Liang Wang <lwang1@marvell.com>
1040
1041 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
1042 ggc_alloc_zone_vec_rtvec_def.
1043
1044 2011-08-16 Richard Guenther <rguenther@suse.de>
1045
1046 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
1047 helper factored out from ...
1048 (extract_range_from_binary_expr_1): ... here. Re-structure
1049 to not glob handling too different tree codes.
1050
1051 2011-08-15 Richard Henderson <rth@redhat.com>
1052
1053 PR middle-end/50006
1054 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
1055 setting out to include allocate_stack named pattern as well.
1056 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
1057 * stmt.c (expand_stack_restore): Likewise.
1058
1059 2011-08-15 Richard Guenther <rguenther@suse.de>
1060
1061 PR middle-end/50082
1062 * fold-const.c (maybe_canonicalize_comparison_1): Properly
1063 convert the modified operand to the other operand type.
1064 (fold_comparison): Call maybe_canonicalize_comparison_1 with
1065 useless conversions stripped from comparison operands.
1066
1067 2011-08-15 Richard Guenther <rguenther@suse.de>
1068
1069 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
1070 (extract_range_from_unary_expr_1): Restructure.
1071
1072 2011-08-15 Richard Guenther <rguenther@suse.de>
1073
1074 PR tree-optimization/50058
1075 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
1076 copy matching.
1077
1078 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1079
1080 PR target/50022
1081 * config/arm/arm.c (output_move_double): Add 2 parameters
1082 to count the number of insns emitted and whether to emit or not.
1083 Use the flag to decide when to emit and count number of instructions
1084 that will be emitted.
1085 Handle case where output_move_double might be called for calculating
1086 lengths with an invalid constant.
1087 (arm_count_output_move_double_insns): Define.
1088 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
1089 (output_move_double): Adjust prototype.
1090 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
1091 output_move_double.
1092 ("*movdi_vfp_cortexa8"): Likewise and add attribute
1093 for ce_count.
1094 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
1095 ("*movdf_soft_insn"): Likewise.
1096 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
1097 ("*cirrus_thumb2_movdi"): Likewise.
1098 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
1099 ("*cirrus_movdf_hard_insn"): Likewise.
1100 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
1101 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
1102 ("mov<mode>_internal VMMX"): Likewise.
1103 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
1104
1105 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
1106
1107 * config/i386/i386.c (ix86_expand_round_sse4): New function.
1108 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
1109 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
1110 for TARGET_ROUND.
1111
1112 (rint<mode>2): Simplify TARGET_ROUND check.
1113 (floor<mode>2): Ditto.
1114 (ceil<mode>2): Ditto.
1115 (btrunc<mode>2): Ditto.
1116
1117 2011-08-14 Anatoly Sokolov <aesok@post.ru>
1118
1119 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
1120 as mmix_preferred_output_reload_class.
1121
1122 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
1123
1124 * PR target/49903
1125 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
1126 (branch_unspec): New insn.
1127 (branch): Beauty farm.
1128 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
1129 to be IF_THEN_ELSE.
1130 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
1131 New static functions.
1132 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
1133 Use CONST_INT_P. Beauty.
1134
1135 2011-08-12 Richard Henderson <rth@redhat.com>
1136
1137 PR rtl-opt/49994
1138 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
1139 * sched-deps.c (init_deps): Clear it.
1140 (deps_analyze_insn): Consume it.
1141 (sched_analyze_insn): Fill it.
1142
1143 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1144
1145 PR target/48328
1146 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
1147 for tbh instructions.
1148
1149 2011-08-12 Diego Novillo <dnovillo@google.com>
1150
1151 * data-streamer.h (streamer_write_zero): Rename from output_zero.
1152 (streamer_write_uhwi): Rename from lto_output_uleb128.
1153 (streamer_write_hwi): Rename from output_sleb128.
1154 (streamer_write_string): Rename from lto_output_string.
1155 (streamer_string_index): Rename from lto_string_index.
1156 (streamer_write_string_with_length): Rename from
1157 lto_output_string_with_length.
1158 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
1159 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
1160 (streamer_read_string): Rename from lto_input_string.
1161 (streamer_read_indexed_string): Rename from input_string_internal.
1162 (streamer_read_uhwi): Rename from lto_input_uleb128.
1163 (streamer_read_hwi): Rename from lto_input_sleb128.
1164 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
1165 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
1166 (streamer_write_enum): Rename from lto_output_enum.
1167 (streamer_read_enum): Rename from lto_input_enum.
1168 (streamer_write_record_start): Rename from output_record_start.
1169 (streamer_read_record_start): Rename from input_record_start.
1170 (streamer_write_bitpack): Rename from lto_output_bitpack.
1171 (streamer_read_bitpack): Rename from lto_input_bitpack.
1172 (streamer_write_char_stream): Rename from lto_output_1_stream.
1173 (streamer_read_uchar): Rename from lto_input_1_unsigned.
1174 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
1175 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
1176 (streamer_read_string_cst): Rename from input_string_cst.
1177 (streamer_read_chain): Rename from lto_input_chain.
1178 (streamer_alloc_tree): Rename from lto_materialize_tree.
1179 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
1180 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
1181 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
1182 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
1183 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
1184 (streamer_write_chain): Rename from lto_output_chain.
1185 (streamer_write_tree_header): Rename from lto_output_tree_header.
1186 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
1187 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
1188 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
1189 (streamer_write_builtin): Rename from lto_output_builtin_tree.
1190 (streamer_check_handled_ts_structures): Rename from
1191 check_handled_ts_structures.
1192 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
1193 (streamer_tree_cache_insert_at): Rename from
1194 lto_streamer_cache_insert_at.
1195 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
1196 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
1197 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
1198 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
1199 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
1200 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
1201 (write_identifier): Rename from output_identifier.
1202 (write_ts_common_tree_pointers): Rename from
1203 lto_output_ts_common_tree_pointers.
1204 (write_ts_vector_tree_pointers): Rename from
1205 lto_output_ts_vector_tree_pointers.
1206 (write_ts_complex_tree_pointers): Rename from
1207 lto_output_ts_complex_tree_pointers.
1208 (write_ts_decl_minimal_tree_pointers): Rename from
1209 lto_output_ts_decl_minimal_tree_pointers.
1210 (write_ts_decl_common_tree_pointers): Rename from
1211 lto_output_ts_decl_common_tree_pointers.
1212 (write_ts_decl_non_common_tree_pointers): Rename from
1213 lto_output_ts_decl_non_common_tree_pointers.
1214 (write_ts_decl_with_vis_tree_pointers): Rename from
1215 lto_output_ts_decl_with_vis_tree_pointers.
1216 (write_ts_field_decl_tree_pointers): Rename from
1217 lto_output_ts_field_decl_tree_pointers.
1218 (write_ts_function_decl_tree_pointers): Rename from
1219 lto_output_ts_function_decl_tree_pointers.
1220 (write_ts_type_common_tree_pointers): Rename from
1221 lto_output_ts_type_common_tree_pointers.
1222 (write_ts_type_non_common_tree_pointers): Rename from
1223 lto_output_ts_type_non_common_tree_pointers.
1224 (write_ts_list_tree_pointers): Rename from
1225 lto_output_ts_list_tree_pointers.
1226 (write_ts_vec_tree_pointers): Rename from
1227 lto_output_ts_vec_tree_pointers.
1228 (write_ts_exp_tree_pointers): Rename from
1229 lto_output_ts_exp_tree_pointers.
1230 (write_ts_block_tree_pointers): Rename from
1231 lto_output_ts_block_tree_pointers.
1232 (write_ts_binfo_tree_pointers): Rename from
1233 lto_output_ts_binfo_tree_pointers.
1234 (write_ts_constructor_tree_pointers): Rename from
1235 lto_output_ts_constructor_tree_pointers.
1236 (write_ts_target_option): Rename from lto_output_ts_target_option.
1237 (write_ts_translation_unit_decl_tree_pointers): Rename from
1238 lto_output_ts_translation_unit_decl_tree_pointers.
1239 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1240 Rename from lto_streamer_cache_add_to_node_array.
1241 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
1242 (record_common_node): Rename from lto_record_common_node.
1243
1244 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
1245 declarations.
1246 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
1247 function.
1248 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
1249 unused function.
1250 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
1251 (ipa-reference.o): Likewise.
1252 * lto-section-out.c: Include data-streamer.h.
1253 * ipa-reference.c: Include data-streamer.h.
1254
1255 2011-08-12 Nick Clifton <nickc@redhat.com>
1256
1257 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
1258 * doc/md.texi (cmpstrn): Note that the comparison stops if both
1259 fetched bytes are zero.
1260 (cmpstr): Likewise.
1261 (cmpmem): Note that the comparison does not stop if both of the
1262 fetched bytes are zero.
1263
1264 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
1265
1266 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
1267 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
1268 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
1269 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
1270 to integer_type_node.
1271 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
1272 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
1273 * builtins.c (expand_builtin_in): Ditto.
1274 (mathfn_built_in_1): Ditto.
1275 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
1276 BUILT_IN_IFLOOR.
1277 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
1278 BUILT_IN_IROUND.
1279 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
1280 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
1281 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
1282
1283 2011-08-12 Richard Guenther <rguenther@suse.de>
1284
1285 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
1286
1287 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
1288
1289 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
1290
1291 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
1292
1293 * config/arm/arm.c (get_label_padding): New function.
1294 (create_fix_barrier, arm_reorg): Use it.
1295
1296 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
1297
1298 PR target/49781
1299 * config/i386/i386.md (*lea_5_zext): New.
1300 (*lea_6_zext): Ditto.
1301 * config/i386/predicates.md (const_32bit_mask): New predicate.
1302 (lea_address_operand): Reject AND.
1303 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
1304 const_32bit_mask immediate.
1305 (ix86_print_operand_address): Handle AND.
1306 (memory_address_length): Ditto.
1307
1308 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
1309 Brian Hackett <bhackett1024@gmail.com>
1310
1311 * plugin.def: Add event for finish_decl.
1312 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
1313 * c-decl.c (finish_decl): Invoke callbacks on above event.
1314 * doc/plugins.texi: Document above event.
1315
1316 2011-08-11 Richard Guenther <rguenther@suse.de>
1317
1318 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
1319 lookups, make looking through aggregate copies stronger.
1320
1321 2011-08-11 Richard Henderson <rth@redhat.com>
1322
1323 PR bootstrap/50018
1324 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
1325
1326 2011-08-11 Richard Guenther <rguenther@suse.de>
1327
1328 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
1329 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
1330 (vrp_visit_stmt): Likewise.
1331
1332 2011-08-11 Richard Guenther <rguenther@suse.de>
1333
1334 PR middle-end/50040
1335 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
1336 load of the other piece with TREE_NO_WARNING.
1337 * tree-flow.h (warn_uninit): Adjust prototype.
1338 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
1339 the base variable and the expression that is used separately.
1340 Properly query all TREE_NO_WARNING flags.
1341 (struct walk_data): Remove.
1342 (warn_uninitialized_var): Likewise.
1343 (warn_uninitialized_vars): Do not walk gimple pieces but simply
1344 look at all SSA uses of the statement. Handle unused memory
1345 separately.
1346 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
1347
1348 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
1349
1350 * config/rx/rx.md (movsicc): Allow register to register transfers.
1351 (*movsicc): Likewise.
1352 (*stcc): Restrict this pattern to EQ and NE compares.
1353 (*stcc_reg): New pattern. Works for any comparison but only for
1354 register transfers.
1355
1356 2011-08-11 Diego Novillo <dnovillo@google.com>
1357
1358 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
1359 Call stream_write_tree instead of output_record_start.
1360 (lto_output_ts_binfo_tree_pointers): Likewise.
1361
1362 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
1363 Convert it to a macro.
1364 (stream_read_tree): Likewise.
1365
1366 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
1367 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
1368
1369 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
1370 and tree_read_bitfields.
1371 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
1372 (lto_write_tree): Call it.
1373 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
1374 * streamer-hooks.h (struct streamer_hooks): Remove fields
1375 name, is_streamable and alloc_tree. Update all users.
1376 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
1377 (lto_materialize_tree): ... here.
1378 Handle CALL_EXPR codes.
1379 Remove call to lto_streamer_cache_append.
1380 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
1381 * tree-streamer.h (tree_read_bitfields): Declare.
1382
1383 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
1384 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
1385 * tree-streamer.h (stream_read_tree): New. Replace all calls
1386 to lto_input_tree with it.
1387 (stream_write_tree): New. Replace all calls to lto_output_tree,
1388 lto_output_tree_ref and lto_output_tree_or_ref with it.
1389 * lto-streamer-in.c (lto_read_tree): Inline code from
1390 lto_streamer_read_tree.
1391 (lto_input_tree): Move from tree-streamer-in.c.
1392 * lto-streamer-out.c (lto_output_tree_ref): Make static.
1393 Remove handling of NULL values for EXPR.
1394 Do not handle EXPRs that are not indexable.
1395 (lto_write_tree): Move from tree-streamer-out.c.
1396 Inline lto_streamer_write_tree.
1397 (lto_output_tree): Move from tree-streamer-out.c.
1398 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
1399 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
1400 (lto_preload_common_nodes): Likewise.
1401 Remove assertions and adjustments for nodes
1402 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
1403 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
1404 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
1405 * lto-streamer.h (lto_input_tree): Declare.
1406 (lto_output_tree_ref): Remove.
1407 * streamer-hooks.h (struct streamer_hooks): Remove fields
1408 preload_common_nodes, indexable_with_decls_p,
1409 pack_value_fields, unpack_value_fields and output_tree_header.
1410 Update all users.
1411 * tree-streamer-in.c (lto_materialize_tree): Make extern.
1412 (lto_input_tree_pointers): Likewise.
1413 (lto_read_tree): Move to lto-streamer-in.c.
1414 (lto_input_integer_cst): Make extern.
1415 (lto_get_pickled_tree): Likewise.
1416 (lto_get_builtin_tree): Likewise.
1417 (lto_input_tree): Move to lto-streamer-in.c.
1418 * tree-streamer-out.c (pack_value_fields): Make extern.
1419 (lto_output_tree_or_ref): Remove. Replace all callers with
1420 calls to stream_write_tree.
1421 (lto_output_builtin_tree): Make extern.
1422 (lto_streamer_write_tree): Inline into lto_write_tree.
1423 (lto_output_tree_pointers): Make extern.
1424 (lto_output_tree_header): Likewise.
1425 (lto_output_integer_cst): Likewise.
1426 (lto_write_tree): Move to lto-streamer-out.c.
1427 (lto_output_tree): Likewise.
1428 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
1429 (preload_common_nodes): Likewise.
1430 (lto_streamer_cache_create): Call it.
1431 * tree-streamer.h: Include streamer-hooks.h.
1432 (stream_write_tree): New.
1433 (stream_read_tree): New.
1434 (lto_input_tree): Remove.
1435 (lto_materialize_tree): Declare.
1436 (lto_input_tree_pointers): Declare.
1437 (lto_get_pickled_tree): Declare.
1438 (lto_get_builtin_tree): Declare.
1439 (lto_input_integer_cst): Declare.
1440 (lto_output_tree_header): Declare.
1441 (pack_value_fields): Declare.
1442 (lto_output_tree_pointers): Declare.
1443 (lto_output_integer_cst): Declare.
1444 (lto_output_builtin_tree): Declare.
1445
1446 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1447
1448 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
1449 only if producer writes to the register given by regno.
1450
1451 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1452 Alexander Monakov <amonakov@ispras.ru>
1453
1454 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
1455 (sched_get_condition_with_rev_uncached): ... this. Factor out
1456 condition caching logic into ...
1457 (sched_get_condition_with_rev): ... this. Reimplement. Do not
1458 attempt to use cache for instructions with zero luid.
1459 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
1460 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
1461
1462 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1463
1464 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
1465 get_seqno_for_a_jump. Update the caller.
1466 (get_seqno_by_succs): New. Use it ...
1467 (get_seqno_for_a_jump): ... here to find a seqno if looking at
1468 predecessors was not sufficient.
1469 (get_seqno_by_preds): Include head in iteration range, exclude insn.
1470
1471 2011-08-11 Dmitry Melnik <dm@ispras.ru>
1472
1473 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
1474
1475 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1476
1477 * sel-sched-ir.h (register_unavailable_p): Declare.
1478 * sel-sched-ir.c (register_unavailable_p): New. Use it...
1479 (set_unavailable_target_for_expr): ... here to properly test
1480 availability of a register.
1481 (speculate_expr): Ditto.
1482 * sel-sched.c (substitute_reg_in_expr): Ditto.
1483 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
1484
1485 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1486
1487 * sel-sched.c (verify_target_availability): Fix usage of
1488 hard_regno_nregs.
1489
1490 2011-08-11 Dmitry Melnik <dm@ispras.ru>
1491
1492 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
1493 recognized by cannot_copy_insn_p hook and volatile instructions.
1494
1495 2011-08-11 Dmitry Melnik <dm@ispras.ru>
1496
1497 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
1498
1499 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
1500
1501 * doc/md.texi (define_bypass): Say that the instruction names can
1502 be filename-style globs.
1503 * Makefile.in (FNMATCH_H): Define.
1504 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
1505 * genattrtab.c: Include fnmatch.h.
1506 (bypass_list): Change field name from "insn" to "pattern".
1507 (gen_bypass_1): Update accordingly.
1508 (process_bypasses): Use fnmatch to check for matches between
1509 insn reservations and define_bypasses.
1510 * genautomata.c: Include fnmatch.h.
1511 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
1512 and out_pattern respectively.
1513 (gen_bypass, insert_bypass): Update accordingly.
1514 (for_each_matching_insn, process_bypass_2, process_bypass_1)
1515 (process_bypass): New functions.
1516 (process_decls): Use process_bypass. Update after field name changes.
1517
1518 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
1519
1520 PR target/49687
1521 * config/avr/avr.md (smulqi3_highpart): New insn.
1522 (umulqi3_highpart): New insn.
1523 (*subqi3.ashiftrt7): New insn.
1524 (smulhi3_highpart): New expander.
1525 (umulhi3_highpart): Nex expander.
1526 (*smulhi3_highpart_call): New insn.
1527 (*umulhi3_highpart_call): New insn.
1528 (extend_u): New code attribute.
1529 (extend_prefix): Rename code attribute to extend_su.
1530 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
1531 widening QI/HI multiply.
1532
1533 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
1534
1535 PR tree-optimization/50039
1536 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
1537 that DEF_STMT has a stmt_vec_info.
1538
1539 2011-08-10 Richard Guenther <rguenther@suse.de>
1540
1541 * tree.h (can_trust_pointer_alignment): Remove.
1542 * builtins.c (can_trust_pointer_alignment): Remove.
1543
1544 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1545
1546 * c-typeck.c (scalar_to_vector): New function. Try scalar to
1547 vector conversion.
1548 (stv_conv): New enum for scalar_to_vector return type.
1549 (build_binary_op): Adjust.
1550 * doc/extend.texi: Description of scalar to vector expansion.
1551
1552 2011-08-10 Richard Guenther <rguenther@suse.de>
1553
1554 * tree.h (get_pointer_alignment): Remove max-align argument.
1555 (get_object_alignment): Likewise.
1556 * builtins.c (get_object_alignment_1): Adjust.
1557 (get_object_alignment): Remove max-align argument.
1558 (get_pointer_alignment): Likewise.
1559 (expand_builtin_strlen): Adjust.
1560 (expand_builtin_memcpy): Likewise.
1561 (expand_builtin_mempcpy_args): Likewise.
1562 (expand_builtin_strncpy): Likewise.
1563 (expand_builtin_memset_args): Likewise.
1564 (expand_builtin_memcmp): Likewise.
1565 (expand_builtin_strcmp): Likewise.
1566 (expand_builtin_strncmp): Likewise.
1567 (get_builtin_sync_mem): Likewise.
1568 (fold_builtin_memset): Likewise.
1569 (fold_builtin_memory_op): Likewise.
1570 (expand_builtin_memory_chk): Likewise.
1571 * emit-rtl.c (get_mem_align_offset): Likewise.
1572 (set_mem_attributes_minus_bitpos): Likewise.
1573 * expr.c (expand_assignment): Likewise.
1574 (expand_expr_real_1): Likewise.
1575 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
1576 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
1577 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
1578 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1579 * value-prof.c (gimple_stringops_transform): Likewise.
1580
1581 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
1582
1583 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
1584 * doc/tm.texi: Regenerate.
1585
1586 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
1587
1588 PR target/29560
1589 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
1590 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
1591 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
1592 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
1593 shift target is unused.
1594
1595 2011-08-10 Richard Guenther <rguenther@suse.de>
1596
1597 PR tree-optimization/49937
1598 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
1599 using get_object_alignment_1.
1600
1601 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
1602
1603 * config/i386/i386.c (ix86_emit_i387_round): New function.
1604 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
1605 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
1606 Use ix86_emit_i387_round to expand round function for i387 math.
1607 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
1608 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
1609
1610 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1611
1612 * config/sync.c: Move to ../libgcc.
1613 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
1614 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
1615 Remove.
1616
1617 2011-08-09 Anatoly Sokolov <aesok@post.ru>
1618
1619 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
1620 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
1621 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
1622 Change 'from' and 'to' arguments type to reg_class_t.
1623 (TARGET_REGISTER_MOVE_COST): Define.
1624
1625 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
1626
1627 PR target/50026
1628 Revert:
1629 PR rtl-optimization/49990
1630 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
1631 ignore classes which can not change mode.
1632 (find_costs_and_classes): Ditto.
1633
1634 2011-08-09 Richard Guenther <rguenther@suse.de>
1635
1636 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
1637 information for ranges with only negative values.
1638 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
1639 BIT_AND_EXPR handling to handle ranges with negative values.
1640
1641 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
1642
1643 * config/i386/i386.c: Remove traling spaces.
1644 * config/i386/sse.md: Likewise.
1645 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
1646 (*fma_fmsub_<mode>): Likewise.
1647 (*fma_fnmadd_<mode>): Likewise.
1648 (*fma_fnmsub_<mode>): Likewise.
1649
1650 2011-08-09 Nick Clifton <nickc@redhat.com>
1651
1652 * config/rx/rx.md: Disable extender peepholes at -O3.
1653
1654 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
1655
1656 PR target/49781
1657 * config/i386/i386.md (reload_noff_load): New.
1658 (reload_noff_store): Ditto.
1659 * config/i386/i386.c (ix86_secondary_reload): Use
1660 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
1661 double-word moves from/to non-offsetable addresses instead of
1662 generating XMM temporary.
1663
1664 2011-08-09 Anatoly Sokolov <aesok@post.ru>
1665
1666 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
1667
1668 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
1669
1670 PR tree-optimization/50014
1671 * tree-vect-loop.c (vectorizable_reduction): Get def type before
1672 calling vect_get_vec_def_for_stmt_copy ().
1673
1674 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
1675
1676 PR rtl-optimization/49990
1677 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
1678 ignore classes which can not change mode.
1679 (find_costs_and_classes): Ditto.
1680
1681 2011-08-08 Richard Henderson <rth@redhat.com>
1682
1683 PR middle-end/49990
1684 * config/i386/i386.c (ix86_expand_prologue): Call
1685 for SEH target gen_prologue_use instead of gen_blockage
1686 at prologue's end.
1687
1688 2011-08-08 Martin Jambor <mjambor@suse.cz>
1689
1690 PR middle-end/49923
1691 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
1692 memory alignment.
1693
1694 2011-08-08 Diego Novillo <dnovillo@google.com>
1695
1696 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
1697 (DATA_STREAMER_H): New.
1698 (GIMPLE_STREAMER_H): New.
1699 (TREE_STREAMER_H): New.
1700 (STREAMER_HOOKS_H): New.
1701 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
1702 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
1703 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
1704 (data-streamer.o): New.
1705 (data-streamer-in.o): New.
1706 (data-streamer-out.o): New.
1707 (gimple-streamer-in.o): New.
1708 (gimple-streamer-out.o): New.
1709 (streamer-hooks.o): New.
1710 (tree-streamer.o): New.
1711 (tree-streamer-in.o): New.
1712 (tree-streamer-out.o): New.
1713 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
1714 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
1715 GIMPLE_STREAMER_H and TREE_STREAMER_H.
1716 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
1717 GIMPLE_STREAMER_H and TREE_STREAMER_H.
1718 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
1719 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
1720 (ipa-inline-analysis.o): Likewise.
1721 (ipa-pure-const.o): Likewise.
1722 * data-streamer-in.c: New.
1723 * data-streamer-out.c: New.
1724 * data-streamer.c: New.
1725 * data-streamer.h: New.
1726 * gimple-streamer-in.c: New.
1727 * gimple-streamer-out.c: New.
1728 * gimple-streamer.h: New.
1729 * ipa-inline-analysis.c: Include data-streamer.h.
1730 * ipa-prop.c: Include data-streamer.h.
1731 * ipa-pure-const.c: Include data-streamer.h.
1732 * lto-cgraph.c: Include data-streamer.h.
1733 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
1734 (lto_input_widest_uint_uleb128): Likewise.
1735 (lto_input_sleb128): Likewise.
1736 (bp_unpack_var_len_unsigned): Likewise.
1737 (bp_unpack_var_len_int): Likewise.
1738 * lto-section-out.c (lto_output_uleb128_stream): Move to
1739 data-streamer-out.c.
1740 (lto_output_widest_uint_uleb128_stream): Likewise.
1741 (lto_output_sleb128_stream): Likewise.
1742 (bp_pack_var_len_unsigned): Likewise.
1743 (bp_pack_var_len_int): Likewise.
1744 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
1745 (struct string_slot): Remove. Update all users.
1746 (lto_tag_check_set): Make extern.
1747 (lto_tag_check_range): Move to lto-streamer.h.
1748 (lto_tag_check): Likewise.
1749 (hash_string_slot_node): Remove. Update all users.
1750 (eq_string_slot_node): Remove. Update all users.
1751 (string_for_index): Move to data-streamer-in.c
1752 (input_string_internal): Likewise.
1753 (input_string_cst): Move to tree-streamer-in.c.
1754 (input_identifier): Likewise.
1755 (lto_input_string): Move to data-streamer-in.c
1756 (input_record_start): Move to data-streamer.h
1757 (canon_file_name): Use new definition of struct string_slot
1758 from data-streamer.h. Set S_SLOT.LEN.
1759 (lto_input_location): Make extern.
1760 (lto_input_chain): Move to tree-streamer-in.c.
1761 (lto_init_eh): Make extern.
1762 (input_phi): Move to gimple-streamer-in.c.
1763 (input_gimple_stmt): Likewise.
1764 (input_bb): Likewise.
1765 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
1766 (unpack_ts_real_cst_value_fields): Likewise.
1767 (unpack_ts_fixed_cst_value_fields): Likewise.
1768 (unpack_ts_decl_common_value_fields): Likewise.
1769 (unpack_ts_decl_wrtl_value_fields): Likewise.
1770 (unpack_ts_decl_with_vis_value_fields): Likewise.
1771 (unpack_ts_function_decl_value_fields): Likewise.
1772 (unpack_ts_type_common_value_fields): Likewise.
1773 (unpack_ts_block_value_fields): Likewise.
1774 (unpack_ts_translation_unit_decl_value_fields): Likewise.
1775 (unpack_value_fields): Likewise.
1776 (lto_materialize_tree): Likewise.
1777 (lto_input_ts_common_tree_pointers): Likewise.
1778 (lto_input_ts_vector_tree_pointers): Likewise.
1779 (lto_input_ts_complex_tree_pointers): Likewise.
1780 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
1781 (lto_input_ts_decl_common_tree_pointers): Likewise.
1782 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
1783 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
1784 (lto_input_ts_field_decl_tree_pointers): Likewise.
1785 (lto_input_ts_function_decl_tree_pointers): Likewise.
1786 (lto_input_ts_type_common_tree_pointers): Likewise.
1787 (lto_input_ts_type_non_common_tree_pointers): Likewise.
1788 (lto_input_ts_list_tree_pointers): Likewise.
1789 (lto_input_ts_vec_tree_pointers): Likewise.
1790 (lto_input_ts_exp_tree_pointers): Likewise.
1791 (lto_input_ts_block_tree_pointers): Likewise.
1792 (lto_input_ts_binfo_tree_pointers): Likewise.
1793 (lto_input_ts_constructor_tree_pointers): Likewise.
1794 (lto_input_ts_target_option): Likewise.
1795 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
1796 (lto_input_tree_pointers): Likewise.
1797 (lto_get_pickled_tree): Likewise.
1798 (lto_get_builtin_tree): Likewise.
1799 (lto_read_tree): Likewise.
1800 (lto_input_integer_cst): Likewise.
1801 (lto_input_tree): Likewise.
1802 * lto-streamer-out.c: Include data-streamer.h,
1803 gimple-streamer.h and streamer-hooks.h.
1804 (struct string_slot): Move to data-streamer.h.
1805 (hash_string_slot_node): Likewise.
1806 (eq_string_slot_node): Likewise.
1807 (lto_string_index): Move to data-streamer-out.c.
1808 (lto_output_string_with_length): Likewise.
1809 (lto_output_string): Likewise.
1810 (output_string_cst): Move to tree-streamer-out.c.
1811 (output_identifier): Likewise.
1812 (output_zero): Move to data-streamer-out.c
1813 (output_uleb128): Likewise.
1814 (output_sleb128): Likewise.
1815 (output_record_start): Move to data-streamer.h
1816 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
1817 (pack_ts_real_cst_value_fields): Likewise.
1818 (pack_ts_fixed_cst_value_fields): Likewise.
1819 (pack_ts_decl_common_value_fields): Likewise.
1820 (pack_ts_decl_wrtl_value_fields): Likewise.
1821 (pack_ts_decl_with_vis_value_fields): Likewise.
1822 (pack_ts_function_decl_value_fields): Likewise.
1823 (pack_ts_type_common_value_fields): Likewise.
1824 (pack_ts_block_value_fields): Likewise.
1825 (pack_ts_translation_unit_decl_value_fields): Likewise.
1826 (pack_value_fields): Likewise.
1827 (lto_output_chain): Likewise.
1828 (lto_output_ts_common_tree_pointers): Likewise.
1829 (lto_output_ts_vector_tree_pointers): Likewise.
1830 (lto_output_ts_complex_tree_pointers): Likewise.
1831 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
1832 (lto_output_ts_decl_common_tree_pointers): Likewise.
1833 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
1834 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
1835 (lto_output_ts_field_decl_tree_pointers): Likewise.
1836 (lto_output_ts_function_decl_tree_pointers): Likewise.
1837 (lto_output_ts_type_common_tree_pointers): Likewise.
1838 (lto_output_ts_type_non_common_tree_pointers): Likewise.
1839 (lto_output_ts_list_tree_pointers): Likewise.
1840 (lto_output_ts_vec_tree_pointers): Likewise.
1841 (lto_output_ts_exp_tree_pointers): Likewise.
1842 (lto_output_ts_block_tree_pointers): Likewise.
1843 (lto_output_ts_binfo_tree_pointers): Likewise.
1844 (lto_output_ts_constructor_tree_pointers): Likewise.
1845 (lto_output_ts_target_option): Likewise.
1846 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
1847 (lto_output_tree_pointers): Likewise.
1848 (lto_output_tree_header): Likewise.
1849 (lto_output_builtin_tree): Likewise.
1850 (lto_write_tree): Likewise.
1851 (lto_output_integer_cst): Likewise.
1852 (lto_output_tree): Likewise.
1853 (output_phi): Move to gimple-streamer-out.c.
1854 (output_gimple_stmt): Likewise.
1855 (output_bb): Likewise.
1856 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
1857 (streamer_hooks): Move to streamer-hooks.c.
1858 (check_handled_ts_structures): Move to tree-streamer.c
1859 (lto_streamer_cache_add_to_node_array): Likewise.
1860 (lto_streamer_cache_insert_1): Likewise.
1861 (lto_streamer_cache_insert): Likewise.
1862 (lto_streamer_cache_insert_at): Likewise.
1863 (lto_streamer_cache_append): Likewise.
1864 (lto_streamer_cache_lookup): Likewise.
1865 (lto_streamer_cache_get): Likewise.
1866 (lto_record_common_node): Likewise.
1867 (lto_preload_common_nodes): Likewise.
1868 (lto_streamer_cache_create): Likewise.
1869 (lto_streamer_cache_delete): Likewise.
1870 (streamer_hooks_init): Move to streamer-hooks.c.
1871 * lto-streamer.h: Include diagnostic.h
1872 (struct output_block, struct lto_input_block,
1873 struct data_in, struct bitpack_d): Remove forward declarations.
1874 (struct bitpack_d): Move to data-streamer.h.
1875 (struct lto_streamer_cache_d): Move to tree-streamer.h.
1876 (struct streamer_hooks): Move to streamer-hooks.h.
1877 (bp_pack_var_len_unsigned): Move to data-streamer.h.
1878 (bp_pack_var_len_int): Likewise.
1879 (bp_unpack_var_len_unsigned): Likewise.
1880 (bp_unpack_var_len_int): Likewise.
1881 (lto_input_location): Declare.
1882 (lto_tag_check_set): Declare.
1883 (lto_init_eh): Declare.
1884 (lto_output_tree_ref): Declare.
1885 (lto_output_location): Declare.
1886 (bitpack_create): Move to data-streamer.h.
1887 (bp_pack_value): Likewise.
1888 (lto_output_bitpack): Likewise.
1889 (lto_input_bitpack): Likewise.
1890 (bp_unpack_value): Likewise.
1891 (lto_output_1_stream): Likewise.
1892 (lto_input_1_unsigned): Likewise.
1893 (lto_output_int_in_range): Likewise.
1894 (lto_input_int_in_range): Likewise.
1895 (bp_pack_int_in_range): Likewise.
1896 (bp_unpack_int_in_range): Likewise.
1897 (lto_output_enum): Likewise.
1898 (lto_input_enum): Likewise.
1899 (bp_pack_enum): Likewise.
1900 (bp_unpack_enum): Likewise.
1901 * streamer-hooks.c: New.
1902 * streamer-hooks.h: New.
1903 * tree-streamer-in.c: New.
1904 * tree-streamer-out.c: New.
1905 * tree-streamer.c: New.
1906 * tree-streamer.h: New.
1907
1908 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1909
1910 * gthr-posix95.h: Remove.
1911 * gthr.h [_PTHREADS95]: Remove.
1912 * configure.ac (enable_threads): Remove posix95.
1913 * configure: Regenerate.
1914 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
1915
1916 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
1917
1918 PR target/49781
1919 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
1920 SImode addresses.
1921 (ix86_print_operand_address): Handle zero-extended addresses.
1922 (memory_address_length): Add length of addr32 prefix for
1923 zero-extended addresses.
1924 (ix86_secondary_reload): Handle moves to/from double-word general
1925 registers from/to zero-extended addresses.
1926 * config/i386/predicates.md (lea_address_operand): Reject
1927 zero-extended operands.
1928
1929 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
1930
1931 PR other/48007
1932 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
1933
1934 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
1935 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
1936
1937 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
1938 (_Unwind_Context_Reg_Val): Likewise.
1939 (_Unwind_Get_Unwind_Word): Likewise.
1940 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
1941 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
1942 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
1943 for EXTENDED_CONTEXT_BIT.
1944 (__frame_state_for): Likewise.
1945 (uw_init_context_1): Likewise.
1946 (_Unwind_GetGR): Updated.
1947 (_Unwind_SetGR): Likewise.
1948 (_Unwind_GetGRPtr): Likewise.
1949 (_Unwind_SetGRPtr): Likewise.
1950 (_Unwind_SetGRValue): Likewise.
1951 (_Unwind_GRByValue): Likewise.
1952 (uw_install_context_1): Likewise.
1953
1954 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
1955 ASSUME_EXTENDED_UNWIND_CONTEXT.
1956 * doc/tm.texi: Regenerated.
1957
1958 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1959
1960 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
1961
1962 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1963
1964 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
1965 Linux/GNU-specific.
1966 (DEC Alpha Options, -mtune): Likewise.
1967 (MIPS Options, -march): native is supported on IRIX.
1968
1969 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1970
1971 * config/sparc/driver-sparc.c: New file.
1972 * config/sparc/x-sparc: New file.
1973 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
1974 * config/sparc/sparc.opt (native): New value for enum processor_type.
1975 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
1976 * config/sparc/sparc.c (sparc_option_override): Abort if
1977 PROCESSOR_NATIVE gets here.
1978 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
1979 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
1980 DRIVER_SELF_SPECS): Define.
1981 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
1982 (SPARC Options, -mtune): Likewise.
1983 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
1984 Substitute result.
1985 * configure: Regenerate.
1986 * Makefile.in (EXTRA_GCC_LIBS): Set.
1987 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
1988 (cpp$(exeext)): Likewise.
1989
1990 2011-08-08 Richard Guenther <rguenther@suse.de>
1991
1992 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
1993 split out from ...
1994 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
1995 by composition.
1996
1997 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
1998
1999 PR tree-optimization/50005
2000 * ipa-inline-analysis (remap_predicate): Add cast to
2001 silence signed/unsigned comparison warning.
2002
2003 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
2004
2005 * modulo-sched.c (get_sched_window): Use a table for the debug output.
2006 Print the current ii.
2007 (sms_schedule_by_order): Reduce whitespace in dump line.
2008
2009 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
2010
2011 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
2012 and one loop for successors. Fix upper bound of memory range.
2013
2014 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
2015
2016 PR target/50001
2017 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
2018 (TARGET_INSTANTIATE_DECLS): New define.
2019
2020 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
2021 Mikael Morin <mikael.morin@sfr.fr>
2022
2023 * Makefile.in (INCLUDES_FOR_TARGET): New.
2024 (LIBGCC2_CFLAGS): Use it.
2025 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
2026
2027 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
2028
2029 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
2030 frame->save_regs_using_mov calculation.
2031
2032 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
2033
2034 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
2035 * config/i386/sse.md (castmode): New mode attribute.
2036 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
2037 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
2038
2039 2011-08-05 Jan Hubicka <jh@suse.cz>
2040
2041 PR middle-end/49494
2042 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
2043
2044 2011-08-05 Jan Hubicka <jh@suse.cz>
2045
2046 PR middle-end/49500
2047 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
2048 handle aliases.
2049 (create_emultls_var):New function.
2050 (ipa_lower_emutls): Handle aliases correctly.
2051
2052 2011-08-05 Jan Hubicka <jh@suse.cz>
2053
2054 PR middle-end/49735
2055 * ipa-inline.c (recursive_inlining): Look through aliases.
2056
2057 2011-08-05 Jason Merrill <jason@redhat.com>
2058
2059 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
2060 declarations to beginning of function.
2061
2062 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
2063
2064 PR rtl-optimization/49900
2065 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
2066 ensure basic blocks stay in the same order.
2067
2068 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
2069
2070 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
2071 store_bit_field.
2072 (s390_expand_atomic): Same.
2073
2074 2011-08-05 Richard Henderson <rth@redhat.com>
2075
2076 PR rtl-opt/49977
2077 * dwarf2cfi.c (scan_insn_after): Split out of ...
2078 (scan_trace): ... here. Correctly place notes wrt sequences.
2079
2080 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
2081 Richard Henderson <rth@redhat.com>
2082
2083 PR rtl-opt/49982
2084 * expr.c (fixup_args_size_notes): Look through no-op moves.
2085
2086 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
2087
2088 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
2089 of "m" for operand 0. Add type and mode attribute.
2090 (*pushxf_nointeger"): Use "<" constraint for operand 0.
2091 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
2092 constraint instead of "o" for opreand 1.
2093 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
2094 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
2095 operand 0, alternative 4.
2096 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
2097
2098 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
2099
2100 * config/i386/predicates.md (lea_address_operand): Rename from
2101 no_seg_address_operand.
2102 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
2103 (*lea_1_zext): Ditto.
2104 (*lea_2): Ditto.
2105 (*lea_2_zext): Ditto.
2106
2107 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
2108
2109 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
2110 parts.base and parts.index.
2111 * config/i386/predicates.md (aligned_operand): Ditto.
2112 (cmpxchg8b_pic_memory_operand): Ditto.
2113
2114 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2115
2116 * config/soft-fp: Move to ../libgcc.
2117 * Makefile.in (SFP_MACHINE): Remove.
2118 (libgcc-support): Remove $(SFP_MACHINE) dependency.
2119 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
2120 * config/arm/t-arm-softfp: Move to
2121 ../libgcc/config/arm/t-softfp.
2122 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
2123 * config/c6x/t-c6x-softfp: Remove.
2124 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
2125 * config/i386/t-fprules-softfp: Move to
2126 ../libgcc/config/t-softfp-tf.
2127 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
2128 * config/ia64/t-fprules-softfp: Remove.
2129 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
2130 * config/lm32/t-fprules-softfp: Remove.
2131 * config/moxie/sfp-machine.h: Remove.
2132 * config/moxie/t-moxie-softfp: Remove.
2133 * config/rs6000/darwin-ldouble-format: Move to
2134 ../libgcc/config/rs6000/ibm-ldouble-format.
2135 * config/rs6000/darwin-ldouble.c: Move to
2136 ../libgcc/config/rs6000/ibm-ldouble.c
2137 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
2138 * config/rs6000/libgcc-ppc64.ver: Likewise.
2139 * config/rs6000/sfp-machine.h: Likewise.
2140 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
2141 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
2142 (LIB2FUNCS_EXTRA): Remove.
2143 (TARGET_LIBGCC2_CFLAGS): Remove.
2144 * config/rs6000/t-aix52: Likewise
2145 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
2146 $(srcdir)/config/rs6000/darwin-ldouble.c.
2147 (SHLIB_MAPFILES): Remove.
2148 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
2149 $(srcdir)/config/rs6000/darwin-ldouble.c.
2150 * config/rs6000/t-fprules-softfp: Move to
2151 ../libgcc/config/t-softfp-sfdf.
2152 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
2153 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
2154 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
2155 $(srcdir)/config/rs6000/darwin-ldouble.c.
2156 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
2157 * config/score/t-score-softfp: Remove.
2158 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
2159 soft-fp/t-softfp from tmake_file.
2160 (arm*-*-uclinux*): Likewise.
2161 (arm*-*-ecos-elf): Likewise.
2162 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
2163 (arm*-*-rtems*): Likewise.
2164 (arm*-*-elf): Likewise.
2165 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
2166 tmake_file.
2167 (moxie-*-uclinux*): Likewise.
2168 (moxie-*-rtems*): Likewise.
2169 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
2170 tmake_file.
2171 (lm32-*-rtems*): Likewise.
2172 (lm32-*-uclinux*): Likewise.
2173 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
2174 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
2175 (powerpc-*-linux*, powerpc64-*-linux*): Remove
2176 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
2177 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
2178 tmake_file.
2179 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
2180 tmake_file.
2181 (tic6x-*-uclinux): Likewise.
2182 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
2183 soft-fp/t-softfp from tmake_file.
2184 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
2185 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
2186 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
2187 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
2188 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
2189
2190 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2191
2192 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
2193 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
2194 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
2195 TPBIT, TPBIT_FUNCS.
2196 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
2197 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
2198 Remove.
2199 * config/arm/t-vxworks: Likewise.
2200 * config/arm/t-wince-pe: Likewise.
2201 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
2202 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2203 * config/bfin/t-bfin-elf: Likewise.
2204 * config/bfin/t-bfin-linux: Likewise.
2205 * config/bfin/t-bfin-uclinux: Likewise.
2206 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
2207 Remove.
2208 * config/fr30/t-fr30: Likewise.
2209 * config/frv/t-frv: Likewise.
2210 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
2211 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2212 * config/m32c/t-m32c: Likewise.
2213 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
2214 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2215 * config/mcore/t-mcore: Likewise.
2216 * config/mep/t-mep: Likewise.
2217 * config/microblaze/t-microblaze: Likewise.
2218 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
2219 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2220 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
2221 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2222 * config/mn10300/t-linux: Remove.
2223 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2224 * config/pdp11/t-pdp11: Likewise.
2225 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
2226 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
2227 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2228 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
2229 * config/rs6000/t-aix52: Likewise.
2230 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
2231 $(srcdir)/config/rs6000/ppc64-fp.c.
2232 * config/rs6000/t-fprules-fpbit: Remove.
2233 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
2234 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2235 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
2236 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2237 * config/sparc/t-elf: Likewise.
2238 * config/sparc/t-leon: Likewise.
2239 * config/sparc/t-leon3: Likewise.
2240 * config/spu/t-spu-elf: Likewise.
2241 (DPBIT_FUNCS): Remove.
2242 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2243 * config/v850/t-v850: Likewise.
2244 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
2245 (avr-*-*): Likewise.
2246 (h8300-*-rtems*): Set libgcc_tm_file.
2247 (h8300-*-elf*): Likewise.
2248 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
2249 tmake_file.
2250 (powerpc-*-eabisim*): Likewise.
2251 (powerpc-*-elf*): Likewise.
2252 (powerpc-*-eabialtivec*): Likewise.
2253 (powerpc-xilinx-eabi*): Likewise.
2254 (powerpc-*-eabi*): Likewise.
2255 (powerpc-*-rtems*): Likewise.
2256 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
2257 (powerpcle-*-elf*): Likewise.
2258 (powerpcle-*-eabisim*): Likewise.
2259 (powerpcle-*-eabi*): Likewise.
2260 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
2261 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
2262 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
2263 Remove.
2264
2265 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2266
2267 * Makefile.in (UNWIND_H): Remove.
2268 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
2269 ../libgcc/Makefile.in.
2270 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
2271 (LIBUNWINDDEP): Remove.
2272 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
2273 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
2274 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
2275 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
2276 Don't copy $(UNWIND_H).
2277 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
2278 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
2279 * aclocal.m4: Regenerate.
2280 * configure: Regenerate.
2281 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
2282 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
2283 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
2284 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
2285 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
2286 * config/arm/libunwind.S, config/arm/pr-support.c,
2287 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
2288 ../libgcc/config/arm.
2289 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
2290 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
2291 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
2292 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
2293 ($(T)frvend$(objext)): Likewise.
2294 * config/ia64/t-glibc (LIB2ADDEH): Remove.
2295 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
2296 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
2297 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
2298 ../libgcc/config/ia64.
2299 * config/ia64/t-hpux (LIB2ADDEH): Remove.
2300 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
2301 * config/ia64/t-vms (LIB2ADDEH): Remove.
2302 * config/ia64/vms.h (UNW_IVMS_MODE,
2303 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
2304 * config/picochip/t-picochip (LIB2ADDEH): Remove.
2305 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
2306 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
2307 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
2308 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
2309 $(srcdir)/../libgcc to refer to unwinder sources.
2310 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
2311 * config/t-darwin (LIB2ADDEH): Remove.
2312 * config/t-freebsd (LIB2ADDEH): Remove.
2313 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
2314 * config/t-libunwind-elf: Move to ../libgcc/config.
2315 * config/t-linux (LIB2ADDEH): Remove.
2316 * config/t-sol2 (LIB2ADDEH): Remove.
2317 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
2318 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
2319
2320 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
2321
2322 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
2323
2324 * doc/invoke.texi: Document core-avx-i.
2325
2326 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2327
2328 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
2329
2330 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
2331
2332 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
2333 result of multiple results reduction when extracting the final
2334 value using scalar code.
2335
2336 2011-08-05 Richard Guenther <rguenther@suse.de>
2337
2338 PR tree-optimization/49984
2339 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
2340
2341 2011-08-05 Richard Guenther <rguenther@suse.de>
2342
2343 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
2344 return true for constant integer ranges.
2345 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
2346 BIT_IOR_EXPR handling.
2347
2348 2011-08-04 Kai Tietz <ktietz@redhat.com>
2349
2350 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
2351 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
2352
2353 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
2354
2355 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
2356 pattern def statement, and its access macro.
2357 (NUM_PATTERNS): Set to 5.
2358 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2359 pattern def statement.
2360 (vect_transform_loop): Likewise.
2361 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
2362 function vect_recog_over_widening_pattern ().
2363 (vect_operation_fits_smaller_type): New function.
2364 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
2365 Likewise.
2366 (vect_pattern_recog_1): Move the code that marks pattern
2367 statements to vect_mark_pattern_stmts (), and call it. Update
2368 documentation.
2369 * tree-vect-stmts.c (vect_supportable_shift): New function.
2370 (vect_analyze_stmt): Handle pattern def statement.
2371 (new_stmt_vec_info): Initialize pattern def statement.
2372
2373 2011-08-04 Richard Henderson <rth@redhat.com>
2374
2375 PR target/49964
2376 * config/i386/i386.c (ix86_expand_call): Don't create nested
2377 PARALLELs for TARGET_VZEROUPPER.
2378 (ix86_split_call_vzeroupper): Fix extraction of the original call.
2379 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
2380 recognize nested PARALLELs.
2381 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
2382 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
2383 *sibcall_value_pop_vzeroupper): Likewise.
2384
2385 2011-08-04 Richard Henderson <rth@redhat.com>
2386
2387 PR middle-end/49968
2388 * calls.c (expand_call): Use fixup_args_size_notes for
2389 emit_stack_restore.
2390 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
2391 in non-standard modes.
2392
2393 2011-08-04 Jakub Jelinek <jakub@redhat.com>
2394
2395 * gcc.c (self_spec): New variable.
2396 (static_specs): Add self_spec.
2397 (main): Call do_self_spec on "self_spec" specs after reading
2398 user specs files. Move compare_debug handling right after that.
2399
2400 2011-08-04 Richard Guenther <rguenther@suse.de>
2401
2402 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
2403 (value_range_nonnegative_p): New function.
2404 (ssa_name_nonnegative_p): Use it.
2405 (value_range_constant_singleton): New function.
2406 (op_with_constant_singleton_value_range): Use it.
2407 (extract_range_from_binary_expr_1): New function, split out from ...
2408 (extract_range_from_binary_expr): ... this. Remove fallback
2409 constant folding done here.
2410
2411 2011-08-04 Richard Guenther <rguenther@suse.de>
2412
2413 PR tree-optimization/49806
2414 * tree-vrp.c (op_with_boolean_value_range_p): New function.
2415 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
2416 a new statement for a final conversion to bool.
2417
2418 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
2419
2420 * gengtype-state.c: Include "bconfig.h" if
2421 GENERATOR_FILE is defined, "config.h" otherwise.
2422 * gengtype.c: Likewise.
2423 * gengtype-lex.l: Likewise.
2424 * gengtype-parse.c: Likewise.
2425 * Makefile.in (gengtype-lex.o-warn): New variable.
2426 (plugin_resourcesdir): Likewise.
2427 (plugin_bindir): Likewise.
2428 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
2429 (MOSTLYCLEANFILES): Add gengtype$(exeext).
2430 (native): Depend on gengtype$(exeext) is $enable_plugin
2431 is set to "yes".
2432 (gtype.state): Depend on s-gtype. Use temporary file.
2433 (gengtype-lex.o): New rule.
2434 (gengtype-parse.o): Likewise.
2435 (gengtype-state.o): Likewise.
2436 (gengtype$(exeext)): Likewise.
2437 (install-gengtype): Likewise.
2438 (gengtype.o): Likewise.
2439 (build/gengtype.o): Depend on version.h.
2440 (build/gengtype-state): Depend on double-int.h, version.h,
2441 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
2442 (install-plugin): Depend on install-gengtype.
2443
2444 2011-08-04 Jakub Jelinek <jakub@redhat.com>
2445
2446 PR middle-end/49905
2447 * tree.h (init_attributes): New prototype.
2448 * attribs.c (init_attributes): No longer static.
2449
2450 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2451
2452 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
2453 maybe_suffix.
2454
2455 2011-08-03 David Li <davidxl@google.com>
2456
2457 * tree-optimize.c (execute_fixup_cfg): Fix up entry
2458 outgoing edge counts after inlining.
2459
2460 2011-08-03 David Li <davidxl@google.com>
2461
2462 * profile.c (compute_branch_probabilities): Compute
2463 function frequency after profile annotation.
2464
2465 2011-08-04 Alan Modra <amodra@gmail.com>
2466
2467 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
2468 use_backchain_to_restore_sp initialisation.
2469 (rs6000_legitimate_offset_address_p): Simplify offset test.
2470
2471 2011-08-03 Richard Henderson <rth@redhat.com>
2472
2473 * config/spu/spu.md: Use define_c_enum instead of define_constants.
2474 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
2475 (UNSPECV_NOP): New.
2476
2477 2011-08-03 Richard Henderson <rth@redhat.com>
2478
2479 PR target/34888
2480 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
2481
2482 2011-08-03 Jakub Jelinek <jakub@redhat.com>
2483
2484 PR tree-optimization/49948
2485 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
2486
2487 2011-08-03 Anatoly Sokolov <aesok@post.ru>
2488
2489 * config/m32c/m32c.c (class_sizes): Remove.
2490 (reduce_class): Change arguments and return type to reg_class_t.
2491 Change type cc var to HARD_REG_SET. Change type best var to
2492 reg_class_t. Change type best_size var to unsigned int. Remove
2493 initialization class_sizes var. Use reg_class_size array instead
2494 of class_sizes. Use reg_class_contents array instead
2495 of class_contents.
2496
2497 2011-08-03 Richard Guenther <rguenther@suse.de>
2498
2499 PR middle-end/49958
2500 * fold-const.c (fold_binary_loc): Only associate
2501 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
2502 overflow wraps.
2503
2504 2011-08-03 Alan Modra <amodra@gmail.com>
2505
2506 PR rtl-optimization/49941
2507 * jump.c (mark_jump_label): Comment.
2508 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
2509 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
2510 (mark_used_flags): Don't mark RETURN.
2511
2512 2011-08-03 Richard Guenther <rguenther@suse.de>
2513
2514 PR tree-optimization/49938
2515 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
2516 deal with a POLYNOMIAL_CHREC.
2517
2518 2011-08-03 Revital Eres <revital.eres@linaro.org>
2519
2520 * modulo-sched.c (calculate_stage_count,
2521 calculate_must_precede_follow, get_sched_window,
2522 try_scheduling_node_in_cycle, remove_node_from_ps): Add
2523 declaration.
2524 (update_node_sched_params, set_must_precede_follow, optimize_sc):
2525 New functions.
2526 (reset_sched_times): Call update_node_sched_params.
2527 (sms_schedule): Call optimize_sc.
2528 (get_sched_window): Change function arguments.
2529 (sms_schedule_by_order): Update call to get_sched_window.
2530 Call set_must_precede_follow.
2531 (calculate_stage_count): Add function argument.
2532
2533 2011-08-02 Richard Henderson <rth@redhat.com>
2534
2535 PR target/49864
2536 PR target/49879
2537 * reg-notes.def (REG_ARGS_SIZE): New.
2538 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
2539 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
2540 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
2541 different stack levels.
2542 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
2543 (maybe_move_args_size_note): New.
2544 (combine_stack_adjustments_for_block): Use it.
2545 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
2546 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
2547 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
2548 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
2549 (cur_cfa): New.
2550 (queued_args_size): Remove.
2551 (add_cfi_args_size): Assert size is non-negative.
2552 (stack_adjust_offset, dwarf2out_args_size): Remove.
2553 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
2554 (notice_args_size, notice_eh_throw): New.
2555 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
2556 (dwarf2out_frame_debug_adjust_cfa): Likewise.
2557 (dwarf2out_frame_debug_cfa_offset): Likewise.
2558 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
2559 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
2560 (change_cfi_row): Don't emit args_size.
2561 (maybe_record_trace_start_abnormal): Split out from ...
2562 (maybe_record_trace_start): Here. Set args_size_undefined.
2563 (create_trace_edges): Update to match.
2564 (scan_trace): Handle REG_ARGS_SIZE.
2565 (connect_traces): Connect args_size between EH insns.
2566 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
2567 * explow.c (suppress_reg_args_size): New.
2568 (adjust_stack_1): Split out from ...
2569 (adjust_stack): ... here.
2570 (anti_adjust_stack): Use it.
2571 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
2572 * expr.c (mem_autoinc_base): New.
2573 (fixup_args_size_notes): New.
2574 (emit_single_push_insn_1): Rename from emit_single_push_insn.
2575 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
2576 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
2577 * reload1.c (reload_as_needed): Likewise.
2578 * rtl.h (fixup_args_size_notes): Declare.
2579
2580 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
2581
2582 PR bootstrap/49914
2583 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
2584 of abs.
2585 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2586 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2587
2588 2011-08-02 Richard Henderson <rth@redhat.com>
2589
2590 * config/h8300/h8300.c (push, pop): Return the insn.
2591 (h8300_swap_into_er6): Generate correct unwind info.
2592 (h8300_swap_out_of_er6): Likewise.
2593 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
2594 complex cfa expression.
2595 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
2596
2597 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2598
2599 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2600
2601 2011-08-02 Richard Henderson <rth@redhat.com>
2602
2603 PR target/49878
2604 * config/h8300/h8300.c (h8300_move_ok): New.
2605 * config/h8300/h8300-protos.h: Declare it.
2606 * config/h8300/h8300.md (P): New mode iterator.
2607 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
2608 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
2609 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
2610 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
2611 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
2612 and pushqi1_h8300hs_normal; use PRE_MODIFY and
2613 register_no_sp_elim_operand.
2614 (*pushhi1_h8300hs_<P>): Similarly.
2615 (pushqi1, pushhi1, pushhi1_h8300): Remove.
2616 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
2617
2618 2011-08-02 Richard Henderson <rth@redhat.com>
2619
2620 PR target/49881
2621 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
2622
2623 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2624
2625 * c-parser.c (enum c_parser_prec): New enum, moved from within
2626 c_parser_binary_expression.
2627 (c_parser_binary_expression): Add PREC argument. Stop parsing
2628 if operator has lower or equal precedence than PREC.
2629 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
2630 callers.
2631 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
2632 Adjust c_finish_omp_atomic caller.
2633 (c_parser_omp_taskyield): New function.
2634 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
2635 (c_parser_omp_clause_name): Handle final and mergeable clauses.
2636 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
2637 functions.
2638 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
2639 and PRAGMA_OMP_CLAUSE_MERGEABLE.
2640 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
2641 (c_parser_omp_clause_reduction): Handle min and max.
2642 * c-typeck.c (c_finish_omp_clauses): Don't complain about
2643 const qualified predetermined vars in firstprivate clause.
2644 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2645 Handle MIN_EXPR and MAX_EXPR.
2646 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
2647 and OMP_CLAUSE_MERGEABLE.
2648 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
2649 and OMP_ATOMIC_CAPTURE_NEW.
2650 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
2651 OMP_CLAUSE_MERGEABLE.
2652 (omp_clause_code_name): Likewise.
2653 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2654 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
2655 and OMP_CLAUSE_MERGEABLE.
2656 (OMP_CLAUSE_FINAL_EXPR): Define.
2657 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
2658 OMP_CLAUSE_MERGEABLE.
2659 (expand_task_call): Likewise.
2660 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
2661 (expand_omp_atomic_fetch_op): Handle cases where old or new
2662 value is needed afterwards.
2663 (expand_omp_atomic): Call expand_omp_atomic_load resp.
2664 expand_omp_atomic_store.
2665 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
2666 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
2667 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
2668 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2669 * tree-nested.c (convert_nonlocal_omp_clauses,
2670 convert_local_omp_clauses): Likewise.
2671 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
2672 OMP_ATOMIC_CAPTURE_NEW): New.
2673 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
2674 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
2675 New inlines.
2676 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
2677 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
2678 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2679
2680 2011-08-02 Kai Tietz <ktietz@redhat.com>
2681
2682 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
2683 boolean-type.
2684 (ssa_forward_propagate_and_combine): Interprete result of
2685 forward_propagate_comparison.
2686 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
2687 boolean-typed operands for comparisons.
2688
2689 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
2690
2691 * config/avr/libgcc.S: Gather related function in the
2692 same input section.
2693 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
2694 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
2695 references.
2696 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
2697 __udivmodsi4, __divmodsi4, __prologue_saves__,
2698 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
2699 __do_copy_data, __do_clear_bss, __do_global_ctors,
2700 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
2701
2702 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
2703
2704 PR target/47766
2705 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
2706 (stack_protect_test): The pattern compares ptr_mode value.
2707
2708 2011-08-02 Alan Modra <amodra@gmail.com>
2709
2710 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
2711 note for save_LR_around_toc_setup sequence.
2712
2713 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2714
2715 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
2716
2717 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
2718 Joseph Myers <joseph@codesourcery.com>
2719
2720 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
2721 * hwint.c: Include diagnostic-core.h.
2722 (abs_hwi): New.
2723 (gcd): Moved here...
2724 (pos_mul_hwi): New.
2725 (mul_hwi): New.
2726 (least_common_multiple): Moved here...
2727 * hwint.h (gcd): ... from here.
2728 (least_common_multiple): ... from here.
2729 (HOST_WIDE_INT_MIN): New.
2730 (HOST_WIDE_INT_MAX): New.
2731 (abs_hwi): Declared.
2732 (gcd): Declared.
2733 (pos_mul_hwi): Declared.
2734 (mul_hwi): Declared.
2735 (least_common_multiple): Declared.
2736 * omega.c (check_pos_mul): Removed.
2737 (check_mul): Removed.
2738 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
2739 mul_hwi instead of check_mul.
2740
2741 2011-08-01 Richard Henderson <rth@redhat.com>
2742
2743 PR target/49881
2744 * config/avr/avr.h (PUSH_ROUNDING): New.
2745 * config/avr/avr.md (pushqi1): Rename from *pushqi.
2746 (*pushhi, *pushsi, *pushsf): Remove.
2747 (MPUSH): New mode iterator.
2748 (push<MPUSH>1): New expander.
2749
2750 2011-08-01 Anatoly Sokolov <aesok@post.ru>
2751
2752 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
2753 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2754 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
2755 mmix_preferred_output_reload_class): Remove.
2756 * config/mmix/mmix.c (mmix_preferred_reload_class,
2757 mmix_preferred_output_reload_class): Make static. Change rclass
2758 argument and return type to reg_class_t.
2759 (TARGET_PREFERRED_RELOAD_CLASS,
2760 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2761
2762 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
2763
2764 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
2765 handling.
2766
2767 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2768
2769 PR target/47766
2770 * config/i386/i386.md (PTR): New.
2771 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
2772 (stack_protect_test): Likewise.
2773 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
2774 (stack_tls_protect_set_<mode>): Likewise.
2775 (stack_tls_protect_test_<mode>): Likewise.
2776
2777 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
2778
2779 PR target/49927
2780 * config/i386/i386.c (ix86_address_subreg_operand): New.
2781 (ix86_decompose_address): Use ix86_address_subreg_operand.
2782 (ix86_legitimate_address_p): Do not assert that subregs satisfy
2783 register_no_elim_operand in DImode.
2784
2785 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
2786
2787 PR tree-optimization/49926
2788 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
2789 in a chain doesn't have uses both inside and outside the loop.
2790
2791 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
2792
2793 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
2794 * config/avr/avr-devices.c (avr_mcu_types): Use it.
2795 * config/avr/avr-mcus.def (AVR_MCU): Use it.
2796 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
2797 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
2798 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
2799 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
2800 to detect if XJMP must not be skipped.
2801
2802 2011-08-02 Alan Modra <amodra@gmail.com>
2803
2804 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
2805 Delete.
2806 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
2807 (rs6000_emit_prologue): Don't prematurely return when
2808 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
2809 save_toc_in_prologue case.
2810 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
2811 calls_alloca.
2812
2813 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
2814
2815 * config/avr/avr-devices.c: Delete SVN property svn:executable.
2816 * config/avr/predicates.md: Ditto.
2817 * config/avr/driver-avr.c: Ditto.
2818 * config/avr/genopt.sh: Set SVN property svn:executable to *.
2819
2820 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2821
2822 * calls.c (emit_library_call_value_1): Declare size only if
2823 BLOCK_REG_PADDING is defined.
2824
2825 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
2826
2827 PR target/49547
2828 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
2829 (x86_64-*-*): Likewise.
2830 * config/i386/i386.opt (mlzcnt): New.
2831 * config/i386/abmintrin.h: File removed.
2832 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
2833 * config/i386/lzcntintrin.h: ... here. New file.
2834 (__lzcnt): Rename to ...
2835 (__lzcnt32): ... this.
2836 * config/i386/bmiintrin.h (head): Update copyright year.
2837 (__lzcnt_u16): Removed.
2838 (__lzcnt_u32): Likewise.
2839 (__lzcnt_u64): Likewise.
2840 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
2841 is defined, remove abmintrin.h.
2842 * config/i386/cpuid.h (bit_LZCNT): New.
2843 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2844 LZCNT feature.
2845 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2846 __LZCNT__ if needed.
2847 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
2848 (ix86_option_override_internal): Handle LZCNT option.
2849 (ix86_valid_target_attribute_inner_p): Likewise.
2850 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
2851 * config/i386/i386.h (TARGET_LZCNT): New.
2852 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
2853 * config/i386/i386.md (clz<mode>2): Update insn constraint.
2854 (clz<mode>2_lzcnt): Likewise.
2855 * doc/invoke.texi: Mention -mlzcnt option.
2856 * doc/extend.texi: Likewise.
2857
2858 2011-08-01 Julian Brown <julian@codesourcery.com>
2859
2860 * configure.ac (fixed-point): Add ARM support.
2861 * configure: Regenerate.
2862 * config/arm/arm.c (arm_fixed_mode_set): New struct.
2863 (arm_set_fixed_optab_libfunc): New.
2864 (arm_set_fixed_conv_libfunc): New.
2865 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
2866 ARM-specific names.
2867 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
2868 return values in SImode.
2869 (arm_return_in_msb): Return fixed-point types in the msb.
2870 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
2871 upwards.
2872 (arm_scalar_mode_supported_p): Support fixed-point modes.
2873 (arm_vector_mode_supported_p): Support vector fixed-point modes.
2874 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
2875 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
2876 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
2877 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
2878 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
2879 New mode iterators.
2880 (qaddsub_suf): New mode attribute.
2881 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
2882 vector modes.
2883 * config/arm/predicates.md (sat_shift_operator): New predicate.
2884 * config/arm/arm-fixed.md: New.
2885 * config/arm/arm.md: Include arm-fixed.md.
2886 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
2887
2888 2011-08-01 Julian Brown <julian@codesourcery.com>
2889
2890 * calls.c (emit_library_call_value_1): Support padding for libcall
2891 arguments and return values.
2892 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
2893 downwards in big-endian mode.
2894
2895 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2896
2897 PR debug/49887
2898 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
2899 * config/sol2-protos.h: Likewise.
2900 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
2901 solaris_code_end.
2902 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
2903 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
2904 solaris_file_end.
2905 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
2906
2907 2011-08-01 Julian Brown <julian@codesourcery.com>
2908
2909 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
2910
2911 2011-08-01 Julian Brown <julian@codesourcery.com>
2912
2913 * final.c (output_addr_const): Print fixed-point constants as
2914 decimal not hex.
2915
2916 2011-08-01 Richard Guenther <rguenther@suse.de>
2917
2918 * stor-layout.c (initialize_sizetypes): Properly sign-extend
2919 bitsiztype TYPE_MAX_VALUE.
2920
2921 2011-08-01 Julian Brown <julian@codesourcery.com>
2922
2923 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
2924 comparison helpers.
2925
2926 2011-07-31 Richard Henderson <rth@redhat.com>
2927
2928 * config/h8300/crti.asm: Add flags to .section directive.
2929 * config/h8300/crtn.asm: Likewise.
2930
2931 2011-07-31 Richard Henderson <rth@redhat.com>
2932
2933 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
2934 * tree.c (build_common_tree_nodes): Likewise.
2935
2936 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
2937
2938 PR target/49880
2939 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
2940 (divsi3_i1): Likewise.
2941
2942 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2943
2944 PR tree-optimization/49749
2945 * tree-ssa-reassoc.c (get_rank): New forward declaration.
2946 (PHI_LOOP_BIAS): New macro.
2947 (phi_rank): New function.
2948 (loop_carried_phi): Likewise.
2949 (propagate_rank): Likewise.
2950 (get_rank): Add calls to phi_rank and propagate_rank.
2951
2952 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
2953
2954 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
2955 of TARGET_64BIT.
2956 (PTRDIFF_TYPE): Likewise.
2957
2958 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
2959
2960 PR target/49920
2961 * config/i386/i386.md (strset): Do not expand strset_singleop
2962 when %eax or $edi are fixed.
2963 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
2964 (*strsetsi_1): Ditto.
2965 (*strsethi_1): Ditto.
2966 (*strsetqi_1): Ditto.
2967 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
2968 (*rep_stossi): Ditto.
2969 (*rep_stosqi): Ditto.
2970 (*strlenqi_1): Ditto.
2971 (cmpstrnsi): Also fail when %ecx is fixed.
2972 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
2973 (*cmpstrnqi_1): Ditto.
2974 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
2975 (*strmovsi_1): Ditto.
2976 (*strmovhi_1): Ditto.
2977 (*strmovqi_1): Ditto.
2978 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
2979 (*rep_movsi): Ditto.
2980 (*rep_movqi): Ditto.
2981
2982 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
2983
2984 PR target/47908
2985 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
2986 Disable instruction scheduling for non-ColdFire targets.
2987 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2988
2989 2011-07-31 Revital Eres <revital.eres@linaro.org>
2990
2991 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
2992 of anti-dep edge from a branch.
2993 (add_cross_iteration_register_deps): Create anti-dep edge from
2994 a branch.
2995
2996 2011-07-31 Revital Eres <revital.eres@linaro.org>
2997
2998 * modulo-sched.c: Change comment.
2999 (reset_sched_times): Fix print message.
3000 (print_partial_schedule): Add print info.
3001
3002 2011-07-31 Tom de Vries <tom@codesourcery.com>
3003
3004 PR middle-end/43513
3005 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
3006 get_object_alignment and TYPE_ALIGN.
3007
3008 2011-07-30 Tom de Vries <tom@codesourcery.com>
3009
3010 PR middle-end/43513
3011 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
3012 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
3013
3014 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3015
3016 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
3017 <sys/sbd.h>.
3018 (cpu_types): New array.
3019 (cputype): New function.
3020 (host_detect_local_cpu): Only define buf, f if !__sgi__.
3021 Use scaninvent instead of /proc/cpuinfo if __sgi__.
3022 * config.host: Also use driver-native.o, mips/x-native on
3023 mips-sgi-irix*.
3024 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
3025 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
3026 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
3027
3028 2011-07-29 Jakub Jelinek <jakub@redhat.com>
3029
3030 PR middle-end/49897
3031 PR middle-end/49898
3032 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
3033 in nested parallel and outer is a gimple_reg, mark it as addressable
3034 and set its bit in task_shared_vars bitmap too.
3035
3036 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
3037
3038 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
3039
3040 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3041
3042 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
3043 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
3044 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
3045 AMASK_LOCKPFTCHOK): Define.
3046 (host_detect_local_cpu): Remove buf, f, cpu_names.
3047 Define cpu_types, implver, amask.
3048 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
3049 native CPU.
3050 * config.host: Also use driver-alpha.o, alpha/x-alpha on
3051 alpha*-dec-osf*.
3052 * config/alpha/osf5.h [__alpha__ || __alpha]
3053 (host_detect_local_cpu): Declare.
3054 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
3055 (DRIVER_SELF_SPECS): Define.
3056
3057 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
3058
3059 PR target/47715
3060 * config/i386/i386.md (*load_tp_x32): New.
3061 (*load_tp_x32_zext): Ditto.
3062 (*add_tp_x32): Ditto.
3063 (*add_tp_x32_zext): Ditto.
3064 (*load_tp_<mode>): Disable for TARGET_X32 targets.
3065 (*add_tp_<mode>): Ditto.
3066 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
3067 ptr_mode and convert to Pmode if needed.
3068
3069 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
3070
3071 PR target/49687
3072 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
3073 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
3074 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
3075 Add X to register footprint: Clobber r26/r27.
3076
3077 2011-07-29 Richard Guenther <rguenther@suse.de>
3078
3079 * builtins.c (fold_builtin_signbit): Build the comparison
3080 with a proper type.
3081
3082 2011-07-29 Richard Guenther <rguenther@suse.de>
3083
3084 PR tree-optimization/49893
3085 * tree-predcom.c (suitable_reference_p): Volatile references
3086 are not suitable.
3087
3088 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
3089
3090 PR target/49313
3091 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
3092 (__ctzsi2): Result for 0 may be undefined.
3093 (__ctzhi2): Result for 0 may be undefined.
3094 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
3095 (__popcountsi2): Ditto. And don't clobber r26.
3096 (__popcountdi2): Ditto. And don't clobber r27.
3097 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
3098 (parityhi2): New expand.
3099 (paritysi2): New expand.
3100 (popcounthi2): New expand.
3101 (popcountsi2): New expand.
3102 (clzhi2): New expand.
3103 (clzsi2): New expand.
3104 (ctzhi2): New expand.
3105 (ctzsi2): New expand.
3106 (ffshi2): New expand.
3107 (ffssi2): New expand.
3108 (copysignsf3): New insn.
3109 (bswapsi2): New expand.
3110 (*parityhi2.libgcc): New insn.
3111 (*parityqihi2.libgcc): New insn.
3112 (*paritysihi2.libgcc): New insn.
3113 (*popcounthi2.libgcc): New insn.
3114 (*popcountsi2.libgcc): New insn.
3115 (*popcountqi2.libgcc): New insn.
3116 (*popcountqihi2.libgcc): New insn-and-split.
3117 (*clzhi2.libgcc): New insn.
3118 (*clzsihi2.libgcc): New insn.
3119 (*ctzhi2.libgcc): New insn.
3120 (*ctzsihi2.libgcc): New insn.
3121 (*ffshi2.libgcc): New insn.
3122 (*ffssihi2.libgcc): New insn.
3123 (*bswapsi2.libgcc): New insn.
3124
3125 2011-07-29 Richard Guenther <rguenther@suse.de>
3126
3127 * tree-vrp.c (get_value_range): Only set parameter default
3128 definitions to varying, leave others at undefined.
3129 (extract_range_from_binary_expr): Fix undefined handling.
3130 (vrp_visit_phi_node): Handle merged undefined state.
3131
3132 2011-07-29 Wei Guozhi <carrot@google.com>
3133
3134 PR rtl-optimization/49799
3135 * combine.c (make_compound_operation): Check if the bit field is valid
3136 before change it to bit field extraction.
3137
3138 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
3139
3140 PR rtl-optimization/49891
3141 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
3142 newly created returnjumps.
3143
3144 2011-07-28 DJ Delorie <dj@redhat.com>
3145
3146 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
3147 local frame in a naked function, and produce a suitable error for
3148 that specific case.
3149
3150 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
3151 registers to be reloaded in HI classes when the target is HI.
3152
3153 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
3154
3155 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
3156 bound_one, bound_two.
3157
3158 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
3159
3160 PR middle-end/48648
3161 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
3162 CLAST assignments.
3163 (translate_clast): Same.
3164 (translate_clast_assignment): New.
3165
3166 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
3167
3168 PR tree-optimization/49876
3169 * sese.c (rename_uses): Do not return false on gloog_error: set
3170 the new_expr to integer_zero_node and continue code generation.
3171 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
3172
3173 2011-07-28 Jakub Jelinek <jakub@redhat.com>
3174
3175 PR debug/49846
3176 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
3177 arguments also check if they aren't initialized with a MODE_INT
3178 mode of the same size.
3179
3180 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
3181
3182 * expr.c (get_bit_range): Handle *MEM_REF's.
3183
3184 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
3185
3186 * rtlanal.c (tablejump_p): False for returns.
3187 * reorg.c (first_active_target_insn): New static function.
3188 (find_end_label): Set JUMP_LABEL for a new returnjump.
3189 (optimize_skip, get_jump_flags, rare_destination,
3190 mostly_true_jump, get_branch_condition,
3191 steal_delay_list_from_target, own_thread_p,
3192 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
3193 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
3194 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
3195 * jump.c (delete_related_insns): Likewise.
3196 (jump_to_label_p): New function.
3197 (redirect_target): New static function.
3198 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
3199 (redirect_jump_1): Assert that the new label is nonnull.
3200 (redirect_jump): Likewise.
3201 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
3202 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
3203 exit block.
3204 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
3205 changed. Ensure that the right label is passed to redirect_jump.
3206 * function.c (emit_return_into_block,
3207 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
3208 ret_rtx in their JUMP_LABEL.
3209 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
3210 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
3211 pass ret_rtx as label.
3212 * cfglayout.c (fixup_reorder_chain): Use
3213 force_nonfallthru_and_redirect rather than force_nonfallthru.
3214 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
3215 * rtl.h (ANY_RETURN_P): New macro.
3216 (jump_to_label_p): Declare.
3217 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
3218 JUMP_LABELs.
3219 (mark_target_live_regs): Likewise.
3220 * basic-block.h (force_nonfallthru_and_redirect): Declare.
3221 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
3222 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
3223 alpha_tablejump_best_label): Remove functions.
3224 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
3225 alpha_tablejump_best_label): Remove declarations.
3226 * config/sh/sh.c (barrier_align, split_branches): Adjust for
3227 ret_rtx in JUMP_LABELs.
3228 * config/arm/arm.c (is_jump_table): Likewise.
3229
3230 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
3231
3232 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
3233 special predicate. Remove explicit mode checks.
3234
3235 2011-07-28 Jakub Jelinek <jakub@redhat.com>
3236
3237 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
3238 DW_AT_data_member_location containing just DW_OP_plus_uconst.
3239
3240 PR debug/49871
3241 * dwarf2out.c (size_of_die, value_format, output_die): Use
3242 DW_FORM_udata instead of DW_FORM_data[48] for
3243 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
3244
3245 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
3246
3247 * config/i386/i386.md (*tls_global_dynamic_64): Update
3248 length attribute.
3249
3250 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
3251
3252 PR target/47715
3253 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
3254 tls_symbolic_operand check. Update code sequence for TARGET_X32.
3255 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
3256 (tls_dynamic_gnu2_64): Ditto.
3257 (*tls_dynamic_gnu2_lea_64): Ditto.
3258 (*tls_dynamic_gnu2_call_64): Ditto.
3259 (*tls_dynamic_gnu2_combine_64): Ditto.
3260
3261 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
3262
3263 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
3264
3265 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
3266
3267 PR target/47364
3268 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
3269
3270 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3271
3272 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
3273 before the core constraints. Adjust attributes.
3274 ("*thumb2_movdf_vfp"): Likewise.
3275
3276 2011-07-28 Kai Tietz <ktietz@redhat.com>
3277
3278 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
3279 (simplify_truth_ops_using_ranges): Likewise.
3280 (build_assert_expr_for): Likewise.
3281 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
3282 and handle BIT_NOT_EXPR for truth-operation.
3283
3284 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
3285
3286 PR target/49313
3287 Undo r176835 from trunk
3288 2011-07-27 Georg-Johann Lay
3289
3290 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
3291
3292 PR target/49687
3293 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
3294 Add _muluhisi3, _mulshisi3, _usmulhisi3.
3295 * config/avr/libgcc.S (__mulsi3): Rewrite.
3296 (__mulhisi3): Rewrite.
3297 (__umulhisi3): Rewrite.
3298 (__usmulhisi3): New.
3299 (__muluhisi3): New.
3300 (__mulshisi3): New.
3301 (__mulohisi3): New.
3302 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
3303 declare.
3304 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
3305 (pseudo_register_or_const_int_operand): New.
3306 (combine_pseudo_register_operand): New.
3307 (u16_operand): New.
3308 (s16_operand): New.
3309 (o16_operand): New.
3310 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
3311 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
3312 (any_extend, any_extend2): New code iterators.
3313 (extend_prefix): New code attribute.
3314 (mulsi3): Rewrite. Turn insn to expander.
3315 (mulhisi3): Ditto.
3316 (umulhisi3): Ditto.
3317 (usmulhisi3): New expander.
3318 (*mulsi3): New insn-and-split.
3319 (mulu<mode>si3): New insn-and-split.
3320 (muls<mode>si3): New insn-and-split.
3321 (mulohisi3): New insn-and-split.
3322 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
3323 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
3324 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
3325 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
3326 insn-and-split.
3327 (*mulsi3_call): Rewrite.
3328 (*mulhisi3_call): Rewrite.
3329 (*umulhisi3_call): Rewrite.
3330 (*usmulhisi3_call): New insn.
3331 (*muluhisi3_call): New insn.
3332 (*mulshisi3_call): New insn.
3333 (*mulohisi3_call): New insn.
3334 (extendqihi2): Use combine_pseudo_register_operand as predicate
3335 for operand 1.
3336 (extendqisi2): Ditto.
3337 (zero_extendqihi2): Ditto.
3338 (zero_extendqisi2): Ditto.
3339 (zero_extendhisi2): Ditto.
3340 (extendhisi2): Ditto. Don't early-clobber operand 0.
3341
3342 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
3343
3344 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
3345
3346 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
3347
3348 PR tree-optimization/49471
3349 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
3350 iv only when the largest type is unsigned. Do not call
3351 lang_hooks.types.type_for_size.
3352
3353 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
3354
3355 PR middle-end/45450
3356 * graphite-poly.c (apply_poly_transforms): Disable legality check
3357 after an openscop read.
3358
3359 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
3360
3361 PR middle-end/47691
3362 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
3363 copy_bb_and_scalar_dependences.
3364 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
3365 (graphite_copy_stmts_from_block): Update call to rename_uses.
3366 (copy_bb_and_scalar_dependences): Update call to
3367 graphite_copy_stmts_from_block.
3368 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
3369
3370 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
3371
3372 PR target/49313
3373 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
3374 (__ctzsi2): Result for 0 may be undefined.
3375 (__ctzhi2): Result for 0 may be undefined.
3376 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
3377 (__popcountsi2): Ditto. And don't clobber r26.
3378 (__popcountdi2): Ditto. And don't clobber r27.
3379 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
3380 (parityhi2): New expand.
3381 (paritysi2): New expand.
3382 (popcounthi2): New expand.
3383 (popcountsi2): New expand.
3384 (clzhi2): New expand.
3385 (clzsi2): New expand.
3386 (ctzhi2): New expand.
3387 (ctzsi2): New expand.
3388 (ffshi2): New expand.
3389 (ffssi2): New expand.
3390 (copysignsf3): New insn.
3391 (bswapsi2): New expand.
3392 (*parityhi2.libgcc): New insn.
3393 (*parityqihi2.libgcc): New insn.
3394 (*paritysihi2.libgcc): New insn.
3395 (*popcounthi2.libgcc): New insn.
3396 (*popcountsi2.libgcc): New insn.
3397 (*popcountqi2.libgcc): New insn.
3398 (*popcountqihi2.libgcc): New insn-and-split.
3399 (*clzhi2.libgcc): New insn.
3400 (*clzsihi2.libgcc): New insn.
3401 (*ctzhi2.libgcc): New insn.
3402 (*ctzsihi2.libgcc): New insn.
3403 (*ffshi2.libgcc): New insn.
3404 (*ffssihi2.libgcc): New insn.
3405 (*bswapsi2.libgcc): New insn.
3406
3407 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
3408
3409 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
3410 the mode of symbolic_opreand RTXes.
3411
3412 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
3413
3414 * config/i386/predicates.md (x86_64_movabs_operand): Return false
3415 for pic_32bit_operand RTXes.
3416 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
3417 in DImode.
3418
3419 2011-07-27 Kai Tietz <ktietz@redhat.com>
3420
3421 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
3422 for 32-bit, too.
3423 (ix86_handle_abi_attribute): Allow function attributes
3424 ms_abi/sysv_abi in 32-bit mode, too.
3425 * doc/extend.texi: Adjust attribute documentation.
3426
3427 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
3428 expression handling.
3429 (and_var_with_comparison_1): Likewise.
3430
3431 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
3432
3433 * params.h (ALLOW_STORE_DATA_RACES): New.
3434 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
3435 * Makefile.in (expr.o): Depend on PARAMS_H.
3436 * machmode.h (get_best_mode): Add argument.
3437 * fold-const.c (optimize_bit_field_compare): Add argument to
3438 get_best_mode.
3439 (fold_truthop): Same.
3440 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
3441 * expr.c (emit_group_store): Same.
3442 (copy_blkmode_from_reg): Same.
3443 (write_complex_part): Same.
3444 (optimize_bitfield_assignment_op): Add argument.
3445 Add argument to get_best_mode.
3446 (get_bit_range): New.
3447 (expand_assignment): Calculate maxbits and pass it down accordingly.
3448 (store_field): New argument.
3449 (expand_expr_real_2): New argument to store_field. Include params.h.
3450 * expr.h (store_bit_field): New argument.
3451 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
3452 into account maxbits.
3453 * calls.c (store_unaligned_arguments_into_pseudos): New argument
3454 to store_bit_field.
3455 * expmed.c (store_bit_field_1): New argument. Use it.
3456 (store_bit_field): Same.
3457 (store_fixed_bit_field): Same.
3458 (store_split_bit_field): Same.
3459 (extract_bit_field_1): Pass new argument to get_best_mode.
3460 (extract_bit_field): Same.
3461 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
3462 * doc/invoke.texi: Document parameter allow-store-data-races.
3463
3464 2011-07-27 Jakub Jelinek <jakub@redhat.com>
3465
3466 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
3467
3468 2011-07-27 Kai Tietz <ktietz@redhat.com>
3469
3470 * tree-vrp.c (extract_range_from_binary_expr): Remove
3471 TRUTH-binary cases and add new bitwise-cases.
3472 (extract_range_from_assignment): Likewise.
3473 (register_edge_assert_for_1): Likeiwise.
3474 (register_edge_assert_for): Likewise.
3475 (simplify_truth_ops_using_ranges): Likewise.
3476 (simplify_stmt_using_ranges): Likewise.
3477
3478 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
3479
3480 PR target/47372
3481 * config/i386/i386.c (ix86_delegitimize_address): Call
3482 simplify_gen_subreg for PIC with mode of x only if modes of
3483 x and orig_x are different.
3484
3485 2011-07-26 Jakub Jelinek <jakub@redhat.com>
3486
3487 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
3488 to GC allocated copy of the string.
3489 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
3490 before .debug_line, not after it.
3491
3492 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3493
3494 PR middle-end/47046
3495 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
3496 evolution_function_is_affine_p on CHREC_RIGHT.
3497
3498 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3499
3500 * tree-data-ref.c (max_stmt_executions_tree): Do not call
3501 lang_hooks.types.type_for_size.
3502
3503 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3504
3505 PR middle-end/47653
3506 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
3507 loops using wrapping semantics.
3508
3509 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3510
3511 PR middle-end/48805
3512 * tree-scalar-evolution.c (instantiate_scev_r): Return
3513 chrec_dont_know for ADDR_EXPR.
3514
3515 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
3516 H.J. Lu <hongjiu.lu@intel.com>
3517
3518 PR target/47369
3519 PR target/49853
3520 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
3521 if legitimize_tls_address returned operand in wrong mode. Allow
3522 SImode and DImode symbolic operand for PIC. Call convert_to_mode
3523 if legitimize_pic_address returned operand in wrong mode.
3524
3525 2011-07-26 Martin Jambor <mjambor@suse.cz>
3526
3527 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
3528 return false for invariants.
3529
3530 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
3531
3532 * config/i386/i386.md (add->lea splitter): Implement using SWI
3533 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
3534 (add->lea zext splitter): Change operand 2 predicate to
3535 x86_64_nonmemory_operand.
3536
3537 2011-07-26 Richard Guenther <rguenther@suse.de>
3538
3539 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
3540 frequency makes everything hot.
3541
3542 2011-07-26 Richard Guenther <rguenther@suse.de>
3543
3544 PR tree-optimization/49840
3545 * tree-vrp.c (range_fits_type_p): Properly handle full
3546 double-int precision.
3547
3548 2011-07-26 Martin Jambor <mjambor@suse.cz>
3549
3550 PR bootstrap/49786
3551 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
3552 counts.
3553 (update_specialized_profile): Likewise.
3554
3555 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
3556 H.J. Lu <hongjiu.lu@intel.com>
3557
3558 PR target/47381
3559 PR target/49832
3560 PR target/49833
3561 * config/i386/i386.md (i): Change SImode attribute to "e".
3562 (g): Change SImode attribute to "rme".
3563 (di): Change SImode attribute to "nF".
3564 (general_operand): Change SImode attribute to x86_64_general_operand.
3565 (general_szext_operand): Change SImode attribute to
3566 x86_64_szext_general_operand.
3567 (immediate_operand): Change SImode attribute to
3568 x86_64_immediate_operand.
3569 (nonmemory_operand): Change SImode attribute to
3570 x86_64_nonmemory_operand.
3571 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
3572 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
3573 (*lea_1): Use SWI48 mode iterator.
3574 (*lea_1_zext): New insn pattern.
3575 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
3576 (*bt<mode>): Ditto.
3577 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
3578 Update operand constraints.
3579 (addsi_1_zext): Ditto.
3580 (*add<mode>2): Ditto.
3581 (*addsi_3_zext): Ditto.
3582 (*subsi_1_zext): Ditto.
3583 (*subsi_2_zext): Ditto.
3584 (*subsi_3_zext): Ditto.
3585 (*addsi3_carry_zext): Ditto.
3586 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
3587 (*mulsi3_1_zext): Ditto.
3588 (*andsi_1): Ditto.
3589 (*andsi_1_zext): Ditto.
3590 (*andsi_2_zext): Ditto.
3591 (*<any_or:code>si_1_zext): Ditto.
3592 (*<any_or:code>si_2_zext): Ditto.
3593 (*test<mode>_1): Use <general_operand> predicate for operand 1.
3594 (*and<mode>_2): Ditto.
3595 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
3596 (add->lea splitter): Check operand modes in insn constraint. Extend
3597 operands less than SImode wide to SImode.
3598 (add->lea zext splitter): Do not extend input operands to DImode.
3599 (*lea_general_1): Handle only QImode and HImode operands.
3600 (*lea_general_2): Ditto.
3601 (*lea_general_3): Ditto.
3602 (*lea_general_1_zext): Remove.
3603 (*lea_general_2_zext): Ditto.
3604 (*lea_general_3_zext): Ditto.
3605 (*lea_general_4): Check operand modes in insn constraint. Extend
3606 operands less than SImode wide to SImode.
3607 (ashift->lea splitter): Ditto.
3608 * config/i386/i386.c (ix86_print_operand_address): Print address
3609 registers with 'q' modifier on 64bit targets.
3610 * config/i386/predicates.md (pic_32bit_opreand): Define as special
3611 predicate. Reject non-SI and non-DI modes.
3612
3613 2011-07-25 Andrew Pinski <apinski@cavium.com>
3614
3615 PR tree-opt/49671
3616 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
3617 TREE_THIS_NOTRAP into the inner most MEM_REF.
3618 Always copy TREE_THIS_VOLATILE.
3619 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
3620 arguments are not volatile references.
3621
3622 2011-07-25 Richard Henderson <rth@redhat.com>
3623
3624 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
3625 * final.c (final_scan_insn): Don't test for it.
3626 (rest_of_clean_state): Likewise.
3627
3628 2011-07-25 Richard Henderson <rth@redhat.com>
3629
3630 PR debug/49841
3631 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
3632 (emit_frame_save): Likewise.
3633 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
3634 insn onto a dummy blockage insn after the join label.
3635
3636 2011-07-25 Richard Henderson <rth@redhat.com>
3637
3638 * dwarf2cfi.c (dw_trace_info): Add ID member.
3639 (get_trace_index): Remove. Change users to use ID member.
3640 (before_next_cfi_note): New.
3641 (connect_traces): Remove unreachable traces before the main loop.
3642 Look across one trace and generate remember/restore_state if needed.
3643
3644 2011-07-25 Richard Henderson <rth@redhat.com>
3645
3646 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
3647
3648 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
3649
3650 * genattr.c (write_upcase, gen_attr <enum definition writing>):
3651 Move to ...
3652 * genattr-common.c ... here.
3653 (main): Call gen_attr.
3654 * optc-gen.awk: Make generated program include insn-attr-common.h .
3655 * Makefile.in (oprions.o): Depend on insn-attr-common.h
3656
3657 2011-07-25 Anatoly Sokolov <aesok@post.ru>
3658
3659 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3660 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
3661 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
3662 m32c_print_operand, m32c_print_operand_address): Remove.
3663 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
3664 Change return type to bool. Change argument type to bool.
3665 (m32c_print_operand, m32c_print_operand_address): Make static.
3666 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
3667 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3668
3669 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3670
3671 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
3672 attributes): Document mmap.
3673
3674 2011-07-25 Anatoly Sokolov <aesok@post.ru>
3675
3676 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3677 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
3678 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
3679 mmix_print_operand, mmix_print_operand_address): Remove.
3680 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
3681 Change return type to bool. Change argument type to bool.
3682 (mmix_print_operand, mmix_print_operand_address): Make static.
3683 (mmix_intval, mmix_output_condition): Change 'x' argument type
3684 to const_rtx.
3685 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
3686 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3687
3688 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
3689
3690 PR target/39386
3691 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
3692 shift counter for x << x and x >> x shifts.
3693
3694 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3695
3696 PR target/47124
3697 * config.gcc: Reject *-*-solaris2 configuration.
3698
3699 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
3700
3701 PR tree-optimization/49809
3702 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
3703 gimple_get_lhs instead of gimple_assign_lhs.
3704
3705 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3706
3707 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
3708
3709 2011-07-25 Richard Guenther <rguenther@suse.de>
3710
3711 PR tree-optimization/49822
3712 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
3713 more. Make sure to preserve stmts with side-effects. Properly
3714 handle virtual defs, follow a longer def chain.
3715
3716 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
3717
3718 PR plugins/45348
3719 PR plugins/48425
3720 PR plugins/46577
3721 * Makefile.in: Do not flatten c-family directory when installing
3722 plugin headers.
3723
3724 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
3725
3726 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
3727 original nodes if we are dealing with virtual clones.
3728
3729 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
3730
3731 * common/config/c6x/c6x-common.c: New file.
3732
3733 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
3734
3735 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
3736
3737 2011-07-25 Richard Guenther <rguenther@suse.de>
3738
3739 PR tree-optimization/49715
3740 * tree-vrp.c: Include expr.h and optabs.h.
3741 (range_fits_type_): New function.
3742 (simplify_float_conversion_using_ranges): Likewise.
3743 (simplify_stmt_using_ranges): Call it.
3744 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
3745 * optabs.c (can_float_p): Export.
3746 * optabs.h (can_float_p): Declare.
3747
3748 2011-07-25 Richard Guenther <rguenther@suse.de>
3749
3750 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
3751 (get_value_range): For out-of-range SSA names or names created
3752 after propagation return a read-only varying range.
3753 (dump_all_value_ranges): Adjust.
3754 (vrp_initialize): Likewise.
3755 (vrp_finalize): Likewise.
3756
3757 2011-07-24 Richard Henderson <rth@redhat.com>
3758
3759 PR debug/49831
3760 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
3761 them entirely.
3762
3763 2011-07-24 Richard Henderson <rth@redhat.com>
3764
3765 PR debug/49825
3766 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
3767 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
3768
3769 2011-07-24 Richard Henderson <rth@redhat.com>
3770
3771 PR debug/49827
3772 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
3773
3774 2011-07-24 Richard Henderson <rth@redhat.com>
3775
3776 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
3777 Zero args_size for abnormal edges. Adjust all callers.
3778
3779 2011-07-24 Richard Henderson <rth@redhat.com>
3780
3781 PR debug/49825
3782 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
3783
3784 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
3785
3786 PR bootstrap/49835
3787 * collect2.c (demangle_flag): Removed.
3788
3789 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
3790
3791 * configure.ac (demangler_in_ld): Default to yes.
3792 * configure: Regenerated.
3793 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
3794 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
3795 --no-demangle options straight through to ld. When
3796 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
3797 way that has the intended effect on Windows.
3798
3799 2011-07-23 Richard Henderson <rth@redhat.com>
3800
3801 * dwarf2cfi.c: Include basic-block.h.
3802 (dw_label_info): Remove.
3803 (trace_work_list, trace_index): New.
3804 (remember_row, emit_cfa_remember): Remove.
3805 (dw_trace_info_hash, dw_trace_info_eq): New.
3806 (get_trace_index, get_trace_info): New.
3807 (save_point_p): New.
3808 (free_cfi_row): Remove.
3809 (add_cfi): Do not emit DW_CFA_remember_state.
3810 (cfa_row_equal_p): New.
3811 (barrier_args_size): Remove.
3812 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
3813 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
3814 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
3815 (dwarf2out_cfi_begin_epilogue): Remove.
3816 (dwarf2out_frame_debug_restore_state): Remove.
3817 (connect_traces, create_pseudo_cfg): New.
3818 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
3819 * Makefile.in (dwarf2cfi.o): Update.
3820
3821 2011-07-23 Richard Henderson <rth@redhat.com>
3822
3823 * dwarf2cfi.c (dw_trace_info): New.
3824 (dw_label_info): New.
3825 (cie_return_save): New.
3826 (cur_trace): New.
3827 (queued_args_size): Rename from args_size. Update all users.
3828 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
3829 (def_cfa_1): Use cur_trace instead of cfa_*.
3830 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
3831 (clobbers_queued_reg_save, reg_saved_in): Likewise.
3832 (dwarf2out_frame_debug_expr): Likewise.
3833 (create_cie_data): Split out from ...
3834 (execute_dwarf2_frame): ... here. Initialize cur_trace.
3835
3836 2011-07-23 Richard Henderson <rth@redhat.com>
3837
3838 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
3839 Update all users to match.
3840 (execute_dwarf2_frame): Free reg_saved_in_data.
3841
3842 2011-07-23 Richard Henderson <rth@redhat.com>
3843
3844 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
3845 (queued_reg_saves): Don't GTY. Change to a VEC.
3846 (queue_reg_save): Update to match.
3847 (dwarf2out_flush_queued_reg_saves): Likewise.
3848 (clobbers_queued_reg_save): Likewise.
3849 (reg_saved_in): Likewise.
3850 (execute_dwarf2_frame): Free queued_reg_saves.
3851
3852 2011-07-23 Richard Henderson <rth@redhat.com>
3853
3854 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
3855
3856 2011-07-23 Richard Henderson <rth@redhat.com>
3857
3858 * dwarf2cfi.c (add_cfi_args_size): Split out from...
3859 (dwarf2out_args_size): ... here.
3860 (add_cfi_restore): Split out from ...
3861 (dwarf2out_frame_debug_cfa_restore): ... here.
3862 (def_cfa_0): Split out from ...
3863 (def_cfa_1): ... here.
3864 (cfi_oprnd_equal_p, cfi_equal_p): New.
3865 (change_cfi_row): New.
3866 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
3867 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
3868 (output_cfis): Remove.
3869 * dwarf2out.c (output_fde): Simplify output_cfi loop.
3870 (dwarf2out_switch_text_section): Don't call output_cfis.
3871 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
3872 * dwarf2out.h: Update decls.
3873 (enum dw_val_class): Add dw_val_class_none.
3874
3875 2011-07-23 Richard Henderson <rth@redhat.com>
3876
3877 * dwarf2cfi.c (update_row_reg_save): New.
3878 (dwarf2out_frame_debug_cfa_expression): Use it.
3879 (dwarf2out_frame_debug_cfa_restore): Likewise.
3880 (reg_save): Likewise. Do not emit DW_CFA_same_value.
3881
3882 2011-07-23 Richard Henderson <rth@redhat.com>
3883
3884 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
3885
3886 2011-07-23 Richard Henderson <rth@redhat.com>
3887
3888 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
3889 (cie_cfi_row): New.
3890 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
3891 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
3892 (cur_row, remember_row): New.
3893 (def_cfa_1): Use cur_row instead of the old_* variables.
3894 (dwarf2out_frame_debug_restore_state): Similarly.
3895 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
3896 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
3897 (dwarf2out_frame_debug_adjust_cfa): Likewise.
3898 (dwarf2out_frame_debug_cfa_offset): Likewise.
3899 (dwarf2out_frame_debug_expr): Likewise.
3900 (execute_dwarf2_frame): Set up cur_row.
3901 * dwarf2out.h (struct cfa_loc): Mark for GTY.
3902
3903 2011-07-23 Richard Henderson <rth@redhat.com>
3904
3905 * basic-block.h (EDGE_PRESERVE): New.
3906 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
3907 * bb-reorder.c: Include except.h.
3908 (fix_up_crossing_landing_pad): New.
3909 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
3910 landing pads in the right partition. Duplicate as necessary.
3911 (partition_hot_cold_basic_blocks): Fix up DF info after
3912 duplicating landing pads.
3913 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
3914 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
3915 is set properly. Validate that EH edges are not CROSSING.
3916 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
3917 (dw2_build_landing_pads): ... here.
3918 (convert_to_eh_region_ranges): Remove code to fixup crossing
3919 landing pads.
3920 * except.h (expand_dw2_landing_pad_for_region): Declare.
3921 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
3922
3923 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
3924
3925 PR target/49816
3926 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
3927
3928 2011-07-22 Jason Merrill <jason@redhat.com>
3929
3930 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
3931
3932 2011-07-22 Richard Henderson <rth@redhat.com>
3933
3934 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
3935
3936 2011-07-22 Richard Henderson <rth@redhat.com>
3937
3938 * jump.c (maybe_propagate_label_ref): Split out of...
3939 (mark_all_labels): ... here. Do not attempt label_ref
3940 propagation while in cfglayout mode.
3941
3942 2011-07-22 Jakub Jelinek <jakub@redhat.com>
3943
3944 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
3945 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
3946 (dwarf_attr_name): Handle DW_AT_GNU_macros.
3947 (dwarf2out_define): If the vector is empty and
3948 lineno is 0, emit a dummy entry first.
3949 (dwarf2out_undef): Likewise. Remove redundant semicolon.
3950 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
3951 optimize_macinfo_range): New functions.
3952 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
3953 mergeable, optimize longer strings using
3954 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
3955 optimize longer sequences of define/undef ops from headers
3956 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
3957 emit a section headers.
3958 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
3959 and macinfo_section_label to DEBUG_MACRO_SECTION
3960 resp. DEBUG_MACRO_SECTION_LABEL.
3961 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
3962 instead of DW_AT_macro_info.
3963
3964 PR other/32998
3965 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
3966 options.
3967 * dwarf2out.c: Include opts.h.
3968 (dchar_p): New typedef. Define heap VEC for it.
3969 (producer_string): New variable.
3970 (gen_producer_string): New function.
3971 (gen_compile_unit_die): Use it.
3972 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
3973 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
3974 * doc/invoke.texi: Document -grecord-gcc-switches and
3975 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
3976 to -frecord-gcc-switches description.
3977
3978 2011-07-22 Jason Merrill <jason@redhat.com>
3979
3980 PR c++/30112
3981 * c-decl.c (c_linkage_bindings): Define.
3982
3983 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
3984
3985 PR debug/49815
3986 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
3987
3988 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
3989
3990 * config/i386/i386.c (ix86_option_override_internal): Disallow
3991 MS ABI in x32 mode.
3992 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
3993 only for TARGET_LP64.
3994 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
3995
3996 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3997
3998 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
3999 avoid warnings when GCC is built with a C++ compiler.
4000
4001 2011-07-22 Martin Jambor <mjambor@suse.cz>
4002
4003 PR lto/49796
4004 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
4005 if decl node is in another partition, call cgraph_get_node only once.
4006
4007 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
4008
4009 * config.gcc (x86_64-*-linux*): Set
4010 default_gnu_indirect_function to yes.
4011
4012 2011-07-22 Richard Guenther <rguenther@suse.de>
4013
4014 PR tree-optimization/45819
4015 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
4016 preserve volatile and notrap flags.
4017
4018 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4019 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4020
4021 PR bootstrap/49794
4022 * configure.ac: Test AM_ICONV with CXX.
4023 * configure: Regenerate.
4024 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
4025
4026 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4027
4028 PR bootstrap/49797
4029 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
4030 (set_cloog_options): Use it.
4031
4032 2011-07-22 Jakub Jelinek <jakub@redhat.com>
4033
4034 PR c++/49756
4035 * gcc.c (main): Call stack_limit_increase (64MB).
4036 * toplev.c (toplev_main): Likewise.
4037
4038 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
4039
4040 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
4041 instead of force_reg.
4042
4043 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
4044
4045 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
4046 needed and use force_reg after convert.
4047 (ix86_expand_call): Likewise.
4048 (ix86_expand_special_args_builtin): Likewise.
4049 (ix86_expand_builtin): Likewise.
4050
4051 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4052
4053 PR middle-end/47654
4054 PR middle-end/49649
4055 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
4056 in parameter. Initialize v1 and v2 based on the values returned
4057 by clast_name_to_lb_ub.
4058 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
4059 values.
4060 (type_for_clast_bin): Same.
4061 (type_for_clast_expr): Same.
4062 (type_for_clast_eq): Update calls to type_for_clast_expr.
4063 (type_for_clast_for): Same.
4064 (build_iv_mapping): Same.
4065 * graphite-ppl.h (value_min): New.
4066
4067 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4068
4069 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
4070 types whenever possible.
4071
4072 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4073
4074 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
4075 and ub fields.
4076 (new_clast_name_index): Add lb and ub parameters.
4077 (free_clast_name_index): New.
4078 (clast_name_to_lb_ub): New.
4079 (save_clast_name_index): Add lb and ub parameters.
4080 (compute_bounds_for_param): New.
4081 (type_for_level): Removed.
4082 (type_for_clast_for): Removed level parameter. Do not call
4083 type_for_level.
4084 (graphite_create_new_loop): Store the lb and ub for the clast_name
4085 of the iterator of the loop that has been generated.
4086 (graphite_create_new_loop_guard): Remove parameter level.
4087 (create_params_index): Store the lb and ub of each parameter.
4088 (gloog): Use free_clast_name_index. Pass to create_params_index
4089 the current scop.
4090
4091 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4092
4093 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
4094 (max_precision_type): Inline max_signed_precision_type.
4095 (type_for_clast_red): Use max_precision_type.
4096 (type_for_clast_bin): Same.
4097 (type_for_clast_for): Same.
4098
4099 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4100
4101 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
4102 type_for_interval.
4103 (gcc_type_for_value): Renamed type_for_value.
4104 (gcc_type_for_clast_term): Renamed type_for_clast_term.
4105 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
4106 (gcc_type_for_clast_red): Renamed type_for_clast_red.
4107 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
4108 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
4109 (graphite_translate_clast_equation): Update calls.
4110 (compute_type_for_level): Renamed type_for_level.
4111 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
4112 (build_iv_mapping): Update calls.
4113 (graphite_create_new_loop_guard): Same.
4114
4115 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4116
4117 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
4118 comment.
4119
4120 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4121
4122 * graphite-clast-to-gimple.c (struct ivs_params): New.
4123 (clast_name_to_gcc): Use ivs_params to pass around parameters.
4124 (clast_to_gcc_expression): Same.
4125 (clast_to_gcc_expression_red): Same.
4126 (gcc_type_for_clast_term): Same.
4127 (gcc_type_for_clast_expr): Same.
4128 (gcc_type_for_clast_red): Same.
4129 (gcc_type_for_clast_bin): Same.
4130 (gcc_type_for_clast_eq): Same.
4131 (graphite_translate_clast_equation): Same.
4132 (graphite_create_guard_cond_expr): Same.
4133 (graphite_create_new_guard): Same.
4134 (graphite_create_new_loop): Same.
4135 (build_iv_mapping): Same.
4136 (translate_clast_user): Same.
4137 (graphite_create_new_loop_guard): Same.
4138 (translate_clast): Same.
4139 (translate_clast_for_loop): Same.
4140 (translate_clast_for): Same.
4141 (translate_clast_guard): Same.
4142 (initialize_cloog_names): Fix typo.
4143 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
4144
4145 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4146
4147 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
4148 (new_clast_name_index): Add level parameter.
4149 (clast_name_to_level): New.
4150 (save_clast_name_index): Add level parameter.
4151 (newivs_to_depth_to_newiv): Removed.
4152 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
4153 (graphite_create_new_loop): Add level parameter. Pass level to
4154 save_clast_name_index.
4155 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
4156 (create_params_index): Pass level to save_clast_name_index.
4157
4158 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4159
4160 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
4161 recompute type, lb, and ub. Get them from...
4162 (graphite_create_new_loop_guard): ...here. Pass in parameter
4163 pointers to type, lb, and ub.
4164 (translate_clast_for_loop): Update function calls.
4165 (translate_clast_for): Same.
4166
4167 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
4168
4169 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
4170 psct_dynamic_dim.
4171 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
4172 (gcc_type_for_iv_of_clast_loop): Update use of level.
4173 (gloog): Start counting nesting level from 0.
4174 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
4175 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
4176 psct_dynamic_dim on level.
4177
4178 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
4179
4180 * config/i386/i386.c (ix86_legitimize_address): Convert to
4181 Pmode if needed.
4182
4183 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
4184
4185 * config/i386/i386.c (function_value_64): Always return pointers
4186 in Pmode.
4187 (ix86_promote_function_mode): New.
4188 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
4189
4190 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4191
4192 PR tree-optimization/49749
4193 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
4194 remove no-longer-used maxrank variable.
4195
4196 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
4197
4198 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
4199
4200 2011-07-21 Jason Merrill <jason@redhat.com>
4201
4202 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
4203 * recog.h (struct insn_data_d): Check it instead of
4204 HAVE_DESIGNATED_INITIALIZERS.
4205 * genoutput.c (output_insn_data): Likewise.
4206
4207 2011-07-21 Richard Guenther <rguenther@suse.de>
4208
4209 PR tree-optimization/49770
4210 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
4211 valueized any operand. Renamed from ...
4212 (valueize_refs): ... this. New wrapper around valueize_refs_1.
4213 (valueize_shared_reference_ops_from_ref): Return whether we
4214 valueized any operand.
4215 (vn_reference_lookup): Only when we valueized any operand
4216 use the valueized reference for alias analysis. Do not preserve
4217 the original reference tree in this case.
4218
4219 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
4220
4221 * config/i386/i386.c (ix86_decompose_address): Reject all but
4222 register operands and subregs of DImode hard registers in index.
4223
4224 2011-07-21 Kai Tietz <ktietz@redhat.com>
4225
4226 * fold-const.c (fold_unary_loc): Preserve indirect
4227 comparison cast to none-boolean type.
4228 * tree-ssa.c (useless_type_conversion_p): Preserve cast
4229 from/to boolean-type.
4230 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
4231 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
4232 * tree-cfg.c (verify_gimple_comparison): Check result
4233 type of comparison expression.
4234 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
4235 of condition result and disallow type-cast sinking into comparison.
4236
4237 2011-07-21 Richard Guenther <rguenther@suse.de>
4238
4239 * tree-ssa-forwprop.c (combine_conversions): Return whether
4240 we have to run cfg-cleanup. Properly remove dead stmts.
4241 (ssa_forward_propagate_and_combine): Adjust.
4242
4243 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
4244
4245 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
4246
4247 2011-07-21 Kai Tietz <ktietz@redhat.com>
4248
4249 * tree-ssa-propagate.c (substitute_and_fold): Use
4250 do_dce flag to deside, if BB's statements are scanned
4251 in last to first, or first to last order.
4252
4253 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
4254
4255 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
4256
4257 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
4258 Uros Bizjak <ubizjak@gmail.com>
4259 Richard Henderson <rth@redhat.com>
4260
4261 * config/i386/constraints.md (w): New.
4262
4263 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
4264 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
4265
4266 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
4267 instead of TARGET_64BIT.
4268
4269 * config/i386/i386.md (indirect_jump): Replace
4270 nonimmediate_operand with indirect_branch_operand.
4271 (*indirect_jump): Likewise. Replace constraint "m" with "w".
4272 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
4273 Convert operand 0 to Pmode for x32 if not PIC.
4274 (*tablejump_1): Replace nonimmediate_operand with
4275 indirect_branch_operand. Replace constraint "m" with "w".
4276 (*call_vzeroupper): Replace constraint "m" with "w".
4277 (*call): Likewise.
4278 (*call_rex64_ms_sysv_vzeroupper): Likewise.
4279 (*call_rex64_ms_sysv): Likewise.
4280 (*call_value_vzeroupper): Likewise.
4281 (*call_value): Likewise.
4282 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
4283 (*call_value_rex64_ms_sysv): Likewise.
4284 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
4285
4286 * config/i386/predicates.md (indirect_branch_operand): New.
4287 (call_insn_operand): Support x32.
4288
4289 2011-07-20 Michael Eager <eager@eagercon.com>
4290
4291 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
4292
4293 2011-07-20 Richard Henderson <rth@redhat.com>
4294
4295 * cfg.c (dump_bb_info): Dump basic_block->flags.
4296 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
4297
4298 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
4299
4300 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
4301 of DImode hard registers in index.
4302 (ix86_legitimate_address_p): Allow subregs of base and index to span
4303 more than a word. Assert that subregs of base and index satisfy
4304 register_no_elim_operand predicates. Reject addresses where
4305 base and index have different modes.
4306
4307 2011-07-20 Robert Millan <rmh@gnu.org>
4308
4309 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
4310
4311 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4312
4313 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
4314 removing now-unnecessary assignment.
4315
4316 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4317
4318 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
4319 memory address space to the type's address space.
4320
4321 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
4322
4323 PR target/36467
4324 PR target/49687
4325 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
4326 and expand appropriately if there is a CONST_INT in operand2.
4327 (usmulqihi3): New insn.
4328 (*sumulqihi3): New insn.
4329 (*osmulqihi3): New insn.
4330 (*oumulqihi3): New insn.
4331 (*muluqihi3.uconst): New insn_and_split.
4332 (*muluqihi3.sconst): New insn_and_split.
4333 (*mulsqihi3.sconst): New insn_and_split.
4334 (*mulsqihi3.uconst): New insn_and_split.
4335 (*mulsqihi3.oconst): New insn_and_split.
4336 (*ashifthi3.signx.const): New insn_and_split.
4337 (*ashifthi3.signx.const7): New insn_and_split.
4338 (*ashifthi3.zerox.const): New insn_and_split.
4339 (mulsqihi3): New insn.
4340 (muluqihi3): New insn.
4341 (muloqihi3): New insn.
4342 * config/avr/predicates.md (const_2_to_7_operand): New.
4343 (const_2_to_6_operand): New.
4344 (u8_operand): New.
4345 (s8_operand): New.
4346 (o8_operand): New.
4347 (s9_operand): New.
4348 (register_or_s9_operand): New.
4349
4350 2011-07-20 Kai Tietz <ktietz@redhat.com>
4351
4352 * builtins.c (fold_builtin_expect): See through the cast
4353 from truthvalue_type_node to long.
4354
4355 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
4356
4357 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
4358 where we can use them from the standard and altivec instruction
4359 sets, instead of always using the 3 operand VSX forms that require
4360 the destination to overlap one of the inputs.
4361 (vsx_fms*): Ditto.
4362 (vsx_fnma*): Ditto.
4363 (vsx_fnms*): Ditto.
4364
4365 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
4366 for DF types.
4367 (fmsdf4_fpr): Ditto.
4368 (nfmadf4_fpr): Ditto.
4369 (nfmsdf4_fpr): Ditto.
4370
4371 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
4372
4373 * genrecog.c (make_insn_sequence): Correct position numbering
4374 when filtering out match_scratch and match_dup.
4375
4376 2011-07-20 Richard Guenther <rguenther@suse.de>
4377
4378 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
4379 against already removed statements.
4380 (forward_propagate_into_comparison): Remove dead defining stmts.
4381 (forward_propagate_into_gimple_cond): Likewise.
4382 (forward_propagate_into_cond): Simplify.
4383 (ssa_forward_propagate_and_combine): Handle changed cfg from
4384 forward_propagate_into_comparison.
4385 * tree-ssa-phiopt.c (conditional_replacement): Use proper
4386 locations for newly built statements.
4387
4388 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
4389
4390 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
4391
4392 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4393
4394 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
4395 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
4396
4397 2011-07-20 Richard Guenther <rguenther@suse.de>
4398
4399 PR middle-end/18908
4400 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
4401 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
4402 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
4403
4404 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
4405
4406 * config/frv/frv.c (frv_register_move_cost): Define explicitly
4407 costs for subclasses of GR_REGS.
4408
4409 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
4410
4411 PR target/49780
4412 * config/i386/predicates.md (no_seg_addres_operand): No more special.
4413 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
4414 of DImode hard registers in base.
4415 (ix86_legitimate_address_p): Allow SImode and DImode base and index
4416 registers.
4417
4418 2011-07-20 Richard Guenther <rguenther@suse.de>
4419
4420 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
4421 (unify_nodes): Deal with that.
4422 (solve_graph): Likewise.
4423
4424 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
4425
4426 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
4427 canonicalize left operand from ZERO_EXTEND to AND.
4428
4429 2011-07-20 Anatoly Sokolov <aesok@post.ru>
4430
4431 * target.def (class_max_nregs): New hook.
4432 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
4433 * doc/tm.texi: Regenerate.
4434 * targhooks.c (default_class_max_nregs): New function.
4435 * targhooks.h (default_class_max_nregs): Declare.
4436 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
4437 x_ira_reg_class_min_nregs arrays to unsigned char.
4438 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
4439 hook instead of CLASS_MAX_NREGS macro.
4440 * reginfo.c (restore_register_info): Ditto.
4441 * ira-conflicts.c (process_regs_for_copy): Use
4442 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
4443 Change type rclass and aclass vars to reg_class_t.
4444 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
4445 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
4446 reg_class_t.
4447 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
4448 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
4449
4450 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
4451 * config/i386/i386.c (ix86_class_max_nregs): New function.
4452 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
4453 instead of CLASS_MAX_NREGS macro.
4454 (TARGET_CLASS_MAX_NREGS): Define.
4455 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
4456 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
4457 * config/avr/avr.c (class_max_nregs): Remove function.
4458 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
4459 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
4460 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
4461 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
4462 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
4463 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
4464 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
4465 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
4466 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
4467 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
4468 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
4469 * config/score/score.h (CLASS_MAX_NREGS): Remove.
4470 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
4471 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
4472 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
4473
4474 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
4475
4476 * cif-code.def (OVERWRITABLE): Fix typo and move around.
4477 (TARGET_OPTIMIZATION_MISMATCH): Delete.
4478 (EH_PERSONALITY): Fix typo.
4479 (NON_CALL_EXCEPTIONS): Fix message.
4480 (OPTIMIZATION_MISMATCH): Adjust message.
4481 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
4482
4483 2011-07-19 Ian Lance Taylor <iant@google.com>
4484
4485 * doc/install.texi (Configuration): Document
4486 --enable-build-poststage1-with-cxx.
4487
4488 2011-07-19 Robert Millan <rmh@gnu.org>
4489
4490 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
4491 (GLIBC_DYNAMIC_LINKER): Remove.
4492
4493 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
4494 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
4495 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
4496 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
4497 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
4498 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
4499
4500 * config/mips/linux.h: Remove everything except for ...
4501 (GLIBC_DYNAMIC_LINKER): ... this macro.
4502
4503 * config/mips/linux64.h: Remove everything except for ...
4504 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
4505 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
4506 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
4507 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
4508 (GNU_USER_LINK_EMULATIONN32): New macros.
4509
4510 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
4511 Use the new headers.
4512
4513 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4514
4515 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
4516 Add offset_known_p and size_known_p fields.
4517 (MEM_OFFSET_KNOWN_P): Update accordingly.
4518 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
4519 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
4520 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
4521 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
4522 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
4523 (init_emit_regs): Likewise.
4524
4525 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4526
4527 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
4528 (MEM_OFFSET): Change from returning an rtx to returning a
4529 HOST_WIDE_INT.
4530 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
4531 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
4532 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
4533 (clear_mem_offset): Declare.
4534 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
4535 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
4536 MEM_OFFSET to get a HOST_WIDE_INT offset.
4537 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
4538 (adjust_offset_for_component_ref): Take a bool "known_p"
4539 parameter and a HOST_WIDE_INT "offset" parameter.
4540 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
4541 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
4542 than an rtx. Use clear_mem_offset to clear the offset.
4543 * cfgcleanup.c (merge_memattrs): Likewise.
4544 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
4545 * function.c (assign_parm_find_stack_rtl): Likewise.
4546 (assign_parm_setup_stack): Likewise.
4547 * print-rtl.c (print_rtx): Likewise.
4548 * reload.c (find_reloads_subreg_address): Likewise.
4549 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4550 * var-tracking.c (INT_MEM_OFFSET): Likewise.
4551 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
4552 (get_mem_align_offset): Likewise.
4553 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
4554 (clear_mem_offset): New function.
4555 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
4556 offset rather than an rtx. Assume both the expressio and offset
4557 are available.
4558 (r10k_needs_protection_p_1): Update accordingly, checking the
4559 expression and offset availability here instead.
4560
4561 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4562
4563 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
4564 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
4565 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
4566 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
4567 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
4568 (clear_mem_size): Declare.
4569 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
4570 (clear_mem_size): New function.
4571 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
4572 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
4573 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
4574 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
4575 to clear the size.
4576 (nonoverlapping_memrefs_p): Likewise.
4577 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
4578 (expand_builtin_init_trampoline): Likewise.
4579 * calls.c (compute_argument_addresses): Likewise.
4580 * cfgcleanup.c (merge_memattrs): Likewise.
4581 * dce.c (find_call_stack_args): Likewise.
4582 * dse.c (record_store, scan_insn): Likewise.
4583 * dwarf2out.c (dw_sra_loc_expr): Likewise.
4584 * expr.c (emit_block_move_hints): Likewise.
4585 * function.c (assign_parm_find_stack_rtl): Likewise.
4586 * print-rtl.c (print_rtx): Likewise.
4587 * reload.c (find_reloads_subreg_address): Likewise.
4588 * rtlanal.c (may_trap_p_1): Likewise.
4589 * var-tracking.c (track_expr_p): Likewise.
4590 * varasm.c (assemble_trampoline_template): Likewise.
4591 * config/arm/arm.c (arm_print_operand): Likewise.
4592 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
4593 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
4594 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
4595 (expand_constant_setmem_prologue): Likewise.
4596 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
4597 * config/rs6000/rs6000.c (expand_block_move): Likewise.
4598 (adjacent_mem_locations): Likewise.
4599 * config/s390/s390.c (s390_expand_setmem): Likewise.
4600 (s390_expand_insv): Likewise.
4601 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
4602 (*extendqi<mode>2_short_displ): Likewise.
4603 * config/sh/sh.c (expand_block_move): Likewise.
4604 * config/sh/sh.md (extv, extzv): Likewise.
4605
4606 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4607
4608 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
4609 (mem_attrs_htab_eq): ...here.
4610 (find_mem_attrs): Replace with...
4611 (set_mem_attrs): ...this function. Take a mem_attrs structure
4612 rather than individual fields.
4613 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
4614 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
4615 (set_mem_size, change_address, adjust_address_1, offset_address)
4616 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
4617 Update accordingly.
4618
4619 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4620
4621 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
4622 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
4623 Provide a dummy definition of MEM_ADDR_SPACE for generators.
4624 (target_rtl): Add x_mode_mem_attrs.
4625 (mode_mem_attrs): New macro.
4626 (get_mem_attrs): New function.
4627 * emit-rtl.c (get_mem_attrs): Rename to...
4628 (find_mem_attrs): ...this.
4629 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
4630 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
4631 (set_mem_size, change_address, adjust_address_1, offset_address)
4632 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
4633 Update accordingly.
4634 (init_emit_regs): Initialize mode_mem_attrs.
4635
4636 2011-07-19 Richard Guenther <rguenther@suse.de>
4637
4638 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
4639 TRUTH_*_EXPR handling.
4640 * tree-ssa-operands.c (get_expr_operands): Likewise.
4641 * tree-ssa-pre.c (fully_constant_expression): Likewise.
4642 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
4643 Likewise.
4644 (is_and_or_or): Likewise.
4645 (is_norm_cond_subset_of): Likewise.
4646
4647 2011-07-19 Richard Guenther <rguenther@suse.de>
4648
4649 * tree.h (fold_build_pointer_plus_loc): New helper function.
4650 (fold_build_pointer_plus_hwi_loc): Likewise.
4651 (fold_build_pointer_plus): Define.
4652 (fold_build_pointer_plus_hwi): Likewise.
4653 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
4654 (fold_builtin_memory_op): Likewise.
4655 (fold_builtin_stpcpy): Likewise.
4656 (fold_builtin_memchr): Likewise.
4657 (fold_builtin_strstr): Likewise.
4658 (fold_builtin_strchr): Likewise.
4659 (fold_builtin_strrchr): Likewise.
4660 (fold_builtin_strpbrk): Likewise.
4661 (fold_builtin_strcat): Likewise.
4662 (expand_builtin_memory_chk): Likewise.
4663 (fold_builtin_memory_chk): Likewise.
4664 * c-typeck.c (build_unary_op): Likewise.
4665 * cgraphunit.c (thunk_adjust): Likewise.
4666 * fold-const.c (build_range_check): Likewise.
4667 (fold_binary_loc): Likewise.
4668 * omp-low.c (extract_omp_for_data): Likewise.
4669 (expand_omp_for_generic): Likewise.
4670 (expand_omp_for_static_nochunk): Likewise.
4671 (expand_omp_for_static_chunk): Likewise.
4672 * tree-affine.c (add_elt_to_tree): Likewise.
4673 * tree-data-ref.c (split_constant_offset_1): Likewise.
4674 * tree-loop-distribution.c (generate_memset_zero): Likewise.
4675 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
4676 * tree-predcom.c (ref_at_iteration): Likewise.
4677 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4678 (add_to_parts): Likewise.
4679 (create_mem_ref): Likewise.
4680 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
4681 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
4682 (number_of_iterations_le): Likewise.
4683 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
4684 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4685 (vect_create_addr_base_for_vector_ref): Likewise.
4686 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
4687 (vect_create_cond_for_alias_checks): Likewise.
4688 * tree-vrp.c (extract_range_from_assert): Likewise.
4689 * config/alpha/alpha.c (alpha_va_start): Likewise.
4690 (alpha_gimplify_va_arg_1): Likewise.
4691 * config/i386/i386.c (ix86_va_start): Likewise.
4692 (ix86_gimplify_va_arg): Likewise.
4693 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
4694 * config/mep/mep.c (mep_expand_va_start): Likewise.
4695 (mep_gimplify_va_arg_expr): Likewise.
4696 * config/mips/mips.c (mips_va_start): Likewise.
4697 (mips_gimplify_va_arg_expr): Likewise.
4698 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
4699 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
4700 (rs6000_gimplify_va_arg): Likewise.
4701 * config/s390/s390.c (s390_va_start): Likewise.
4702 (s390_gimplify_va_arg): Likewise.
4703 * config/sh/sh.c (sh_va_start): Likewise.
4704 (sh_gimplify_va_arg_expr): Likewise.
4705 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
4706 * config/spu/spu.c (spu_va_start): Likewise.
4707 (spu_gimplify_va_arg_expr): Likewise.
4708 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
4709 Likewise.
4710 (xstormy16_gimplify_va_arg_expr): Likewise.
4711 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
4712 (xtensa_gimplify_va_arg_expr): Likewise.
4713
4714 2011-07-19 Richard Guenther <rguenther@suse.de>
4715
4716 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
4717 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
4718 handling.
4719
4720 PR middle-end/18908
4721 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
4722 result of BIT_*_EXPR to bitfield precision.
4723
4724 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
4725
4726 PR tree-optimization/49742
4727 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
4728 as a potential write.
4729
4730 2011-07-19 Richard Guenther <rguenther@suse.de>
4731
4732 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
4733 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
4734 (forward_propagate_comparison): Simplify, remove obsolete code.
4735
4736 2011-07-19 Richard Guenther <rguenther@suse.de>
4737
4738 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
4739 BIT_XOR_EXPR, same as the RTL expander does.
4740 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
4741 (verify_gimple_assign_unary): Likewise.
4742 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
4743 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
4744 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
4745
4746 2011-07-19 Jakub Jelinek <jakub@redhat.com>
4747
4748 PR tree-optimization/49768
4749 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
4750 if offset is smaller than bitoffset, but offset+size is bigger
4751 than bitoffset.
4752
4753 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
4754
4755 PR tree-optimization/49771
4756 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
4757 zero step, set segment length to the size of the data-ref's type.
4758
4759 2011-07-18 Martin Jambor <mjambor@suse.cz>
4760
4761 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
4762 comments.
4763 (ipcp_values_pool): Declare.
4764 (ipcp_sources_pool): Likewise.
4765 (ipcp_lattice): Changed to forward declaration.
4766 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
4767 cannot_devirtualize.
4768 (ipa_node_params): New fields descriptors, lattices, known_vals,
4769 clone_for_all_contexts and node dead, removed fields params and
4770 count_scale.
4771 (ipa_set_param_count): Removed.
4772 (ipa_get_param_count): Made to work with descriptors vector.
4773 (ipa_get_param): Updated.
4774 (ipa_param_cannot_devirtualize_p): Removed.
4775 (ipa_param_types_vec_empty): Likewise.
4776 (ipa_set_param_used): New function.
4777 (ipa_get_param_used): Updated to use descriptors vector.
4778 (ipa_func_list): Removed.
4779 (ipa_init_func_list): Removed declaration.
4780 (ipa_push_func_to_list_1): Likewise.
4781 (ipa_pop_func_from_list): Likewise.
4782 (ipa_push_func_to_list): Removed.
4783 (ipa_lattice_from_jfunc): Remove declaration.
4784 (ipa_get_jf_pass_through_result): Declare.
4785 (ipa_get_jf_ancestor_result): Likewise.
4786 (ipa_value_from_jfunc): Likewise.
4787 (ipa_get_lattice): Update.
4788 (ipa_lat_is_single_const): New function.
4789 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
4790 (ipa_init_func_list): Likewise.
4791 (ipa_pop_func_from_list): Likewise.
4792 (ipa_get_param_decl_index): Fix coding style.
4793 (count_formal_params): Removed.
4794 (count_formal_params_1): Renamed to count_formal_params.
4795 (ipa_populate_param_decls): Update to use descriptors vector.
4796 (ipa_initialize_node_params): Likewise.
4797 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
4798 (ipa_analyze_params_uses): Likewise.
4799 (ipa_free_node_params_substructures): Likewise and free also lattices
4800 and known values.
4801 (duplicate_array): Removed.
4802 (ipa_edge_duplication_hook): Add the new edge to the list of edge
4803 clones.
4804 (ipa_node_duplication_hook): Update to use new lattices.
4805 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
4806 (ipa_free_all_structures_after_iinln): Likewise.
4807 (ipa_write_node_info): Update to use new lattices.
4808 (ipa_read_node_info): Likewise.
4809 (ipa_get_jf_pass_through_result): New function.
4810 (ipa_get_jf_ancestor_result): Likewise.
4811 (ipa_value_from_jfunc): Likewise.
4812 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
4813 * ipa-cp.c: Reimplemented.
4814 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
4815 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
4816 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
4817 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
4818 * doc/invoke.texi (devirt-type-list-size): Removed description.
4819 (ipa-cp-value-list-size): Added description.
4820
4821 2011-07-18 Richard Henderson <rth@redhat.com>
4822
4823 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
4824 before calling create_basic_block.
4825
4826 2011-07-18 Jakub Jelinek <jakub@redhat.com>
4827
4828 PR middle-end/49675
4829 * tree.c (build_common_builtin_nodes): Register
4830 __builtin_return_address, __cyg_profile_func_enter
4831 and __cyg_profile_func_exit.
4832
4833 2011-07-18 Richard Henderson <rth@redhat.com>
4834
4835 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
4836 (add_labels_and_missing_jumps): ... here.
4837 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
4838
4839 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
4840
4841 PR target/47744
4842 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
4843 of DImode hard registers in PLUS address chains.
4844
4845 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4846
4847 PR bootstrap/49769
4848 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
4849 (alpha*-*-freebsd*): Likewise.
4850 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
4851 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
4852 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
4853 crtprec80.o, crtfastmath.o to extra_parts for all targets.
4854 (ia64*-*-elf*): Remove extra_parts.
4855 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
4856 (sparc64-*-linux*): Likewise.
4857 (sparc64-*-freebsd*): Likewise.
4858
4859 Revert:
4860 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
4861 (ia64*-*-linux*): Likewise.
4862 (mips64*-*-linux*): Likewise.
4863 (mips*-*-linux*): Likewise.
4864
4865 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
4866
4867 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
4868
4869 2011-07-18 Richard Guenther <rguenther@suse.de>
4870
4871 * gimplify.c (gimplify_expr): Use input_location, not saved_location
4872 when building new trees.
4873
4874 2011-07-18 Richard Guenther <rguenther@suse.de>
4875
4876 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
4877 expansion result to bitfield precision if required.
4878
4879 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4880
4881 * config.gcc (i[3456x]86-*-netware*): Remove.
4882
4883 * gthr-nks.h: Remove.
4884 * configure.ac (enable_threads): Remove nks.
4885 * configure: Regenerate.
4886
4887 * config/i386/i386.c (ix86_encode_section_info): Remove netware
4888 reference.
4889 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
4890 <netware.h> reference.
4891
4892 * config/i386/netware-libgcc.c,
4893 gcc/config/i386/netware-libgcc.def,
4894 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
4895 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
4896 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
4897 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
4898
4899 * doc/extend.texi (Function Attributes,
4900 callee_pop_aggregate_return): Remove i?86-netware reference.
4901 * doc/install.texi (Configuration, --enable-threads): Remove nks.
4902
4903 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4904
4905 PR target/49746
4906 Revert:
4907 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4908
4909 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
4910 patterns.
4911
4912 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
4913
4914 PR middle-end/49732
4915 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
4916
4917 2011-07-16 Matthias Klose <doko@ubuntu.com>
4918
4919 * doc/install.texi: Document --enable-static-libjava.
4920
4921 2011-07-15 Richard Henderson <rth@redhat.com>
4922
4923 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4924 Replace all three arguments by returning a VEC of edges.
4925 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
4926 pointers and counts.
4927 (fix_edges_for_rarely_executed_code): Merge ...
4928 (rest_of_handle_partition_blocks): ... into...
4929 (partition_hot_cold_basic_blocks): ... here. Return todo items if
4930 any work was performed.
4931 (pass_partition_blocks): Clear todo_flags_finish.
4932
4933 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
4934 Jakub Jelinek <jakub@redhat.com>
4935 Jonathan Wakely <jwakely.gcc@gmail.com>
4936
4937 PR libstdc++/49745
4938 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
4939 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
4940
4941 2011-07-15 Jason Merrill <jason@redhat.com>
4942
4943 PR testsuite/49741
4944 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
4945 rather than --tool_opts.
4946
4947 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
4948
4949 * doc/plugins.texi (Building GCC plugins): gengtype needs its
4950 corresponding gtype.state.
4951
4952 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4953
4954 PR target/49723
4955 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
4956
4957 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
4958
4959 PR target/48220
4960 * doc/md.texi (Standard Names): Document window_save.
4961 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
4962 expand_debug_expr and expand_debug_source_expr. If the target has
4963 a window_save instruction, adjust the ENTRY_VALUE_EXP.
4964 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
4965 SSA_NAME_VAR is a parameter.
4966 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
4967 * var-tracking.c (parm_reg_t): New type and associated vector type.
4968 (windowed_parm_regs): New variable.
4969 (adjust_insn): If the target has a window_save instruction and this
4970 is the instruction, make its effect on parameter registers explicit.
4971 (next_non_note_insn_var_location): New function.
4972 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
4973 (vt_add_function_parameter): If the target has a window_save insn,
4974 adjust the incoming RTL and record that in windowed_parm_regs.
4975 (vt_finalize): Free windowed_parm_regs.
4976
4977 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
4978
4979 * doc/invoke.texi (C6X Options): New section.
4980 * doc/md.texi (TI C6X family): New section.
4981 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
4982 tic6x-*-uclinux.
4983 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
4984 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
4985 Provide C6X definitions.
4986 * config/c6x/c6x.md: New file.
4987 * config/c6x/constraints.md: New file.
4988 * config/c6x/predicates.md: New file.
4989 * config/c6x/c6x-sched.md.in: New file.
4990 * config/c6x/c6x-sched.md: New file.
4991 * config/c6x/gensched.sh: New file.
4992 * config/c6x/c6x-mult.md.in: New file.
4993 * config/c6x/genmult.sh: New file.
4994 * config/c6x/c6x-mult.md: New file.
4995 * config/c6x/sync.md: New file.
4996 * config/c6x/c6x-protos.h: New file.
4997 * config/c6x/sfp-machine.h: New file.
4998 * config/c6x/c6x.c: New file.
4999 * config/c6x/c6x.h: New file.
5000 * config/c6x/crti.s: New file.
5001 * config/c6x/crtn.s: New file.
5002 * config/c6x/lib1funcs.asm: New file.
5003 * config/c6x/c6x-modes.def: New file.
5004 * config/c6x/genopt.sh: New file.
5005 * config/c6x/c6x.opt: New file.
5006 * config/c6x/c6x-tables.opt: New file.
5007 * config/c6x/c6x-opts.h: New file.
5008 * config/c6x/c6x-isas.def: New file.
5009 * config/c6x/elf.h: New file.
5010 * config/c6x/elf-common.h: New file.
5011 * config/c6x/uclinux-elf.h: New file.
5012 * config/c6x/t-c6x: New file.
5013 * config/c6x/t-c6x-elf: New file.
5014 * config/c6x/t-c6x-uclinux: New file.
5015 * config/c6x/t-c6x-softfp: New file.
5016 * config/c6x/gtd.c: New file.
5017 * config/c6x/gtf.c: New file.
5018 * config/c6x/ltd.c: New file.
5019 * config/c6x/ltf.c: New file.
5020 * config/c6x/ged.c: New file.
5021 * config/c6x/gef.c: New file.
5022 * config/c6x/led.c: New file.
5023 * config/c6x/lef.c: New file.
5024 * config/c6x/eqd.c: New file.
5025 * config/c6x/eqf.c: New file.
5026 * config/c6x/libgcc-c6xeabi.ver: New file.
5027
5028 Revert
5029 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
5030 PR rtl-optimization/11320
5031 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
5032 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
5033 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
5034 current_sched_info->compute_jump_reg_dependencies. Record which
5035 registers are used and which registers are set by the jump.
5036 Clear deps->reg_conditional_sets after a barrier.
5037 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
5038 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
5039 (init_deps): Initialize reg_conditional_sets.
5040 (free_deps): Clear reg_conditional_sets.
5041 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
5042 Mark registers live on entry of the fallthrough block and conditionally
5043 set as set by the jump. Mark registers live on entry of non-fallthrough
5044 blocks as used by the jump.
5045 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
5046 Mark new parameters as unused.
5047
5048 2011-07-14 Andrew Pinski <pinskia@gmail.com>
5049
5050 PR tree-opt/49309
5051 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
5052 Use fold_build2_loc instead of build2.
5053 Use the correct type for the new tree.
5054
5055 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
5056
5057 PR rtl-optimization/11320
5058 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
5059 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
5060
5061 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
5062
5063 PR target/49487
5064 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
5065 of REG.
5066 (*rotw<mode>): Use const_int_operand for operand2.
5067 Use match_scatch for operand3.
5068 (*rotb<mode>): Ditto
5069 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
5070
5071 2011-07-14 Richard Guenther <rguenther@suse.de>
5072
5073 PR tree-optimization/49651
5074 * tree-ssa-structalias.c (get_constraint_for_1): Properly
5075 handle dereferences with subvariables.
5076
5077 2011-07-14 Richard Guenther <rguenther@suse.de>
5078
5079 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
5080 (fold_stmt_1): Do it here directly on gimple and as a first thing.
5081
5082 2011-07-14 Richard Guenther <rguenther@suse.de>
5083
5084 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
5085 not bool_var when folding bool_var != 1 or bool_var == 0.
5086
5087 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
5088
5089 * haifa-sched.c (schedule_insns): Remove outdated comment.
5090 (schedule_block): When computing a known value for TODO_SPEC,
5091 just set it rather than using logical operations.
5092 (try_ready): Likewise. Use a local variable rather than a
5093 pointer to TODO_SPEC. Reorder an if statement to move the
5094 easy case to the then block.
5095 * sched-deps.c (dep_spec_p): New static function.
5096 (update_dep): Use it to decide whether to call
5097 change_spec_dep_to_hard.
5098 (get_back_and_forw_lists): Use it.
5099 (sd_resolve_dep): Likewise.
5100 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
5101 (haifa_note_mem_dep): Likewise.
5102 (check_dep): Likewise.
5103 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
5104 (sched_free_deps): Free in two passes.
5105
5106 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
5107
5108 PR middle-end/49736
5109 * expr.c (all_zeros_p): Undo bogus part of last change.
5110
5111 2011-07-14 Matthias Klose <doko@ubuntu.com>
5112
5113 * doc/extend.texi (optimize attribute): Fix typo.
5114
5115 2011-07-14 Richard Guenther <rguenther@suse.de>
5116
5117 * gimplify.c (gimplify_expr): Only do required conversions.
5118
5119 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
5120
5121 PR target/43746
5122 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
5123 i.e. use default_elf_select_section.
5124 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
5125 (READONLY_DATA_SECTION_ASM_OP): Remove.
5126 (TARGET_ASM_NAMED_SECTION): Move from here...
5127 * config/avr/avr.c: ...to here.
5128 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
5129 (avr_asm_named_section): Make static.
5130
5131 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5132
5133 PR bootstrap/49739
5134 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
5135 and crtfastmath.o for Linux/x86.
5136
5137 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
5138
5139 * haifa-sched.c: Include "hashtab.h"
5140 (sched_no_dce): New global variable.
5141 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
5142 SHADOW_P): New macros.
5143 (last_clock_var, cycle_issued_insns): Move declarations.
5144 (must_backtrack): New static variable.
5145 (struct delay_pair): New structure.
5146 (delay_htab, delay_htab_i2): New static variables.
5147 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
5148 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
5149 functions.
5150 (dep_cost_1): If delay pairs exist, try to look up the insns and
5151 use the correct pair delay if we find them.
5152 (rank-for_schedule): Tweak priority for insns that must be scheduled
5153 soon to avoid backtracking.
5154 (queue_insn): Detect conditions which force backtracking.
5155 (ready_add): Likewise.
5156 (struct sched_block_state): Add member shadows_only_p.
5157 (struct haifa_save_data): New structure.
5158 (backtrack_queue): New static variable.
5159 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
5160 unschedule_insns_until, restore_last_backtrack_point,
5161 free_topmost_backtrack_point, free_backtrack_queue,
5162 estimate_insn_tick, estimate_shadow_tick): New functions.
5163 (prune_ready_list): New arg shadows_only_p. All callers changed.
5164 If true, remove everything that isn't SHADOW_P. Look up delay
5165 pairs and estimate ticks to avoid scheduling the first insn too early.
5166 (verify_shadows): New function.
5167 (schedule_block): Add machinery to enable backtracking.
5168 (sched_init): Take sched_no_dce into account when setting
5169 DF_LR_RUN_DCE.
5170 (free_delay_pairs): New function.
5171 (init_h_i_d): Initialize INSN_EXACT_TICK.
5172 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
5173 * sched-deps.c (sd_unresolve_dep): New function.
5174 * sched-int. (struct haifa_sched_info): New fields save_state
5175 and restore_state.
5176 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
5177 feeds_backtrack_insn and shadow_p.
5178 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
5179 (sched_no_dce): Declare variable.
5180 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
5181 sd_unresolve_dep): Declare functions.
5182 * modulo-sched.c (sms_sched_info): Clear the two new fields.
5183 * sched-rgn.c (rgn_const_sched_info): Likewise.
5184 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5185 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
5186 (ebb_sched_info): Add them for the two new fields.
5187 (add_deps_for_risky_insns): Call add_delay_dependencies.
5188
5189 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
5190
5191 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
5192 Rename -mr11.
5193 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
5194 (rs6000_call_indirect_aix): Ditto.
5195 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
5196 (call_indirect_aix<ptrsize>_internal): Ditto.
5197 (call_indirect_aix<ptrsize>_nor11): Ditto.
5198 (call_indirect_aix<ptrsize>_internal2): Ditto.
5199 (call_value_indirect_aix<ptrsize>): Ditto.
5200 (call_value_indirect_aix<ptrsize>_internal): Ditto.
5201 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
5202 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
5203 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
5204
5205 2011-07-13 Jason Merrill <jason@redhat.com>
5206
5207 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
5208
5209 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5210
5211 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
5212 * config/spu/spu.md ("clrsb<mode>2"): New expander.
5213
5214 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
5215
5216 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
5217 * configure: Regenerate.
5218
5219 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5220
5221 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
5222 (asm_file_start): Remove.
5223 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
5224 free_bb_for_insn around code that modifies insns before
5225 restarting df analysis.
5226
5227 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5228
5229 PR target/49541
5230 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
5231 (LINK_SPEC): ... here.
5232
5233 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
5234
5235 * haifa-sched.c (struct sched_block_state): New.
5236 (schedule_block): Move some local variables into such a structure.
5237
5238 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5239
5240 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
5241 * config/i386/t-crtpc: Remove.
5242 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
5243 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
5244 tmake_file.
5245 (x86_64-*-darwin*): Likewise.
5246 (i[34567]86-*-linux*): Likewise.
5247 (x86_64-*-linux*): Likewise.
5248
5249 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
5250 Handle -mpc32, -mpc64, -mpc80.
5251
5252 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5253
5254 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
5255 * config/alpha/t-crtfm: Remove.
5256 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
5257 * config/i386/t-crtfm: Remove.
5258 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
5259 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
5260 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
5261 * config/sparc/t-crtfm: Remove.
5262
5263 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
5264 (alpha*-*-freebsd*): Likewise.
5265 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
5266 (x86_64-*-darwin*): Likewise.
5267 (i[34567]86-*-linux*): Likewise.
5268 (x86_64-*-linux*): Likewise.
5269 (x86_64-*-mingw*): Likewise.
5270 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
5271 (ia64*-*-freebsd*): Likewise.
5272 (ia64*-*-linux*): Likewise.
5273 (mips64*-*-linux*): Likewise.
5274 (mips*-*-linux*): Likewise.
5275 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
5276 (sparc64-*-linux*): Likewise.
5277 (sparc64-*-freebsd*): Likewise.
5278
5279 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5280
5281 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
5282 * config/darwin-crt3.c: Move to ../libgcc/config.
5283 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
5284 ($(T)crt3$(objext)): Remove.
5285 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
5286 ($(T)crt2$(objext)): Remove.
5287 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
5288 (powerpc64-*-darwin*): Likewise.
5289
5290 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
5291
5292 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
5293
5294 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
5295 (addsi_1_zext): This.
5296
5297 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
5298
5299 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
5300 * doc/tm.texi: Regenerate.
5301 * target.def (mergeable_rodata_prefix): New defhookpod.
5302 * varasm.c (mergeable_string_section, mergeable_constant_section):
5303 Use it. Allocate name with alloca.
5304
5305 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
5306
5307 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
5308
5309 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
5310
5311 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
5312 overlap check.
5313
5314 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
5315
5316 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
5317 (count_type_elements): Delete.
5318 (complete_ctor_at_level_p): Declare.
5319 * expr.c (flexible_array_member_p): New function, split out from...
5320 (count_type_elements): ...here. Make static. Replace allow_flexarr
5321 parameter with for_ctor_p. When for_ctor_p is true, return the
5322 number of elements that should appear in the top-level constructor,
5323 otherwise return an estimate of the number of scalars.
5324 (categorize_ctor_elements): Replace p_must_clear with p_complete.
5325 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
5326 (complete_ctor_at_level_p): New function, borrowing union logic
5327 from old categorize_ctor_elements_1.
5328 (mostly_zeros_p): Return true if the constructor is not complete.
5329 (all_zeros_p): Update call to categorize_ctor_elements.
5330 * gimplify.c (gimplify_init_constructor): Update call to
5331 categorize_ctor_elements. Don't call count_type_elements.
5332 Unconditionally prevent clearing for variable-sized types,
5333 otherwise rely on categorize_ctor_elements to detect
5334 incomplete initializers.
5335
5336 2011-07-13 Richard Guenther <rguenther@suse.de>
5337
5338 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
5339 the final type is integral.
5340
5341 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
5342
5343 * sched-int.h (struct _dep): Add member cost.
5344 (DEP_COST, UNKNOWN_DEP_COST): New macros.
5345 * sched-deps.c (init_dep_1): Initialize DEP_COST.
5346 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
5347 (sched_change_pattern): Reset it for dependent insns.
5348
5349 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5350
5351 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
5352 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
5353 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
5354 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
5355 (CRT0_S, MCRT0_S): Remove.
5356 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
5357 Remove.
5358 (s-crt0): Remove.
5359 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
5360
5361 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5362
5363 * cse.c (insert_with_costs): Put semi-colon after empty loop body
5364 on the next line.
5365 * emit-rtl.c (push_to_sequence): Likewise.
5366 * haifa-sched.c (max_issue): Likewise.
5367 * matrix-reorg.c (add_allocation_site): Likewise.
5368 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
5369 * reload.c (alternative_allows_const_pool_ref): Likewise.
5370 * sched-rgn.c (rgn_add_block): Likewise.
5371 (rgn_fix_recovery_cfg): Likewise.
5372 * tree.c (attribute_list_contained): Likewise.
5373
5374 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
5375
5376 * config/i386/i386.c: Tidy processor feature bitmasks.
5377 (m_P4_NOCONA): New.
5378
5379 2011-07-12 Andrew Pinski <pinskia@gmail.com>
5380
5381 PR rtl-opt/49474
5382 * cprop.c (find_implicit_sets): Correct the condition.
5383
5384 2011-07-12 Richard Henderson <rth@redhat.com>
5385
5386 PR target/49713
5387 * dwarf2out.h (dwarf_frame_regnum): Remove.
5388 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
5389 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
5390 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
5391 (execute_dwarf2_frame): Initialize them.
5392 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
5393 users of the macros with the variables.
5394 (expand_builtin_dwarf_sp_column): Revert last change.
5395 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
5396 result of DWARF_FRAME_REGNUM into a local variable.
5397
5398 2011-07-12 Richard Henderson <rth@redhat.com>
5399
5400 PR target/49714
5401 * config/i386/i386.c (x86_output_mi_thunk): Use
5402 machopic_indirect_call_target instead of machopic_indirection_name
5403 directly.
5404
5405 2011-07-12 Laurent GUERBY <laurent@guerby.net>
5406 Eric Botcazou <ebotcazou@adacore.com>
5407
5408 * prefix.h: Wrap up in extern "C" block.
5409
5410 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
5411
5412 AMD bdver2 Enablement
5413 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
5414 (case ${target}): Add bdver2.
5415 * config/i386/driver-i386.c (host_detect_local_cpu): Let
5416 -march=native recognize bdver2 processors.
5417 * config/i386/i386-c.c (ix86_target_macros_internal): Add
5418 bdver2 def_and_undef
5419 * config/i386/i386.c (struct processor_costs bdver2_cost): New
5420 bdver2 cost table.
5421 (m_BDVER2): New definition.
5422 (m_AMD_MULTIPLE): Includes m_BDVER2.
5423 (initial_ix86_tune_features): Add bdver2 tuning.
5424 (processor_target_table): Add bdver2 entry.
5425 (static const char *const cpu_names): Add bdver2 entry.
5426 (ix86_option_override_internal): Add bdver2 instruction sets.
5427 (ix86_issue_rate): Add bdver2.
5428 (ix86_adjust_cost): Add bdver2.
5429 (has_dispatch): Add bdver2.
5430 * config/i386/i386.h (TARGET_BDVER2): New definition.
5431 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
5432 (enum processor_type): Add PROCESSOR_BDVER2.
5433 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
5434 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
5435 description.
5436
5437 2011-07-12 Richard Henderson <rth@redhat.com>
5438
5439 PR target/49714
5440 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
5441 destination address in memory on some paths.
5442
5443 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
5444
5445 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
5446 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
5447 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
5448 * function.c (locate_and_pad_parm): Take it into account.
5449 * target.def (function_arg_round_boundary): New hook.
5450 * targhooks.c (default_function_arg_round_boundary): New function.
5451 * targhooks.h (default_function_arg_round_boundary): Declare.
5452 * doc/tm.texi: Regenerate.
5453
5454 2011-07-12 Richard Guenther <rguenther@suse.de>
5455
5456 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
5457 Do not perform no-op changes.
5458
5459 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
5460
5461 * config/arm/predicates.md (neon_struct_operand): Make a normal
5462 predicate.
5463 (neon_struct_or_register_operand): New predicate.
5464 * config/arm/neon.md (movmisalign<mode>): Replace predicates
5465 with neon_struct_or_register_operand.
5466 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
5467 neon_struct_operand instead of memory_operand.
5468
5469 2011-07-12 Martin Jambor <mjambor@suse.cz>
5470
5471 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
5472 * cgraph.c (cgraph_get_node_or_alias): Removed.
5473 (change_decl_assembler_name): Changed all calls to
5474 cgraph_get_node_or_alias to a call to cgraph_get_node.
5475 (cgraph_make_decl_local): Likewise.
5476 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
5477 * varasm.c (default_binds_local_p_1): Likewise.
5478 (decl_binds_to_current_def_p): Likewise.
5479
5480 2011-07-12 Jakub Jelinek <jakub@redhat.com>
5481
5482 PR tree-optimization/49712
5483 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
5484
5485 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
5486
5487 * genautomata.c (add_arc): Return void. All callers changed.
5488 (make_automaton): Remove dead code.
5489
5490 2011-07-11 Richard Henderson <rth@redhat.com>
5491
5492 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
5493 (DW_FRAME_POINTER_REGNUM): New.
5494 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
5495 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
5496 (dwf_regno): New.
5497 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
5498 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
5499 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
5500 Use it.
5501 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
5502 * dwarf2out.h (dwarf_frame_regnum): New.
5503 (struct cfa_loc): Document the domain of the reg member.
5504
5505 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
5506
5507 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
5508 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
5509
5510 2011-07-11 Jakub Jelinek <jakub@redhat.com>
5511
5512 PR debug/49676
5513 * dwarf2out.c (int_shift_loc_descriptor): New function.
5514 (int_loc_descriptor): If shorter, emit i as
5515 (i >> shift), shift, DW_OP_shl for suitable shift value.
5516 Similarly, try to optimize large negative values using
5517 DW_OP_neg of a positive value if shorter.
5518 (size_of_int_shift_loc_descriptor): New function.
5519 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
5520 changes.
5521 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
5522 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
5523 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
5524 is shorter.
5525 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
5526 addend as added DW_OP_plus if it is shorter.
5527
5528 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5529
5530 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
5531 (DTORS_SECTION_ASM_OP): Define.
5532
5533 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5534
5535 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
5536 * config/t-dfprules: Move to ../libgcc/config.
5537 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5538 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
5539 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
5540 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
5541 Likewise.
5542 (i[34567]86-*-cygwin*): Likewise.
5543 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5544 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
5545 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
5546 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
5547 D64PBIT_FUNCS, D128PBIT_FUNCS.
5548
5549 2011-07-11 Richard Guenther <rguenther@suse.de>
5550
5551 * tree-vrp.c (simplify_conversion_using_ranges): Manually
5552 translate the source value-range through the conversion chain.
5553
5554 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
5555
5556 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
5557
5558 2011-07-11 Arthur Loiret <aloiret@debian.org>
5559
5560 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
5561 a bi-arch compiler defaulting to 31-bit. In this case:
5562 (tmake_file): Add s390/t-linux64.
5563 * doc/install.texi: Add s390-linux to the list of targets supporting
5564 --enable-targets=all.
5565
5566 2011-07-11 Arthur Loiret <aloiret@debian.org>
5567 Matthias Klose <doko@debian.org>
5568
5569 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
5570 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
5571 (tm_file): Add mips/linux64.h.
5572 (tmake_file): Add mips/t-linux64.
5573 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5574 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
5575 instead of hardcoded mabi=n32.
5576 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5577 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5578 convention.
5579
5580 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5581
5582 * passes.c (init_optimization_passes): Add invariant motion pass
5583 after induction variable optimization.
5584
5585 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
5586
5587 PR target/39633
5588 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
5589 offsets 1..5 set cc0 in a usable way.
5590
5591 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
5592
5593 * tree.h (call_expr_arg): Remove.
5594 (call_expr_argp): Likewise.
5595
5596 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
5597
5598 * config/sparc/sparc.md (save_register_window_1): Rename to...
5599 (window_save): ...this.
5600 * config/sparc/sparc.c (emit_save_register_window): Rename to...
5601 (emit_window_save): ...this.
5602 (sparc_expand_prologue): Adjust to above renaming.
5603
5604 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
5605
5606 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
5607 of movabs for x32.
5608
5609 2011-07-10 Richard Henderson <rth@redhat.com>
5610
5611 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
5612 run final, instead of emitting text directly.
5613
5614 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
5615
5616 * config/i386/i386.c (ix86_option_override_internal): Turn on
5617 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
5618 small PIC models for TARGET_X32.
5619
5620 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
5621
5622 PR target/49684
5623 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
5624 $(LIBGCC2_CFLAGS).
5625
5626 PR bootstrap/49680
5627 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
5628 stray notes and debug insns by using prev_nonnote_nondebug_insn
5629 instead of PREV_INSN.
5630
5631 2011-07-09 Richard Henderson <rth@redhat.com>
5632
5633 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
5634 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
5635 * dwarf2out.c: ... here.
5636 (output_all_cfis): Remove.
5637 (dwarf2out_switch_text_section): Use output_cfis directly.
5638 (size_of_locs): Export.
5639 (output_loc_sequence, output_loc_sequence_raw): Export.
5640 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
5641 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
5642 output_cfa_loc_raw): Move to ...
5643 * dwarfcfi.c: ... here.
5644 * dwarf2out.h: Update decls.
5645
5646 2011-07-09 Richard Henderson <rth@redhat.com>
5647
5648 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
5649 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
5650 * dwarf2cfi.c: ... here.
5651 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
5652 (DWARF_ROUND, DWARF_CIE_ID): Remove.
5653 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
5654 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
5655 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
5656
5657 2011-07-09 Richard Henderson <rth@redhat.com>
5658
5659 * dwarf2cfi.c (cie_return_save): New.
5660 (queue_reg_save): Use compare_reg_or_pc.
5661 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
5662 (dwarf2out_frame_debug_expr): Likewise.
5663 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
5664 (initial_return_save): Likewise.
5665 (execute_dwarf2_frame): Save and restore initial return save from
5666 the cie to the fde.
5667 * config/mips/mips.c (mips_frame_set): Remove special case for
5668 DWARF_FRAME_RETURN_COLUMN.
5669
5670 2011-07-09 Richard Henderson <rth@redhat.com>
5671
5672 * dwarf2cfi.c (lookup_cfa): Remove.
5673 (execute_dwarf2_frame): Assert queues are empty on entry.
5674 Setup initial cfa directly, not via lookup_cfa.
5675 Don't clear args_size state here.
5676
5677 2011-07-09 Richard Henderson <rth@redhat.com>
5678
5679 * dwarf2cfi.c (add_cfi_vec): New.
5680 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
5681 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
5682 (execute_dwarf2_frame): Set add_cfi_vec.
5683
5684 2011-07-09 Richard Henderson <rth@redhat.com>
5685
5686 * defaults.h (ASM_COMMENT_START): Move here...
5687 * dwarf2asm.c: ... from here.
5688 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
5689 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
5690 * varasm.c: Likewise.
5691
5692 2011-07-09 Richard Henderson <rth@redhat.com>
5693
5694 PR debug/49686
5695 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
5696 (create_cfi_notes): ... do it here instead.
5697
5698 2011-07-09 Jakub Jelinek <jakub@redhat.com>
5699
5700 PR debug/49676
5701 * dwarf2out.c (size_of_int_loc_descriptor): New function.
5702 (address_of_int_loc_descriptor): Use it.
5703 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
5704
5705 2011-07-09 Richard Henderson <rth@redhat.com>
5706
5707 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
5708 (prologue, epilogue): New.
5709 (return, *rts): New.
5710 (blockage, setd, seti): New.
5711 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
5712 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
5713 (pdp11_saved_regno): New.
5714 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
5715 generate rtl instead of text.
5716 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
5717 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
5718 * config/pdp11/pdp11-protos.h: Update.
5719
5720 2011-07-09 Richard Henderson <rth@redhat.com>
5721
5722 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
5723 try to insert an rtl prologue here.
5724 (rs6000_output_function_epilogue): Similarly.
5725 * config/rs6000/rs6000.md (prologue): Emit a barrier to
5726 satisfy !TARGET_SCHED_PROLOG.
5727 (epilogue, sibcall_epilogue): Likewise.
5728
5729 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
5730
5731 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
5732 (FP_REG_P): Delete.
5733 (IN_OR_GLOBAL_P): Likewise.
5734
5735 2011-07-08 Jason Merrill <jason@redhat.com>
5736
5737 PR c++/45437
5738 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
5739 compound assignment.
5740
5741 * cgraph.c (cgraph_add_to_same_comdat_group): New.
5742 * cgraph.h: Declare it.
5743 * ipa.c (function_and_variable_visibility): Make sure thunks
5744 have the right visibility.
5745
5746 2011-07-08 Richard Henderson <rth@redhat.com>
5747
5748 PR bootstrap/49680
5749 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
5750 any tablejump vector.
5751
5752 PR bootstrap/49680
5753 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
5754 end of the prologue.
5755
5756 2011-07-08 Jakub Jelinek <jakub@redhat.com>
5757
5758 PR target/49621
5759 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
5760 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
5761 * config/rs6000/vector.md (vector_select_<mode>,
5762 vector_select_<mode>_uns): Change second operand of NE to
5763 CONST0_RTX (<MODE>mode) instead of const0_rtx.
5764 * config/rs6000/altivec.md (*altivec_vsel<mode>,
5765 *altivec_vsel<mode>_uns): Expect second operand of NE to be
5766 zero_constant of the corresponding vector mode.
5767 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
5768 Likewise.
5769
5770 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
5771
5772 * graphite-dependences.c (build_alias_set_powerset): Remove
5773 continue from loop, add one more assert.
5774
5775 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
5776
5777 PR target/46779
5778 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
5779 In particular, allow 8-bit values in r28 and r29.
5780 (avr_hard_regno_scratch_ok): Disallow any register that might be
5781 part of the frame pointer.
5782 (avr_hard_regno_rename_ok): Same.
5783 (avr_legitimate_address_p): Don't allow SUBREGs.
5784
5785 2011-07-08 Julian Brown <julian@codesourcery.com>
5786
5787 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
5788 big-endian mode.
5789 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
5790 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
5791 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
5792 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
5793 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
5794 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
5795 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
5796 registers in big-endian mode.
5797
5798 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
5799
5800 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
5801 in terms of another.
5802 (write_attr_value): Write a cast if necessary.
5803
5804 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
5805 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
5806 (REG_WORDS_BIG_ENDIAN): Document.
5807 * doc/tm.texi: Regenerate.
5808 * reload.c (operands_match_p): Take it into account.
5809 (reload_adjust_reg_for_mode): Likewise.
5810 * rtlanal.c (subreg_get_info): Likewise.
5811
5812 2011-07-08 Richard Guenther <rguenther@suse.de>
5813
5814 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
5815 folding.
5816
5817 2011-07-08 Kai Tietz <ktietz@redhat.com>
5818
5819 * fold-const.c (fold_truth_andor): Factored out truth_andor
5820 label from fold_binary as function.
5821 (fold_binary_loc): Replace truth_andor lable
5822 by function fold_truth_andor.
5823
5824 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
5825
5826 PR middle-end/49519
5827 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
5828 check if address is stored in register. If so - give up.
5829 (check_sibcall_argument_overlap_1): Do not perform check of
5830 overlapping when it is call to address.
5831
5832 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
5833
5834 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
5835 of magic '31'.
5836
5837 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
5838
5839 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
5840 GET_MODE_BITSIZE where appropriate.
5841 (widen_leading, expand_parity, expand_ctz, expand_ffs,
5842 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
5843 expand_float, expand_fix): Likewise.
5844 * expr.c (convert_move, convert_modes, expand_expr_real_2,
5845 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
5846 * stor-layout.c (get_mode_bounds): Likewise.
5847 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
5848 Likewise.
5849 * convert.c (convert_to_integer): Likewise.
5850 * expmed.c (expand_shift_1): Likewise.
5851
5852 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
5853 a bitsize.
5854
5855 * optabs.c (expand_binop): Tighten conditions for doubleword
5856 expansions.
5857 (widen_bswap): Assert that mode bitsize and precision are the same.
5858 * stor-layout.c (get_best_mode): Skip modes that have lower
5859 precision than bitsize.
5860 * recog.c (simplify_while_replacing): Assert that bitsize and
5861 precision are the same.
5862
5863 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5864
5865 * Makefile.in (LIBGCOV): Remove.
5866 (libgcc.mvars): Remove LIBGCOV.
5867 * libgov.c: Move to ../libgcc.
5868
5869 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5870
5871 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
5872
5873 2011-07-08 Martin Jambor <mjambor@suse.cz>
5874
5875 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
5876 is too big for total scalarization.
5877
5878 2011-07-07 Richard Henderson <rth@redhat.com>
5879
5880 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
5881 (DBX_DEBUGGING_INFO): Undef.
5882
5883 2011-07-07 Richard Henderson <rth@redhat.com>
5884
5885 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
5886 Handle some opcodes specially for debugging.
5887 * print-rtl.c: Include dwarf2out.h
5888 (print_rtx): Handle NOTE_INSN_CFI.
5889 * Makefile.in (print-rtl.o): Update.
5890
5891 2011-07-07 Richard Henderson <rth@redhat.com>
5892
5893 * tree-pass.h (pass_dwarf2_frame): Declare.
5894 * passes.c (init_optimization_passes): Add it.
5895 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
5896 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
5897 make static, do not call add_cfis_to_fde.
5898 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
5899 dwarf2out_frame_init): Merge into...
5900 (execute_dwarf2_frame): ... here. New function.
5901 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
5902 saved_do_cfi_asm to a tri-state variable.
5903 (gate_dwarf2_frame, pass_dwarf2_frame): New.
5904 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
5905 if it has yet to be done. Don't call dwarf2cfi_function_init.
5906 * dwarf2out.h, debug.h: Update decls.
5907 * final.c (final_start_function): Don't call
5908 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
5909 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
5910 * toplev.c (lang_dependent_init): Likewise.
5911
5912 2011-07-07 Richard Henderson <rth@redhat.com>
5913
5914 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
5915 FDE_TABLE_INCREMENT): Replace with...
5916 (fde_vec): ... this, a new vector.
5917 (current_fde): Remove. Replace all users with cfun->fde.
5918 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
5919 (size_of_aranges, dwarf2out_finish): Likewise.
5920 (dwarf2out_alloc_current_fde): Break out from ...
5921 (dwarf2out_begin_prologue): ... here.
5922 (dwarf2out_frame_init): Remove.
5923 * dwarf2cfi.c: Update all users of current_fde.
5924 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
5925 * dwarf2out.h: Update decls.
5926 (dw_fde_node): Add fde_index member.
5927 * function.h (struct function): Add fde member.
5928
5929 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5930 Richard Henderson <rth@redhat.com>
5931
5932 * dwarf2cfi.c (add_cfi): Remove.
5933 (dwarf2out_cfi_label): Remove force argument. Only generate the
5934 label name.
5935 (add_fde_cfi): Simplify the different code paths.
5936 (add_cie_cfi): New.
5937 (old_cfa, old_cfa_remember): New.
5938 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
5939 (last_reg_save_label): Remove.
5940 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
5941 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
5942 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
5943 dwarf2out_frame_debug_cfa_expression,
5944 dwarf2out_frame_debug_cfa_restore,
5945 dwarf2out_frame_debug_cfa_window_save,
5946 dwarf2out_frame_debug_expr): Remove label parameter.
5947 (cfi_label_required_p, add_cfis_to_fde): New.
5948 (dwarf2out_frame_debug_after_prologue): New.
5949 (dwarf2cfi_frame_init): Initialize old_cfa.
5950 (dwarf2out_frame_debug_restore_state): Likewise.
5951 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
5952 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
5953 * final.c (final_start_function): Call
5954 dwarf2out_frame_debug_after_prologue.
5955
5956 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5957 Richard Henderson <rth@redhat.com>
5958
5959 * dwarf2cfi.c (cfi_insn): New.
5960 (dwarf2out_cfi_label): Don't emit cfi label here.
5961 (add_fde_cfi): Create a NOTE_INSN_CFI.
5962 (dwarf2out_frame_debug): Setup cfi_insn.
5963 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
5964 (dwarf2out_cfi_begin_epilogue): Make static.
5965 (dwarf2out_frame_debug_restore_state): Make static.
5966 * dwarf2out.c (output_cfi_directive): Make static.
5967 (dwarf2out_emit_cfi): New.
5968 * dwarf2out.h: Update.
5969 * final.c (final): Remove CFI notes.
5970 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
5971 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
5972 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
5973 * insn-notes.def (NOTE_INSN_CFI): New.
5974 (NOTE_INSN_CFI_LABEL): New.
5975 * rtl.h (union rtunion_def): Add rt_cfi member.
5976 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
5977
5978 2011-07-07 Richard Henderson <rth@redhat.com>
5979
5980 * dwarf2cfi.c: New file.
5981 * Makefile.in (OBJS): Add it.
5982 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
5983 * gengtype.c (open_base_files): Include dwarf2out.h.
5984 * coretypes.h (enum var_init_status): Move from ...
5985 * rtl.h: ... here.
5986 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
5987 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
5988 expand_builtin_dwarf_sp_column, init_return_column_size,
5989 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
5990 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
5991 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
5992 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
5993 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
5994 compute_barrier_args_size, dwarf2out_args_size,
5995 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
5996 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
5997 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
5998 queue_reg_save, dwarf2out_flush_queued_reg_saves,
5999 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
6000 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
6001 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
6002 dwarf2out_frame_debug_cfa_expression,
6003 dwarf2out_frame_debug_cfa_restore,
6004 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
6005 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
6006 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
6007 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
6008 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
6009 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
6010 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
6011 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
6012 dw_loc_descr_node): Move to dwarf2out.h.
6013 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
6014 mem_loc_descriptor): Export.
6015 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
6016 (dwarf2out_frame_init): Extract CIE generation code to
6017 dwarf2cfi_frame_init.
6018
6019 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
6020
6021 PR target/49660
6022 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
6023 MASK_V8PLUS, remove commented out flag and reorder.
6024
6025 2011-07-07 Jakub Jelinek <jakub@redhat.com>
6026
6027 PR c/49644
6028 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
6029 one non-complex and one complex argument, call c_save_expr on both
6030 operands.
6031
6032 2011-07-07 Martin Jambor <mjambor@suse.cz>
6033
6034 PR middle-end/49495
6035 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
6036 (verify_cgraph_node): Some functinality moved to
6037 verify_edge_corresponds_to_fndecl, call it.
6038
6039 2011-07-07 Joseph Myers <joseph@codesourcery.com>
6040
6041 * config.gcc (*local*): Remove.
6042 * doc/install-old.texi: Don't mention local configurations.
6043
6044 2011-07-07 Jakub Jelinek <jakub@redhat.com>
6045
6046 PR debug/49522
6047 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
6048 referencing debug insns that have been reset.
6049 (dead_debug_insert_before): Don't assert reg is non-NULL,
6050 instead return immediately if it is NULL.
6051
6052 2011-07-07 Joseph Myers <joseph@codesourcery.com>
6053
6054 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
6055
6056 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
6057
6058 * hw-doloop.c: New file.
6059 * hw-doloop.h: New file.
6060 * Makefile.in (OBJS): Add hw-doloop.o.
6061 (hw-doloop.o): New rule.
6062 ($(obj_out_file)): Add hw-doloop.h dependency.
6063 * config/bfin/bfin.c: Include "hw-doloop.h".
6064 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
6065 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
6066 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
6067 type changed to hwloop_info. Return bool, true if the loop was
6068 successfully optimized. Remove code that was moved to
6069 hw-doloop.c, and adjust other parts.
6070 (hwloop_fail): New static function, containing parts that used
6071 to be in bfin_optimize_loop.
6072 (bfin_discover_loop, bfin_discover_loops, free_loops,
6073 bfin_reorder_loops): Remove.
6074 (hwloop_pattern_reg): New static function.
6075 (bfin_doloop_hooks): New variable.
6076 (bfin_reorg_loops): Remove most code, call reorg_loops.
6077 * config/bfin/bfin.md (doloop_end splitter): Also enable if
6078 loop counter is a memory_operand.
6079
6080 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
6081
6082 * config.gcc: Support --with-multilib-list for x86 Linux targets.
6083
6084 * configure.ac: Mention x86-64 for --with-multilib-list.
6085 * configure: Regenerated.
6086
6087 * config/i386/gnu-user64.h (SPEC_64): Support x32.
6088 (SPEC_32): Likewise.
6089 (ASM_SPEC): Likewise.
6090 (LINK_SPEC): Likewise.
6091 (TARGET_THREAD_SSP_OFFSET): Likewise.
6092 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
6093 (SPEC_X32): New.
6094
6095 * config/i386/i386.h (TARGET_X32): New.
6096 (TARGET_LP64): New.
6097 (LONG_TYPE_SIZE): Likewise.
6098 (POINTER_SIZE): Likewise.
6099 (POINTERS_EXTEND_UNSIGNED): Likewise.
6100 (OPT_ARCH64): Support x32.
6101 (OPT_ARCH32): Likewise.
6102
6103 * config/i386/i386.opt (mx32): New.
6104
6105 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
6106 (GLIBC_DYNAMIC_LINKERX32): Likewise.
6107 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
6108 (GLIBC_DYNAMIC_LINKERX32): Likewise.
6109
6110 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
6111 (BIONIC_DYNAMIC_LINKERX32): Likewise.
6112 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
6113
6114 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
6115
6116 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
6117
6118 * doc/invoke.texi: Document -mx32.
6119
6120 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
6121
6122 * doc/invoke.texi (mwords-little-endian): Deprecate.
6123 * config/arm/arm.opt (mwords-little-endian): Likewise.
6124 * config/arm/arm.c (arm_option_override): Warn about the deprecation
6125 of -mwords-little-endian.
6126
6127 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
6128
6129 * reload1.c (choose_reload_regs): Use mode sizes to check whether
6130 an old reload register completely defines the required value.
6131
6132 2011-07-07 Richard Guenther <rguenther@suse.de>
6133
6134 * fold-const.c (fold_unary_loc): Do not strip sign-changes
6135 for NEGATE_EXPR.
6136
6137 2011-07-07 Richard Guenther <rguenther@suse.de>
6138
6139 * tree-vrp.c (simplify_conversion_using_ranges): New function.
6140 (simplify_stmt_using_ranges): Call it.
6141
6142 2011-07-07 Kai Tietz <ktietz@redhat.com>
6143
6144 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
6145 (lookup_logical_inverted_value): Likewise.
6146 (simplify_bitwise_binary_1): Likewise.
6147 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
6148
6149 2011-07-07 Joseph Myers <joseph@codesourcery.com>
6150
6151 * gcc.c (%[Spec]): Don't document.
6152 (struct spec_list): Update comment.
6153 (do_spec_1): Don't handle %[Spec].
6154 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
6155
6156 2011-07-07 Joseph Myers <joseph@codesourcery.com>
6157
6158 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
6159 default based on TARGET_ASM_NAMED_SECTION.
6160 * common/common-target.def (have_named_sections): Default to true.
6161 * common/config/default-common.c: Don't include tm.h.
6162 * common/config/picochip/picochip-common.c
6163 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
6164 * common/config/m32c/m32c-common.c: Remove.
6165 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
6166 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6167 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6168 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6169 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6170 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6171 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6172
6173 2011-07-07 Jakub Jelinek <jakub@redhat.com>
6174
6175 PR middle-end/49640
6176 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
6177 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
6178
6179 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6180
6181 PR libmudflap/49550
6182 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
6183
6184 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6185
6186 PR target/39150
6187 * configure.ac (gcc_cv_as_hidden): Also accept
6188 x86_64-*-solaris2.1[0-9]*.
6189 (gcc_cv_as_cfi_directive): Likewise.
6190 (gcc_cv_as_comdat_group_group): Likewise.
6191 (set_have_as_tls): Likewise.
6192 * configure: Regenerate.
6193 * config.gcc (i[34567]86-*-solaris2*): Also handle
6194 x86_64-*-solaris2.1[0-9]*.
6195 * config.host (i[34567]86-*-solaris2*): Likewise.
6196 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
6197 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
6198 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
6199 (TARGET_LD_EMULATION): Use it.
6200 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
6201 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
6202 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
6203 (ASM_CPU64_DEFAULT_SPEC): Define.
6204 (ASM_CPU_SPEC): Use %(asm_cpu_default).
6205 (ASM_SPEC): Redefine.
6206 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
6207 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
6208 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
6209 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
6210 configuration.
6211 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
6212
6213 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6214
6215 * config/sol2.h (ASM_SPEC): Split into ...
6216 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
6217 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
6218 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
6219 (ASM_SPEC): Use ASM_SPEC_BASE.
6220 * config/sparc/sol2.h (ASM_SPEC): Redefine.
6221
6222 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
6223
6224 * config/avr/avr.md (*reload_insi): Change predicate #1 to
6225 const_int_operand. Ditto for peep2 producing this insn.
6226 Add argument to output_reload_insisf call.
6227 (*movsi,*movsf): Add argument to output_movsisf call.
6228 (*reload_insf): New insn and new peep2 to produce it.
6229 * config/avr/avr-protos.h (output_movsisf): Change prototype.
6230 (output_reload_insisf): Change prototype.
6231 * config/avr/avr.c (avr_asm_len): New function.
6232 (output_reload_insisf): Rewrite.
6233 (output_movsisf): Change prototype. output_reload_insisf for
6234 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
6235 (adjust_insn_length): Add argument to output_movsisf and
6236 output_reload_insisf call.
6237
6238 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
6239
6240 * emit-rtl.c (paradoxical_subreg_p): New function.
6241 * rtl.h (paradoxical_subreg_p): Declare.
6242 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
6243 apply_distributive_law, simplify_comparison, simplify_set): Use it.
6244 * cse.c (record_jump_cond, cse_insn): Likewise.
6245 * expr.c (force_operand): Likewise.
6246 * rtlanal.c (num_sign_bit_copies1): Likewise.
6247 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
6248 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
6249 (push_reload): Use precision to check for paradoxical subregs.
6250 * expmed.c (extract_bit_field_1): Likewise.
6251
6252 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
6253 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
6254 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
6255 simplify_set, simplify_logical, expand_compound_operation,
6256 make_extraction, force_to_mode, if_then_else_cond, extended_count,
6257 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
6258 record_value_for_reg): Likewise.
6259 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
6260 * simplify-rtx. c (simplify_unary_operation_1,
6261 simplify_binary_operation_1, simplify_const_relational_operation):
6262 Likewise.
6263
6264 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
6265 instead of GET_MODE_BITSIZE where appropriate.
6266 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
6267 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
6268 init_num_sign_bit_copies_in_rep): Likewise.
6269 * cse.c (fold_rtx, cse_insn): Likewise.
6270 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
6271 * simplify-rtx.c (simplify_unary_operation_1,
6272 simplify_const_unary_operation, simplify_binary_operation_1,
6273 simplify_const_binary_operation, simplify_ternary_operation,
6274 simplify_const_relational_operation, simplify_subreg): Likewise.
6275 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
6276 simplify_if_then_else, simplify_set, expand_compound_operation,
6277 expand_field_assignment, make_extraction, if_then_else_cond,
6278 make_compound_operation, force_to_mode, make_field_assignment,
6279 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
6280 extended_count, try_widen_shift_mode, simplify_shift_const_1,
6281 simplify_comparison, record_promoted_value, simplify_compare_const,
6282 record_dead_and_set_regs_1): Likewise.
6283
6284 Revert:
6285 * simplify-rtx.c (simplify_const_binary_operation): Use the
6286 shift_truncation_mask hook instead of performing modulo by width.
6287 Compare against mode precision, not bitsize.
6288 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
6289 Use shift_truncation_mask instead of constructing the value manually.
6290
6291 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
6292
6293 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
6294 declaration.
6295 (rs6000_save_toc_in_prologue_p): Ditto.
6296
6297 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
6298 up the static chain (r11) during indirect function calls.
6299 (-msave-toc-indirect): New undocumented debug switch.
6300
6301 * config/rs6000/rs6000.c (struct machine_function): Add
6302 save_toc_in_prologue field to note whether the prologue needs to
6303 save the TOC value in the reserved stack location.
6304 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
6305 to save the TOC in the prologue, do so.
6306 (rs6000_trampoline_init): Don't allow creating AIX style
6307 trampolines if -mno-r11 is in effect.
6308 (rs6000_call_indirect_aix): New function to create AIX style
6309 indirect calls, adding support for -mno-r11 to suppress loading
6310 the static chain, and saving the TOC in the prologue instead of
6311 the call body.
6312 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
6313 TOC in the prologue.
6314
6315 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
6316 register numbers.
6317 (TOC_REGNUM): Ditto.
6318 (STATIC_CHAIN_REGNUM): Ditto.
6319 (ARG_POINTER_REGNUM): Ditto.
6320 (SFP_REGNO): Delete, unused.
6321 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
6322 function descriptor offsets.
6323 (TOC_SAVE_OFFSET_64BIT): Ditto.
6324 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
6325 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
6326 (AIX_FUNC_DESC_SC_32BIT): Ditto.
6327 (AIX_FUNC_DESC_SC_64BIT): Ditto.
6328 (ptrload): New mode attribute for the appropriate load of a pointer.
6329 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
6330 (call_indirect_aix64): Ditto.
6331 (call_value_indirect_aix32): Ditto.
6332 (call_value_indirect_aix64): Ditto.
6333 (call_indirect_nonlocal_aix32_internal): Ditto.
6334 (call_indirect_nonlocal_aix32): Ditto.
6335 (call_indirect_nonlocal_aix64_internal): Ditto.
6336 (call_indirect_nonlocal_aix64): Ditto.
6337 (call): Rewrite AIX indirect function calls. Add support for
6338 eliminating the static chain, and for moving the save of the TOC
6339 to the function prologue.
6340 (call_value): Ditto.
6341 (call_indirect_aix<ptrsize>): Ditto.
6342 (call_indirect_aix<ptrsize>_internal): Ditto.
6343 (call_indirect_aix<ptrsize>_internal2): Ditto.
6344 (call_indirect_aix<ptrsize>_nor11): Ditto.
6345 (call_value_indirect_aix<ptrsize>): Ditto.
6346 (call_value_indirect_aix<ptrsize>_internal): Ditto.
6347 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6348 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6349 (call_nonlocal_aix32): Relocate in the rs6000.md file.
6350 (call_nonlocal_aix64): Ditto.
6351
6352 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
6353 -mno-r11 documentation.
6354
6355 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6356
6357 PR other/49658
6358 * doc/extend.texi (Compound Literals): Fix typo.
6359
6360 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
6361
6362 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
6363
6364 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
6365
6366 * configure.ac (plugin-version.h): Generate
6367 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
6368 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
6369 macros.
6370
6371 * configure: Regenerate.
6372
6373 * doc/plugins.texi (Building GCC plugins): Mention
6374 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
6375
6376 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
6377
6378 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
6379 * combine.c (make_extraction, gen_lowpart_or_truncate,
6380 apply_distributive_law, simplify_comparison,
6381 reg_truncated_to_mode, record_truncated_value): Use it.
6382 * cse.c (notreg_cost): Likewise.
6383 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
6384 * expr.c (convert_move, convert_modes): Likewise.
6385 * optabs.c (expand_binop, expand_unop): Likewise.
6386 * postreload.c (move2add_last_label): Likewise.
6387 * regmove.c (optimize_reg_copy_3): Likewise.
6388 * rtlhooks.c (gen_lowpart_general): Likewise.
6389 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6390
6391 2011-07-06 Joseph Myers <joseph@codesourcery.com>
6392
6393 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
6394
6395 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
6396
6397 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
6398 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
6399 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
6400 (simplify_const_unary_operation, simplify_binary_operation_1,
6401 simplify_const_binary_operation, simplify_const_relational_operation):
6402 Use them. Use GET_MODE_MASK for masking and sign-extensions.
6403 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
6404 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
6405 simplify_shift_const_1, simplify_comparison): Likewise.
6406 * expr.c (convert_modes): Likewise.
6407 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
6408 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
6409 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
6410
6411 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
6412
6413 2011-07-06 Richard Guenther <rguenther@suse.de>
6414
6415 PR tree-optimization/49645
6416 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
6417 register variables.
6418 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
6419 in type qualification here ...
6420 (copy_reference_ops_from_ref): ... not here.
6421 (vn_reference_lookup_3): ... or here.
6422 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
6423 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
6424
6425 2011-07-06 Ian Lance Taylor <iant@google.com>
6426
6427 * doc/install.texi (Configuration): It's
6428 --enable-gnu-indirect-function, not --enable-indirect-function.
6429
6430 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
6431
6432 * simplify-rtx.c (simplify_const_binary_operation): Use the
6433 shift_truncation_mask hook instead of performing modulo by width.
6434 Compare against mode precision, not bitsize.
6435 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
6436 Use shift_truncation_mask instead of constructing the value manually.
6437
6438 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
6439
6440 PR middle-end/47383
6441 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
6442 address computation and convert to address_mode if needed.
6443
6444 2011-07-06 Richard Guenther <rguenther@suse.de>
6445
6446 * tree.c (build_common_tree_nodes_2): Merge with
6447 build_common_tree_nodes.
6448 * tree.h (build_common_tree_nodes): Adjust prototype.
6449 (build_common_tree_nodes_2): Remove.
6450 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
6451 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
6452
6453 2011-07-05 Jakub Jelinek <jakub@redhat.com>
6454
6455 PR tree-optimization/49618
6456 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
6457 t recurse on the decl.
6458 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
6459 return true if expr isn't known to be defined in current
6460 TU or some other LTO partition.
6461
6462 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
6463
6464 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
6465 override CASE_VALUES_THRESHOLD.
6466
6467 * stmt.c (toplevel): Include params.h.
6468 (case_values_threshold): Use the --param case-values-threshold
6469 value if non-zero, otherwise use machine dependent value.
6470 (expand_case): Use case_values_threshold.
6471
6472 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
6473
6474 * doc/invoke.texi (--param case-values-threshold): Document.
6475
6476 2011-07-05 Richard Henderson <rth@redhat.com>
6477
6478 * dwarf2out.c (dwarf2out_cfi_label): Make static.
6479 (dwarf2out_flush_queued_reg_saves): Make static.
6480 (dwarf2out_reg_save): Remove.
6481 (dwarf2out_return_save): Remove.
6482 (dwarf2out_return_reg): Remove.
6483 (dwarf2out_reg_save_reg): Remove.
6484 (dwarf2out_def_cfa): Merge into ...
6485 (dwarf2out_frame_init): ... here.
6486 * dwarf2out.h, tree.h: Remove declarations as necessary.
6487
6488 2011-07-05 Richard Henderson <rth@redhat.com>
6489
6490 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
6491 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6492 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
6493 the alloc insn.
6494
6495 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
6496 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
6497 (process_epilogue): Don't call dwarf2out_def_cfa.
6498
6499 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
6500 indicate the return address save.
6501 (process_cfa_register): Likewise.
6502
6503 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
6504 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
6505
6506 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
6507 for ar.pfs save at alloc insn.
6508
6509 2011-07-05 Richard Henderson <rth@redhat.com>
6510
6511 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
6512 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6513 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
6514 stack pointer save.
6515 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
6516 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
6517 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
6518 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
6519
6520 2011-07-05 Richard Henderson <rth@redhat.com>
6521
6522 * config/vax/vax.md (define_c_enum unspecv): New. Define the
6523 VUNSPEC_* constants here instead of via define_constants.
6524 (VUNSPEC_PEM): New constant.
6525 (procedure_entry_mask): New insn.
6526 (prologue): New expander.
6527 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
6528 (vax_expand_prologue): Rename from vax_output_function_prologue;
6529 emit rtl instead of text.
6530 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
6531 (print_operand): Add 'x' prefix.
6532
6533 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
6534
6535 PR middle-end/47715
6536 * calls.c (precompute_register_parameters): Promote the function
6537 argument before checking non-legitimate constant.
6538
6539 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6540
6541 PR tree-optimization/47654
6542 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
6543 (lst_do_strip_mine_loop): Return an int.
6544 (lst_do_strip_mine): Same.
6545 (scop_do_strip_mine): Same.
6546 (scop_do_block): Loop blocking should strip-mine at least two loops.
6547 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
6548 (scop_do_interchange): Same.
6549 * graphite-poly.h (scop_do_interchange): Update declaration.
6550 (scop_do_strip_mine): Same.
6551
6552 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6553
6554 * graphite-clast-to-gimple.c (precision_for_value): Removed.
6555 (precision_for_interval): Removed.
6556 (gcc_type_for_interval): Use mpz_sizeinbase.
6557
6558 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6559
6560 * graphite-ppl.h (value_max): Correct computation of max.
6561
6562 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6563
6564 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
6565
6566 2011-07-05 Richard Guenther <rguenther@suse.de>
6567
6568 * c-decl.c (c_init_decl_processing): Defer building common
6569 tree nodes to c_common_nodes_and_builtins.
6570
6571 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
6572
6573 PR tree-optimization/49580
6574 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
6575 the loop's number of iterations.
6576 * tree-parloops.c (transform_to_exit_first_loop): Add the
6577 handling of the loop's number of iterations before the call
6578 to gimple_duplicate_sese_tail.
6579 Insert the stmt caclculating the new rhs of the loop's
6580 condition stmt to the preheader instead of iters_bb.
6581
6582 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
6583
6584 PR rtl-optimization/47449
6585 * fwprop.c (forward_propagate_subreg): Don't propagate hard
6586 register nor zero/sign extended hard register.
6587
6588 2011-07-05 Richard Guenther <rguenther@suse.de>
6589
6590 PR tree-optimization/49518
6591 PR tree-optimization/49628
6592 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
6593 irrelevant and invariant data-references.
6594 (vect_analyze_data_ref_access): For invariant loads clear the
6595 group association.
6596
6597 2011-07-04 Jakub Jelinek <jakub@redhat.com>
6598
6599 PR rtl-optimization/49619
6600 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
6601 pass VOIDmode as op0_mode to recursive call, and return temp even
6602 when different from tor, just if it is not IOR of the original
6603 PLUS arguments.
6604
6605 PR rtl-optimization/49472
6606 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
6607 negating MULT, negate the second operand instead of first.
6608 (simplify_binary_operation_1) <case MULT>: If one operand is
6609 a NEG and the other is MULT, don't attempt to optimize by negation
6610 of the MULT operand if it only moves the NEG operation around.
6611
6612 PR debug/49602
6613 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
6614 get_current_def return value if it can't be trusted to be
6615 the current value of the variable in the current bb.
6616
6617 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
6618
6619 PR target/49600
6620 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
6621 general register to memory for !TARGET_INTER_UNIT_MOVES.
6622
6623 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
6624
6625 PR target/44643
6626 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
6627 instead of TREE_READONLY.
6628
6629 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
6630
6631 * doc/extend.texi (AVR Built-in Functions): Update documentation
6632 of __builtin_avr_fmul*.
6633 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
6634 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
6635 * config/avr/avr.md (fmul): Rename to fmul_insn.
6636 (fmuls): Rename to fmuls_insn.
6637 (fmulsu): Rename to fmulsu_insn.
6638 (fmul,fmuls,fmulsu): New expander.
6639 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
6640 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
6641 * config/avr/libgcc.S (__fmul): New function.
6642 (__fmuls): New function.
6643 (__fmulsu,__fmulsu_exit): New function.
6644
6645 2011-07-04 Richard Guenther <rguenther@suse.de>
6646
6647 PR tree-optimization/49615
6648 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
6649 basic-block index check.
6650
6651 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
6652
6653 * longlong.h (count_leading_zeros, count_trailing_zeros,
6654 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
6655 resp. 64.
6656
6657 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
6658
6659 PR tree-optimization/49610
6660 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
6661 a basic block.
6662
6663 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
6664 Olivier Hainque <hainque@adacore.com>
6665 Nicolas Setton <setton@adacore.com>
6666
6667 * tree.h (TYPE_ARTIFICIAL): New flag.
6668 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
6669 the DIE of the type if it is artificial.
6670 (gen_array_type_die): Likewise.
6671 (gen_enumeration_type_die): Likewise.
6672 (gen_struct_or_union_type_die): Likewise.
6673 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
6674 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
6675
6676 2011-07-01 Jakub Jelinek <jakub@redhat.com>
6677
6678 * tree-object-size.c (pass_through_call): Handle
6679 BUILT_IN_ASSUME_ALIGNED.
6680
6681 2011-07-01 Martin Jambor <mjambor@suse.cz>
6682
6683 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
6684
6685 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
6686
6687 PR middle-end/48016
6688 * explow.c (update_nonlocal_goto_save_area): Use proper mode
6689 for stack save area.
6690 * function.c (expand_function_start): Likewise.
6691
6692 2011-07-01 Richard Guenther <rguenther@suse.de>
6693
6694 PR middle-end/49596
6695 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
6696 may have unknown refs.
6697
6698 2011-07-01 Kai Tietz <ktietz@redhat.com>
6699
6700 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
6701
6702 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6703
6704 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
6705 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
6706 (Specific, mips-sgi-irix6): Likewise.
6707
6708 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6709
6710 PR libmudflap/49549
6711 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
6712
6713 2011-07-01 Jakub Jelinek <jakub@redhat.com>
6714
6715 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
6716 [idx]= and [idx1 ... idx2]= before initializers if needed for
6717 array initializers.
6718
6719 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
6720
6721 * config.gcc (score-*-elf): Remove score7.o.
6722 * config/score/t-score-elf: Likewise.
6723 * config/score/score.c: Merge score7 to score.c and
6724 remove forwarding functions.
6725 * config/score/score7.c: Deleted.
6726 * config/score/score7.h: Deleted.
6727
6728 2011-07-01 Richard Guenther <rguenther@suse.de>
6729
6730 PR tree-optimization/49603
6731 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
6732
6733 2011-06-30 Martin Jambor <mjambor@suse.cz>
6734
6735 * tree-sra.c (struct access): Rename total_scalarization to
6736 grp_total_scalarization
6737 (completely_scalarize_var): New function.
6738 (sort_and_splice_var_accesses): Set total_scalarization in the
6739 representative access.
6740 (analyze_access_subtree): Propagate total scalarization accross the
6741 tree, no holes in totally scalarized trees, simplify coverage
6742 computation.
6743 (analyze_all_variable_accesses): Call completely_scalarize_var instead
6744 of completely_scalarize_record.
6745
6746 2011-06-30 Richard Henderson <rth@redhat.com>
6747
6748 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
6749 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
6750 * config/i386/i386.c: Don't include dwarf2out.h.
6751 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
6752 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
6753 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
6754 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
6755 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
6756
6757 2011-06-30 Richard Henderson <rth@redhat.com>
6758
6759 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
6760 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6761 * final.c (final_scan_insn): Look for it, and invoke
6762 dwarf2out_frame_debug before the insn if found.
6763
6764 2011-06-30 Richard Henderson <rth@redhat.com>
6765
6766 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
6767 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
6768
6769 2011-06-30 Richard Henderson <rth@redhat.com>
6770
6771 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
6772 Define a vector of this type.
6773 (regs_saved_in_regs): Use a VEC.
6774 (num_regs_saved_in_regs): Remove.
6775 (compare_reg_or_pc): New.
6776 (record_reg_saved_in_reg): Split out from...
6777 (dwarf2out_flush_queued_reg_saves): ... here.
6778 (clobbers_queued_reg_save): Update for VEC.
6779 (reg_saved_in): Likewise.
6780 (dwarf2out_frame_debug_init): Likewise.
6781 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
6782 (dwarf2out_frame_debug_cfa_register): Likewise.
6783
6784 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
6785
6786 PR tree-optimization/49572
6787 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
6788 type of the RHS instead of that of the LHS for the expression type.
6789
6790 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
6791
6792 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
6793 unconditionally.
6794
6795 2011-06-30 Richard Guenther <rguenther@suse.de>
6796
6797 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
6798 * tree-ssa-structalias.c (create_variable_info_for): Do not
6799 add initial constraints for non-var-decls. Properly handle
6800 globals in other ltrans partitions.
6801 (intra_create_variable_infos): Manually create constraints for
6802 the fake no-alias parameter.
6803 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
6804 and assert there are no clones.
6805
6806 2011-06-30 Richard Guenther <rguenther@suse.de>
6807
6808 PR tree-optimization/46787
6809 * tree-data-ref.c (dr_address_invariant_p): Remove.
6810 (find_data_references_in_stmt): Invariant accesses are ok now.
6811 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
6812 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
6813 invariant loads.
6814
6815 2011-06-30 Martin Jambor <mjambor@suse.cz>
6816
6817 PR tree-optimization/49094
6818 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
6819 (build_accesses_from_assign): Use it.
6820
6821 2011-06-30 Jakub Jelinek <jakub@redhat.com>
6822
6823 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
6824 handling of BUILT_IN_ASSUME_ALIGNED.
6825
6826 PR debug/49364
6827 * dwarf2out.c (output_abbrev_section): Don't return early
6828 if abbrev_die_table_in_use is 1.
6829 (dwarf2out_finish): Instead don't call output_abbrev_section
6830 nor emit abbrev_section_label in that case.
6831
6832 2011-06-30 Nick Clifton <nickc@redhat.com>
6833
6834 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
6835 for the V850E.
6836
6837 2011-06-30 Jakub Jelinek <jakub@redhat.com>
6838
6839 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
6840 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
6841
6842 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
6843
6844 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
6845 both pattern and original statements if necessary.
6846 (vect_transform_loop): Likewise.
6847 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
6848 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
6849 Mark the pattern statement only if the original statement doesn't
6850 have its own uses.
6851 (process_use): Call vect_mark_relevant with additional parameter.
6852 (vect_mark_stmts_to_be_vectorized): Likewise.
6853 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
6854 (vect_analyze_stmt): Handle both pattern and original statements
6855 if necessary.
6856 (vect_transform_stmt): Don't store vectorized pattern statement
6857 in the original statement.
6858 (vect_is_simple_use_1): Use related pattern statement only if the
6859 original statement is irrelevant.
6860 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
6861
6862 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
6863
6864 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
6865 option.
6866 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
6867 entry.
6868 (TARGET_AVX128_OPTIMAL): New definition.
6869 * config/i386/i386.c (initial_ix86_tune_features): Initialize
6870 X86_TUNE_AVX128_OPTIMAL entry.
6871 (ix86_option_override_internal): Enable the generation
6872 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
6873 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
6874 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
6875
6876 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
6877
6878 PR tree-optimization/49539
6879 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
6880 names by means of stmt_references_abnormal_ssa_name.
6881 (associate_plusminus): Call can_propagate_from before propagating
6882 from definition statements.
6883 (ssa_forward_propagate_and_combine): Remove superfluous newline.
6884
6885 2011-06-29 Richard Guenther <rguenther@suse.de>
6886
6887 * doc/invoke.texi: Document -scev dump modifier.
6888 * tree-pass.h (TDF_SCEV): New dump flag.
6889 * tree-dump.c (dump_option_value_in): Add scev.
6890 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
6891 * tree-scalar-evolution.c: Likewise.
6892
6893 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
6894
6895 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
6896 (cxa_type_match): Correct declaration.
6897 (__gnu_unwind_pr_common): Reconstruct additional indirection
6898 when __cxa_type_match returns succeeded_with_ptr_to_base.
6899
6900 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6901
6902 PR rtl-optimization/49114
6903 * reload.c (struct replacement): Remove SUBREG_LOC member.
6904 (push_reload): Do not set it.
6905 (push_replacement): Likewise.
6906 (subst_reload): Remove dead code.
6907 (copy_replacements): Remove assertion.
6908 (copy_replacements_1): Do not handle SUBREG_LOC.
6909 (move_replacements): Likewise.
6910 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
6911 Detect subregs via recursive descent instead of via SUBREG_LOC.
6912
6913 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
6914
6915 * config/avr/avr.c (avr_encode_section_info): Dispatch to
6916 default_encode_section_info.
6917
6918 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
6919
6920 PR tree-optimization/49545
6921 * builtins.c (get_object_alignment_1): Update function comment.
6922 Do not use DECL_ALIGN for functions, but test
6923 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
6924 * fold-const.c (get_pointer_modulus_and_residue): Don't check
6925 for functions here.
6926 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
6927
6928 2011-06-29 Jakub Jelinek <jakub@redhat.com>
6929
6930 PR debug/49567
6931 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
6932 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
6933
6934 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
6935
6936 PR target/34734
6937 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
6938 about uninitialized data attributed 'progmem' from here...
6939 (avr_encode_section_info): ...to this new function.
6940 (TARGET_ENCODE_SECTION_INFO): New define.
6941 (avr_section_type_flags): For data in ".progmem.data", remove
6942 section flag SECTION_WRITE.
6943
6944 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
6945
6946 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
6947 _xmulhisi3_exit.
6948 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
6949 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
6950 (__umulhisi3): Ditto.
6951 * config/avr/avr.md (mulhisi3): New insn expender.
6952 (umulhisi3): New insn expender.
6953 (*mulhisi3_call): New insn.
6954 (*umulhisi3_call): New insn.
6955
6956 2011-06-28 Joseph Myers <joseph@codesourcery.com>
6957
6958 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
6959
6960 2011-06-28 Richard Henderson <rth@redhat.com>
6961
6962 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
6963 all code and arguments that handled pushes. Update all callers.
6964
6965 2011-06-28 Richard Henderson <rth@redhat.com>
6966
6967 * config/arm/arm.c (arm_output_function_prologue): Don't call
6968 thumb1_output_function_prologue.
6969 (arm_expand_prologue): Avoid dead store.
6970 (number_of_first_bit_set): Use ctz_hwi.
6971 (thumb1_emit_multi_reg_push): New.
6972 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
6973 to emit the entire prologue as rtl.
6974 (thumb1_output_interwork): Split out from
6975 thumb1_output_function_prologue.
6976 (thumb1_output_function_prologue): Remove.
6977 (arm_attr_length_push_multi): Handle thumb1.
6978 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
6979 (prologue_thumb1_interwork): New.
6980 (*push_multi): Allow thumb1; use push_mult_memory_operand.
6981 * config/arm/predicates.md (push_mult_memory_operand): New.
6982
6983 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
6984
6985 * config/sparc/sync.md (*stbar): Delete.
6986 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
6987
6988 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
6989
6990 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
6991
6992 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6993
6994 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
6995 (TARGET_64BIT_DEFAULT): Define.
6996 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
6997 of tm_file.
6998 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
6999
7000 2011-06-28 Joseph Myers <joseph@codesourcery.com>
7001
7002 * common.opt (in_lto_p): New Variable entry.
7003 * flags.h (in_lto_p): Move to common.opt.
7004 * gcc.c: Include params.h.
7005 (set_option_handlers): Also use common_handle_option and
7006 target_handle_option.
7007 (main): Call global_init_params, finish_params and init_options_struct.
7008 * opts.c (debug_type_names): Move from toplev.c.
7009 (print_filtered_help): Access quiet_flag through opts pointer.
7010 (common_handle_option): Return early in the driver for some options.
7011 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
7012 opts pointer.
7013 * toplev.c (in_lto_p): Move to common.opt.
7014 (debug_type_names): Move to opts.c.
7015 * Makefile.in (OBJS): Remove opts.o.
7016 (OBJS-libcommon-target): Add opts.o.
7017 (gcc.o): Update dependencies.
7018
7019 2011-06-28 Kai Tietz <ktietz@redhat.com>
7020
7021 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
7022
7023 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7024
7025 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
7026 with '=' constraint modifier.
7027 (*divdf3_vfp): Likewise.
7028 ("*mulsf3_vfp"): Likewise.
7029 ("*muldf3_vfp"): Likewise.
7030 ("*mulsf3negsf_vfp"): Likewise.
7031 ("*muldf3negdf_vfp"): Likewise.
7032
7033 2011-06-28 Nick Clifton <nickc@redhat.com>
7034
7035 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
7036 relaxation when performing an incremental link.
7037
7038 2011-06-28 Kai Tietz <ktietz@redhat.com>
7039
7040 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
7041 within BB from last to first.
7042
7043 2011-06-28 Joseph Myers <joseph@codesourcery.com>
7044
7045 * genattr-common.c: New. Based on genattr.c.
7046 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
7047 (MOSTLYCLEANFILES): Add insn-attr-common.h.
7048 (opts.o): Update dependencies.
7049 (.PRECIOUS): Add insn-attr-common.h.
7050 (simple_rtl_generated_h): Add insn-attr-common.h.
7051 (build/genattr-common.o): New.
7052 (genprogrtl): Add attr-common.
7053 * genattr.c (main): Include insn-attr-common.h. Don't generate
7054 definitions of DELAY_SLOTS or INSN_SCHEDULING.
7055 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
7056
7057 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
7058
7059 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
7060 avr-*-* and avr-*-rtems* targets.
7061
7062 * config/avr/elf.h: New file.
7063 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
7064 (TARGET_ASM_SELECT_SECTION): Define.
7065 (INIT_SECTION_ASM_OP): Undefine.
7066 (FINI_SECTION_ASM_OP): Undefine.
7067 (READONLY_DATA_SECTION_ASM_OP): Undefine.
7068 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
7069 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
7070 * config/avr/avr.h:
7071 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
7072 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
7073 (MAX_OFILE_ALIGNMENT): Move to elf.h.
7074 (STRING_LIMIT): Move to elf.h.
7075 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
7076 (ASM_DECLARE_OBJECT_NAME): Remove.
7077 (ESCAPES): Remove.
7078 (ASM_OUTPUT_SKIP): Remove.
7079 (DWARF2_DEBUGGING_INFO): Remove.
7080 (OBJECT_FORMAT_ELF): Remove.
7081 (USER_LABEL_PREFIX): Remove.
7082 (ASM_OUTPUT_EXTERNAL): Remove.
7083 (ASM_OUTPUT_ASCII): Remove.
7084 (TYPE_ASM_OP): Remove.
7085 (SIZE_ASM_OP): Remove.
7086 (WEAK_ASM_OP): Remove.
7087 (STRING_ASM_OP): Remove.
7088 (SET_ASM_OP): Remove.
7089 (ASM_WEAKEN_LABEL): Remove.
7090 (TYPE_OPERAND_FMT): Remove.
7091 (ASM_DECLARE_FUNCTION_SIZE): Remove.
7092 (ASM_FINISH_DECLARE_OBJECT): Remove.
7093 (NO_DOLLAR_IN_LABEL): Remove.
7094 (ASM_GENERATE_INTERNAL_LABEL): Remove.
7095 (ASM_OUTPUT_CASE_LABEL): Remove.
7096 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
7097 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
7098 (gas_output_ascii): Remove.
7099 (gas_output_limited_string): Remove.
7100 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
7101 * config/avr/avr-protos.h
7102 (gas_output_ascii): Remove prototye.
7103 (gas_output_limited_string): Remove prototype.
7104
7105 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
7106
7107 PR target/48637
7108 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
7109 asm operands.
7110
7111 2011-06-27 Jan Hubicka <jh@suse.cz>
7112
7113 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
7114 node instead of references in node.
7115
7116 2011-06-27 Richard Henderson <rth@redhat.com>
7117
7118 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
7119 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
7120 inside ifdef.
7121
7122 2011-06-27 Jakub Jelinek <jakub@redhat.com>
7123
7124 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
7125
7126 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
7127 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
7128 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
7129 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
7130 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
7131 (evaluate_stmt, execute_fold_all_builtins): Handle
7132 BUILT_IN_ASSUME_ALIGNED.
7133 * tree-ssa-dce.c (propagate_necessity): Likewise.
7134 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
7135 call_may_clobber_ref_p_1): Likewise.
7136 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
7137 (expand_builtin_assume_aligned): New function.
7138 * doc/extend.texi (__builtin_assume_aligned): Document.
7139
7140 PR debug/49544
7141 * cselib.c (promote_debug_loc): If cselib_preserve_constants
7142 and l has two DEBUG_INSN owned locs instead of just one, adjust
7143 the second location's setting_insn too.
7144
7145 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7146
7147 PR libmudflap/38738
7148 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
7149
7150 2011-06-27 Nick Clifton <nickc@redhat.com>
7151
7152 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
7153 bit position of highest bit set into a count of the high zero bits.
7154
7155 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
7156
7157 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
7158
7159 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
7160
7161 PR lto/48492
7162 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
7163 to a NULL parent.
7164
7165 2011-06-27 Richard Guenther <rguenther@suse.de>
7166
7167 PR tree-optimization/49394
7168 * passes.c (execute_one_pass): Restore current_pass after
7169 applying IPA transforms.
7170
7171 2011-06-27 Kai Tietz <ktietz@redhat.com>
7172
7173 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
7174 out of type precision after operation.
7175 (find_bswap): Take for limit value the integer auto-promotion
7176 into account.
7177
7178 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
7179
7180 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
7181 forward scan as well.
7182
7183 2011-06-27 Tristan Gingold <gingold@adacore.com>
7184
7185 PR target/44241
7186 * config/vms/vms-protos.h: New file.
7187 * config/vms/vms-crtlmap.map: New file.
7188 * config/vms/vms.c: New file.
7189 * config/vms/make-crtlmap.awk: New file.
7190 * config/vms/vms-crtl.h: File removed.
7191 * config/vms/vms-crtl-64.h: File removed.
7192 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
7193 * config/alpha/vms64.h: Do not include vms-crtl-64.h
7194 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
7195 clear some builtins on VMS. Calls vms_patch_builtins.
7196 (avms_asm_output_external): Remove.
7197 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
7198 (struct crtl_name_spec): Remove
7199 (DO_CTRL_NAMES): Remove.
7200 * config/ia64/vms.h (struct crtl_name_spec): Remove
7201 (DO_CTRL_NAMES): Remove.
7202 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
7203 clear some builtins on VMS. Calls vms_patch_builtins.
7204 (ia64_asm_output_external): Remove DO_CRTL_NAME.
7205 * config/ia64/vms64.h: Do not include vms-crtl-64.h
7206 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
7207
7208 2011-06-27 Tristan Gingold <gingold@adacore.com>
7209
7210 * config/alpha/alpha.c (alpha_end_function): Always generate .end
7211 directive on VMS.
7212
7213 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
7214
7215 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
7216 the function receives nonlocal gotos.
7217
7218 2011-06-27 Richard Guenther <rguenther@suse.de>
7219
7220 PR tree-optimization/49536
7221 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
7222 For non-scalar inner types use a scalar type according to
7223 the scalar inner mode.
7224
7225 2011-06-27 Richard Guenther <rguenther@suse.de>
7226
7227 PR tree-optimization/49365
7228 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
7229
7230 2011-06-27 Richard Guenther <rguenther@suse.de>
7231
7232 PR tree-optimization/49169
7233 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
7234 the alignment of function decls.
7235
7236 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
7237
7238 PR target/47997
7239 * config/darwin.c (darwin_mergeable_string_section): Place string
7240 constants in '.cstring' rather than '.const' when CF/NSStrings are
7241 active.
7242
7243 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
7244
7245 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
7246 (emit_save_register_window): Likewise.
7247 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
7248 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
7249 Swap back %o7/%i7 in register naming.
7250
7251 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
7252
7253 PR driver/49371
7254 * config/darwin.c (darwin_override_options): Improve warning when
7255 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
7256 is given with fpie/fPIE.
7257 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
7258 * config/darwin9.h (PIE_SPEC): New.
7259
7260 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
7261
7262 * timevar.c (timevar_print): Increase width for display of timevar
7263 name.
7264
7265 2011-06-24 Jakub Jelinek <jakub@redhat.com>
7266
7267 PR c++/46400
7268 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
7269 instead of TYPE_CHAIN for chain_next for types.
7270
7271 2011-06-24 Richard Henderson <rth@redhat.com>
7272
7273 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
7274 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
7275 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
7276 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
7277 (sparc_flat_expand_prologue): Emit individual instructions
7278 instead of one of the above.
7279
7280 2011-06-24 Easwaran Raman <eraman@google.com>
7281
7282 PR rtl-optimization/49429
7283 PR target/49454
7284 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
7285 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
7286 used to copy y into x.
7287 * calls.c (initialize_argument_information): Mark
7288 an argument addressable if it is passed by invisible reference.
7289 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
7290 if it is passed by reference.
7291
7292 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
7293
7294 PR rtl-optimization/49504
7295 * rtlanal.c (nonzero_bits1): Properly handle addition or
7296 subtraction of a pointer in Pmode if pointers extend unsigned.
7297 (num_sign_bit_copies1): Likewise.
7298
7299 2011-06-24 Martin Jambor <mjambor@suse.cz>
7300
7301 PR tree-optimizations/49516
7302 * tree-sra.c (sra_modify_assign): Choose the safe path for
7303 aggregate copies if we also did scalar replacements.
7304
7305 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7306
7307 PR target/49335
7308 * config/arm/predicates.md (add_operator): New.
7309 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
7310
7311 2011-06-24 Andi Kleen <ak@linux.intel.com>
7312
7313 * tree-sra.c (type_internals_preclude_sra_p): Add msg
7314 parameter. Split up ifs and report reason in *msg.
7315 (reject): Add.
7316 (find_var_candiate): Add msg variable.
7317 Split up ifs and report reason to reject.
7318 (find_param_candidates): Add msg variable.
7319 Pass msg to type_internals_preclude_sra_p.
7320
7321 2011-06-23 Jeff Law <law@redhat.com>
7322
7323 PR middle-end/48770
7324 * reload.h (reload): Change to return a bool.
7325 * ira.c (ira): If requested by reload, run a fast DCE pass after
7326 reload has completed. Fix comment typo.
7327 * reload1.c (need_dce): New file scoped static.
7328 (reload): Set reload_completed here. Return whether or not a DCE
7329 pass after reload is needed.
7330 (delete_dead_insn): Set need_dce as needed.
7331
7332 PR middle-end/49465
7333 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
7334 to detect threading through joiner block. If there was already
7335 an edge to the new target, then do not change the PHI nodes.
7336
7337 2011-06-23 Jakub Jelinek <jakub@redhat.com>
7338
7339 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
7340 get_pointer_alignment to see if base isn't sufficiently aligned.
7341
7342 2011-06-23 Jan Hubicka <jh@suse.cz>
7343
7344 PR tree-optimize/49373
7345 * tree-pass.h (all_late_ipa_passes): Declare.
7346 * cgraphunit.c (init_lowered_empty_function): Fix properties.
7347 (cgraph_optimize): Execute late passes; remove unreachable funcions
7348 after materialization.
7349 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
7350 LTOing.
7351 * passes.c (all_late_ipa_passes): Declare.
7352 (dump_passes, register_pass): Handle late ipa passes.
7353 (init_optimization_passes): Move ipa_pta to late passes; schedule
7354 fixup_cfg at beggining of all_passes.
7355 (apply_ipa_transforms): New function.
7356 (execute_one_pass): When doing simple ipa pass, apply all transforms.
7357
7358 2011-06-23 Joseph Myers <joseph@codesourcery.com>
7359
7360 * params.c: Include common/common-target.h. Don't include tm.h.
7361 (lang_independent_params): Move from toplev.c.
7362 (global_init_params): New.
7363 * params.h (global_init_params): Declare.
7364 * target.def (default_params): Move to common-target.def.
7365 * toplev.c (lang_independent_options): Remove.
7366 (lang_independent_params): Move to params.c.
7367 (general_init): Use global_init_params.
7368 * common/common-target.def (option_default_params): Move from
7369 target.def.
7370 * common/config/ia64/ia64-common.c: Include params.h.
7371 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
7372 from ia64.c.
7373 * common/config/rs6000/rs6000-common.c: Include params.h.
7374 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
7375 from rs6000.c.
7376 * common/config/sh/sh-common.c: Include params.h.
7377 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
7378 from sh.c.
7379 * common/config/spu/spu-common.c: Include params.h.
7380 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
7381 from spu.c.
7382 * config/ia64/ia64.c (ia64_option_default_params,
7383 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
7384 * config/rs6000/rs6000.c (rs6000_option_default_params,
7385 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
7386 * config/sh/sh.c (sh_option_default_params,
7387 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
7388 * config/spu/spu.c (spu_option_default_params,
7389 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
7390 * Makefile.in (OBJS): Remove params.o.
7391 (OBJS-libcommon-target): Add params.o.
7392 (params.o, $(common_out_object_file)): Update dependencies.
7393 * doc/tm.texi: Regenerate.
7394
7395 2011-06-23 Alan Modra <amodra@gmail.com>
7396
7397 PR bootstrap/49383
7398 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
7399 invocation for 2011-06-09 changes.
7400
7401 2011-06-22 Jakub Jelinek <jakub@redhat.com>
7402
7403 PR libgomp/49490
7404 * omp-low.c (expand_omp_for_static_nochunk): Only
7405 use n ceil/ nthreads size for the first n % nthreads threads in the
7406 team instead of all threads except for the last few ones which
7407 get less work or none at all.
7408
7409 PR debug/49496
7410 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
7411 uses.
7412
7413 2011-06-22 Richard Guenther <rguenther@suse.de>
7414
7415 PR tree-optimization/49493
7416 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
7417 Refer to the alias target of variables.
7418 (associate_varinfo_to_alias_1): Remove.
7419 (ipa_pta_execute): Do not associate aliases with anything.
7420 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
7421 (cgraph_function_node): Likewise.
7422 (cgraph_function_or_thunk_node): Likewise.
7423 (varpool_variable_node): Likewise.
7424
7425 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
7426
7427 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
7428 * config.gcc (arm*-*-linux*): Default to gnu tls.
7429 (arm*-*-*): Add --with-tls option.
7430 (all_defaults): Add 'tls'.
7431
7432 2011-06-22 Richard Henderson <rth@redhat.com>
7433
7434 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
7435 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7436 (dwarf2out_frame_debug_cfa_window_save): Rename from
7437 dwarf2out_window_save; make static.
7438 * tree.h (dwarf2out_window_save): Don't declare.
7439
7440 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
7441 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7442 (emit_save_register_window): Rename from gen_save_register_window;
7443 emit the insn and add REG_CFA_* notes.
7444 (sparc_expand_prologue): Update to match.
7445 * config/sparc/sparc.md (save_register_window_1): Simplify from
7446 save_register_window<P:mode>.
7447
7448 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
7449
7450 PR target/49497
7451 * config/i386/i386.md (*lea_general_2): Always allow SImode.
7452 (*lea_general_2_zext): Likewise.
7453 (imul to lea peepholes): Use const359_operand and check
7454 TARGET_PARTIAL_REG_STALL.
7455
7456 * config/i386/predicates.md (const359_operand): New.
7457
7458 2011-06-22 Michael Matz <matz@suse.de>
7459
7460 * cgraphunit.c (assemble_thunk): Use correct return type.
7461
7462 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
7463 Dmitry Melnik <dm@ispras.ru>
7464
7465 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
7466 (neon_output_shift_immediate): Ditto.
7467 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
7468 prototype.
7469 (neon_output_shift_immediate): Ditto.
7470 * config/arm/neon.md (vashl<mode>3): Modified constraint.
7471 (vashr<mode>3_imm): New insn pattern.
7472 (vlshr<mode>3_imm): Ditto.
7473 (vashr<mode>3): Modified constraint.
7474 (vlshr<mode>3): Ditto.
7475 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
7476 predicate.
7477 (imm_for_neon_rshift_operand): Ditto.
7478 (imm_lshift_or_reg_neon): Ditto.
7479 (imm_rshift_or_reg_neon): Ditto.
7480
7481 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
7482
7483 2011-06-22 Jakub Jelinek <jakub@redhat.com>
7484
7485 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
7486 builtin calls even if likelyvalue is not CONSTANT.
7487 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
7488 Return get_value_for_expr of first operand
7489 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
7490 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7491 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
7492 their non-checking counterparts.
7493 (call_may_clobber_ref_p_1): Likewise.
7494 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
7495 like their non-checking counterparts.
7496 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7497 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
7498 like their non-checking counterparts.
7499 (find_func_clobbers): Likewise.
7500 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
7501 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
7502
7503 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
7504 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
7505 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
7506 of base type reference as argument.
7507 (resolve_addr_in_expr): Likewise. Fix keep computation.
7508 (convert_descriptor_to_signed): Renamed to...
7509 (convert_descriptor_to_mode): ... this. For wider types convert to
7510 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
7511 (typed_binop): New function.
7512 (scompare_loc_descriptor, ucompare_loc_descriptor,
7513 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
7514 default to unsigned type instead of signed.
7515
7516 PR debug/47858
7517 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
7518 (gimple_build_debug_source_bind_stat): New prototype.
7519 (gimple_build_debug_source_bind): Define.
7520 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
7521 gimple_debug_source_bind_get_value,
7522 gimple_debug_source_bind_get_value_ptr,
7523 gimple_debug_source_bind_set_var,
7524 gimple_debug_source_bind_set_value): New inlines.
7525 * gimple.c (gimple_build_debug_source_bind_stat): New function.
7526 * gimple-pretty-print.c (dump_gimple_debug): Handle
7527 GIMPLE_DEBUG_SOURCE_BIND.
7528 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
7529 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7530 * tree-parloops.c (eliminate_local_variables,
7531 separate_decls_in_region): Likewise.
7532 (separate_decls_in_region_debug): Renamed from
7533 separate_decls_in_region_debug_bind. Handle
7534 gimple_debug_source_bind_p.
7535 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
7536 prototypes.
7537 (DECL_HAS_DEBUG_ARGS_P): Define.
7538 (struct tree_function_decl): Add has_debug_args_flag field.
7539 * tree.c (debug_args_for_decl): New variable.
7540 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
7541 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
7542 (rewrite_debug_stmt_uses): New function.
7543 (rewrite_stmt): Use it to rewrite debug stmt uses.
7544 * rtl.def (DEBUG_PARAMETER_REF): New.
7545 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
7546 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
7547 DEBUG_PARAMETER_REF.
7548 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
7549 * print-rtl.c (print_rtx): Likewise.
7550 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
7551 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
7552 debug stmts in the first bb.
7553 * tree-inline.c (remap_ssa_name): If remapping default def
7554 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
7555 a source bind debug stmt.
7556 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
7557 (maybe_move_debug_stmts_to_successors): Likewise.
7558 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
7559 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
7560 debug args vector from old_decl to new_decl.
7561 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
7562 or modified parameters, add debug bind stmts before call
7563 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
7564 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
7565 on DECL_DEBUG_EXPRs from debug args vector.
7566 (expand_debug_source_expr): New function.
7567 (expand_debug_locations): Use it for source bind insns.
7568 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
7569 * var-tracking.c (prepare_call_arguments): Add debug args
7570 to call_arguments if any.
7571 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
7572 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
7573 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
7574 (get_ref_die_offset, parameter_ref_descriptor): New functions.
7575 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
7576 (gen_subprogram_die): Handle parameters identified by
7577 DEBUG_PARAMETER_REF.
7578
7579 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
7580
7581 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
7582 * doc/install.texi (Configuration): Document --with-tls.
7583 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
7584 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
7585 (arm_tls_descseq_addr): New.
7586 (legitimize_tls_address): Add tlsdesc support.
7587 (arm_cannot_copy_insn_p): Check for tlscall.
7588 (arm_emit_tls_decoration): Likewise.
7589 * config/arm/arm.h (TARGET_GNU2_TLS): New.
7590 (OPTION_DEFAULT_SPECS): Add with-tls support.
7591 * config/arm/arm.md (R1_REGNUM): Define.
7592 (tlscall): New.
7593 * config/arm/arm.opt (tls_type): New enumeration type and values.
7594 (mtls-dialect): New switch.
7595 * config/arm/arm-opts.h (enum tls_type): New.
7596
7597 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
7598
7599 * attribs.c (register_attribute): Added assert to check that all
7600 attribute specs are registered with a name that is not empty and
7601 does not start with '_'.
7602 (decl_attributes): Avoid the lookup of the "naked" attribute spec
7603 if the function has no attributes.
7604 * tree.c (is_attribute_with_length_p): Removed.
7605 (is_attribute_p): Removed.
7606 (private_is_attribute_p): New.
7607 (private_lookup_attribute): New.
7608 (lookup_attribute): Removed.
7609 (lookup_ident_attribute): New.
7610 (remove_attribute): Require the first argument to be in the form
7611 'text', not '__text__'. Updated asserts.
7612 (merge_attributes): Use lookup_ident_attributes instead of
7613 lookup_attribute.
7614 (merge_dllimport_decl_attributes): Use remove_attribute.
7615 (attribute_list_contained): Likewise.
7616 (attribute_list_equal): Immediately return 1 if the arguments are
7617 identical pointers.
7618 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
7619 'int'. Require the first argument to be in the form 'text', not
7620 '__text__'. Require the second argument to be an identifier.
7621 (lookup_attribute): Made inline. Require the first argument to be
7622 in the form 'text', not '__text__'.
7623 (private_is_attribute_p, private_lookup_attribute): New.
7624 Updated comments.
7625
7626 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
7627
7628 * builtins.c: Add sync_ or SYNC__ to builtin names.
7629 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
7630 * omp-low.c: Add sync_ or SYNC__ to builtin names.
7631
7632 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
7633
7634 PR target/33049
7635 * config/avr/avr.md (extzv): New expander.
7636 (*extzv): New insn.
7637 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
7638 * config/avr/constraints.md (C04): New constraint.
7639 * doc/md.texi (Machine Constraints): Document it.
7640
7641 2011-06-21 Jakub Jelinek <jakub@redhat.com>
7642
7643 PR middle-end/49489
7644 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
7645 unsignedp argument instead of 1 for clrsb_optab.
7646 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
7647 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
7648 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
7649 * optabs.c (widen_leading): Call widen_operand and expand_unop
7650 with 0 as unsignedp argument instead of 1 for clrsb_optab.
7651 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
7652
7653 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
7654
7655 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
7656
7657 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
7658
7659 * gensupport.c (add_define_attr): New static function.
7660 (is_predicable): Allow multi-alternative lists for the "predicable"
7661 attribute.
7662 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
7663 (process_one_cond_exec): Call alter_attrs_for_insn.
7664 * doc/md.texi (Defining Attributes): Mention some standard names.
7665 (Conditional Execution): Update documentation for "predicable".
7666
7667 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
7668 __builtin_clrsbll): Document.
7669 * doc/rtl.texi (clrsb): New entry.
7670 * optabs.c (widen_leading): Renamed from widen_clz. New argument
7671 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
7672 (expand_unop): Handle clrsb_optab.
7673 (init_optabs): Initialize it.
7674 * optabs.h (enum optab_index): New entry OTI_clrsb.
7675 (clrsb_optab): Define.
7676 * genopinit.c (optabs): Add an entry for it.
7677 * builtins.c (expand_builtin): Handle clrsb builtin functions.
7678 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
7679 BUILT_IN_CLRSBLL): New.
7680 * rtl.def (CLRSB): New code.
7681 * dwarf2out.c (mem_loc_descriptor): Handle it.
7682 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7683 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
7684 and popcount.
7685 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
7686 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
7687 (__ctzDI2): Move declaration.
7688 * config/bfin/bfin.md (clrsbsi2): New expander.
7689 (signbitssi2): Use the CLRSB rtx.
7690 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
7691 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
7692
7693 2011-06-21 Richard Guenther <rguenther@suse.de>
7694
7695 * ipa-inline-transform.c (inline_transform): Fix previous change.
7696
7697 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
7698
7699 PR tree-optimization/49478
7700 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
7701 with constant operand.
7702
7703 2011-06-21 Richard Guenther <rguenther@suse.de>
7704
7705 * ipa-inline-transform.c (inline_transform): Fix typo.
7706
7707 2011-06-21 Richard Guenther <rguenther@suse.de>
7708
7709 PR tree-optimization/49483
7710 * tree-vect-stmts.c (vectorizable_assignment): Also handle
7711 VIEW_CONVERT_EXPR conversions.
7712
7713 2011-06-21 Joseph Myers <joseph@codesourcery.com>
7714
7715 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
7716 * config/avr/avr-tables.opt: New file (generated).
7717 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
7718 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
7719 avr-mcus.def.
7720 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
7721 (avr_option_override): Don't process -mmcu= argument here. Set
7722 avr_current_device using avr_mcu_index.
7723 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
7724 * config/avr/avr.opt (mmcu=): Use Enum.
7725 * config/avr/t-avr (avr-devices.o): Update dependencies.
7726 ($(srcdir)/config/avr/avr-tables.opt): New.
7727 * target.def (help): Remove.
7728 * doc/tm.texi.in (TARGET_HELP): Remove.
7729 * doc/tm.texi: Regenerate.
7730 * opts.c: Don't include target.h.
7731 (common_handle_option): Don't call targetm.help.
7732 * system.h (TARGET_HELP): Poison.
7733 * Makefile.in (opts.o): Update dependencies.
7734
7735 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7736
7737 * config/usegld.h: New file.
7738 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
7739 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
7740 (LIB_SPEC): Likewise. Search /lib.
7741 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
7742 (RDYNAMIC_SPEC): Handle GNU ld.
7743 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
7744 Define.
7745 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
7746 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
7747 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
7748 (STACK_CHECK_STATIC_BUILTIN): Define.
7749 * config/sol2.opt (compat-bsd): Remove.
7750 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
7751 * config/sol2-bi.h: New file.
7752 * config/sol2-gld.h: Remove.
7753 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
7754 (NO_DBX_BNSYM_ENSYM): Remove.
7755 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
7756 (STACK_CHECK_STATIC_BUILTIN): Remove.
7757 Test USE_GLD instead of TARGET_GNU_LD.
7758 * config/i386/sol2-10.h: Rename to ...
7759 * config/i386/sol2-bi.h .. this.
7760 (SUBTARGET_EXTRA_SPECS): Redefine.
7761 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
7762 (MULTILIB_DEFAULTS): Remove.
7763 (DEFAULT_ARCH32_P): Define.
7764 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
7765 (ARCH64_SUBDIR): Define.
7766 Test USE_GLD instead of TARGET_GNU_LD.
7767 (I386_EMULATION): Rename to ...
7768 (ARCH32_EMULATION): ... this.
7769 (X86_64_EMULATION): Rename to ...
7770 (ARCH64_EMULATION): ... this.
7771 (TARGET_LD_EMULATION): Remove.
7772 (LINK_ARCH_SPEC): Remove.
7773 * config/i386/sol2-gas.h: Remove.
7774 * config/i386/t-sol2-10: Rename to ...
7775 * config/i386/t-sol2-64: ... this.
7776 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
7777 (AS_SPARC64_FLAG): Define.
7778 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
7779 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
7780 depending on TARGET_CPU_DEFAULT.
7781 (CPP_CPU_SPEC): Redefine.
7782 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
7783 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
7784 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
7785 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
7786 ASM_ARCH_DEFAULT_SPEC): Redefine.
7787 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7788 LINK_ARCH_DEFAULT_SPEC.
7789 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
7790 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
7791 (ARCH64_SUBDIR): Define.
7792 (LINK_ARCH64_SPEC): Redefine.
7793 (CC1_SPEC): Redefine.
7794 (OPTION_DEFAULT_SPECS): Redefine.
7795 (MULTILIB_DEFAULTS): Define.
7796 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
7797 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
7798 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
7799 (NO_DBX_BNSYM_ENSYM): Remove.
7800 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
7801 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
7802 (TARGET_ASM_NAMED_SECTION): Likewise.
7803 (STACK_CHECK_STATIC_BUILTIN): Remove.
7804 * config/sparc/sol2-bi.h: Remove.
7805 * config/sparc/sol2-gas-bi.h: Remove.
7806 * config/sparc/sol2-gas.h: Remove.
7807 * config/sparc/sol2-gld-bi.h: Remove.
7808 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
7809 common parts ...
7810 (*-*-solaris2*): ... here.
7811
7812 2011-06-21 Christian Bruel <christian.bruel@st.com>
7813
7814 PR other/43564
7815 * ipa-inline.c (can_inline_edge_p): Check
7816 !DECL_DISREGARD_INLINE_LIMITS.
7817
7818 2011-06-21 Christian Bruel <christian.bruel@st.com>
7819
7820 PR middle-end/49139
7821 * cgraphunit.c (process_function_and_variable_attributes): warn when
7822 always_inline functions that are not inline.
7823 * ipa-inline-transform.c (inline_transform): Always call
7824 optimize_inline.
7825 * tree-inline.c (tree_inlinable_function_p): Use error instead
7826 of sorry.
7827 (expand_call_inline): Likewise.
7828
7829 2011-06-21 Jakub Jelinek <jakub@redhat.com>
7830
7831 * Makefile.in (dg_target_exps): Set.
7832 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
7833 instead of 7, try to divide it more evenly.
7834
7835 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
7836
7837 PR target/49089
7838 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
7839 (avx256_split_unaligned_store): New definition.
7840 (ix86_option_override_internal): Enable avx256 unaligned load/store
7841 splitting only when avx256_split_unaligned_load/store is set.
7842
7843 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
7844
7845 * regrename.c (scan_rtx_reg): Handle the case where we write to an
7846 open chain in a smaller mode without failing the entire block.
7847
7848 2011-06-21 Alan Modra <amodra@gmail.com>
7849
7850 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
7851 CONST high part large-toc address.
7852 (rs6000_tls_referenced_p): Make static.
7853 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
7854
7855 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7856
7857 PR target/49385
7858 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
7859 one of the operands is a register.
7860
7861 2011-06-20 Kai Tietz <ktietz@redhat.com>
7862
7863 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
7864 operations in combination with binary and.
7865
7866 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
7867
7868 * regrename.c (do_replace): Don't update notes.
7869
7870 2011-06-20 Alan Modra <amodra@gmail.com>
7871
7872 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
7873 of toc-relative address in CONST.
7874 (rs6000_delegitimize_address): Recognize changed address.
7875 (rs6000_legitimize_reload_address): Likewise.
7876 (rs6000_emit_move): Don't force these constants to memory.
7877 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
7878 toc-relative address in CONST.
7879 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
7880 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
7881
7882 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
7883
7884 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
7885 (count_trailing_zeros): Likewise.
7886
7887 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
7888
7889 PR other/49325
7890 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
7891 .init_array can be used with .ctors on targets.
7892 * configure: Regenerated.
7893
7894 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
7895
7896 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
7897 if the element type is volatile.
7898
7899 2011-06-18 Jan Hubicka <jh@suse.cz>
7900
7901 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
7902 extra name aliases.
7903 (lto_symtab_resolve_can_prevail_p): Likewise.
7904 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
7905 * cgraphbuild.c (record_reference): Remove extra body alias code.
7906 (mark_load): Likewise.
7907 (mark_store): Likewise.
7908 * cgraph.h (varpool_node): Remove extra_name filed;
7909 add alias_of and extraname_alias.
7910 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
7911 (varpool_alias_aliased_node): New inline function.
7912 (varpool_variable_node): New function.
7913 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
7914 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
7915 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
7916 (input_varpool_node): Likewise.
7917 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
7918 (varpool_externally_visible_p): Remove extra body alias code.
7919 (function_and_variable_visibility): Likewise.
7920 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
7921 (ipa_pta_execute): Use it.
7922 * varpool.c (varpool_remove_node): Remove extra name alias code.
7923 (varpool_mark_needed_node): Likewise.
7924 (varpool_analyze_pending_decls): Analyze aliases.
7925 (assemble_aliases): New functoin.
7926 (varpool_assemble_decl): Use it.
7927 (varpool_create_variable_alias): New function.
7928 (varpool_extra_name_alias): Rewrite.
7929 (varpool_for_node_and_aliases): New function.
7930
7931 2011-06-18 Jakub Jelinek <jakub@redhat.com>
7932
7933 PR target/49411
7934 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
7935 last_arg_constant and last argument doesn't match its predicate,
7936 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
7937 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
7938 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
7939 spelling of error message.
7940 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
7941 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
7942 const_0_to_255_operand instead of const_int_operand.
7943
7944 Revert:
7945 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7946
7947 * config/i386/sse.md (blendbits): Remove mode attribute.
7948 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
7949 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
7950 Check integer value of operand 3 in insn constraint.
7951
7952 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
7953
7954 PR rtl-optimization/48542
7955 * reload.c (find_equiv_reg): Stop looking when finding a
7956 setjmp-type call.
7957 * reload1.c (reload_as_needed): Invalidate all reload
7958 registers when crossing a setjmp-type call.
7959
7960 2011-06-16 Jeff Law <law@redhat.com>
7961
7962 * tree-ssa-threadupdate.c (struct redirection_data): New field
7963 intermediate_edge.
7964 (THREAD_TARGET2): Define.
7965 (redirection_data_eq): Also check that the intermediate edge is equal.
7966 (lookup_redirection_data): Drop useless argument. Extract the
7967 outgoing_edge and intermediate edge from E. Callers updated.
7968 (copy_phi_args, update_destination_phis): New functions.
7969 (fix_duplicate_block_edges): Likewise.
7970 (create_edge_and_update_destination_phis): Duplicate all the edges
7971 hung off e->aux. Use copy_phi_args.
7972 (create_duplicates): Use fix_duplicate_block_edges.
7973 (fixup_template_block): Likewise.
7974 (redirect_edges): If necessary, redirect the joiner block's incoming
7975 edge to the duplicate of the joiner block.
7976 (thread_block): Don't muck up loops when threading through a joiner
7977 block.
7978 (thread_through_loop_header): Handle threading through a joiner block.
7979 (mark_threaded_blocks, register_jump_thread): Likewise.
7980 * tree-flow.h (register_jump_thread): Add new argument. Callers
7981 updated.
7982 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
7983 (thread_across_edge): Handle threading through a joiner block.
7984
7985 2011-06-16 Martin Jambor <mjambor@suse.cz>
7986
7987 PR tree-optimization/49343
7988 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
7989 calculate offset, provide 2nd operand for the new COMPONENT_REF.
7990
7991 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
7992
7993 * config/darwin-protos.h (machopic_select_rtx_section): Move to
7994 inside RTX_CODE ifdef.
7995
7996 2011-06-16 Tom de Vries <tom@codesourcery.com>
7997
7998 PR target/45098
7999 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
8000 Disallow NULL pointer for pointer arithmetic.
8001
8002 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8003
8004 PR target/49398
8005 Revert.
8006 2011-06-10 Wei Guozhi <carrot@google.com>
8007
8008 PR target/45335
8009 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
8010 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
8011 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
8012 related peephole2.
8013 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
8014 related peephole2.
8015 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
8016 (arm_legitimate_ldrd_p): New prototype.
8017 (arm_output_ldrd): New prototype.
8018 * config/arm/arm.c (arm_check_ldrd_operands): New function.
8019 (arm_legitimate_ldrd_p): New function.
8020 (arm_output_ldrd): New function.
8021
8022 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
8023
8024 PR middle-end/46500
8025 * doc/tm.texi.in: Update Copyright date.
8026 * doc/tm.texi: Regenerate.
8027 * targhooks.c (default_setup_incoming_varargs): Replace
8028 CUMULATIVE_ARGS* argument type with cumulative_args_t.
8029 (default_pretend_outgoing_varargs_named): Likewise.
8030 (hook_pass_by_reference_must_pass_in_stack): Likewise.
8031 (hook_callee_copies_named): Likewise.
8032 (default_function_arg_advance): Likewise.
8033 (default_function_arg): Likewise.
8034 (default_function_incoming_arg): Likewise.
8035 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
8036 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
8037 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
8038 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
8039 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
8040 * targhooks.h (default_setup_incoming_varargs): Likewise.
8041 (default_pretend_outgoing_varargs_named): Likewise.
8042 (hook_pass_by_reference_must_pass_in_stack): Likewise.
8043 (hook_callee_copies_named): Likewise.
8044 (default_function_arg_advance): Likewise.
8045 (default_function_arg): Likewise.
8046 (default_function_incoming_arg): Likewise.
8047 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
8048 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
8049 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
8050 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
8051 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
8052 * target.def (pass_by_reference): Likewise.
8053 (setup_incoming_varargs, strict_argument_naming): Likewise.
8054 (pretend_outgoing_varargs_named, callee_copies): Likewise.
8055 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
8056 (function_incoming_arg): Likewise.
8057 * target.h: Don't include "tm.h" .
8058 (cumulative_args_t): New typedef.
8059 [GCC_TM_H] (get_cumulative_args): New static inline function.
8060 [GCC_TM_H] (pack_cumulative_args): Likewise.
8061 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
8062 argument type with cumulative_args_t.
8063 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
8064 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
8065 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
8066 (frv_arg_partial_bytes, frv_function_arg): Likewise.
8067 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
8068 (frv_function_arg_1): Likewise.
8069 * config/s390/s390.c (s390_pass_by_reference): Likewise.
8070 (s390_function_arg_advance, s390_function_arg): Likewise.
8071 * config/m32c/m32c.c (m32c_function_arg): Likewise.
8072 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
8073 (m32c_strict_argument_naming): Likewise.
8074 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
8075 (spu_function_arg_advance): Likewise.
8076 (spu_setup_incoming_varargs): Likewise. Make static.
8077 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
8078 Remove prototype.
8079 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
8080 CUMULATIVE_ARGS* argument type with cumulative_args_t.
8081 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
8082 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
8083 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
8084 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
8085 (mep_pass_by_reference, mep_function_arg): Likewise.
8086 (mep_function_arg_advance): Likewise.
8087 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
8088 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
8089 (m32r_function_arg, m32r_function_arg_advance): Likewise.
8090 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
8091 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
8092 (ix86_function_arg, ix86_pass_by_reference): Likewise.
8093 (ix86_setup_incoming_varargs): Likewise.
8094 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
8095 (sh_strict_argument_naming): Likewise.
8096 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
8097 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
8098 (sh_function_arg_advance, sh_function_arg): Likewise.
8099 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
8100 (pdp11_function_arg_advance): Likewise.
8101 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
8102 Likewise.
8103 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
8104 * config/avr/avr.c (avr_function_arg): Likewise.
8105 (avr_function_arg_advance): Likewise.
8106 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
8107 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
8108 (xtensa_function_arg_1): Likewise.
8109 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
8110 Likewise.
8111 (xstormy16_function_arg): Likewise.
8112 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
8113 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
8114 (fr30_function_arg_advance): Likewise.
8115 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
8116 (lm32_function_arg, lm32_function_arg_advance): Likewise.
8117 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
8118 (moxie_function_arg, moxie_function_arg_advance): Likewise.
8119 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
8120 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
8121 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
8122 (cris_function_arg, cris_function_incoming_arg): Likewise.
8123 (cris_function_arg_advance, cris_function_arg_1): Likewise.
8124 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
8125 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
8126 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
8127 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
8128 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
8129 (mn10300_arg_partial_bytes): Likewise.
8130 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
8131 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
8132 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
8133 (ia64_function_arg_1): Likewise.
8134 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
8135 (m68k_function_arg): Likewise.
8136 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
8137 (rs6000_function_arg, setup_incoming_varargs): Likewise.
8138 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
8139 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
8140 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
8141 (picochip_arg_advance): Likewise.
8142 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
8143 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
8144 (mcore_function_arg_advance): Likewise.
8145 * config/score/score.c (score_pass_by_reference): Likewise.
8146 (score_function_arg_advance): Likewise.
8147 (score_arg_partial_bytes): Likewise. Make static.
8148 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
8149 * config/arm/arm.c (arm_arg_partial_bytes): Replace
8150 CUMULATIVE_ARGS* argument type with cumulative_args_t.
8151 (arm_function_arg, arm_function_arg_advance): Likewise.
8152 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
8153 * config/pa/pa.c (pa_pass_by_reference): Likewise.
8154 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
8155 (pa_function_arg): Likewise.
8156 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
8157 (mips_function_arg, mips_function_arg_advance): Likewise.
8158 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
8159 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
8160 * config/vax/vax.c (vax_function_arg): Likewise.
8161 (vax_function_arg_advance): Likewise.
8162 * config/h8300/h8300.c (h8300_function_arg): Likewise.
8163 (h8300_function_arg_advance): Likewise.
8164 * config/v850/v850.c (v850_pass_by_reference): Likewise.
8165 (v850_strict_argument_naming, v850_function_arg): Likewise.
8166 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
8167 (v850_setup_incoming_varargs): Likewise.
8168 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
8169 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
8170 (mmix_function_arg, mmix_pass_by_reference): Likewise.
8171 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
8172 with const void *.
8173 * config/bfin/bfin.c (setup_incoming_varargs): Replace
8174 CUMULATIVE_ARGS* argument type with cumulative_args_t.
8175 (bfin_function_arg_advance, bfin_function_arg): Likewise.
8176 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
8177 * calls.c (emit_call_1): Change type of args_so_far to
8178 cumulative_args_t. Changed all callers.
8179 (initialize_argument_information): Likewise.
8180 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
8181 * dse.c (get_call_args): Likewise.
8182 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
8183 * function.c (pass_by_reference, reference_callee_copied): Likewise.
8184 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
8185 New member args_so_far_v. Changed all users.
8186 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
8187 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
8188 * config/mips/mips.c (mips_output_args_xfer): Likewise.
8189 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
8190 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8191 * config/microblaze/microblaze.c (microblaze_expand_prologue):
8192 Likewise.
8193 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
8194 m32r_pass_by_reference.
8195
8196 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
8197
8198 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
8199 argument to be a VEC of statements.
8200 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
8201 assert that pattern statements have to have their vector type set.
8202 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
8203 Change the first argument to be a VEC of statements. Update
8204 documentation.
8205 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
8206 (vect_handle_widen_mult_by_const): New function.
8207 (vect_recog_widen_mult_pattern): Change the first argument to be a
8208 VEC of statements. Update documentation. Check that the constant is
8209 INTEGER_CST. Support multiplication by a constant that fits an
8210 intermediate type - call vect_handle_widen_mult_by_const.
8211 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
8212 call. Handle additional pattern statements if necessary.
8213
8214 2011-06-16 Nick Clifton <nickc@redhat.com>
8215
8216 PR target/49427
8217 * config.gcc: Set cpu_type to v850 for any V850 architecture.
8218 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
8219 md_file, extra_modes, out_file and extra_options are these are all
8220 deduced from cpu_type.
8221
8222 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
8223
8224 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
8225 truncation mask to 63.
8226
8227 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
8228
8229 PR target/49313
8230 PR target/29524
8231 * longlong.h: Add AVR support:
8232 (count_leading_zeros): New macro.
8233 (count_trailing_zeros): New macro.
8234 (COUNT_LEADING_ZEROS_0): New macro.
8235 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
8236 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
8237 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
8238 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
8239 (LIB2FUNCS_EXCLUDE): Add _clz.
8240 * config/avr/libgcc.S (XCALL): Move up in file.
8241 (XJMP): New C Macro.
8242 (DEFUN): New asm macro.
8243 (ENDF): New asm macro.
8244 (__ffssi2): New function.
8245 (__ffshi2): New function.
8246 (__loop_ffsqi2): New function.
8247 (__ctzsi2): New function.
8248 (__ctzhi2): New function.
8249 (__clzdi2): New function.
8250 (__clzsi2): New function.
8251 (__clzhi2): New function.
8252 (__paritydi2): New function.
8253 (__paritysi2): New function.
8254 (__parityhi2): New function.
8255 (__parityqi2): New function.
8256 (__popcounthi2): New function.
8257 (__popcountsi2): New function.
8258 (__popcountdi2): New function.
8259 (__popcountqi2): New function.
8260 (__bswapsi2): New function.
8261 (__bswapdi2): New function.
8262 (__ashldi3): New function.
8263 (__ashrdi3): New function.
8264 (__lshrdi3): New function.
8265 Fix suspicous lines.
8266
8267 2011-06-16 Richard Guenther <rguenther@suse.de>
8268
8269 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
8270 the same as x != 0.
8271 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
8272 to (bool) X & 1.
8273 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
8274 equality compares against zero for the lower bit.
8275
8276 2011-06-16 Jakub Jelinek <jakub@redhat.com>
8277
8278 PR tree-optimization/49419
8279 * tree-vrp.c (execute_vrp): Call init_range_assertions
8280 before estimate_numbers_of_iterations, call
8281 free_number_of_iterations_estimates before calling
8282 remove_range_assertions.
8283
8284 2011-06-16 Revital Eres <revital.eres@linaro.org>
8285
8286 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
8287 (struct partial_schedule): Add rows_length field.
8288 (verify_partial_schedule): Check rows_length.
8289 (ps_insert_empty_row): Handle rows_length.
8290 (create_partial_schedule): Likewise.
8291 (free_partial_schedule): Likewise.
8292 (reset_partial_schedule): Likewise.
8293 (create_ps_insn): Remove rest_count argument.
8294 (remove_node_from_ps): Update rows_length.
8295 (add_node_to_ps): Update rows_length and call create_ps_insn
8296 without passing row_rest_count.
8297 (rotate_partial_schedule): Update rows_length.
8298
8299 2011-06-16 Revital Eres <revital.eres@linaro.org>
8300
8301 * ddg.c (add_intra_loop_mem_dep): New function.
8302 (build_intra_loop_deps): Call it.
8303
8304 2011-06-13 Jeff Law <law@redhat.com>
8305
8306 * df-problems.c (df_lr_local_compute): Manually CSE
8307 PIC_OFFSET_TABLE_REGNUM.
8308 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
8309 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
8310
8311 2011-06-13 Jan Hubicka <jh@suse.cz>
8312
8313 * cgraphunit.c (handle_alias_pairs): New function.
8314 (cgraph_finalize_compilation_unit): Use it.
8315 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
8316 as externally visible.
8317
8318 2011-06-15 Richard Guenther <rguenther@suse.de>
8319
8320 * expr.c (expand_expr_real_2): Reduce all integral types to
8321 bitfield precision.
8322 (expand_expr_real_1): Likewise.
8323
8324 2011-06-15 Martin Jambor <mjambor@suse.cz>
8325
8326 PR tree-optimization/48613
8327 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
8328 ipa_node_params_vector is NULL.
8329
8330 2011-06-15 Jakub Jelinek <jakub@redhat.com>
8331
8332 PR debug/49382
8333 * dwarf2out.c (dw_loc_list_node): Add force field.
8334 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
8335 location in the list, even if it is modified before first real insn.
8336 (output_loc_list): Emit empty ranges with force flag set.
8337 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
8338
8339 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
8340
8341 PR target/49349
8342 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
8343 (fence_to_rewind). Use it to notice when bookkeeping will be placed
8344 above a fence. Update comments.
8345 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
8346 placed just above it. Do not allow NULL place_to_insert.
8347
8348 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
8349
8350 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
8351 (slpeel_tree_peel_loop_to_edge): Don't call
8352 remove_dead_stmts_from_loop.
8353 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
8354 remove irrelevant pattern statements. For irrelevant statements
8355 check if it is the last statement of a detected pattern, use
8356 corresponding pattern statement instead.
8357 (destroy_loop_vec_info): No need to remove pattern statements,
8358 only free stmt_vec_info.
8359 (vect_transform_loop): For irrelevant statements check if it is
8360 the last statement of a detected pattern, use corresponding
8361 pattern statement instead.
8362 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
8363 pattern statements. Set basic block for the new statement.
8364 (vect_pattern_recog): Update documentation.
8365 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
8366 operands of pattern statements.
8367 (vectorizable_call): Fix printing. In case of a pattern statement
8368 use the lhs of the original statement when creating a dummy
8369 statement to replace the original call.
8370 (vect_analyze_stmt): For irrelevant statements check if it is
8371 the last statement of a detected pattern, use corresponding
8372 pattern statement instead.
8373 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
8374 statements use gsi of the original statement.
8375
8376 2011-06-14 Joseph Myers <joseph@codesourcery.com>
8377
8378 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
8379 common/common-target-def.h.
8380 * target.def (default_target_flags, handle_option,
8381 supports_split_stack, optimization_table, init_struct,
8382 except_unwind_info, unwind_tables_default, have_named_sections):
8383 Move to common/common-target.def.
8384 * target.h (enum opt_levels, struct default_options): Move to
8385 common/common-target.h.
8386 * targhooks.c (default_except_unwind_info,
8387 dwarf2_except_unwind_info, sjlj_except_unwind_info,
8388 default_target_handle_option, empty_optimization_table): Move to
8389 common/common-targhooks.c.
8390 * targhooks.h (default_except_unwind_info,
8391 dwarf2_except_unwind_info, sjlj_except_unwind_info,
8392 default_target_handle_option, empty_optimization_table): Move to
8393 common/common-targhooks.h.
8394 * common/common-target-def.h: Include common/common-targhooks.h.
8395 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
8396 defined.
8397 * common/common-target.def (handle_option, option_init_struct,
8398 option_optimization_table, default_target_flags,
8399 except_unwind_info, supports_split_stack, unwind_tables_default,
8400 have_named_sections): Move from target.def.
8401 (HOOK_PREFIX): Undefine at end of file.
8402 * common/common-target.h: Include input.h.
8403 (enum opt_levels, struct default_options): Move from target.h.
8404 * common/common-targhooks.c, common/common-targhooks.h: New.
8405 * config.gcc (target_has_targetm_common): Default to yes.
8406 (moxie*): Set target_has_targetm_common=no.
8407 (hppa*-*-*): Don't set target_has_targetm_common=yes.
8408 * doc/tm.texi: Regenerate.
8409 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
8410 (C_TARGET_DEF_H): Add common/common-targhooks.h.
8411 (GCC_OBJS): Remove vec.o.
8412 (OBJS): Remove hooks.o and vec.o.
8413 (OBJS-libcommon-target): Add vec.o, hooks.o and
8414 common/common-targhooks.o.
8415 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
8416 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
8417 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
8418 cfglayout.o, $(out_object_file), $(common_out_object_file)):
8419 Update dependencies.
8420 (common/common-targhooks.o): New.
8421 * common/config/default-common.c: Include tm.h. Add FIXME comment.
8422 * common/config/pa/pa-common.c: Include more headers. Take
8423 copyright dates from pa.c.
8424 (pa_option_optimization_table, pa_handle_option,
8425 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
8426 TARGET_HANDLE_OPTION): Move from pa.c.
8427 * common/config/alpha/alpha-common.c,
8428 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
8429 common/config/bfin/bfin-common.c,
8430 common/config/cris/cris-common.c,
8431 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
8432 common/config/h8300/h8300-common.c,
8433 common/config/i386/i386-common.c,
8434 common/config/ia64/ia64-common.c,
8435 common/config/iq2000/iq2000-common.c,
8436 common/config/lm32/lm32-common.c,
8437 common/config/m32c/m32c-common.c,
8438 common/config/m32r/m32r-common.c,
8439 common/config/m68k/m68k-common.c,
8440 common/config/mcore/mcore-common.c,
8441 common/config/mep/mep-common.c,
8442 common/config/microblaze/microblaze-common.c,
8443 common/config/mips/mips-common.c,
8444 common/config/mmix/mmix-common.c,
8445 common/config/mn10300/mn10300-common.c,
8446 common/config/pdp11/pdp11-common.c,
8447 common/config/picochip/picochip-common.c,
8448 common/config/rs6000/rs6000-common.c,
8449 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
8450 common/config/score/score-common.c, common/config/sh/sh-common.c,
8451 common/config/sparc/sparc-common.c,
8452 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
8453 common/config/vax/vax-common.c,
8454 common/config/xstormy16/xstormy16-common.c,
8455 common/config/xtensa/xtensa-common.c: New.
8456 * config/alpha/alpha.c: Include common/common-target.h.
8457 (alpha_option_optimization_table, alpha_handle_option,
8458 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8459 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
8460 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
8461 * config/arm/arm.c (arm_option_optimization_table,
8462 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8463 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
8464 arm-common.c.
8465 * config/avr/avr.c (avr_option_optimization_table,
8466 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
8467 to avr-common.c.
8468 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
8469 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
8470 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
8471 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
8472 * config/cris/cris.c (cris_option_optimization_table,
8473 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8474 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
8475 cris-common.c.
8476 * config/fr30/fr30.c (fr30_option_optimization_table,
8477 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
8478 to fr30-common.c.
8479 * config/frv/frv.c (frv_option_optimization_table,
8480 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
8481 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
8482 * config/h8300/h8300.c (h8300_option_optimization_table,
8483 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8484 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
8485 * config/i386/i386-protos.h (ix86_handle_option): Declare.
8486 * config/i386/i386.c: Include common/common-target.h.
8487 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
8488 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
8489 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
8490 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
8491 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
8492 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
8493 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
8494 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
8495 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
8496 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
8497 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
8498 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
8499 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
8500 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
8501 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
8502 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
8503 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
8504 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
8505 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
8506 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
8507 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
8508 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
8509 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
8510 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
8511 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
8512 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
8513 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
8514 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
8515 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
8516 ix86_option_optimization_table, ix86_option_init_struct,
8517 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
8518 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8519 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
8520 i386-common.c.
8521 * config/i386/t-i386 (i386.o): Update dependencies.
8522 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
8523 * config/ia64/ia64.c (ia64_option_optimization_table,
8524 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
8525 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8526 ia64_handle_option): Move to ia64-common.c.
8527 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
8528 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
8529 * config/lm32/lm32.c (lm32_option_optimization_table,
8530 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
8531 to lm32-common.c.
8532 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
8533 m32c-common.c.
8534 * config/m32r/m32r.c (m32r_option_optimization_table,
8535 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8536 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
8537 m32r_handle_option): Move to m32r-common.c.
8538 (m32r_memory_move_cost): Remove comment referring to
8539 TARGET_HANDLE_OPTION.
8540 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
8541 Move to m68k-common.c.
8542 * config/mcore/mcore.c (mcore_option_optimization_table,
8543 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8544 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
8545 * config/mep/mep.c (mep_option_optimization_table,
8546 mep_handle_option, TARGET_HANDLE_OPTION,
8547 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
8548 Move to mep-common.c.
8549 * config/microblaze/microblaze.c
8550 (microblaze_option_optimization_table,
8551 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8552 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
8553 * config/mips/mips.c (mips_handle_option,
8554 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
8555 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
8556 mips-common.c.
8557 * config/mmix/mmix.c (mmix_option_optimization_table,
8558 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
8559 Move to mmix-common.c.
8560 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
8561 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
8562 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8563 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
8564 * config/pa/pa.c: Include common/common-target.h.
8565 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
8566 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8567 pa_handle_option): Move to pa-common.c.
8568 (pa_option_override): Use targetm_common.except_unwind_info.
8569 (pa_asm_output_mi_thunk, pa_function_section): Use
8570 targetm_common.have_named_sections.
8571 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
8572 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8573 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
8574 pdp11_handle_option, pdp11_option_init_struct): Move to
8575 pdp11-common.c.
8576 * config/picochip/picochip.c (picochip_option_optimization_table,
8577 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
8578 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
8579 * config/rs6000/rs6000.c: Include common/common-target.h.
8580 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
8581 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
8582 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
8583 rs6000_handle_option): Move to rs6000-common.c.
8584 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8585 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
8586 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8587 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
8588 * config/s390/s390.c (processor_flags_table,
8589 s390_option_optimization_table, s390_option_init_struct,
8590 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
8591 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8592 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
8593 * config/s390/s390.h (processor_flags_table): Declare.
8594 * config/score/score.c (score_option_optimization_table,
8595 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8596 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
8597 score_handle_option): Move to score-common.c.
8598 * config/sh/sh.c (sh_option_optimization_table,
8599 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
8600 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8601 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
8602 * config/sparc/sparc.c: Include common/common-target.h.
8603 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
8604 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
8605 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
8606 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
8607 spu_option_init_struct): Move to spu-common.c.
8608 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
8609 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
8610 * config/v850/v850.c (small_memory_physical_max,
8611 v850_handle_memory_optionn v850_handle_option,
8612 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
8613 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
8614 v850-common.c.
8615 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
8616 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
8617 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
8618 Move to xtensa-common.c.
8619 * cfglayout.c: Include common/common-target.h.
8620 (fixup_reorder_chain): Use targetm_common.have_named_sections.
8621 * cfgrtl.c: Include common/common-target.h.
8622 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
8623 targetm_common.have_named_sections.
8624 * dbxout.c: Include common/common-target.h.
8625 (dbxout_function_end): Use targetm_common.have_named_sections.
8626 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
8627 targetm_common.except_unwind_info.
8628 * dwarf2out.c: Include common/common-target.h.
8629 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
8630 dwarf2out_begin_prologue, dwarf2out_frame_init,
8631 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
8632 targetm_common.except_unwind_info.
8633 * except.c: Include common/common-target.h.
8634 (init_eh, finish_eh_generation,
8635 output_one_function_exception_table): Use
8636 targetm_common.except_unwind_info.
8637 (switch_to_exception_section): Use targetm_common.have_named_sections.
8638 * explow.c: Include common/common-target.h.
8639 * expr.c: Include common/common-target.h.
8640 (build_personality_function): Use targetm_common.except_unwind_info.
8641 * function.c: Include common/common-target.h.
8642 (expand_function_end): Use targetm_common.except_unwind_info.
8643 * haifa-sched.c: Include common/common-target.h.
8644 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
8645 * lto-opts.c: Include common/common-target.h instead of target.h.
8646 (lto_reissue_options): Use targetm_common.handle_option.
8647 * opts.c: Include common/common-target.h.
8648 (target_handle_option): Use targetm_common.handle_option.
8649 (init_options_struct): Update comment referring to
8650 targetm.target_option.optimization. Use
8651 targetm_common.default_target_flags,
8652 targetm_common.unwind_tables_default and
8653 targetm_common.option_init_struct.
8654 (default_options_optimization): Use
8655 targetm_common.option_optimization_table.
8656 (finish_options): Use targetm_common.except_unwind_info,
8657 targetm_common.unwind_tables_default,
8658 targetm_common.have_named_sections and
8659 targetm_common.supports_split_stack.
8660 * toplev.c: Include common/common-target.h.
8661 (process_options): Use targetm_common.have_named_sections.
8662 * tree-tailcall.c: Include common/common-target.h.
8663 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
8664 * tree.c: Include common/common-target.h.
8665 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
8666 * varasm.c: Include common/common-target.h.
8667 (resolve_unique_section, hot_function_section,
8668 default_function_section): Use targetm_common.have_named_sections.
8669
8670 2011-06-14 Easwaran Raman <eraman@google.com>
8671
8672 PR rtl-optimization/44194
8673 * dse.c: Include tree-flow.h
8674 (insn_info): Add new field non_frame_wild_read.
8675 (group_info): Add new fields escaped_n and escaped_p.
8676 (kill_on_calls): New variable.
8677 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
8678 (dse_step0): Initialize kill_on_calls.
8679 (can_escape): New function.
8680 (set_usage_bits): Add additional parameter; record information
8681 about escaped locations.
8682 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
8683 (dse_step2_nospill): Set kill_on_calls based on
8684 group->escaped_n and group->escaped_n.
8685 (add_wild_read): Refactor into...
8686 (reset_active_stores): ... New function, and
8687 (free_read_records): ... New function.
8688 (add_non_frame_wild_read): New function.
8689 (scan_insn): Call add_non_frame_wild_read on non-const calls.
8690 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
8691 (dse_step5_nospill): Call scan_reads_nospill for instructions
8692 marked as non_frame_wild_read.
8693 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
8694
8695 2011-06-14 Joseph Myers <joseph@codesourcery.com>
8696
8697 * common/common-target-def.h, common/common-target.def,
8698 common/common-target.h, common/config/default-common.c,
8699 common/config/pa/pa-common.c: New files.
8700 * Makefile.in (common_out_file, common_out_object_file,
8701 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
8702 (OBJS-libcommon-target): Include $(common_out_object_file).
8703 (prefix.o): Update dependencies.
8704 ($(common_out_object_file), common/common-target-hooks-def.h,
8705 s-common-target-hooks-def-h): New.
8706 (s-tm-texi): Also check timestamp on common-target.def.
8707 (build/genhooks.o): Update dependencies.
8708 * config.gcc (common_out_file, target_has_targetm_common): Define.
8709 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
8710 TARGET_ALWAYS_STRIP_DOTDOT.
8711 * configure.ac (common_out_object_file): Define.
8712 (common_out_file, common_out_object_file): Substitute.
8713 (common): Create directory.
8714 * configure: Regenerate.
8715 * doc/tm.texi.in (targetm_common): Document.
8716 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
8717 * doc/tm.texi: Regenerate.
8718 * genhooks.c (hook_array): Also include common/common-target.def.
8719 * prefix.c (tm.h): Don't include.
8720 (common/common-target.h): Include.
8721 (ALWAYS_STRIP_DOTDOT): Don't define.
8722 (update_path): Use targetm_common.always_strip_dotdot instead of
8723 ALWAYS_STRIP_DOTDOT.
8724 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
8725
8726 2011-06-14 David Li <davidxl@google.com>
8727
8728 * passes.c (execute_function_todo): Remove TODO_dump_func.
8729 (execute_one_pass): Remove TODO_dump_func.
8730 (execute_function_dump): New function.
8731 * tree-vrp.c: Remove TODO_dump_func.
8732 * regrename.c: Remove TODO_dump_func.
8733 * fwprop.c: Remove TODO_dump_func.
8734 * tree-into-ssa.c: Remove TODO_dump_func.
8735 * tree-complex.c: Remove TODO_dump_func.
8736 * tracer.c: Remove TODO_dump_func.
8737 * tree-loop-distribution.c: Remove TODO_dump_func.
8738 * postreload-gcse.c: Remove TODO_dump_func.
8739 * postreload.c: Remove TODO_dump_func.
8740 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
8741 * tree-tailcall.c: Remove TODO_dump_func.
8742 * ipa-cp.c: Remove TODO_dump_func.
8743 * final.c: Remove TODO_dump_func.
8744 * tree-emutls.c: Remove TODO_dump_func.
8745 * omp-low.c: Remove TODO_dump_func.
8746 * tree-ssa-dse.c: Remove TODO_dump_func.
8747 * tree-ssa-uncprop.c: Remove TODO_dump_func.
8748 * auto-inc-dec.c: Remove TODO_dump_func.
8749 * reorg.c: Remove TODO_dump_func.
8750 * tree-ssa-copyrename.c: Remove TODO_dump_func.
8751 * tree-ssa-ccp.c: Remove TODO_dump_func.
8752 * compare-elim.c: Remove TODO_dump_func.
8753 * mode-switching.c: Remove TODO_dump_func.
8754 * modulo-sched.c: Remove TODO_dump_func.
8755 * tree-call-cdce.c: Remove TODO_dump_func.
8756 * cse.c: Remove TODO_dump_func.
8757 * web.c: Remove TODO_dump_func.
8758 * tree-stdarg.c: Remove TODO_dump_func.
8759 * lto-streamer-out.c: Remove TODO_dump_func.
8760 * tree-ssa-math-opts.c: Remove TODO_dump_func.
8761 * tree-ssa-dom.c: Remove TODO_dump_func.
8762 * tree-nrv.c: Remove TODO_dump_func.
8763 * loop-init.c: Remove TODO_dump_func.
8764 * gimple-low.c: Remove TODO_dump_func.
8765 * ipa-inline.c: Remove TODO_dump_func.
8766 * tree-ssa-sink.c: Remove TODO_dump_func.
8767 * jump.c: Remove TODO_dump_func.
8768 * ifcvt.c: Remove TODO_dump_func.
8769 * tree-ssa-loop.c: Remove TODO_dump_func.
8770 * recog.c: Remove TODO_dump_func.
8771 * dse.c: Remove TODO_dump_func.
8772 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
8773 * matrix-reorg.c: Remove TODO_dump_func.
8774 * tree-eh.c: Remove TODO_dump_func.
8775 * regmove.c: Remove TODO_dump_func.
8776 * function.c: Remove TODO_dump_func.
8777 * tree-vectorizer.c: Remove TODO_dump_func.
8778 * ipa-split.c: Remove TODO_dump_func.
8779 * gcse.c: Remove TODO_dump_func.
8780 * tree-if-conv.c: Remove TODO_dump_func.
8781 * init-regs.c: Remove TODO_dump_func.
8782 * tree-ssa-phiopt.c: Remove TODO_dump_func.
8783 * implicit-zee.c: Remove TODO_dump_func.
8784 * lower-subreg.c: Remove TODO_dump_func.
8785 * bt-load.c: Remove TODO_dump_func.
8786 * tree-dfa.c: Remove TODO_dump_func.
8787 * except.c: Remove TODO_dump_func.
8788 * emit-rtl.c: Remove TODO_dump_func.
8789 * store-motion.c: Remove TODO_dump_func.
8790 * cfgexpand.c: Remove TODO_dump_func.
8791 * tree-cfgcleanup.c: Remove TODO_dump_func.
8792 * cfgcleanup.c: Remove TODO_dump_func.
8793 * tree-ssa-pre.c: Remove TODO_dump_func.
8794 * tree-sra.c: Remove TODO_dump_func.
8795 * tree-mudflap.c: Remove TODO_dump_func.
8796 * tree-ssa-copy.c: Remove TODO_dump_func.
8797 * cfglayout.c: Remove TODO_dump_func.
8798 * tree-ssa-forwprop.c: Remove TODO_dump_func.
8799 * tree-ssa-dce.c: Remove TODO_dump_func.
8800 * ira.c: Remove TODO_dump_func.
8801 * tree-ssa.c: Remove TODO_dump_func.
8802 * integrate.c: Remove TODO_dump_func.
8803 * tree-optimize.c: Remove TODO_dump_func.
8804 * tree-ssa-phiprop.c: Remove TODO_dump_func.
8805 * tree-object-size.c: Remove TODO_dump_func.
8806 * combine.c: Remove TODO_dump_func.
8807 * bb-reorder.c: Remove TODO_dump_func.
8808 * cprop.c: Remove TODO_dump_func.
8809 * var-tracking.c: Remove TODO_dump_func.
8810 * tree-profile.c: Remove TODO_dump_func.
8811 * tree-vect-generic.c: Remove TODO_dump_func.
8812 * reg-stack.c: Remove TODO_dump_func.
8813 * sched-rgn.c: Remove TODO_dump_func.
8814 * tree-ssa-structalias.c: Remove TODO_dump_func.
8815 * tree-switch-conversion.c: Remove TODO_dump_func.
8816 * tree-cfg.c: Remove TODO_dump_func.
8817 * tree-ssa-reassoc.c: Remove TODO_dump_func.
8818 * combine-stack-adj.c: Remove TODO_dump_func.
8819 * dce.c: Remove TODO_dump_func.
8820 * tree-ssanames.c: Remove TODO_dump_func.
8821 * regcprop.c: Remove TODO_dump_func.
8822
8823 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
8824
8825 PR middle-end/47364
8826 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
8827 and properly handle result not in Pmode.
8828
8829 2011-06-14 Robert Millan <rmh@gnu.org>
8830
8831 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
8832 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
8833 `config/linux.h'.
8834
8835 * config/i386/kfreebsd-gnu64.h: New file.
8836 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
8837 with `i386/kfreebsd-gnu64.h'.
8838
8839 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
8840 (GNU_USER_LINK_EMULATION64): New macros.
8841 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
8842 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
8843 of hardcoding `elf_i386' and `elf_x86_64'.
8844
8845 2011-06-14 Nick Clifton <nickc@redhat.com>
8846
8847 PR target/49403
8848 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
8849
8850 PR target/49402
8851 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
8852
8853 2011-06-14 Jakub Jelinek <jakub@redhat.com>
8854
8855 PR fortran/49103
8856 * tree.h (DECL_NONSHAREABLE): Define.
8857 (struct tree_decl_common): Change decl_common_unused to
8858 decl_nonshareable_flag.
8859 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
8860 Ignore vars with DECL_NONSHAREABLE bit set.
8861 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
8862 on stores to automatic aggregate vars.
8863
8864 PR rtl-optimization/49390
8865 Revert:
8866 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
8867
8868 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
8869 MEM_ALIAS_SET.
8870
8871 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
8872 Tom de Vries <tom@codesourcery.com>
8873
8874 PR target/45098
8875 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
8876 Document changed semantics.
8877 (max_stmt_executions, max_stmt_executions_int): Declare.
8878 * tree-data-ref.c (estimated_loop_iterations)
8879 (estimated_loop_iterations_int): Move functions...
8880 * tree-ssa-loop-niter.c (estimated_loop_iterations)
8881 (estimated_loop_iterations_int): here.
8882 (record_estimate): Change nb_iterations_upper_bound and
8883 nb_iterations_estimate semantics.
8884 (max_stmt_executions, max_stmt_executions_int): New function.
8885 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
8886 (max_stmt_executions_tree): this.
8887 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
8888 estimated_loop_iterations_tree.
8889 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
8890 max_stmt_executions_int instead of estimated_loop_iterations_int.
8891 * predict.c (predict_loops): Idem.
8892 * tree-parloops.c (parallelize_loops): Idem.
8893 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
8894 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
8895 (init_omega_for_ddr_1): Idem.
8896 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
8897 (loop_prefetch_arrays): Idem
8898 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
8899 max_stmt_executions instead of estimated_loop_iterations.
8900 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
8901 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
8902 instead of nb_iterations_upper_bound.
8903
8904 2011-06-13 Jan Hubicka <jh@suse.cz>
8905
8906 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
8907
8908 2011-06-14 Richard Henderson <rth@redhat.com>
8909
8910 PR debug/48459
8911 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
8912 (based_loc_descr): Assert it's true.
8913 (compute_frame_pointer_to_fb_displacement): Set it, rather than
8914 aborting immediately.
8915
8916 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
8917 Mingfeng Wu <mingfeng@faraday-tech.com>
8918
8919 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
8920
8921 2011-06-13 Jan Hubicka <jh@suse.cz>
8922
8923 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
8924
8925 2011-06-13 Jan Hubicka <jh@suse.cz>
8926
8927 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
8928 similarly to DECL_COMDAT.
8929 * cgraphunit.c (cgraph_analyze_function): Likewise.
8930 * ipa.c (function_and_variable_visibility): Likewise.
8931
8932 2011-06-13 Jan Hubicka <jh@suse.cz>
8933
8934 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
8935 BINFO_VIRTUALS when streaming for ltrans unit.
8936
8937 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
8938
8939 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
8940 (movdi_internal64): Same.
8941
8942 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
8943
8944 PR target/44618
8945 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
8946 a set of similar patterns, where the MATCH_OPERAND for the function
8947 argument is replaced with individual references to hardware registers.
8948 (save_fpregs_<mode>): Ditto
8949 (restore_gpregs_<mode>): Ditto
8950 (return_and_restore_gpregs_<mode>): Ditto
8951 (return_and_restore_fpregs_<mode>): Ditto
8952 (return_and_restore_fpregs_aix_<mode>): Ditto
8953
8954 2011-06-13 Jan Hubicka <jh@suse.cz>
8955
8956 * ipa-utils.c (postorder_stack): New structure.
8957 (ipa_reverse_postorder): Handle aliases.
8958
8959 2011-06-13 Jan Hubicka <jh@suse.cz>
8960
8961 * ipa-inline.c (reset_edge_caches): Walk aliases.
8962 (update_caller_keys): Do not test inlinability of aliases.
8963 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
8964 (do_estimate_growth): Fix typo.
8965
8966 2011-06-13 Jan Hubicka <jh@suse.cz>
8967
8968 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
8969 (can_remove_node_now_p): ... here; handle same comdat groups.
8970 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
8971 (inline_call): Update use of can_remove_node_now_p.
8972
8973 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
8974
8975 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
8976 condition to disallow non-identical memory locations.
8977 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
8978 preference to bit manipulation instructions.
8979
8980 2011-06-13 Jan Hubicka <jh@suse.cz>
8981
8982 * cgraph.c (cgraph_for_node_thunks_and_aliases,
8983 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
8984 (nonremovable_p): New function.
8985 (cgraph_can_remove_if_no_direct_calls_p): New function.
8986 (used_from_object_file_p): New functoin.
8987 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
8988 references from aliases.
8989 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
8990 * ipa-inline.c (check_caller_edge): New function.
8991 (want_inline_function_called_once_p): Use it; accept aliases called
8992 once, too.
8993 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
8994
8995 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8996
8997 PR target/48454
8998 * config/arm/neon.md (vec_pack_trunc): Set the lengths
8999 correctly for the case with Quad vectors.
9000
9001 2011-06-13 Jakub Jelinek <jakub@redhat.com>
9002 Ira Rosen <ira.rosen@linaro.org>
9003
9004 PR tree-optimization/49352
9005 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
9006 all, make sure loop_use_stmt after the loop is a def stmt of a used
9007 SSA_NAME that is the only one defined inside of the loop. Don't
9008 check for COND_EXPR and GIMPLE_BINARY_RHS.
9009 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
9010 check_reduction is true.
9011
9012 2011-06-11 Jan Hubicka <jh@suse.cz>
9013
9014 PR middle-end/49373
9015 * ipa.c (cgraph_externally_visible_p): Check resolution info.
9016
9017 2011-06-11 Jan Hubicka <jh@suse.cz>
9018
9019 PR middle-end/48836
9020 * ipa-inline-transform.c: Include tree-pass.h
9021 (inline_transform): Set TODO_update_ssa_only_virtuals.
9022 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
9023
9024 2011-06-11 Jan Hubicka <jh@suse.cz>
9025
9026 PR middle-end/49378
9027 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
9028 aliases and thunks.
9029
9030 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
9031
9032 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
9033 Take number of iterations to peel into account for equally frequent
9034 misalignment values.
9035
9036 2011-06-11 Jan Hubicka <jh@suse.cz>
9037
9038 * lto-streamer-out.c (produce_symtab): Stream out the newly
9039 represented aliases.
9040
9041 2011-06-11 Jan Hubicka <jh@suse.cz>
9042
9043 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
9044 varying args.
9045 (ipa_update_after_lto_read): Likewise.
9046 (ipa_write_node_info): Do not sream call_with_var_arguments.
9047 (ipa_read_node_info): Likewise.
9048
9049 2011-06-11 Jan Hubicka <jh@suse.cz>
9050
9051 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
9052
9053 2011-06-11 Jan Hubicka <jh@suse.cz>
9054
9055 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
9056 (lto_symtab_resolve_can_prevail_p): Likewise.
9057 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
9058 * cgraph.c (same_body_aliases_done): New global var.
9059 (cgraph_same_body_alias_1): Rename to ...
9060 (cgraph_create_function_alias): ... this one; reorg to new
9061 representation.
9062 (cgraph_same_body_alias): Use cgraph_create_function_alias;
9063 record references when asked to.
9064 (cgraph_add_thunk): Fix formating.
9065 (cgraph_get_node): Kill same body alias code.
9066 (cgraph_node_for_asm): Likewise.
9067 (cgraph_remove_same_body_alias): Remove.
9068 (cgraph_remove_node): Kill same body alias code.
9069 (cgraph_mark_address_taken_node): Mark also the aliased function
9070 as having address taken.
9071 (dump_cgraph_node): Dump same body aliases.
9072 (cgraph_for_node_thunks_and_aliases): Update for new alias
9073 representation.
9074 (cgraph_for_node_and_aliases): Likewise.
9075 * cgraph.h (same_body): Kll pointer.
9076 (same_body_alias): Update comment.
9077 (same_body_aliases_done): Declare.
9078 (cgraph_remove_same_body_alias): Remove declaration.
9079 (cgraph_create_function_alias): Declare.
9080 (cgraph_process_same_body_aliases): Declare.
9081 (cgraph_function_with_gimple_body_p): Check for alias.
9082 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
9083 (cgraph_alias_aliased_node): New function.
9084 (cgraph_function_node): Update for new aliases.
9085 (cgraph_function_or_thunk_node): Likewise.
9086 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
9087 (inline_call): Remove dead aliases.
9088 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
9089 name hack for same body aliases.
9090 (clone_of_p): Look through aliases.
9091 (verify_cgraph_node): Verify aliases.
9092 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
9093 (cgraph_process_same_body_aliases): New function.
9094 (process_function_and_variable_attributes): Disable weakref warning on
9095 alias.
9096 (cgraph_analyze_functions): Handle aliases.
9097 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
9098 (assemble_thunks): Rename to ...
9099 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
9100 (cgraph_expand_function): Remove alias output code.
9101 (cgraph_output_in_order): Skip aliases.
9102 (cgraph_preserve_function_body_p): Aliases don't need preserving.
9103 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
9104 (ipa_record_reference): Do not assert on alias references.
9105 (ipa_ref_has_aliases_p): New function.
9106 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
9107 (ipa_ref_has_aliases_p): Declare.
9108 * lto-cgraph.c (lto_output_node): Handle aliases.
9109 (input_node): Likewise.
9110 * lto-streamer-out.c (lto_output): Skip aliases.
9111 (produce_symtab): Kill same_body_alias code.
9112 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
9113 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
9114 * ipa-inline.c (update_caller_keys): Walk aliases.
9115 (inline_small_functions): Fix thinko in previous patch.
9116 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
9117 (function_and_variable_visibility): Do not walk same body aliases.
9118 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
9119 (ipa_pta_execute): Use it.
9120
9121 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
9122
9123 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
9124 (*vec_dupv2df): Rename from vec_dupv2df.
9125 (vec_dupv2df): New expander.
9126
9127 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
9128
9129 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
9130
9131 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
9132
9133 * config/i386/i386.md: Use default value in "isa" attribute.
9134 * config/i386/sse.md: Ditto.
9135 * config/i386/mmx.md: Ditto.
9136
9137 2011-06-10 Wei Guozhi <carrot@google.com>
9138
9139 PR target/45335
9140 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9141 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9142 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9143 related peephole2.
9144 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9145 related peephole2.
9146 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9147 (arm_legitimate_ldrd_p): New prototype.
9148 (arm_output_ldrd): New prototype.
9149 * config/arm/arm.c (arm_check_ldrd_operands): New function.
9150 (arm_legitimate_ldrd_p): New function.
9151 (arm_output_ldrd): New function.
9152
9153 2011-06-10 David Li <davidxl@google.com>
9154
9155 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
9156 * passes.c (passr_eq): New function.
9157 (create_pass_tab): New function.
9158 (pass_traverse): New function.
9159 (dump_one_pass): New function.
9160 (dump_pass_list): New function.
9161 (dump_passes): New function.
9162
9163 2011-06-10 Jan Hubicka <jh@suse.cz>
9164
9165 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
9166 setting the nothrow flag.
9167 * ipa-reference.c (propagate): Skip aliases.
9168 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
9169 (propagate_nothrow): Skip aliases; do not update cgraph.
9170 (local_pure_const): Do not update cgraph.
9171 * tree-profile.c (tree_profiling): Do fixup_cfg.
9172
9173 2011-06-10 Jan Hubicka <jh@suse.cz>
9174
9175 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
9176 (cgraph_local_node_p): ... here; handle aliases.
9177 (has_addr_references_p): Break out from ...;
9178 (cgraph_remove_unreachable_nodes) ... here.
9179
9180 2011-06-10 Jan Hubicka <jh@suse.cz>
9181
9182 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9183 * common.opt (flag_inline_functions_called_once): Do not
9184 initialize to 1.
9185
9186 2011-06-10 Jan Hubicka <jh@suse.cz>
9187
9188 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9189 (ipcp_initialize_node_lattices): Do not deal with aliases;
9190 Do not try to propagate through thunks.
9191 (ipcp_change_tops_to_bottom): Do not deal with aliases.
9192
9193 2011-06-10 Jan Hubicka <jh@suse.cz>
9194
9195 * ipa-prop.c (ipa_write_node_info): Stream jump functions
9196 for indirect calls.
9197 (ipa_read_node_info): Likewise.
9198
9199 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9200
9201 PR lto/49302
9202 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
9203 (build_and_insert_call): Likewise.
9204 (build_and_insert_ref): New.
9205 (gimple_expand_builtin_pow): Minor cleanup.
9206 (gimple_expand_builtin_cabs): New.
9207 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9208
9209 2011-06-10 Jan Hubicka <jh@suse.cz>
9210
9211 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
9212 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
9213 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
9214 (ipcp_propagate_stage): Skip aliases when propagating.
9215 (ipcp_need_redirect_p): Skip aliases.
9216 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
9217 collect_callers_of_node.
9218 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
9219 for aliases.
9220 (ipa_compute_jump_functions): Look through aliases.
9221
9222 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9223
9224 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
9225
9226 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
9227
9228 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
9229 Adjust comments.
9230 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
9231
9232 2011-06-10 Jan Hubicka <jh@suse.cz>
9233
9234 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
9235 Update call of gimple_get_virt_method_for_binfo.
9236 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
9237 refuse_thunks parameter.
9238 (gimple_fold_call): Update.
9239 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
9240
9241 2011-06-10 Jan Hubicka <jh@suse.cz>
9242
9243 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
9244 (not_all_callers_have_enough_arguments_p): ... this one; turn into
9245 worker for cgraph_for_node_and_aliases.
9246 (convert_callers_for_node): Break out from ...
9247 (convert_callers): ... here.
9248 (modify_function): Use collect_callers_of_node.
9249 (ipa_early_sra): Use cgraph_for_node_and_aliases.
9250
9251 2011-06-10 Richard Guenther <rguenther@suse.de>
9252
9253 PR tree-optimization/49361
9254 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
9255 when not already in gimple form.
9256
9257 2011-06-10 Richard Guenther <rguenther@suse.de>
9258
9259 PR bootstrap/49344
9260 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
9261 FOR_EACH_PHI_OR_STMT_USE.
9262
9263 2011-06-10 Jan Hubicka <jh@suse.cz>
9264
9265 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
9266 (clone_inlined_nodes): ... here.
9267 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
9268 to real destination prior inlining.
9269 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
9270 can_early_inline_edge_p, want_early_inline_function_p,
9271 want_early_inline_function_p, want_inline_small_function_p,
9272 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
9273 edge_badness, update_all_callee_keys, lookup_recursive_calls,
9274 add_new_edges_to_heap, inline_small_functions, flatten_function,
9275 inline_always_inline_functions, early_inline_small_functions): Use
9276 cgraph_function_or_thunk_node.
9277 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
9278 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
9279 (do_estimate_edge_growth_1): Break out from ...
9280 (do_estimate_growth) ... here; walk aliases.
9281 (inline_generate_summary): Skip aliases.
9282
9283 2011-06-10 Richard Guenther <rguenther@suse.de>
9284
9285 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
9286 forward when combining, visit inserted stmts when a stmt was changed.
9287
9288 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
9289
9290 * tree.h (error_operand_p): Add.
9291 * dbxout.c (dbxout_type_fields): Use the latter.
9292 * c-decl.c (add_stmt): Likewise.
9293 * gimplify.c (omp_add_variable, omp_notice_variable,
9294 gimplify_scan_omp_clauses): Likewise.
9295
9296 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
9297
9298 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
9299 when a value is actually passed in regs.
9300
9301 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
9302 Laurent Rougé <laurent.rouge@menta.fr>
9303
9304 * doc/invoke.texi (SPARC options): Add -mflat.
9305 * config/sparc/sparc.opt: Likewise.
9306 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
9307 (sparc_flat_expand_prologue): Declare.
9308 (sparc_flat_expand_epilogue): Likewise.
9309 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
9310 (CPP_ENDIAN_SPEC): Replace with...
9311 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
9312 (CPP_SPEC): Adjust to above change.
9313 (EXTRA_SPECS): Likewise.
9314 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
9315 (INCOMING_REGNO): Likewise.
9316 (OUTGOING_REGNO): Likewise.
9317 (LOCAL_REGNO): Likewise.
9318 (SETUP_FRAME_ADDRESSES): Likewise.
9319 (FIXED_REGISTERS): Set 0 for %fp.
9320 (CALL_USED_REGISTERS): Likewise.
9321 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
9322 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
9323 (RETURN_ADDR_REGNUM): Define.
9324 (RETURN_ADDR_RTX): Use it.
9325 (INCOMING_RETURN_ADDR_REGNUM): Define.
9326 (INCOMING_RETURN_ADDR_RTX): Use it.
9327 (DWARF_FRAME_RETURN_COLUMN): Likewise.
9328 (EH_RETURN_REGNUM): Define.
9329 (EH_RETURN_STACKADJ_RTX): Use it.
9330 (EH_RETURN_HANDLER_RTX): Delete.
9331 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
9332 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
9333 Delete.
9334 (struct machine_function): Add frame_size, apparent_frame_size,
9335 frame_base_reg, frame_base_offset, n_global_fp_regs and
9336 save_local_in_regs_p fields.
9337 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
9338 sparc_frame_base_offset, sparc_n_global_fp_regs,
9339 sparc_save_local_in_regs_p): New macros.
9340 (sparc_option_override): Error out if -fcall-saved-REG is specified
9341 for Out registers.
9342 (eligible_for_restore_insn): Fix formatting.
9343 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
9344 (eligible_for_sibcall_delay): Likewise.
9345 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
9346 (sparc_legitimate_address_p): Adjust to above change.
9347 (save_global_or_fp_reg_p): New predicate.
9348 (return_addr_reg_needed_p): Likewise.
9349 (save_local_or_in_reg_p): Likewise.
9350 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
9351 (SORR_SAVE, SORR_RESTORE): Delete.
9352 (sorr_pred_t): New typedef.
9353 (sorr_act_t): New enum.
9354 (save_or_restore_regs): Rename to...
9355 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
9356 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
9357 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
9358 mechanism. Add CFI information for double-word saves in 32-bit mode.
9359 (emit_adjust_base_to_offset): New function extracted from...
9360 (emit_save_or_restore_regs): ...this. Rename the rest to...
9361 (emit_save_or_restore_regs_global_fp_regs): ...this.
9362 (emit_save_or_restore_regs_local_in_regs): New function.
9363 (gen_create_flat_frame_[123]): New functions.
9364 (sparc_expand_prologue): Use SIZE local variable. Adjust.
9365 (sparc_flat_expand_prologue): New function.
9366 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
9367 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
9368 (sparc_flat_expand_epilogue): New function.
9369 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
9370 (output_return): Likewise.
9371 (output_sibcall): Likewise.
9372 (sparc_output_mi_thunk): Likewise.
9373 (sparc_frame_pointer_required): Likewise.
9374 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
9375 function optimization.
9376 * config/sparc/sparc.md (flat): New attribute.
9377 (prologue): Add TARGET_FLAT handling.
9378 (save_register_window): Disable if TARGET_FLAT.
9379 (create_flat_frame_[123]): New patterns.
9380 (epilogue): Add TARGET_FLAT handling.
9381 (sibcall_epilogue): Likewise.
9382 (eh_return): New expander.
9383 (eh_return_internal): New insn and splitter.
9384 (return_internal): Add TARGET_FLAT handling.
9385 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
9386 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
9387 (nonlocal_goto): Add TARGET_FLAT handling.
9388 * config/sparc/t-elf: Add -mflat multilib.
9389 * config/sparc/t-leon: Likewise.
9390
9391 2011-06-10 Jan Hubicka <jh@suse.cz>
9392
9393 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
9394 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
9395 (self_recursive_p): Use cgraph_function_node.
9396 (propagate_pure_const): Likewise.
9397 (propagate_nothrow): Likewise.
9398 * ipa-reference.c (ipa_reference_get_not_read_global): Use
9399 cgraph_function_node.
9400 (propagate_bits): Likewise.
9401 (propagate): Likewise.
9402
9403 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9404 Richard Earnshaw <rearnsha@arm.com>
9405
9406 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
9407 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
9408 (*thumb2_movdi_vfp): Delete.
9409 (*arm_movdi_vfp_cortexa8): Delete.
9410 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
9411 (*movdi_vfp_cortexa8): Likewise.
9412
9413 2011-06-10 Richard Guenther <rguenther@suse.de>
9414
9415 * stor-layout.c (initialize_sizetypes): Give names to all
9416 sizetype kinds.
9417
9418 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
9419
9420 PR tree-optimization/49318
9421 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
9422 irrelevant pattern statements.
9423
9424 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
9425
9426 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
9427
9428 PR bootstrap/49354
9429 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
9430 to last assignment.
9431
9432 2011-06-09 Jan Hubicka <jh@suse.cz>
9433
9434 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
9435 do not recompute reachable flag.
9436 (cgraph_finalize_function, cgraph_analyze_functions): Set
9437 redefined_extern_inline here.
9438
9439 2011-06-09 Jan Hubicka <jh@suse.cz>
9440
9441 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
9442 (cgraph_only_called_directly_p): ... this one; bring offline.
9443 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
9444 varpool_used_from_object_file_p): Drop names from the declaratoin.
9445 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
9446 collect_callers_of_node): New.
9447 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
9448 (cgraph_edge_recursive_p): Use cgraph_function_node.
9449 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
9450 (cgraph_node_cannot_be_local_p_1): Break out from ...
9451 (cgraph_node_can_be_local_p): ... here; walk aliases.
9452 (cgraph_for_node_thunks_and_aliases): New function.
9453 (cgraph_for_node_and_aliases): New function.
9454 (cgraph_make_node_local_1): Break out from ...
9455 (cgraph_make_node_local) ... here; use
9456 cgraph_for_node_thunks_and_aliases.
9457 (cgraph_set_nothrow_flag_1): Break out from ...
9458 (cgraph_set_nothrow_flag) ... here;
9459 use cgraph_for_node_thunks_and_aliases.
9460 (cgraph_set_const_flag_1): Break out from ...
9461 (cgraph_set_const_flag) ... here;
9462 use cgraph_for_node_thunks_and_aliases.
9463 (cgraph_set_pure_flag_1): Break out from ...
9464 (cgraph_set_pure_flag) ... here;
9465 use cgraph_for_node_thunks_and_aliases.
9466 (cgraph_propagate_frequency_1): Break out from ...
9467 (cgraph_propagate_frequency) ... here; use
9468 cgraph_for_node_thunks_and_aliases.
9469 (cgraph_used_from_object_file_p): Do not care about aliases.
9470 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
9471 New functions.
9472 (collect_callers_of_node_1, collect_callers_of_node): New functions.
9473
9474 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
9475
9476 PR rtl-optimization/49154
9477 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
9478 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
9479 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
9480 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
9481 * config/cris/cris.h (cris_register_move_cost): Remove
9482 !TARGET_V32 code. Tweak comments.
9483
9484 2011-06-09 Jan Hubicka <jh@suse.cz>
9485
9486 * cgraphbuild.c (record_eh_tables): Mark personality function as having
9487 address taken.
9488
9489 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
9490
9491 PR rtl-optimization/49154
9492 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
9493 is a matching slot in the hashtable, assign it to classes_ptr.
9494
9495 PR rtl-optimization/49154
9496 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
9497 register classes.
9498 * doc/tm.texi: Regenerate.
9499
9500 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
9501
9502 PR target/49307
9503 * config/sh/sh.md (UNSPEC_CHKADD): New.
9504 (chk_guard_add): New define_insn_and_split.
9505 (symGOT_load): Use chk_guard_add instead of blockage.
9506
9507 2011-06-09 Kai Tietz <ktietz@redhat.com>
9508
9509 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
9510
9511 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
9512
9513 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
9514
9515 2011-06-09 Wei Guozhi <carrot@google.com>
9516
9517 PR target/46975
9518 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
9519 (peephole2 for conditional move): Generate 16 bit instructions.
9520
9521 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
9522
9523 * config/i386/i386.md (*movdi_internal_rex64): Merge
9524 alternatives 6 and 8.
9525
9526 2011-06-09 David Li <davidxl@google.com>
9527
9528 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
9529 * passes.c (passr_eq): New function.
9530 (create_pass_tab): New function.
9531 (pass_traverse): New function.
9532 (dump_one_pass): New function.
9533 (dump_pass_list): New function.
9534 (dump_passes): New function.
9535
9536 2011-06-09 David Li <davidxl@google.com>
9537
9538 * tree-complex.c (tree_lower_complex): Gate cleanup.
9539 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
9540 (execute_optimize_stdarg): Ditto.
9541 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
9542 (execute_cleanup_eh_1): Ditto.
9543 (execute_cleanup_eh): Ditto.
9544 * gcse.c (gate_rtl_pre): Ditto.
9545 (execute_rtl_pre): Ditto.
9546 * except.c (finish_eh_generation): Ditto.
9547 (convert_to_eh_region_ranges): Ditto.
9548 * cprop.c (one_cprop_pass): Ditto.
9549
9550 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
9551
9552 PR target/48673
9553 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
9554 in all basic blocks.
9555
9556 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9557
9558 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
9559 (HAVE_ENABLE_EXECUTE_STACK): Define.
9560 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
9561 (HAVE_ENABLE_EXECUTE_STACK): Define.
9562 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
9563 (HAVE_ENABLE_EXECUTE_STACK): Define.
9564 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
9565 (ENABLE_EXECUTE_STACK): Remove.
9566 (HAVE_ENABLE_EXECUTE_STACK): Define.
9567 [IN_LIBGCC2]: Don't include <windows.h>.
9568 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
9569 (HAVE_ENABLE_EXECUTE_STACK): Define.
9570 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
9571 (HAVE_ENABLE_EXECUTE_STACK): Define.
9572 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
9573 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
9574 (HAVE_ENABLE_EXECUTE_STACK): Define.
9575 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
9576 (HAVE_ENABLE_EXECUTE_STACK): Define.
9577 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
9578 (HAVE_ENABLE_EXECUTE_STACK): Define.
9579 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
9580 (HAVE_ENABLE_EXECUTE_STACK): Define.
9581 * config/alpha/alpha.c (alpha_trampoline_init): Test
9582 HAVE_ENABLE_EXECUTE_STACK.
9583 * config/i386/i386.c (ix86_trampoline_init): Likewise.
9584 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
9585 (sparc64_initialize_trampoline): Likewise.
9586 * libgcc2.c [L_enable_execute_stack]: Remove.
9587 * system.h (ENABLE_EXECUTE_STACK): Poison.
9588 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
9589 * doc/tm.texi: Regenerate.
9590 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
9591
9592 2011-06-09 Jakub Jelinek <jakub@redhat.com>
9593
9594 PR middle-end/49308
9595 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
9596 variable. After resetting and rescanning insn continue with previous
9597 statement.
9598
9599 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9600
9601 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
9602 (gcc_cv_ld_hidden): Likewise.
9603 * configure: Regenerate.
9604 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
9605 (ix86_stack_protect_fail): Mark unused.
9606 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
9607 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
9608 [TARGET_MACHO]: Don't define.
9609 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
9610 (TARGET_STACK_PROTECT_FAIL): Likewise.
9611 (rs6000_stack_protect_fail): Mark unused.
9612 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
9613 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
9614
9615 2011-06-08 Andi Kleen <ak@linux.intel.com>
9616
9617 * varasm.c (get_section): Print location of other conflict
9618 for section conflicts.
9619
9620 2011-06-08 Andi Kleen <ak@linux.intel.com>
9621
9622 * config/i386/driver-i386.c (host_detect_local_cpu):
9623 Add model 0x2d Intel CPU.
9624
9625 2011-06-08 Andi Kleen <ak@linux.intel.com>
9626
9627 * reginfo.c (global_regs_decl): Add.
9628 (globalize_reg): Add decl parameter. Compute location. Pass location
9629 to warnings and add inform. Store decl in global_regs_decl.
9630 * rtl.h (globalize_reg): Update prototype.
9631 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
9632
9633 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
9634
9635 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
9636
9637 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
9638
9639 PR target/49305
9640 * config/sh/predicates.md (general_movsrc_operand): Check
9641 mode for memory with indexed address for QI and HImode.
9642 (general_movdst_operand): Likewise.
9643
9644 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
9645
9646 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
9647
9648 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
9649
9650 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
9651 (num_ssa_operands): Likewise.
9652 (op_iter_init_phiuse): Forward-declare.
9653 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
9654
9655 2011-06-08 Nick Clifton <nickc@redhat.com>
9656
9657 * doc/invoke.texi (ARM Options): Update description of
9658 -mthumb-interwork.
9659
9660 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
9661
9662 * config/i386/driver-i386.c (host_detect_local_cpu): Support
9663 unknown Intel family 0x6 CPUs.
9664
9665 2011-06-08 Martin Jambor <mjambor@suse.cz>
9666
9667 * tree-sra.c (mark_rw_status): Removed.
9668 (analyze_access_subtree): New parameter parent instead of
9669 mark_read and mark_write, propagate from that.
9670
9671 2011-06-08 Julian Brown <julian@codesourcery.com>
9672
9673 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
9674 for double-precision helper functions in hard-float mode if only
9675 single-precision arithmetic is supported in hardware.
9676
9677 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
9678
9679 PR rtl-optimization/49303
9680 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
9681 code_motion_path_driver returned 0 or 1.
9682 (sel_region_finish): Clear h_d_i_d.
9683
9684 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
9685
9686 * config/sh/sh.c (prepare_move_operands): Set pic register
9687 appropriately for global and local dynamic tls models even
9688 if flag_pic is unset.
9689
9690 2011-06-07 Jason Merrill <jason@redhat.com>
9691
9692 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
9693
9694 2011-06-07 Xinliang David Li <davidxl@google.com>
9695 * passes.c (enable_disable_pass): Handle assembler name.
9696 (is_pass_explicitly_enabled_or_disabled): Ditto.
9697
9698 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9699
9700 PR tree-optimization/48497
9701 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
9702
9703 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9704
9705 PR tree-optimization/46728
9706 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
9707 to use gimple_val_nonnegative_real_p.
9708 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
9709 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
9710
9711 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
9712
9713 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
9714
9715 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
9716
9717 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
9718 constant vectors.
9719
9720 2011-06-07 Richard Guenther <rguenther@suse.de>
9721
9722 * stor-layout.c (initialize_sizetypes): Initialize all
9723 sizetypes based on target definitions.
9724 (set_sizetype): Remove.
9725 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
9726 * tree.h (set_sizetype): Remove.
9727
9728 2011-06-07 Nick Clifton <nickc@redhat.com>
9729
9730 * config.gcc: Unify V850 architecture options and add support for
9731 newer V850 architectures.
9732 * config/v850/t-v850e: Delete.
9733
9734 2011-06-07 Richard Guenther <rguenther@suse.de>
9735
9736 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
9737 Call set_sizetype from here.
9738
9739 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
9740
9741 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
9742 (*maddhisi4tb, *maddhisi4tt): New define_insns.
9743
9744 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
9745 Andrew Stubbs <ams@codesourcery.com>
9746
9747 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
9748 multiplies.
9749 * doc/md.texi (Canonicalization of Instructions): Document widening
9750 multiply canonicalization.
9751
9752 2011-06-07 Jakub Jelinek <jakub@redhat.com>
9753
9754 PR gcov-profile/49299
9755 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
9756
9757 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
9758
9759 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
9760 a pointer.
9761 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
9762 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
9763 vect_recog_pow_pattern): Likewise.
9764 (vect_pattern_recog_1): Remove declaration.
9765 (widened_name_p): Remove declaration. Add new argument to specify
9766 whether to check that both types are either signed or unsigned.
9767 (vect_recog_widen_mult_pattern): Update documentation. Handle
9768 unsigned patterns and multiplication by constants.
9769 (vect_pattern_recog_1): Update vect_recog_func references. Use
9770 statement information from the statement returned from pattern
9771 detection functions.
9772 (vect_pattern_recog): Update vect_recog_func reference.
9773 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
9774 multiplication by a constant use the type of the other operand.
9775
9776 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
9777
9778 PR rtl-optimization/49145
9779 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
9780
9781 2011-06-06 Jakub Jelinek <jakub@redhat.com>
9782
9783 PR debug/49262
9784 * dwarf2out.c (native_encode_initializer): Decrement count in each
9785 iteration.
9786
9787 PR debug/49294
9788 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
9789 non-MODE_INT modes.
9790
9791 PR c++/49264
9792 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
9793 if stmt folded into nothing.
9794 * tree-inline.c (fold_marked_statements): If a builtin at the end of
9795 a bb folded into nothing, just update cgraph edges and move to next bb.
9796 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
9797 to be NULL. Don't compute count and frequency if new_call is NULL.
9798
9799 2011-06-04 Diego Novillo <dnovillo@google.com>
9800
9801 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
9802 (cgraph.o): Likewise.
9803 (cgraphunit.o): Likewise.
9804 * cgraphunit.c: Include lto-streamer.h
9805 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
9806 if LTO is enabled.
9807 * lto-streamer-in.c (unpack_value_fields): Call
9808 streamer_hooks.unpack_value_fields if set.
9809 (lto_materialize_tree): For unhandled nodes, first try to
9810 call lto_streamer_hooks.alloc_tree, if it exists.
9811 (lto_input_ts_decl_common_tree_pointers): Move reading of
9812 DECL_INITIAL to lto_streamer_read_tree.
9813 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
9814 (lto_streamer_read_tree): New.
9815 (lto_reader_init): Rename from lto_init_reader.
9816 Move initialization code to lto/lto.c.
9817 * lto-streamer-out.c (pack_value_fields): Call
9818 streamer_hooks.pack_value_fields if set.
9819 (lto_output_tree_ref): For tree nodes that are not normally indexable,
9820 call streamer_hooks.indexable_with_decls_p before giving up.
9821 (lto_output_ts_decl_common_tree_pointers): Move handling
9822 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
9823 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
9824 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
9825 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
9826 (lto_streamer_write_tree): New.
9827 (lto_output): Call lto_streamer_init directly.
9828 (lto_writer_init): Remove.
9829 * lto-streamer.c (streamer_hooks): New.
9830 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
9831 instead of lto_preload_common_nodes.
9832 (lto_is_streamable): Move from lto-streamer.h
9833 (lto_streamer_hooks_init): New.
9834 (streamer_hooks): New.
9835 (streamer_hooks_init): New.
9836 * lto-streamer.h (struct output_block): Forward declare.
9837 (struct lto_input_block): Likewise.
9838 (struct data_in): Likewise.
9839 (struct bitpack_d): Likewise.
9840 (struct streamer_hooks): Declare.
9841 (streamer_hooks): Declare.
9842 (lto_streamer_hooks_init): Declare.
9843 (lto_streamer_write_tree): Declare.
9844 (lto_streamer_read_tree): Declare.
9845 (streamer_hooks_init): Declare.
9846 (lto_is_streamable): Move to lto-streamer.c
9847
9848 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9849
9850 * longlong.h (smul_ppmm): The resulting register pair contains the
9851 higher order word first.
9852
9853 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9854
9855 PR tree-optimization/46728
9856 * builtins.c (powi_table): Remove.
9857 (powi_lookup_cost): Remove.
9858 (powi_cost): Remove.
9859 (expand_powi_1): Remove.
9860 (expand_powi): Remove.
9861 (expand_builtin_pow_root): Remove.
9862 (expand_builtin_pow): Remove.
9863 (expand_builtin_powi): Eliminate handling of constant exponent.
9864 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
9865
9866 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
9867
9868 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
9869
9870 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
9871
9872 * dce.c (reset_unmarked_insns_debug_uses): New.
9873 (delete_unmarked_insns): Skip debug insns.
9874 (prescan_insns_for_dce): Likewise.
9875 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
9876 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
9877 active reg can be found.
9878 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
9879 (convert_regs_1): Use it.
9880
9881 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
9882
9883 * tree-pretty-print.c (dump_function_header): Add flags.
9884 Don't dump decl_uid with nouid.
9885 * tree-pretty-print.h (dump_function_header): Adjust.
9886 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
9887 * passes.c (pass_init_dump_file): Pass dump_flags on.
9888 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
9889
9890 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
9891
9892 PR bootstrap/49270
9893 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
9894
9895 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
9896
9897 PR tree-optimization/49243
9898 * calls.c (setjmp_call_p): Also check if fndecl has the
9899 returns_twice attribute.
9900
9901 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9902
9903 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
9904 -ffast-math etc.
9905
9906 2011-06-06 Richard Henderson <rth@redhat.com>
9907 Georg-Johann Lay <avr@gjlay.de>
9908
9909 PR target/42210
9910 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
9911 New predicates.
9912 * config/avr/avr.md ("insv"): New insn expander.
9913 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
9914 "*insv.not.io", "*insv.reg"): New insns.
9915
9916 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
9917
9918 PR target/49285
9919 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
9920 to nonimmediate_operand from memory_operand for the operand that is to
9921 be forced to memory by the expander. Lose the constraints.
9922
9923 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
9924
9925 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
9926 EH return when delayed branches are disabled.
9927
9928 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
9929
9930 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
9931 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
9932 calculation.
9933 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
9934 Simplify MODE_V1DF and MODE_V2SF handling.
9935 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
9936 Simplify MODE_SF handling.
9937
9938 2011-06-04 Jan Hubicka <jh@suse.cz>
9939
9940 PR tree-optimization/48893
9941 PR tree-optimization/49091
9942 PR tree-optimization/49179
9943 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
9944 Bounds check.
9945
9946 2011-06-04 Jan Hubicka <jh@suse.cz>
9947
9948 PR lto/48954
9949 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
9950 bitmaps.
9951
9952 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
9953
9954 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
9955
9956 2011-06-04 Jakub Jelinek <jakub@redhat.com>
9957
9958 PR target/49281
9959 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
9960 to be strictly smaller than 1 << shiftcount.
9961
9962 2011-06-04 Jan Hubicka <jh@suse.cz>
9963
9964 PR tree-optimize/48929
9965 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
9966 of empty predicate.
9967
9968 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
9969
9970 PR debug/48333
9971 * calls.c (emit_call_1): Prefer the __builtin declaration of
9972 builtin functions.
9973
9974 2011-06-03 Diego Novillo <dnovillo@google.com>
9975
9976 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
9977 (lto_input_tree_pointers): Likewise.
9978 * lto-streamer-out.c (pack_value_fields): Likewise.
9979 (lto_output_tree_pointers): Likewise.
9980 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
9981 and OPTIMIZATION_NODE.
9982
9983 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9984
9985 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
9986 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
9987 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
9988 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
9989 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
9990 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
9991 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
9992 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
9993 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
9994 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
9995 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
9996 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
9997 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
9998 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
9999 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
10000 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
10001 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
10002 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
10003 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
10004 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
10005 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
10006 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
10007 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
10008 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
10009 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
10010 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
10011 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
10012 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
10013 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
10014 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
10015 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
10016 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
10017 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
10018 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
10019 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
10020 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
10021 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
10022 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
10023 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
10024 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
10025 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
10026 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
10027 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
10028 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
10029 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
10030 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
10031 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
10032 * system.h (MD_UNWIND_SUPPORT): Poison.
10033 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
10034 * doc/tm.texi: Regenerate.
10035 * unwind-dw2.c: Include md-unwind-support.h instead of
10036 MD_UNWIND_SUPPORT.
10037 * config/ia64/unwind-ia64.c: Likewise.
10038 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
10039
10040 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
10041
10042 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
10043
10044 2011-06-03 Richard Henderson <rth@redhat.com>
10045 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10046
10047 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
10048 (sigill_hdlr): Correct insn, insn size.
10049 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
10050
10051 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10052
10053 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
10054 t-slibgcc-dummy.
10055 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
10056 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
10057 * config/mips/t-iris: Remove.
10058 * config/mips/t-irix6: New file.
10059 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
10060
10061 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10062
10063 * Makefile.in (LIB2ADDEHDEP): Remove.
10064 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
10065 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
10066 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
10067 * config/t-darwin (LIB2ADDEHDEP): Remove.
10068 * config/t-freebsd (LIB2ADDEHDEP): Remove.
10069 * config/t-linux (LIB2ADDEHDEP): Remove.
10070
10071 2011-06-03 Diego Novillo <dnovillo@google.com>
10072
10073 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
10074 (lto_register_var_decl_in_symtab): Likewise.
10075 (lto_register_function_decl_in_symtab): Likewise.
10076 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
10077 logic to uniquify_nodes.
10078
10079 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10080
10081 * config/alpha/t-osf5: Remove.
10082 * config/alpha/t-osf-pthread: Remove.
10083 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
10084 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
10085
10086 2011-06-03 Julian Brown <julian@codesourcery.com>
10087
10088 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
10089 (strongarm1110): Use strongarm tuning.
10090 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
10091 * config/arm/arm.c (arm_strongarm_tune): New.
10092 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
10093 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
10094 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
10095 setting, using previous defaults or 1 for Cortex-A5.
10096 (arm_option_override): Set max_insns_skipped from current tuning.
10097
10098 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
10099
10100 * doc/install.texi (Options specification): Document --with-specs.
10101
10102 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10103
10104 * config/arm/neon.md (orndi3_neon): Actually split it.
10105
10106 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
10107
10108 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
10109 * var-tracking.c (reverse_op): Limite recurse depth to 5.
10110
10111 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
10112
10113 PR debug/47590
10114 * target.def (delay_sched2, delay_vartrack): New.
10115 * doc/tm.texi.in: Update.
10116 * doc/tm.texi: Rebuild.
10117 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
10118 * var-tracking.c (gate_handle_var_tracking): Likewise.
10119 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
10120 (bfin_flag_var_tracking): Drop.
10121 (output_file_start): Don't save and override flag_var_tracking.
10122 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
10123 (bfin_reorg): Test original variables.
10124 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10125 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
10126 (ia64_flag_var_tracking): Drop.
10127 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10128 (ia64_file_start): Don't save and override flag_var_tracking.
10129 (ia64_override_options_after_change): Ditto
10130 flag_schedule_insns_after_reload.
10131 (ia64_reorg): Test original variables.
10132 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
10133 (picochip_flag_var_tracking): Drop.
10134 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10135 (picochip_option_override): Don't save and override
10136 flag_schedule_insns_after_reload.
10137 (picochip_asm_file_start): Ditto flag_var_tracking.
10138 (picochip_reorg): Test original variables.
10139 * config/spu/spu.c (spu_flag_var_tracking): Drop.
10140 (TARGET_DELAY_VARTRACK): Define.
10141 (spu_var_tracking): New.
10142 (spu_machine_dependent_reorg): Call it.
10143 (asm_file_start): Don't save and override flag_var_tracking.
10144
10145 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
10146
10147 PR target/49163
10148 * config/sh/predicates.md (general_movsrc_operand): Return 0
10149 for memory and memory subreg of which address is an invalid
10150 indexed address for QI and HImode.
10151 (general_movdst_operand): Likewise.
10152
10153 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
10154
10155 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
10156 edges only, when there is a non-local label in the function.
10157 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
10158
10159 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
10160
10161 * config/i386/constraints.md (Y3): New register constraint.
10162 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
10163 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
10164 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
10165 *sse2_interleave_lowv2df.
10166
10167 2011-06-02 Julian Brown <julian@codesourcery.com>
10168
10169 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
10170 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
10171 (arm_cortex_a5_tune): New.
10172
10173 2011-06-02 Julian Brown <julian@codesourcery.com>
10174
10175 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
10176 * config/arm/arm.c (arm_default_branch_cost): New.
10177 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
10178 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
10179 (arm_fa726_tune): Set branch_cost field using
10180 arm_default_branch_cost.
10181 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
10182 current_tune structure.
10183 * dojump.c (tm_p.h): Include file.
10184
10185 2011-06-02 Julian Brown <julian@codesourcery.com>
10186
10187 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
10188 tuning.
10189 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
10190 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
10191 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
10192 field.
10193 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
10194 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
10195 (arm_fa726te_tune): Add prefer_constant_pool setting.
10196 (arm_v6t2_tune, arm_cortex_tune): New.
10197 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
10198 prefer_constant_pool setting.
10199
10200 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
10201
10202 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
10203 switch statement.
10204 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
10205 (*movdf_internal) <case 6,7,8>: Ditto.
10206
10207 * config/i386/constraints.md (Y4): New register constraint.
10208 * config/i386/sse.md (vec_set<mode>_0): Merge with
10209 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
10210 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
10211 *vec_extractv2di_1_sse.
10212 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
10213 and *vec_concatv2di_rex64_sse.
10214
10215 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
10216
10217 PR target/48807
10218 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
10219 of cgraph_local_info for null before attempting to use it.
10220
10221 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
10222
10223 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
10224 (current_function_dynamic_alloc_count): Delete.
10225 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
10226 (expand_builtin_nonlocal_goto): Remove obsolete comment.
10227 (expand_builtin_update_setjmp_buf): Remove dead code.
10228 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
10229 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
10230 support.
10231 * function.c (instantiate_virtual_regs): Likewise.
10232 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
10233 for a block with a single abnormal incoming edge.
10234 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
10235 (SETJMP_VIA_SAVE_AREA): Delete.
10236 * config/sparc/sparc-protos.h (load_got_register): Declare.
10237 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
10238 (load_got_register): Make global.
10239 (sparc_frame_pointer_required): Add 'static'.
10240 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
10241 (sparc_builtin_setjmp_frame_value): New function.
10242 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
10243 (save_stack_nonlocal): New expander.
10244 (restore_stack_nonlocal): Likewise.
10245 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
10246 (nonlocal_goto_internal): New insn.
10247 (goto_handler_and_restore): Delete.
10248 (builtin_setjmp_setup): Likewise.
10249 (do_builtin_setjmp_setup): Likewise.
10250 (setjmp): Likewise.
10251 (builtin_setjmp_receiver): New expander.
10252
10253 2011-06-01 David Li <davidxl@google.com>
10254
10255 PR middle-end/49261
10256 * tree-pretty-print.c (dump_function_header): Format cleanup.
10257
10258 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
10259
10260 PR target/49238
10261 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
10262 needed when original operands are used for msw_skip comparison.
10263
10264 2011-06-01 Jakub Jelinek <jakub@redhat.com>
10265
10266 PR debug/49250
10267 * var-tracking.c (add_uses, add_stores): Don't call
10268 cselib_subst_to_values on ENTRY_VALUE.
10269
10270 2011-06-01 Diego Novillo <dnovillo@google.com>
10271
10272 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
10273 output_record_start with LTO_null instead of output_zero.
10274 (lto_output_ts_binfo_tree_pointers): Likewise.
10275 (lto_output_tree): Likewise.
10276 (output_eh_try_list): Likewise.
10277 (output_eh_region): Likewise.
10278 (output_eh_lp): Likewise.
10279 (output_eh_regions): Likewise.
10280 (output_bb): Likewise.
10281 (output_function): Likewise.
10282 (output_unreferenced_globals): Likewise.
10283 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
10284 instead of NUM_TREE_CODES.
10285 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
10286 (lto_output_int_in_range): Change << to >> when shifting VAL.
10287
10288 2011-06-01 Diego Novillo <dnovillo@google.com>
10289
10290 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
10291 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
10292
10293 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
10294
10295 PR target/45074
10296 * optabs.h (valid_multiword_target_p): Declare.
10297 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
10298 doing multi-word operations.
10299 * optabs.c (expand_binop): Likewise.
10300 (expand_doubleword_bswap): Likewise.
10301 (expand_absneg_bit): Likewise.
10302 (expand_unop): Likewise.
10303 (expand_copysign_bit): Likewise.
10304 (multiword_target_p): New function.
10305
10306 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
10307
10308 PR rtl-optimization/48830
10309 PR rtl-optimization/48808
10310 PR rtl-optimization/48792
10311 * reload.c (push_reload): Check contains_reg_of_mode.
10312 * reload1.c (strip_paradoxical_subreg): New function.
10313 (gen_reload_chain_without_interm_reg_p): Use it to handle
10314 paradoxical subregs.
10315 (emit_output_reload_insns, gen_reload): Likewise.
10316
10317 2011-06-01 David Li <davidxl@google.com>
10318
10319 * predict.c : Change pass name
10320 * ipa.c: Ditto.
10321 * dce.c: Ditto.
10322 * tree-profile.c: Ditto.
10323 * except.c: Ditto.
10324
10325 2011-06-01 David Li <davidxl@google.com>
10326
10327 * tree-pretty-print.c (dump_function_header): New function.
10328 * final.c (rest_of_clean_state): Use header dumper.
10329 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
10330 * passes.c (pass_init_dump_file): Use header dumper.
10331
10332 2011-06-01 Jakub Jelinek <jakub@redhat.com>
10333
10334 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
10335 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
10336 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
10337 New functions.
10338 (mem_loc_descriptor): Use them.
10339
10340 * var-tracking.c (create_entry_value): New function.
10341 (vt_add_function_parameter): Use it.
10342
10343 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10344
10345 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
10346 Include <signal.h>, <ucontext.h>.
10347 (sigill_caught): Define.
10348 (sigill_hdlr): New function.
10349 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
10350 insns can be executed.
10351 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
10352 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
10353
10354 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10355
10356 * config/t-slibgcc-darwin: Move to ...
10357 * config/t-slibgcc-dummy: ... this. Clarify comments.
10358 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
10359 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
10360 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
10361 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
10362 Remove i386/t-crtstuff from tmake_file.
10363 (i[34567]86-*-solaris2*): Remove t-svr4,
10364 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
10365 t-slibgcc-dummy.
10366 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
10367 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
10368 sparc/t-crtfm from tmake_file.
10369 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
10370 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
10371 Remove extra_parts.
10372 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
10373 * config/i386/t-nwld (SHLIB_LINK): Remove.
10374 * config/i386/t-rtems-i386: Rename to ...
10375 * config/i386/t-rtems: ... this.
10376 ($(T)crti.o, $(T)crtn.o): Remove.
10377 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
10378 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
10379 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
10380 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
10381 EXTRA_MULTILIB_PARTS): Remove.
10382 * config/sparc/t-sol2-64: Likewise.
10383 * config/sparc/t-sol2: Remove.
10384 * config/sparc/t-crtin: Remove.
10385 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
10386 * config/i386/gmon-sol2.c: Remove.
10387 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
10388 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
10389 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
10390 * config/i386/sol2-gc1.asm: Remove.
10391 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
10392 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
10393 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
10394 * config/t-slibgcc-sld: Remove.
10395
10396 2011-06-01 Jakub Jelinek <jakub@redhat.com>
10397
10398 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
10399 base_type_for_mode with op_mode instead of mode.
10400
10401 2011-06-01 Paul Brook <paul@cpodesourcery.com>
10402
10403 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
10404 Cortex-A15.
10405 * config/arm/arm-tune.md: Regenerate.
10406 * config/arm/arm-tables.opt: Regenerate.
10407 * config/arm/arm.c (FL_DIV): Rename...
10408 (FL_THUMB_DIV): ... to this.
10409 (FL_ARM_DIV): Define.
10410 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
10411 (arm_arch_hwdiv): Remove.
10412 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
10413 (arm_issue_rate): Add cortexr5.
10414 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
10415 __ARM_ARCH_EXT_IDIV__.
10416 (TARGET_IDIV): Define.
10417 (arm_arch_hwdiv): Remove.
10418 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
10419 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
10420 (divsi3, udivsi3): New patterns.
10421 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
10422 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
10423
10424 2011-06-01 Martin Jambor <mjambor@suse.cz>
10425
10426 * ipa-utils.c (ipa_dfs_info): New field scc_no.
10427 * ipa-utils.c (searchc): Set scc_no.
10428
10429 2011-06-01 Martin Jambor <mjambor@suse.cz>
10430
10431 * ipa-utils.c (searchc_env): New field allow_overwritable.
10432 (searchc): do not ignore edges to overwritable nodes if indicated
10433 by env->allow_overwritable.
10434 (ipa_reduced_postorder): Set env.allow_overwritable.
10435
10436 2011-06-01 Richard Guenther <rguenther@suse.de>
10437
10438 * tree.c (free_lang_data): Do not reset boolean_type_node nor
10439 char_type_node.
10440 * lto-streamer.c (lto_record_common_node): Take node pointer,
10441 do not register types.
10442 (lto_preload_common_nodes): Explicitly skip preloading nodes
10443 that differ between frontends.
10444
10445 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
10446
10447 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
10448 NON_FLOAT_REGS.
10449
10450 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
10451
10452 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
10453 parameter value for dump. Dump cost on outermost call only.
10454 (rs6000_memory_move_cost): Dump cost on outermost call only.
10455
10456 2011-05-31 Jakub Jelinek <jakub@redhat.com>
10457
10458 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
10459 DW_OP_GNU_convert ops.
10460
10461 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
10462 cselib_preserve_constants.
10463 (cselib_lookup_1): If cselib_preserve_constants,
10464 a new VALUE is being created for REG and there is a VALUE for the
10465 same register in wider mode, add another loc with lowpart SUBREG of
10466 the wider VALUE.
10467 (cselib_subst_to_values): Handle ENTRY_VALUE.
10468 * var-tracking.c (replace_expr_with_values): Return NULL for
10469 ENTRY_VALUE too.
10470 * dwarf2out.c (convert_descriptor_to_signed): New function.
10471 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
10472 instead of two shifts.
10473 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
10474 the right mode if needed.
10475 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
10476 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
10477 convert_descriptor_to_signed.
10478 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
10479 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
10480
10481 PR target/48688
10482 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
10483
10484 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
10485
10486 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
10487 of X87MODEI12 and SWI48x instead of SSEMODEI24.
10488 (SWI248x): New mode iterator, rename from X87MODEI.
10489 (X87MODEI): Remove mode iterator.
10490 (X87MODEI12): Ditto.
10491 (SSEMODEI24): Ditto.
10492
10493 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
10494
10495 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
10496 * doc/invoke.texi: Document max-vartrack-expr-depth.
10497 * var-tracking.c (EXPR_DEPTH): New.
10498 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
10499
10500 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
10501
10502 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
10503 * config/i386/sse.md: Add n to negated FMA pattern names.
10504
10505 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
10506
10507 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
10508
10509 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
10510
10511 * gengtype-state.c (read_state_params_structs): Initialize previous.
10512
10513 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
10514
10515 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
10516 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
10517
10518 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
10519
10520 * config/i386/i386.md (*movtf_internal): Avoid allocating general
10521 registers. Penalize F*r->o alternative to prevent partial memory
10522 stalls. Slightly penalize *roF->*r alternative. Generate SSE
10523 CONST_DOUBLE immediates when optimizing function for size. Do not move
10524 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
10525 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
10526 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
10527 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
10528 alternatives.
10529 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
10530
10531 (fp_register_operand splitters): Use fp_register_operand
10532 constraint. Do not use FP_REG_P in insn condition.
10533 (any_fp_register_operand splitters): Use any_fp_register_operand
10534 constraint. Do not use ANY_FP_REG_P in insn condition.
10535
10536 2011-05-31 Jan Hubicka <jh@suse.cz>
10537
10538 * cgraph.h (cgraph_inline_failed_t): Give enum a name
10539 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
10540 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
10541 (lto_output_edge): Use output_enum and var_len_unsigned.
10542 (lto_output_varpool_node): Likewise.
10543 (input_overwrite_node): Do not take resolution parameter;
10544 extract it from a bitpack.
10545 (input_node): Do not read resolution; use input_enum and
10546 var_len_unsigned.
10547 (input_varpool_node): Likewise.
10548 (input_edge): Likewise.
10549 (input_cgraph_1): Likewise.
10550
10551 2011-05-31 Richard Guenther <rguenther@suse.de>
10552
10553 * gimple.c (gimple_register_canonical_type): Do not register
10554 any types via gimple_register_type.
10555
10556 2011-05-31 Jan Hubicka <jh@suse.cz>
10557
10558 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
10559 of thunks.
10560
10561 2011-05-31 Jakub Jelinek <jakub@redhat.com>
10562
10563 PR rtl-optimization/49235
10564 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
10565 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
10566
10567 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
10568
10569 PR tree-optimization/49093
10570 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
10571 data references.
10572
10573 2011-05-31 Dodji Seketeli <dodji@redhat.com>
10574
10575 PR debug/49047
10576 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
10577 for concrete functions containing the code of cloned functions.
10578
10579 2011-05-31 Richard Guenther <rguenther@suse.de>
10580
10581 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
10582 to ...
10583 (forward_propagate_into_comparison_1): ... this.
10584 (forward_propagate_comparison): Rename to ...
10585 (forward_propagate_into_comparison): ... this. Split out
10586 real forward propagation code to ...
10587 (forward_propagate_comparison): ... this.
10588 (forward_propagate_into_gimple_cond): Remove looping.
10589 (forward_propagate_into_cond): Likewise.
10590 (simplify_not_neg_expr): Return whether we have done something.
10591 (simplify_gimple_switch): Likewise.
10592 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
10593 (ssa_forward_propagate_and_combine): ... this. Re-structure
10594 to do a forward forward-propagation walk on BBs and a backward
10595 stmt combining walk on BBs. Consistently re-scan changed statements.
10596 (pass_forwprop): Adjust.
10597
10598 2011-05-30 Ian Lance Taylor <iant@google.com>
10599
10600 * godump.c (go_format_type): Correct length of name added to
10601 obstack for anonymous field.
10602
10603 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
10604
10605 PR target/49186
10606 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
10607 part of the second operand is 0.
10608
10609 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
10610
10611 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
10612 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
10613 to memory for !TARGET_MEMORY_MISMATCH_STALL.
10614 (*movdf_internal_rex64): Do not penalize F->r alternative.
10615 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
10616 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
10617 when optimizing function for size. Do not move CONST_DOUBLEs
10618 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
10619 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
10620 SUBREGs. Do not check for MEM_P operands in the insn condition,
10621 check for ANY_FP_REGNO_P instead.
10622 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
10623 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
10624 function for speed.
10625 * config/i386/i386.c (ix86_option_override_internal): Do not
10626 set TARGET_INTEGER_DFMODE_MOVES here.
10627
10628 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
10629
10630 PR target/49168
10631 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
10632
10633 2011-05-30 Jakub Jelinek <jakub@redhat.com>
10634
10635 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
10636 DW_TAG_rvalue_reference_type even for
10637 -gdwarf-4 -fno-debug-types-section.
10638
10639 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10640
10641 PR tree-optimization/46728
10642 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
10643 (build_and_insert_binop): New.
10644 (gimple_expand_builtin_pow): Reorder args for
10645 build_and_insert_call; use build_and_insert_binop; add more
10646 optimizations for fractional exponents.
10647
10648 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
10649
10650 PR bootstrap/49190
10651
10652 Revert:
10653 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10654
10655 * tree.h (struct tree_identifier): Inherit from tree_typed, not
10656 tree_common.
10657 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
10658 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
10659 TS_BASE instead of TS_COMMON.
10660 * varasm.c (assemble_name): Remove assert.
10661
10662 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
10663
10664 * config.gcc: Keep obselete list sorted.
10665
10666 2011-05-30 Jakub Jelinek <jakub@redhat.com>
10667 Eric Botcazou <ebotcazou@adacore.com>
10668
10669 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
10670 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
10671 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
10672 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
10673 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
10674
10675 2011-05-30 Richard Guenther <rguenther@suse.de>
10676
10677 * gimple.c (gimple_types_compatible_p_1): Compare record
10678 and union type members properly.
10679
10680 2011-05-30 Richard Guenther <rguenther@suse.de>
10681
10682 PR tree-optimization/49210
10683 * ipa-split.c (split_function): Care for the case where the call
10684 result is not trivially convertible to the result holding variable.
10685
10686 2011-05-30 Richard Guenther <rguenther@suse.de>
10687
10688 PR tree-optimization/49218
10689 * tree-vrp.c (adjust_range_with_scev): Properly check whether
10690 overflow occured.
10691
10692 2011-05-30 Richard Guenther <rguenther@suse.de>
10693
10694 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
10695 New function split out from ...
10696 (forward_propagate_into_gimple_cond): ... here. Adjust.
10697 (forward_propagate_into_cond): Likewise.
10698 (forward_propagate_comparison): Also propagate into
10699 comparisons on assignment RHS. Change return value to
10700 behave similar to forward_propagate_into_cond.
10701 (tree_ssa_forward_propagate_single_use_vars): Handle
10702 strict-overflow warnings properly for forward_propagate_comparison.
10703
10704 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10705
10706 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
10707 from plugin linker.
10708 * configure: Regenerate.
10709
10710 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
10711
10712 PR tree-optimization/49199
10713 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
10714 non-reduction operands are either defined in the loop or by induction.
10715
10716 2011-05-29 Xinliang David Li <davidxl@google.com>
10717
10718 * opts-global.c (handle_common_deferred_options): Handle new options.
10719 * passes.c (register_one_dump_file): Call register_pass_name.
10720 (execute_one_pass): Check explicit enable/disable flag.
10721 (passr_hash): New function.
10722 (passr_eq): Ditto.
10723 (register_pass_name): Ditto.
10724 (get_pass_by_name): Ditto.
10725 (pass_hash): Ditto.
10726 (pass_eq): Ditto.
10727 (enable_pass): Ditto.
10728 (disable_pass): Ditto.
10729 (is_pass_explicitly_enabled_or_disabled): Ditto.
10730
10731 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
10732
10733 * config/i386/i386.md (*movoi_internal_avx): Use
10734 standard_sse_constant_opcode for alternative 0.
10735 (*movti_internal_sse): Ditto.
10736 (*movti_internal_rex64): Use standard_sse_constant_opcode for
10737 alternative 2.
10738 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
10739 sselog1 type moves.
10740 (*movsi_internal): Ditto.
10741 (*movdi_internal): Ditto. Add ssecvt type moves.
10742
10743 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
10744
10745 PR target/48830
10746 * rtlanal.c (simplify_subreg_regno): Adjust comment.
10747
10748 2011-05-29 Jakub Jelinek <jakub@redhat.com>
10749
10750 PR rtl-optimization/49095
10751 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
10752 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
10753
10754 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
10755
10756 PR target/43995
10757 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
10758 recurse_p argument. Only follow register copies if it is set,
10759 and prevent mips_find_pic_call_symbol from recursing.
10760 (mips_find_pic_call_symbol): Add a recurse_p argument.
10761 Pass it to mips_pic_call_symbol_from_set.
10762 (mips_annotate_pic_calls): Update accordingly.
10763
10764 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
10765
10766 * emit-rtl.c (try_split): Use a loop to search for
10767 NOTE_INSN_CALL_ARG_LOCATIONs.
10768
10769 2011-05-29 Richard Guenther <rguenther@suse.de>
10770
10771 PR tree-optimization/49217
10772 * ipa-pure-const.c (propagate_pure_const): Fix typos.
10773
10774 2011-05-28 Jan Hubicka <jh@suse.cz>
10775
10776 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
10777 length.
10778 (string_slot_free): Remove
10779 (create_output_block): Initialize obstack.
10780 (destroy_output_block): Free obstack.
10781 (lto_string_index): Add PERSISTENT parameter; do not duplicate
10782 the string unless it needs to be added into the hash.
10783 (lto_output_string_with_length): Add persistent attribute;
10784 handle NULL strings.
10785 (lto_output_string): Add PERSISTENT parameter.
10786 (output_string_cst, output_identifier): Simplify.
10787 (lto_output_location_bitpack): Update.
10788 (lto_output_builtin_tree): Update.
10789 * lto-streamer.h (struct output_block): Add obstack.
10790 (lto_output_string, lto_output_string_with_length): Remove
10791 declarations; functions are static now.
10792
10793 2011-05-28 Jan Hubicka <jh@suse.cz>
10794
10795 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
10796 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
10797 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
10798 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
10799 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
10800 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
10801 unpack_ts_decl_with_vis_value_fields,
10802 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
10803 lto_get_builtin_tree): Use enum and variable length i/o.
10804 * basic-block.h (profile_status_d): Add PROFILE_LAST.
10805 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
10806 New functions.
10807 (bp_pack_enum, bp_unpack_enum): New macros.
10808
10809 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10810
10811 * genrecog.c: Remove redundant forward declarations.
10812
10813 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10814
10815 * config.gcc: Deprecate mips*-*-openbsd*.
10816
10817 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10818
10819 PR bootstrap/49195
10820 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
10821 for match_op_dup.
10822
10823 2011-05-27 Andrew Pinski <pinskia@gmail.com>
10824
10825 PR middle-end/48981
10826 * gengtype.c (vec_prefix_type): New function.
10827 (note_def_vec): Use vec_prefix_type and change the length
10828 attribute to be based on the prefix.
10829 * vec.c: Include coretypes.h before vec.h.
10830 (struct vec_prefix): Remove.
10831 (vec_gc_p_reserve): Change the offsetof to sizeof.
10832 (vec_gc_p_reserve_exact): Likewise.
10833 (vec_heap_p_reserve): Likewise.
10834 (vec_heap_p_reserve_exact): Likewise.
10835 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
10836 (vec_stack_p_reserve): Change the offsetof to sizeof.
10837 (vec_stack_p_reserve_exact): Likewise.
10838 * vec.h (struct vec_prefix): New struct definition.
10839 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
10840 (VEC_T_GTY(T,B)): Likewise.
10841 (DEF_VEC_FUNC_P(T)): Use prefix field.
10842 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
10843 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
10844
10845 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10846
10847 PR tree-optimization/46728
10848 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
10849 (powi_as_mults): Add gimple_set_location.
10850 (build_and_insert_call): New.
10851 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
10852 0.5, 0.25, 0.75, 1./3., or 1./6.
10853
10854 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
10855
10856 * doc/contrib.texi: Update copyright years.
10857 (Contributors): Add Zdenek Sojka.
10858
10859 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
10860
10861 * c-decl.c (c_push_function_context): Copy the current statement
10862 list stack.
10863 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
10864 (finish_struct): Call building_stmt_list_p instead of checking
10865 cur_stmt_list.
10866 * c-parser.c (c_parser_postfix_expression): Likewise.
10867 * c-typeck.c (c_end_compound_stmt): Likewise.
10868 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
10869 * tree-iterator.c (stmt_list_cache): Change to a VEC.
10870 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
10871 (free_stmt_list): Likewise.
10872 * tree.h (struct tree_statement_list): Include typed_tree instead
10873 of tree_common.
10874 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
10875 as TS_TYPED instead of TS_COMMON.
10876
10877 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10878 Uros Bizjak <ubizjak@gmail.com>
10879
10880 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
10881 (HAVE_AS_IX86_TLSGDPTL): Define.
10882 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
10883 (HAVE_AS_IX86_TLSLDMPLT): Define.
10884 * configure: Regenerate.
10885 * config.in: Regenerate.
10886 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
10887 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
10888 TARGET_SUN_TLS, use @tlsgdplt or @plt.
10889 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
10890 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
10891 @tlsldmplt or @plt.
10892 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
10893
10894 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
10895
10896 * sched-int.h (struct _haifa_deps_insn_data): New members cond
10897 and reverse_cond.
10898 (INSN_COND, INSN_REVERSE_COND): New macros.
10899 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
10900 once.
10901 (sched_get_condition_with_rev): Cache the results, and look them up
10902 if possible.
10903 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
10904 are clobbered by the current insn.
10905 * target.def (exposed_pipline): New sched data hook.
10906 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
10907 * doc/tm.texi: Regenerate.
10908
10909 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10910
10911 PR tree-optimization/49170
10912 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
10913 sincos or cexp.
10914
10915 2011-05-27 Richard Guenther <rguenther@suse.de>
10916
10917 PR middle-end/49189
10918 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
10919 of comparisons.
10920
10921 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
10922
10923 * haifa-sched.c (sched_scan_info): Remove.
10924 (schedule_block): Call sched_extend_luids rather than sched_init_luids
10925 with NULL args.
10926 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
10927 Remove functions.
10928 (sched_scan): Remove.
10929 (sched_extend_luids): Renamed from luids_extend_insn and no longer
10930 static. All callers changed.
10931 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
10932 static. All callers changed.
10933 (sched_init_luids): Remove all arguments except the first. All
10934 callers changed. Don't use sched_scan.
10935 (haifa_init_h_i_d): Likewise.
10936 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
10937 manually rather than using sched_init_luids. Likewise with
10938 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
10939 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
10940 rather than sched_init_luids with NULL args.
10941 * sel-sched-ir.c (new_insns): Remove variable.
10942 (sched_scan): New static function, previously in haifa-sched.c. Remove
10943 all arguments but the first two; all callers changed.
10944 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
10945 rather than sched_init_luids.
10946 (sel_init_bbs): Remove second argument. All callers changed.
10947 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
10948 with NULL arguments.
10949 (create_insn_rtx_from_pattern): Likewise.
10950 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
10951 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
10952 (sched_init_insn_luid, sched_extend_luids): Declare.
10953 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
10954 declarations.
10955
10956 2011-05-27 Richard Guenther <rguenther@suse.de>
10957
10958 PR middle-end/49177
10959 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
10960 A CMP B ? (T) true : (T) false for non-integral types T again.
10961
10962 2011-05-27 Jan Hubicka <jh@suse.cz>
10963
10964 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
10965 so 0 means NULL string.
10966 (lto_output_string_with_length): ... here.
10967 (lto_output_string, output_string_cst, output_identifier): Update
10968 handling of NULL strings.
10969 (lto_output_location_bitpack): New function.
10970 (lto_output_location): Use it.
10971 (lto_output_tree_ref): Use output_record_start.
10972 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
10973 len values.
10974 * lto-streamer-in.c (string_for_index): Break out from ...; offset
10975 values by 1.
10976 (input_string_internal): ... here;
10977 (input_string_cst, input_identifier, lto_input_string): Update handling
10978 of NULL strings.
10979 (lto_input_location_bitpack): New function
10980 (lto_input_location): Use it.
10981 (unpack_ts_type_common_value_fields): Pack align & alias in var len
10982 values.
10983 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
10984 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
10985 (bp_pack_value): Sanity check the value range.
10986 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
10987 New functions.
10988 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
10989 New functions.
10990
10991 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
10992
10993 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
10994 call_arg_location instructions down the floor.
10995
10996 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
10997
10998 PR rtl-optimization/49154
10999 * ira.c (setup_pressure_classes): Process class without sublcasses
11000 as a candidate for pressure classes.
11001
11002 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
11003
11004 PR rtl-optimization/48575
11005 * genrecog.c (position_type): New enum.
11006 (position): New structure.
11007 (decision): Use position structure instead of a string.
11008 (root_pos, peep2_insn_pos_list): New variables.
11009 (next_position, compare_positions): New functions.
11010 (new_decision): Use position structures instead of strings.
11011 (maybe_both_true): Likewise.
11012 (change_state): Likewise.
11013 (write_tree): Likewise.
11014 (make_insn_sequence): Likewise.
11015
11016 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11017
11018 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
11019 TS_BASE instead of TS_COMMON.
11020 (find_decls_types_r): Check for TS_TYPED structure before looking at
11021 TREE_TYPE.
11022 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
11023 Add chain field.
11024 (BLOCK_CHAIN): Use new chain field.
11025
11026 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
11027
11028 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
11029 moves expensive on Power7 also.
11030
11031 2011-05-26 Richard Guenther <rguenther@suse.de>
11032
11033 * fold-const.c (fold_unary_loc): Remove bogus code.
11034
11035 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11036
11037 * tree.h (struct tree_identifier): Inherit from tree_typed, not
11038 tree_common.
11039 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
11040 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
11041 TS_BASE instead of TS_COMMON.
11042 * varasm.c (assemble_name): Remove assert.
11043
11044 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
11045
11046 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
11047 substituted first.
11048 * libgcc-std.ver: Delete file.
11049
11050 2011-05-26 Richard Guenther <rguenther@suse.de>
11051
11052 PR tree-optimization/48702
11053 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
11054 only when we know the base address is within bounds.
11055 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
11056 assume the base address of TARGET_MEM_REFs is in bounds.
11057
11058 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11059
11060 PR target/49099
11061 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
11062 declaration in TARGET_SOLARIS.
11063
11064 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
11065
11066 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
11067 The instruction is then expanded explicitly.
11068 (supported_compare): Callable instruction.
11069 (compare): Likewise.
11070
11071 2011-05-26 Jakub Jelinek <jakub@redhat.com>
11072
11073 PR c++/49165
11074 * gimplify.c (shortcut_cond_r): Don't special case
11075 COND_EXPRs if they have void type on one of their arms.
11076
11077 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
11078
11079 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
11080 to reduce duplication, and to achieve a slightly more logical order
11081 of operations.
11082
11083 2011-05-26 Jakub Jelinek <jakub@redhat.com>
11084
11085 PR tree-optimization/49161
11086 * tree-vrp.c (struct case_info): New type.
11087 (compare_case_labels): Sort case_info structs instead of
11088 trees, and not primarily by CASE_LABEL uids but by
11089 label_for_block indexes.
11090 (find_switch_asserts): Put case labels into struct case_info
11091 array instead of TREE_VEC, adjust sorting, compare label_for_block
11092 values instead of CASE_LABELs.
11093
11094 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11095
11096 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
11097 ("orndi3_neon"): Likewise.
11098 ("bic<mode>3_neon"): Likewise.
11099
11100 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
11101
11102 PR tree-optimization/49038
11103 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
11104 Ensure at least one epilogue iteration if required by data
11105 accesses with gaps.
11106 * tree-vectorizer.h (struct _loop_vec_info): Add new field
11107 to mark loops that require peeling for gaps.
11108 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
11109 (vect_get_known_peeling_cost): Take peeling for gaps into
11110 account.
11111 (vect_transform_loop): Generate epilogue if required by data
11112 access with gaps.
11113 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
11114 loop as requiring an epilogue if there are gaps in the end of
11115 the strided group.
11116
11117 2011-05-25 Ian Lance Taylor <iant@google.com>
11118
11119 * godump.c (go_format_type): Output the first field with a usable
11120 Go type, if any.
11121
11122 2011-05-25 Ian Lance Taylor <iant@google.com>
11123
11124 * godump.c (go_format_type): Check for invalid type names, pointer
11125 target types, and struct field types.
11126
11127 2011-05-25 Jason Merrill <jason@redhat.com>
11128
11129 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
11130
11131 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
11132
11133 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
11134
11135 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
11136
11137 * config/i386/i386.md (*movqi_extv_1)): Put back
11138 "register_operand" check in "type" calculation.
11139 (*movqi_extzv_2): Likewise.
11140
11141 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
11142
11143 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
11144
11145 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
11146
11147 PR bootstrap/49160
11148 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
11149 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
11150 __divxc3, __divtc3): Wrap definitions in #ifndef.
11151
11152 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
11153
11154 PR target/49142
11155 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
11156 "register_operand" check and replace q_regs_operand with
11157 QIreg_operand in "type" calculation.
11158 (*movqi_extv_1): Likewise.
11159 (*movqi_extzv_2_rex64): Likewise.
11160 (*movqi_extzv_2): Likewise.
11161
11162 * config/i386/predicates.md (QIreg_operand): New.
11163
11164 2011-05-25 Richard Guenther <rguenther@suse.de>
11165
11166 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
11167 type-based offset disambiguation, streamline MEM_REF and
11168 TARGET_MEM_REF handling.
11169
11170 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
11171
11172 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
11173 (bdesc_special_args): Add pause intrinsic.
11174
11175 * config/i386/i386.md (UNSPEC_PAUSE): New.
11176 (pause): Likewise.
11177 (*pause): Likewise.
11178 * config/i386/ia32intrin.h (__pause): Likewise.
11179
11180 * doc/extend.texi (X86 Built-in Functions): Add documentation for
11181 pause intrinsic.
11182
11183 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11184
11185 PR tree-optimization/46728
11186 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
11187 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
11188
11189 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
11190
11191 * tree.h (struct tree_exp): Inherit from struct tree_typed.
11192 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
11193 instead of TS_COMMON.
11194
11195 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
11196
11197 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
11198 LIBGCC2_GNU_PREFIX is defined.
11199 (__N): New macro.
11200 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
11201 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
11202 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
11203 __clz_tab): Define using __N.
11204 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
11205 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
11206 * target.def (libfunc_gnu_prefix): New hook.
11207 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
11208 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
11209 * doc/tm.texi: Regenerate.
11210 * system.h (LIBGCC2_GNU_PREFIX): Poison.
11211 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
11212 account.
11213 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
11214 (init_optabs): Likewise for the bswap libfuncs.
11215 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
11216 and divide.
11217 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
11218 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
11219 * libgcc-std.ver: Remove.
11220 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
11221 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
11222 libgcc-std.ver.
11223 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11224 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
11225 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
11226 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
11227 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
11228 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11229 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11230 * config/fixed-bit.h (FIXED_OP): Define differently depending on
11231 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
11232 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
11233
11234 2011-05-25 Jan Hubicka <jh@suse.cz>
11235
11236 * lto-streamer-out.c (output_record_start): Use lto_output_enum
11237 (lto_output_tree): Use output_record_start.
11238 * lto-streamer-in.c (input_record_start): Use lto_input_enum
11239 (lto_get_pickled_tree): Use input_record_start.
11240 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
11241 (lto_value_range_error): New function.
11242 * lto-streamer.h (lto_value_range_error): Declare.
11243 (lto_output_int_in_range, lto_input_int_in_range): New functions.
11244 (lto_output_enum, lto_input_enum): New macros.
11245
11246 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
11247
11248 * common.opt (flag_stack_usage_info): New variable.
11249 (-Wstack-usage): New option.
11250 * doc/invoke.texi (Warning options): Document -Wstack-usage.
11251 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
11252 <OPT_fstack_usage>: Likewise.
11253 * toplev.c (output_stack_usage): Handle -Wstack-usage.
11254 * calls.c (expand_call): Test flag_stack_usage_info variable instead
11255 of flag_stack_usage.
11256 (emit_library_call_value_1): Likewise.
11257 * explow.c (allocate_dynamic_stack_space): Likewise.
11258 * function.c (instantiate_virtual_regs ): Likewise.
11259 (prepare_function_start): Likewise.
11260 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
11261 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
11262 * config/arm/arm.c (arm_expand_prologue): Likewise.
11263 (thumb1_expand_prologue): Likewise.
11264 * config/avr/avr.c (expand_prologue): Likewise.
11265 * config/i386/i386.c (ix86_expand_prologue): Likewise.
11266 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
11267 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
11268 * config/mips/mips.c (mips_expand_prologue): Likewise.
11269 * config/pa/pa.c (hppa_expand_prologue): Likewise.
11270 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
11271 * config/s390/s390.c (s390_emit_prologue): Likewise.
11272 * config/sh/sh.c (sh_expand_prologue): Likewise.
11273 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
11274 * config/spu/spu.c (spu_expand_prologue): Likewise.
11275
11276 2011-05-25 Richard Guenther <rguenther@suse.de>
11277
11278 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
11279 (gimple_canonical_types_compatible_p): Likewise.
11280
11281 2011-05-25 Jan Hubicka <jh@suse.cz>
11282
11283 PR middle-end/49062
11284 * ipa.c (function_and_variable_visibility): Only add to same
11285 comdat group list if DECL_ONE_ONLY.
11286
11287 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
11288
11289 PR rtl-optimization/49014
11290 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
11291
11292 2011-05-25 Jakub Jelinek <jakub@redhat.com>
11293
11294 PR target/49128
11295 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
11296
11297 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
11298
11299 PR rtl-optimization/48757
11300 * ira-build.c (loop_with_eh_edge_p): Rename to
11301 loop_with_complex_edge_p, check edges on complexity, make function
11302 conditional.
11303 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
11304 conditional.
11305
11306 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
11307
11308 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
11309 force flag_ira_share_save_slots to 0.
11310
11311 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
11312
11313 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
11314 (vt_initialize): Set PROLOGUE_BB unconditionally.
11315 Add block comment about CFA_BASE_RTX machinery.
11316 Reset FP_CFA_OFFSET to -1 on all invalid paths.
11317 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
11318
11319 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
11320
11321 PR objc/48187
11322 * c-parser.c (c_parser_objc_class_instance_variables): More robust
11323 parsing of syntax error in ObjC instance variable lists. In
11324 particular, avoid an infinite loop if there is a stray ']'.
11325 Updated error message.
11326
11327 2011-05-24 Ian Lance Taylor <iant@google.com>
11328
11329 * godump.c (go_define): Don't accept a string immediately after
11330 another operand.
11331
11332 2011-05-24 Ian Lance Taylor <iant@google.com>
11333
11334 * godump.c (struct godump_container): Add invalid_hash field.
11335 (go_format_type): Return false if type is found in invalid_hash.
11336 (go_output_typedef): Add invalid type to invalid_hash.
11337 (go_finish): Create and delete invalid_hash.
11338
11339 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11340
11341 PR tree-optimization/46728
11342 * tree-ssa-math-opts.c (powi_table): New.
11343 (powi_lookup_cost): New.
11344 (powi_cost): New.
11345 (powi_as_mults_1): New.
11346 (powi_as_mults): New.
11347 (gimple_expand_builtin_powi): New.
11348 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
11349 (gate_cse_sincos): Remove sincos/cexp restriction.
11350
11351 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11352
11353 PR target/3746
11354 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
11355 mips-tdump native.
11356 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
11357 * mips-tdump.c: Likewise.
11358
11359 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
11360
11361 PR target/49128
11362 * config/i386/driver-i386.c (host_detect_local_cpu): Always
11363 add -mno-XXX. Handle FMA.
11364
11365 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
11366
11367 PR rtl-optimization/48633
11368 * ira-build.c (loop_with_eh_edge_p): New function.
11369 (mark_loops_for_removal): Use it.
11370
11371 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
11372
11373 PR rtl-optimization/48971
11374 * ira.c (setup_pressure_classes): Don't check register move cost
11375 for classes with one registers. Don't add pressure class if there
11376 is a pressure class with the same available hard registers.
11377 Check contains_reg_of_mode. Fix a typo in collecting
11378 temp_hard_regset. Ignore hard registers not belonging to a class.
11379
11380 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
11381
11382 PR target/49133
11383 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
11384
11385 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
11386 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11387
11388 PR gcov-profile/48845
11389 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
11390
11391 2011-05-24 Richard Guenther <rguenther@suse.de>
11392
11393 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
11394 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
11395 (gimple_types_compatible_p_1): Adjust.
11396 (iterative_hash_canonical_type): Do not bother about complete vs.
11397 incomplete types.
11398 (gimple_canonical_types_compatible_p): Likewise.
11399
11400 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11401
11402 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
11403
11404 2011-05-24 Richard Guenther <rguenther@suse.de>
11405
11406 PR bootstrap/49078
11407 * gimple.c (gimple_register_canonical_type): Revert
11408 previous change.
11409 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
11410 does not for a tree for the case where it matters. Cache
11411 pointer-type alias-sets.
11412
11413 2011-05-24 Joseph Myers <joseph@codesourcery.com>
11414
11415 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
11416 (OBJS): Remove options.o, opts-common.o and prefix.o.
11417 (OBJS-libcommon-target): New.
11418 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
11419 (BACKEND): Include libcommon-target.a.
11420 (MOSTLYCLEANFILES): Include libcommon-target.a.
11421 (libcommon-target.a): New.
11422 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
11423 prefix.o.
11424
11425 2011-05-23 Joseph Myers <joseph@codesourcery.com>
11426
11427 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
11428 parts of output shared with the driver.
11429 * optc-gen.awk: Don't generate parts of output not shared with the
11430 driver.
11431 * opth-gen.awk: Remove GCC_DRIVER conditionals.
11432 * doc/options.texi (SourcerInclude): Mention options-save.c.
11433 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
11434 (OBJS): Add options-save.o.
11435 (options-save.c, options-save.o): New.
11436 (options.o): Update dependencies.
11437 (gcc-options.o): Remove.
11438 (mostlyclean): Remove options-save.c.
11439
11440 2011-05-23 Jakub Jelinek <jakub@redhat.com>
11441
11442 PR debug/49032
11443 * dbxout.c: Include cgraph.h.
11444 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
11445 and without value expr, return NULL if no varpool node exists for
11446 it or if it is not needed.
11447 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
11448
11449 PR c/49120
11450 * c-decl.c (start_decl): Convert expr to void_type_node.
11451
11452 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
11453
11454 PR rtl-optimization/48826
11455 * emit-rtl.c (try_split): When splitting a call that is followed
11456 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
11457
11458 2011-05-23 Jakub Jelinek <jakub@redhat.com>
11459
11460 * cfgexpand.c (expand_debug_expr): For unused non-addressable
11461 parameters passed in memory prefer using DECL_INCOMING_RTL over
11462 the pseudos it will be copied into.
11463
11464 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
11465
11466 PR target/47315
11467 * config/i386/i386.c (ix86_option_override_internal): Save the
11468 initial options after checking vzeroupper.
11469
11470 2011-05-23 David Li <davidxl@google.com>
11471
11472 PR tree-optimization/48988
11473 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
11474 Initialize has_valid_pred for each pred chain.
11475
11476 2011-05-23 Richard Guenther <rguenther@suse.de>
11477
11478 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
11479 (iterative_hash_gimple_type): Always hash type names.
11480
11481 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
11482
11483 * c-typeck.c (build_function_call_vec): Tweak call to
11484 check_function_arguments.
11485
11486 2011-05-23 Richard Guenther <rguenther@suse.de>
11487
11488 PR tree-optimization/49115
11489 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
11490 is not necessarily carried out, do not claim it kills the ref.
11491 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
11492
11493 2011-05-23 Richard Guenther <rguenther@suse.de>
11494
11495 PR middle-end/15419
11496 * builtins.c (fold_builtin_memory_op): Be less restrictive about
11497 what pointer types we accept for folding.
11498
11499 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11500
11501 * gthr-gnat.c: Remove.
11502 * gthr-gnat.h: Remove.
11503 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
11504 * config/t-freebsd (LIB2ADDEH): Likewise.
11505 * config/t-linux (LIB2ADDEH): Likewise.
11506 * config/t-sol2 (LIB2ADDEH): Likewise.
11507 * config/ia64/t-vms (LIB2ADDEH): Likewise.
11508 * configure.ac (target_thread_file): Remove gnat handling.
11509 * configure: Regenerate.
11510 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
11511
11512 2011-05-23 Tristan Gingold <gingold@adacore.com>
11513 Eric Botcazou <ebotcazou@adacore.com>
11514
11515 * gcov.c (create_file_names): If no object directory is specified,
11516 keep the directory of the file.
11517
11518 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11519
11520 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
11521 * configure: Regenerate.
11522
11523 2011-05-23 Jakub Jelinek <jakub@redhat.com>
11524
11525 PR middle-end/48973
11526 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
11527 failed and the comparison has a single bit signed type, use
11528 constm1_rtx instead of const1_rtx for true value.
11529 (do_store_flag): If ops->type is single bit signed type, disable
11530 signel bit test optimization and pass -1 instead of 1 as last
11531 parameter to emit_store_flag_force.
11532
11533 2011-05-23 Tom de Vries <tom@codesourcery.com>
11534
11535 PR target/45098
11536 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
11537 function.
11538 (infer_loop_bounds_from_undefined): Use new function.
11539
11540 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
11541
11542 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
11543 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
11544 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
11545 and -O0 otherwise.
11546 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
11547
11548 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11549
11550 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
11551 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
11552 returns true.
11553
11554 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
11555
11556 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
11557
11558 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11559
11560 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
11561 UNSPEC_MOVE_PIC pattern.
11562
11563 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11564
11565 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
11566 (sparc-*-rtems*): Likewise.
11567 (sparc64-*-elf*): Likewise.
11568 (sparc64-*-rtems*): Likewise.
11569 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
11570 * config/sparc/t-crtin: New file.
11571 * config/sparc/t-sol2 (crti.o): Delete rule.
11572 (crtn.o): Likewise.
11573 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
11574 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
11575 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
11576 (ENDFILE_SPEC): Add crtn.o.
11577
11578 2011-05-22 Tom de Vries <tom@codesourcery.com>
11579
11580 PR middle-end/48689
11581 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
11582 CODE_CONTAINS_STRUCT (TS_COMMON).
11583
11584 2011-05-22 Jakub Jelinek <jakub@redhat.com>
11585
11586 PR middle-end/49029
11587 * expmed.c (extract_fixed_bit_field): Test whether target can be used
11588 only after deciding which mode to use.
11589
11590 2011-05-22 Tom de Vries <tom@codesourcery.com>
11591
11592 PR target/45098
11593 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
11594 for call to get_shiftadd_cost.
11595
11596 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
11597
11598 PR target/49104
11599 * config/i386/cpuid.h (bit_MMXEXT): New define.
11600
11601 2011-05-22 Nick Clifton <nickc@redhat.com>
11602
11603 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
11604 initialisation of non-existant args[2] element. Use args[] array
11605 not arg[] array to pass arguments to build_function_type_list.
11606
11607 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
11608
11609 PR tree-optimization/49087
11610 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
11611
11612 2011-05-21 Jason Merrill <jason@redhat.com>
11613
11614 PR c++/49092
11615 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
11616 static storage duration.
11617
11618 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
11619
11620 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
11621 frame pointer.
11622
11623 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
11624
11625 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
11626 false if there are call-saved registers here...
11627 (sparc_can_use_return_insn_p): ...but here instead.
11628 (save_or_restore_regs): Fix thinko.
11629 (sparc_expand_prologue): Use current_function_is_leaf.
11630 (sparc_frame_pointer_required): Likewise.
11631
11632 2011-05-21 Nick Clifton <nickc@redhat.com>
11633
11634 PR target/49098
11635 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
11636
11637 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
11638
11639 * gengtype.c (walk_type): Implemented "atomic" GTY option.
11640 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
11641
11642 2011-05-21 Joseph Myers <joseph@codesourcery.com>
11643
11644 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
11645 * optc-gen.awk: Move common code to opt-read.awk.
11646 * opth-gen.awk: Likewise.
11647 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
11648
11649 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
11650
11651 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
11652
11653 2011-05-20 Tom de Vries <tom@codesourcery.com>
11654
11655 PR target/45098
11656 * tree-ssa-loop-ivopts.c: Include expmed.h.
11657 (get_shiftadd_cost): New function.
11658 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
11659
11660 2011-05-20 Jakub Jelinek <jakub@redhat.com>
11661
11662 PR bootstrap/49086
11663 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
11664 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
11665
11666 2011-05-20 Joseph Myers <joseph@codesourcery.com>
11667
11668 * Makefile.in: Update comment referring to $(OBJS-common).
11669
11670 2011-05-20 Ian Lance Taylor <iant@google.com>
11671
11672 * godump.c (go_output_typedef): Put enum constants in the macro
11673 hash table to avoid duplicate Go const definitions.
11674
11675 2011-05-20 Joseph Myers <joseph@codesourcery.com>
11676
11677 * Makefile.in (LIBDEPS): Add libcommon.a.
11678 (LIBS): Likewise.
11679 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
11680 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
11681 pretty-print.o and version.o.
11682 (OBJS-libcommon): New.
11683 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
11684 (BACKEND): Add libcommon.a.
11685 (MOSTLYCLEANFILES): Likewise.
11686 (libcommon.a): New.
11687 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
11688 (cpp$(exeext)): Likewise.
11689 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
11690 pretty-print.o and input.o.
11691 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
11692 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
11693 (errors.o): Remove.
11694 (mips-tfile): Don't explicitly use version.o.
11695 (mips-tdump): Likewise.
11696 (gcov.o): Depend on $(DIAGNOSTIC_H).
11697 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
11698 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
11699 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
11700 * gcov-dump.c: Include intl.h and diagnostic.h.
11701 (main): Initialize diagnostics.
11702 * gcov.c: Include diagnostic.h.
11703 (fnotice): Remove.
11704 (main): Initialize diagnostics.
11705 * lto-wrapper.c: Include diagnostic.h.
11706 (main): Initialize diagnostics.
11707
11708 2011-05-20 Michael Matz <matz@suse.de>
11709
11710 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
11711
11712 2011-05-20 Michael Matz <matz@suse.de>
11713 Richard Guenther <rguenther@suse.de>
11714
11715 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
11716 use lto_streamer_cache_append directly instead of returning a VEC.
11717 (preload_common_node): Remove.
11718 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
11719 track seen nodes.
11720 (lto_streamer_cache_create): Call lto_preload_common_nodes.
11721
11722 2011-05-20 Richard Guenther <rguenther@suse.de>
11723
11724 PR tree-optimization/49079
11725 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
11726 MEM_REFs correctly for the trailing array access detection.
11727 Special case constants the same way as decls for overall size
11728 constraining.
11729
11730 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
11731
11732 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
11733 argument expansion.
11734
11735 2011-05-20 Jakub Jelinek <jakub@redhat.com>
11736
11737 PR tree-optimization/49073
11738 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
11739 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
11740 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
11741
11742 2011-05-20 Richard Guenther <rguenther@suse.de>
11743
11744 PR middle-end/48849
11745 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
11746 of pointer types the same way the middle-end does.
11747
11748 2011-05-20 Richard Guenther <rguenther@suse.de>
11749
11750 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
11751 or pointer-to chains. Delay all fixup to uniquify_nodes.
11752
11753 2011-05-19 Quentin Neill <quentin.neill@amd.com>
11754
11755 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
11756 (fma4_fmaddsub): Likewise
11757
11758 2011-05-19 Jan Hubicka <jh@suse.cz>
11759
11760 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
11761 (GIMPLE_TYPE_PAIR_SIZE): New macro.
11762 (type_pair_cache): New static var.
11763 (lookup_type_pair): Use fixed sized custom hash; make inline.
11764 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
11765 calls of lookup_type_pair.
11766 (print_gimple_types_stats): Remove cache stats.
11767 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
11768 and gtc_ob.
11769
11770 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
11771
11772 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
11773 when TARGET_RDRND is active.
11774 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
11775 Generate dummy SImode target register when target is NULL.
11776
11777 2011-05-19 Joseph Myers <joseph@codesourcery.com>
11778
11779 * config/arm/arm-fpus.def: New.
11780 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
11781 arm-fpus.def.
11782 * config/arm/arm-tables.opt: Regenerate.
11783 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
11784 (arm_option_override): Don't decode FPU name to string here.
11785 * config/arm/arm.opt (mfpu=): Use Enum.
11786 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
11787 Update dependencies.
11788
11789 2011-05-19 Joseph Myers <joseph@codesourcery.com>
11790
11791 * collect2.c: Include diagnostic.h.
11792 (fatal_perror, fatal, error, fancy_abort): Remove.
11793 (main): Set progname. Call xmalloc_set_program_name and
11794 diagnostic_initialize.
11795 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
11796 scan_libraries, resolve_lib_name): Call fatal_error instead of
11797 fatal and fatal_perror.
11798 * collect2.h (error, fatal, fatal_perror): Don't declare.
11799 * tlink.c: Include diagnostic-core.h.
11800 (recompile_files): Call fatal_error instead of fatal_perror.
11801 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
11802 pretty-print.o and input.o.
11803 (collect2.o, tlink.o): Update dependencies.
11804
11805 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11806
11807 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
11808
11809 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11810
11811 PR target/40483
11812 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
11813 COMDAT group syntax, both SPARC and x86 variants.
11814 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
11815 * configure: Regenerate.
11816 * config/sol2.h (TARGET_SOLARIS): Define.
11817 (PUSHSECTION_FORMAT): Remove.
11818 (SECTION_NAME_FORMAT): Define.
11819 * config/sol2.c: Include hashtab.h.
11820 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
11821 expansion, using SECTION_NAME_FORMAT.
11822 (solaris_comdat_htab): New variable.
11823 (struct comdat_entry): Define.
11824 (comdat_hash): New function.
11825 (comdat_eq): New function.
11826 (solaris_elf_asm_comdat_section): New function.
11827 (solaris_define_comdat_signature): New function.
11828 (solaris_code_end): New function.
11829 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
11830 (solaris_code_end): Declare.
11831 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
11832 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
11833 solaris_code_end.
11834 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
11835 Remove ATTRIBUTE_UNUSED.
11836 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
11837 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
11838 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
11839 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
11840 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
11841 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
11842 (PUSHSECTION_FORMAT): Remove.
11843 (SECTION_NAME_FORMAT): Redefine.
11844
11845 2011-05-19 Kai Tietz <ktietz@redhat.com>
11846
11847 * tree-cfg.c (verify_gimple_assign_binary): Barf on
11848 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
11849 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
11850
11851 2011-05-19 Anatoly Sokolov <aesok@post.ru>
11852 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11853
11854 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
11855
11856 2011-05-19 Richard Guenther <rguenther@suse.de>
11857
11858 PR middle-end/48985
11859 * tree-object-size.c (addr_object_size): If the pointed-to
11860 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
11861
11862 2011-05-19 Richard Guenther <rguenther@suse.de>
11863
11864 * gimple.c (gimple_types_compatible_p_1): Compare names of
11865 the types themselves.
11866 (iterative_hash_gimple_type): And hash them that way.
11867 (gimple_register_type_1): If we register a main variant properly
11868 initialize the leader to ourselves.
11869
11870 2011-05-19 Tom de Vries <tom@codesourcery.com>
11871
11872 PR target/45098
11873 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
11874 get_loop_invariant_expr_id.
11875 (get_loop_invariant_expr_id): Use get_expr_id.
11876 (parm_decl_cost): New function.
11877 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
11878 Improve bound cost estimation. Use different inv_expr_id for elim and
11879 express cases.
11880
11881 2011-05-19 Tom de Vries <tom@codesourcery.com>
11882
11883 PR target/45098
11884 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
11885 cost_base.cost == 0.
11886
11887 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
11888
11889 PR target/49002
11890 * config/i386/sse.md
11891 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
11892 load cast.
11893
11894 2011-05-18 Jakub Jelinek <jakub@redhat.com>
11895
11896 PR tree-optimization/49039
11897 * tree-vrp.c (extract_range_from_binary_expr): For
11898 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
11899 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
11900
11901 2011-05-18 Tom de Vries <tom@codesourcery.com>
11902
11903 PR target/45098
11904 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
11905
11906 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
11907
11908 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
11909 (*tls_global_dynamic_64): Ditto.
11910 (*tls_local_dynamic_base_32_gnu): Ditto.
11911 (*tls_local_dynamic_base_64): Ditto.
11912 (tls_initial_exec_64_sun): Ditto.
11913
11914 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
11915
11916 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
11917 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
11918 bf592-none.
11919 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
11920 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
11921 * config/bfin/bfin.c (bfin_cpus): Add bf592.
11922 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11923 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
11924 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
11925 * config/bfin/elf.h (LIB_SPEC): Add bf592.
11926
11927 2011-05-18 Joseph Myers <joseph@codesourcery.com>
11928
11929 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
11930 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
11931 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
11932 target_thread_pointer, arm_structure_size_boundary, struct
11933 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
11934 struct abi_name, arm_all_abis): Remove.
11935 (arm_option_override) Don't process most enumerated option values here.
11936 Don't process target_fpe_name here. Work with integer not string for
11937 structure size boundary; use separate diagnostics for each case.
11938 * config/arm/arm.h (enum float_abi_type, enum
11939 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
11940 to arm-opts.h.
11941 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
11942 arm_structure_size_boundary): Remove.
11943 * config/arm/arm.opt (mabi=): Use Enum and Init.
11944 (arm_abi_type): New Enum and EnumValue entries.
11945 (mfloat-abi=): Use Enum and Init.
11946 (float_abi_type): New Enum and EnumValue entries.
11947 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
11948 (mfp16-format=): Use Enum and Init.
11949 (arm_fp16_format_type): New Enum and EnumValue entries.
11950 (mstructure-size-boundary=): Use UInteger and Init.
11951 (mtp=): Use Enum and Init.
11952 (arm_tp_type): New Enum and EnumValue entries.
11953
11954 2011-05-18 Richard Guenther <rguenther@suse.de>
11955
11956 PR tree-optimization/49018
11957 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
11958 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
11959 gimple_has_side_effects.
11960
11961 2011-05-18 Richard Guenther <rguenther@suse.de>
11962
11963 * gimple.c (gimple_register_type_1): New function, split out from ...
11964 (gimple_register_type): ... here. Avoid infinite recursion.
11965
11966 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
11967
11968 PR tree-optimization/41881
11969 * tree-vectorizer.h (struct _loop_vec_info): Add new field
11970 reduction_chains along with a macro for its access.
11971 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
11972 (destroy_loop_vec_info): Free reduction chains.
11973 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
11974 (vect_is_slp_reduction): New function.
11975 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
11976 (vect_create_epilog_for_reduction): Support SLP reduction chains.
11977 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
11978 definition types for reduction chains.
11979 (vect_supported_load_permutation_p): Don't allow permutations for
11980 reduction chains.
11981 (vect_analyze_slp_instance): Support reduction chains.
11982 (vect_analyze_slp): Try to build SLP instance from reduction chains.
11983 (vect_get_constant_vectors): Handle reduction chains.
11984 (vect_schedule_slp_instance): Mark the first statement of the
11985 reduction chain as reduction.
11986
11987 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
11988
11989 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
11990 names for group elements access.
11991 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
11992 reduction chains as well. Remove data reference and interleaving
11993 related words from the fields names.
11994 * tree-vect-loop.c (vect_transform_loop): Use new names for group
11995 elements access.
11996 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
11997 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
11998 vect_update_interleaving_chain, vect_same_range_drs,
11999 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
12000 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
12001 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
12002 vect_analyze_group_access, vect_analyze_data_ref_access,
12003 vect_create_data_ref_ptr, vect_transform_strided_load,
12004 vect_record_strided_load_vectors): Likewise.
12005 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
12006 vect_model_load_cost, vectorizable_store, vectorizable_load,
12007 vect_remove_stores, new_stmt_vec_info): Likewise.
12008 * tree-vect-slp.c (vect_build_slp_tree,
12009 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
12010
12011 2011-05-18 Richard Guenther <rguenther@suse.de>
12012
12013 PR middle-end/48989
12014 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
12015 operand verification.
12016 (verify_gimple_assign_binary): Likewise.
12017 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
12018 to non-1-precision BOOLEAN_TYPEs.
12019
12020 2011-05-18 Tom de Vries <tom@codesourcery.com>
12021
12022 PR target/45098
12023 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
12024
12025 2011-05-18 Jakub Jelinek <jakub@redhat.com>
12026
12027 PR tree-optimization/49000
12028 * tree-ssa.c (execute_update_addresses_taken): Call
12029 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
12030 be rewritten and decl has been marked for renaming, reset
12031 the debug stmt.
12032
12033 2011-05-17 Joseph Myers <joseph@codesourcery.com>
12034
12035 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
12036 enum_opts_set when testing if attributes have set -mfpmath=.
12037
12038 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
12039
12040 * config/mips/mips.c (mips_handle_option): Remove unused variable.
12041
12042 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
12043
12044 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
12045 info->entry with 0
12046 * tree-inline.c (maybe_inline_call_in_expr): Initialize
12047 id.transform_lang_insert_block with NULL.
12048
12049 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
12050
12051 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
12052 (output_fp_compare): Change args 3 and 4 to bool.
12053 (ix86_expand_call): Change arg 6 to bool.
12054 (ix86_attr_length_immediate_default): Change arg 2 to bool.
12055 (ix86_attr_length_vex_default): Change arg 3 to bool.
12056 * config/i386/i386.md: Update all uses.
12057 * config/i386/i386.c: Ditto.
12058 (ix86_flags_dependent): Change return type to bool.
12059
12060 2011-05-17 Richard Guenther <rguenther@suse.de>
12061
12062 * gimple.c (type_hash_pair_compare): Fix comparison.
12063
12064 2011-05-17 Richard Guenther <rguenther@suse.de>
12065
12066 * gimple.c (iterative_hash_gimple_type): Simplify singleton
12067 case some more, fix final hash value of the non-singleton case.
12068
12069 2011-05-17 Richard Guenther <rguenther@suse.de>
12070
12071 PR bootstrap/49013
12072 Revert
12073 2011-05-16 Richard Guenther <rguenther@suse.de>
12074
12075 * gimple.c (gimple_types_compatible_p_1): Use names of the
12076 type itself, not its main variant.
12077 (iterative_hash_gimple_type): Likewise.
12078
12079 2011-05-17 Richard Guenther <rguenther@suse.de>
12080
12081 * gimple.c (gimple_register_canonical_type): Use the main-variant
12082 leader for computing the canonical type.
12083
12084 2011-05-17 Nick Clifton <nickc@redhat.com>
12085
12086 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
12087 moves.
12088
12089 * config/rx/rx.md: Add peephole to remove redundant extensions
12090 after loads.
12091 (bitset_in_memory): Use rx_restricted_mem_operand.
12092 (bitinvert_in_memory): Likewise.
12093 (bitclr_in_memory): Likewise.
12094
12095 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
12096 Nick Clifton <nickc@redhat.com>
12097
12098 * config/rx/rx.md: Add peepholes to match a register move followed
12099 by a comparison of the moved register. Replace these with an
12100 addition of zero that does both actions in one instruction.
12101
12102 2011-05-17 Jakub Jelinek <jakub@redhat.com>
12103
12104 PR target/48986
12105 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
12106 predicate to allow CONST_INT.
12107 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
12108
12109 2011-05-16 Joseph Myers <joseph@codesourcery.com>
12110
12111 * opts-common.c (opt_enum_arg_to_value): New.
12112 * opts.h (opt_enum_arg_to_value): Declare.
12113 * config/i386/i386.opt (fpmath): Remove.
12114 (mfpmath=): Use Enum, Init and Save.
12115 (fpmath_unit): New Enum and EnumValue entries.
12116 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
12117 name for function fpmath state.
12118 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
12119 * config/i386/i386.c: Include diagnostic.h.
12120 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
12121 (ix86_target_string): Take enum fpmath_unit value instead of string.
12122 (ix86_debug_options): Update call to ix86_target_string.
12123 (ix86_option_override_internal): Don't process fpmath strings here.
12124 (x86_function_specific_save, ix86_function_specific_restore):
12125 Don't handle fpmath state specially.
12126 (ix86_function_specific_print): Pass fpmath state to
12127 ix86_target_string instead of printing in this function.
12128 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
12129 Handle enum attributes.
12130 (IX86_ATTR_ENUM, ix86_opt_enum): New.
12131 (ix86_valid_target_attribute_tree): Update option_strings
12132 handling. Handle fpmath as enum option.
12133 (ix86_can_inline_p): Update field names for function fpmath state.
12134 (ix86_expand_builtin): Update call to ix86_target_string.
12135 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
12136 (ix86_fpmath): Remove.
12137 * config/i386/t-i386 (i386.o): Update dependencies.
12138
12139 2011-05-16 Joseph Myers <joseph@codesourcery.com>
12140
12141 PR preprocessor/48677
12142 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
12143 from decoded_options[0], not from itself.
12144
12145 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
12146
12147 * config/i386/constraints.md (z): New constraint.
12148 * config/i386/i386.c (c): New mode attribute.
12149 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
12150 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
12151 constraint for operand 0.
12152 (*call_vzeroupper): Ditto.
12153 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
12154 (*call_rex64_ms_sysv_vzeroupper): Ditto.
12155 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
12156 Use "lzm" constraint for operand 0.
12157 (*call_pop_vzeroupper): Ditto.
12158 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
12159 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
12160 constraint for operand 0.
12161 (*sibcall_vzeroupper): Ditto.
12162 (*sibcall_rex64_ms_sysv): Ditto.
12163 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
12164 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
12165 *sibcall_pop_1. Use "Uz" constraint for operand 0.
12166 (*sibcall_pop_vzeroupper): Ditto.
12167 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
12168 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
12169 mode iterator. Use "<c>zm" constraint for operand 1.
12170 (*call_value_vzeroupper): Ditto.
12171 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
12172 for operand 1.
12173 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
12174 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
12175 *call_value_pop_1. Use "lzm" constraint for operand 1.
12176 (*call_value_pop_vzeroupper): Ditto.
12177 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
12178 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
12179 mode iterator. Use "Uz" constraint for operand 1.
12180 (*sibcall_value_vzeroupper): Ditto.
12181 (*sibcall_value_rex64_ms_sysv): Ditto.
12182 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
12183 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
12184 constraint for operand 1.
12185 (*sibcall_value_pop_vzeroupper): Ditto.
12186 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
12187 and "z" constraint for operand 2.
12188 (*tls_global_dynamic_32_gnu): Ditto.
12189 (*tls_local_dynamic_base_32_gnu): Ditto.
12190 (*tls_local_dynamic_base_64): Ditto.
12191 (*tls_local_dynamic_32_once): Ditto.
12192 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
12193 Update all callers.
12194 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
12195
12196 2011-05-16 Richard Guenther <rguenther@suse.de>
12197
12198 * gimple.c (gimple_types_compatible_p_1): Use names of the
12199 type itself, not its main variant.
12200 (iterative_hash_gimple_type): Likewise.
12201
12202 2011-05-16 Richard Guenther <rguenther@suse.de>
12203
12204 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
12205 always visit pointer target and function result and argument types.
12206
12207 2011-05-16 Jason Merrill <jason@redhat.com>
12208
12209 PR c++/48999
12210 * tree-inline.c (copy_statement_list): Put back recursion.
12211
12212 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
12213
12214 PR target/27663
12215 PR target/41076
12216 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
12217 * config/avr/avr.md ("*ior<mode>qi.byte0",
12218 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
12219
12220 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
12221
12222 PR target/45099
12223 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
12224 register is needed for a function argument.
12225
12226 2011-05-16 Richard Guenther <rguenther@suse.de>
12227
12228 * gimple.c (struct type_hash_pair): New type.
12229 (type_hash_pair_compare): New function.
12230 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
12231
12232 2011-05-16 Revital Eres <revital.eres@linaro.org>
12233
12234 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
12235
12236 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
12237
12238 * config/i386/i386.md (floating point move splitters): Fix
12239 usage of standard_80387_constant_p.
12240 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
12241
12242 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
12243
12244 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
12245
12246 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
12247
12248 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
12249 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
12250 (tree_ssa_lim_finalize): Likewise.
12251
12252 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
12253
12254 * config/i386/constraint.md (Yd, Yx): New register constraints.
12255 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
12256 Yd conditional register constraint.
12257 (*movtf_internal): Use standard_sse_constant_opcode.
12258 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
12259 Yx conditional register constraint.
12260 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
12261 Yd conditional register constraint. Use standard_sse_constant_p to
12262 check for valid SSE constants and call standard_sse_constant_opcode to
12263 output SSE insn.
12264 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
12265 constants and call standard_sse_constant_opcode to output SSE insn.
12266 * config/i386/i386.c (ix86_option_ovverride_internal): Set
12267 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
12268 optimize_size is set.
12269 (standard_sse_constant_opcode): Output conditional AVX insn templates.
12270
12271 2011-05-14 Tobias Burnus <burnus@net-b.de>
12272
12273 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
12274
12275 2011-05-13 Martin Jambor <mjambor@suse.cz>
12276
12277 * ipa-prop.c (ipa_cst_from_jfunc): New function.
12278 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
12279 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
12280 (evaluate_conditions_for_ipcp_clone): Removed.
12281 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
12282 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
12283 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
12284
12285 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
12286
12287 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
12288 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
12289 lieu of MAY_HAVE_DEBUG_STMTS.
12290 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
12291 debug statements if !MAY_HAVE_DEBUG_STMTS.
12292
12293 2011-05-13 Martin Thuresson <martint@google.com>
12294
12295 PR gcov-profile/47793
12296 * libgcov.c (gcov_exit): Support relative profile paths.
12297 * doc/invoke.texi (-fprofile-dir): Update for above change.
12298
12299 2011-05-13 Richard Guenther <rguenther@suse.de>
12300
12301 * gimple.c (gimple_canonical_types_compatible_p): Do not use
12302 type-pair caching, do not compare hashes.
12303
12304 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
12305
12306 PR middle-end/48965
12307 * tree-cfg.c (edge_to_cases_cleanup): Return true.
12308 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
12309
12310 2011-05-13 Kai Tietz <ktietz@redhat.com>
12311
12312 * gimplify.c (gimplify_expr): Make sure operand is boolified.
12313 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
12314 compatible type for TRUTH_NOT_EXPR.
12315
12316 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
12317
12318 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
12319 (ix86_hard_regno_mode_ok): Change return value to bool. Use
12320 can_create_pseudo_p ().
12321
12322 2011-05-13 Richard Guenther <rguenther@suse.de>
12323
12324 PR lto/48978
12325 * gimple.c (iterative_hash_gimple_type): Revert change in
12326 pointer target and function result and argument hashing.
12327
12328 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
12329
12330 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
12331 (*movxf_internal_nointeger): Ditto.
12332 (*movdf_internal_rex64): Ditto.
12333 (*movdf_internal): Ditto.
12334 (*movdf_internal_nointeger): Ditto.
12335 (*movsf_internal): Ditto.
12336 (sincos splitters): Use can_create_pseudo ().
12337
12338 2011-05-13 Joseph Myers <joseph@codesourcery.com>
12339
12340 * config/i386/i386-opts.h: New.
12341 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
12342 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
12343 ix86_section_threshold): Remove.
12344 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
12345 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
12346 OPT_mbranch_cost_.
12347 (ix86_option_override_internal): Don't decode strings for options
12348 other than -march=, -mtune= and -mfpmath=. Don't allow for
12349 __attribute__ uses in remaining diagnostics for options with
12350 string arguments. Don't check for integer arguments being negative.
12351 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
12352 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
12353 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
12354 ix86_branch_cost, ix86_section_threshold): Remove.
12355 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
12356 HeaderInclude.
12357 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
12358 but not Var.
12359 (masm=): Use Enum and Init.
12360 (asm_dialect): New Enum and EnumValue entries.
12361 (mbranch-cost=): Use UInteger.
12362 (mlarge-data-threshold=): Use UInteger and Init.
12363 (mcmodel=): Use Enum and Init.
12364 (cmodel): New Enum and EnumValue entries.
12365 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
12366 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
12367 mregparm=): Use UInteger.
12368 (mstringop-strategy=): Use Enum and Init.
12369 (stringop_alg): New Enum and EnumValue entries.
12370 (mtls-dialect=): Use Enum and Init.
12371 (tls_dialect): New Enum and EnumValue entries.
12372 (mabi=): Use Enum and Init.
12373 (calling_abi): New Enum and EnumValue entries.
12374 (mveclibabi=): Use Enum and Init.
12375 (ix86_veclibabi): New Enum and EnumValue entries.
12376
12377 2011-05-13 Nick Clifton <nickc@redhat.com>
12378
12379 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
12380 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
12381
12382 2011-05-13 Kai Tietz <ktietz@redhat.com>
12383
12384 PR middle-end/48984
12385 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
12386 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
12387 (gimple_boolify): Check for cast for boolean_type_node instead for
12388 BOOLEAN_TYPE.
12389
12390 2011-05-13 Richard Guenther <rguenther@suse.de>
12391
12392 PR tree-optimization/48172
12393 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
12394 multiplying by number of iterations for equal step.
12395 (vect_create_cond_for_alias_checks): Likewise.
12396
12397 2011-05-13 Andreas Schwab <schwab@redhat.com>
12398
12399 * configure.ac: Use AS_HELP_STRING throughout.
12400 * configure: Regenerate.
12401
12402 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
12403
12404 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
12405 (ix86_emit_restore_regs_using_mov): Likewise.
12406 (ix86_emit_restore_sse_regs_using_mov): Likewise.
12407
12408 2011-05-12 Anatoly Sokolov <aesok@post.ru>
12409
12410 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
12411 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
12412 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
12413 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
12414 RTX_OK_FOR_OLO10_P): ...here.
12415 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
12416 SYMBOLIC_CONST.
12417
12418 2011-05-12 Kai Tietz <ktietz@redhat.com>
12419
12420 * gimplify.c (gimple_boolify): Re-boolify expression
12421 arguments even if expression type is of kind BOOLEAN_TYPE.
12422 (gimplify_boolean_expr): Removed.
12423 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
12424 and XOR. Additional take care that we keep expression's type.
12425 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
12426 of TRUTH_AND|OR|XOR_EXPR.
12427
12428 2011-05-12 Jakub Jelinek <jakub@redhat.com>
12429
12430 PR tree-optimization/48975
12431 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
12432 on all bbs here and free and clear ifc_bbs at the end.
12433
12434 2011-05-12 Richard Guenther <rguenther@suse.de>
12435
12436 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
12437 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
12438 until after simple checks.
12439 (gimple_types_compatible_p): Likewise.
12440 (iterative_hash_gimple_type): Always hash pointer targets
12441 and function return and argument types.
12442 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
12443 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
12444 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
12445 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
12446 completely in the simple compare section.
12447 (gimple_register_canonical_type): Query the cache again after
12448 registering.
12449
12450 2011-05-12 Richard Guenther <rguenther@suse.de>
12451
12452 PR tree-optimization/48172
12453 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
12454 the number of iterations from the segment size calculation.
12455 (vect_create_cond_for_alias_checks): Adjust.
12456
12457 2011-05-12 Jakub Jelinek <jakub@redhat.com>
12458
12459 PR debug/48967
12460 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
12461 if validate_subreg fails.
12462
12463 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
12464
12465 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
12466 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
12467 early.
12468
12469 2011-05-12 DJ Delorie <dj@redhat.com>
12470
12471 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
12472 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
12473 created builtin into rx_builtins array.
12474 (rx_builtin_decl): New function.
12475 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
12476
12477 2011-05-12 DJ Delorie <dj@redhat.com>
12478 Nick Clifton <nickc@redhat.com>
12479
12480 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
12481 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
12482 (rx_is_legitimate_address): Add pre-decrement and post-increment
12483 addressing in HImode and QImode. Fix test for out of range
12484 REG+INT addressing.
12485 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
12486 (rx_align_for_label): Test label before extracting its usage count.
12487 (rx_adjust_insn_lengths): Fix selection of insn codes.
12488 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
12489
12490 2011-05-11 Jason Merrill <jason@redhat.com>
12491
12492 * tree.c (type_hash_canon): Use struct tree_type_non_common.
12493
12494 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
12495
12496 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
12497 reindent the subsequent block.
12498
12499 2011-05-11 Satoru Takabayashi <satorux@google.com>
12500 Paul Pluzhnikov <ppluzhnikov@google.com>
12501
12502 * doc/install.texi (Configuration): Document --with-linker-hash-style.
12503 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
12504 * config.in: Add LINKER_HASH_STYLE.
12505 * configure.ac: Add --with-linker-hash-style.
12506 * configure: Regenerate.
12507
12508 2011-05-11 Richard Guenther <rguenther@suse.de>
12509
12510 PR middle-end/48964
12511 * gimple.c (iterative_hash_canonical_type): Fix typo.
12512
12513 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
12514
12515 * config/i386/i386.c (legitimize_tls_address)
12516 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
12517 expanders directly for TARGET_GNU2_TLS. Determine pic and
12518 __tls_get_addr symbol reference here. Update call to
12519 gen_tls_global_dynamic_{32,64} for added arguments.
12520 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
12521 expanders directly for TARGET_GNU2_TLS. Determine
12522 __tls_get_addr symbol reference here. Update call to
12523 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
12524 unique UNSPEC REG_EQUIV to libcall block.
12525 (ix86_tls_get_addr): Declare static.
12526 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
12527 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
12528 Do not determine pic and __tls_get_addr symbol reference here. Do not
12529 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
12530 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
12531 (tls_global_dynamic_64): Add operand 2. Do not determine
12532 __tls_get_addr symbol reference here. Do not call
12533 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
12534 (tls_local_dynamic_base64): Ditto for operand 1.
12535
12536 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
12537
12538 * function.c (expand_function_start): Initialize stack_check_probe_note
12539 only if the generic stack checking mechanism is used.
12540
12541 2011-05-11 Richard Guenther <rguenther@suse.de>
12542
12543 PR tree-optimization/15256
12544 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
12545 (A & B) | C, combine (A op CST1) op CST2.
12546 (tree_ssa_forward_propagate_single_use_vars): Only bother to
12547 visit assigns that have uses.
12548
12549 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
12550
12551 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
12552 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
12553 (unpack_ts_type_common_value_fields): ...this. Update comment.
12554 (unpack_value_fields): Adjust for renaming.
12555 (lto_input_ts_type_tree_pointers): Split into...
12556 (lto_input_ts_type_common_tree_pointer): ...this and...
12557 (lto_input_ts_type_non_common_tree_pointers): ...this.
12558 (lto_input_tree_pointers): Adjust for above split.
12559 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
12560 (pack_ts_type_common_value_fields): ...this. Update comment.
12561 (lto_output_ts_type_tree_pointers): Split into...
12562 (lto_output_ts_type_common_tree_pointers): ...this and...
12563 (lto_output_ts_type_non_common_tree_pointers): ...this.
12564 (lto_output_tree_pointers): Adjust for above split.
12565 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
12566 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
12567 * stor-layout.c (vector_type_mode): Adjust location of mode field.
12568 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
12569 Define.
12570 (struct tree_type): Split into...
12571 (struct tree_type_common: ...this and...
12572 (struct tree_type_with_lang_specific): ...this and...
12573 (struct tree_type_non_common): ...this. Adjust accessor macros
12574 accordingly.
12575 (TYPE_VALUES_RAW): Define.
12576 (union tree_node): Update for above changes.
12577 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
12578 TS_TYPE_NON_COMMON.
12579 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
12580 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
12581 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
12582 * treestructu.def (TS_TYPE): Remove.
12583 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
12584 Define.
12585
12586 2011-05-11 Jakub Jelinek <jakub@redhat.com>
12587
12588 PR debug/48159
12589 * tree-ssa.c (reset_debug_uses): New function.
12590 * tree-flow.h (reset_debug_uses): New prototype.
12591 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
12592 * tree-loop-distribution.c (generate_loops_for_partition): Call
12593 reset_debug_uses on the stmts that will be removed. Keep around
12594 all debug stmts, don't count them as bits in partition bitmap.
12595 (generate_builtin): Don't count debug stmts or labels as bits in
12596 partition bitmap.
12597
12598 2011-05-11 Richard Guenther <rguenther@suse.de>
12599
12600 * gimple.c (gimple_type_hash_1): Merge with ...
12601 (gimple_type_hash): ... this.
12602 (gtc_visit): Remove mode parameter and simplify accordingly.
12603 (gimple_types_compatible_p_1): Likewise.
12604 (gimple_types_compatible_p): Likewise.
12605 (iterative_hash_gimple_type): Likewise.
12606 (visit): Likewise.
12607 (gimple_type_eq): Adjust.
12608
12609 2011-05-11 Revital Eres <revital.eres@linaro.org>
12610
12611 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
12612 enters the branch create an anti edge in the opposite direction
12613 to prevent the creation of reg-moves.
12614 * modulo-sched.c: Adjust comment to reflect the fact we are
12615 scheduling closing branch.
12616 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
12617 (stage_count): New field in struct partial_schedule.
12618 (calculate_stage_count): New function.
12619 (normalize_sched_times): Rename to reset_sched_times and handle
12620 incrementing the sched time of the nodes by a constant value
12621 passed as parameter.
12622 (duplicate_insns_of_cycles): Skip closing branch.
12623 (sms_schedule_by_order): Schedule closing branch.
12624 (ps_insn_find_column): Handle closing branch.
12625 (sms_schedule): Call reset_sched_times and adjust the code to
12626 support scheduling of the closing branch.
12627 (ps_insert_empty_row): Update calls to normalize_sched_times
12628 and rotate_partial_schedule functions.
12629
12630 2011-05-11 Richard Guenther <rguenther@suse.de>
12631
12632 PR middle-end/48953
12633 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
12634
12635 2011-05-11 Joseph Myers <joseph@codesourcery.com>
12636
12637 * opts.c (finish_options): Move warning settings from process_options.
12638 * toplev.c (process_options): Move warning settings to finish_options.
12639
12640 2011-05-11 Richard Guenther <rguenther@suse.de>
12641
12642 PR tree-optimization/18041
12643 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
12644 (simplify_bitwise_binary): ... this. Handle operand conversions
12645 by applying them to the result instead.
12646 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
12647
12648 2011-05-11 Richard Guenther <rguenther@suse.de>
12649
12650 * gimple.c (gimple_canonical_types_compatible_p): Split out
12651 from gimple_types_compatible_p and friends. Do not recurse
12652 to pointed-to types.
12653 (gimple_canonical_type_eq): Use it.
12654 (iterative_hash_canonical_type): Split out from
12655 iterative_hash_gimple_type and friends. Do not recurse
12656 to pointed-to types.
12657 (gimple_canonical_type_hash): Use it, allocate the hash here.
12658
12659 2011-05-11 Revital Eres <revital.eres@linaro.org>
12660
12661 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
12662 recognizing doloop.
12663
12664 2011-05-11 Revital Eres <revital.eres@linaro.org>
12665
12666 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
12667 instead of PREV_INSN.
12668
12669 2011-05-11 Revital Eres <revital.eres@linaro.org>
12670
12671 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
12672 * loop-doloop.c (doloop_condition_get): Likewise.
12673 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
12674 (doloop_end): New.
12675 * config/arm/arm.md (*addsi3_compare0): Remove "*".
12676
12677 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
12678
12679 * tree.def (CASE_LABEL_EXPR): Add an operand.
12680 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
12681
12682 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12683
12684 * c-decl.c (c_override_global_bindings_to_false): Remove.
12685 (global_bindings_p): Don't check
12686 c_override_global_bindings_to_false.
12687 * c-tree.h (c_override_global_bindings_to_false): Remove.
12688 * c-typeck.c (composite_type): Don't set
12689 c_override_global_bindings_to_false.
12690
12691 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12692
12693 PR target/48857, 48495
12694 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
12695 (VSX_MODE): Ditto.
12696 (VSX_MOVE_MODE): Ditto.
12697 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
12698 VSX vector types. Add V2DImode.
12699 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
12700 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
12701 (MODES_TIEABLE_P): Ditto.
12702
12703 * config/rs6000/rs6000.c (rs6000_emit_move): Use
12704 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
12705 VSX_VECTOR_MODE.
12706 (init_cumulative_args): Ditto.
12707 (rs6000_function_arg_boundary): Ditto.
12708 (rs6000_function_arg_advance_1): Ditto.
12709 (rs6000_function_arg): Ditto.
12710 (rs6000_function_ok_for_sibcall): Ditto.
12711 (emit_frame_save): Ditto.
12712 (rs6000_function_value): Ditto.
12713 (rs6000_libcall_value): Ditto.
12714
12715 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12716
12717 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12718 i386/darwin-lib.h to $libgcc_tm_file.
12719 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
12720
12721 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12722
12723 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
12724
12725 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12726
12727 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
12728 * config/rs6000/rs6000-tables.opt: New file (generated).
12729 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
12730 rs6000/rs6000-tables.opt to extra_options.
12731 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
12732 * config/rs6000/rs6000.c (rs6000_select): Remove.
12733 (processor_target_table): Move contents to rs6000-cpus.def.
12734 (darwin_rs6000_override_options): Check
12735 global_options_set.x_rs6000_cpu_index instead of
12736 rs6000_select[1].string.
12737 (rs6000_option_override_internal): Likewise.
12738 (rs6000_handle_option): Don't assert that global structures are in
12739 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
12740 (rs6000_default_cpu): New variable.
12741 (rs6000_file_start): Set it instead of local default_cpu. Check
12742 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
12743 global_options_set.x_rs6000_tune_index instead of rs6000_select.
12744 (rs6000_darwin_file_start): Check rs6000_default_cpu and
12745 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
12746 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
12747 rs6000_select): Remove.
12748 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
12749 Remove.
12750 (mcpu=, mtune=): Use Var, Init, Enum and Save.
12751 * config/rs6000/t-rs6000
12752 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
12753 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
12754 global_options_set.x_rs6000_cpu_index instead of
12755 rs6000_select[1].string.
12756 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
12757 global_options_set.x_rs6000_cpu_index instead of
12758 rs6000_select[1].string.
12759
12760 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12761
12762 * config.gcc (libgcc_tm_file): Define instead of including files
12763 from ../../libgcc/config/ in tm_file.
12764 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
12765 * configure: Regenerate.
12766 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
12767 libgcc_tm.h, cs-libgcc_tm.h): New.
12768 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
12769 (clean): Remove libgcc_tm.h.
12770 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
12771 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
12772 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
12773
12774 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
12775
12776 PR target/48896
12777 * config/avr/avr.c (avr_ret_register): Return unsigned int
12778 instead of int.
12779 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
12780 it to avr_libcall_value.
12781 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
12782 expand_expr.
12783 (avr_expand_binop_builtin): Ditto.
12784 (avr_expand_unop_builtin): Ditto.
12785
12786 2011-05-10 DJ Delorie <dj@redhat.com>
12787
12788 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
12789 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
12790 * config/rx/rx.c (rx_align_for_label): Add label and
12791 uses_threshold parameters. Do not align when the label is not
12792 used enough.
12793 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
12794
12795 2011-05-10 Richard Guenther <rguenther@suse.de>
12796
12797 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
12798 a series of conversions and apply foldings similar to what
12799 fold-const does.
12800 (tree_ssa_forward_propagate_single_use_vars): Call it.
12801
12802 2011-05-10 Jakub Jelinek <jakub@redhat.com>
12803
12804 PR tree-optimization/48611
12805 PR tree-optimization/48794
12806 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
12807 referenced from RESX or EH_DISPATCH arguments.
12808
12809 PR debug/48928
12810 * dfp.c (decimal_to_decnumber): Handle conversion from
12811 dconst{1,2,m1,half}.
12812
12813 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12814
12815 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
12816 for !flag_prefer_avx128.
12817 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
12818
12819 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
12820
12821 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
12822 (fold_ternary_loc): Use expr_location_or.
12823
12824 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
12825
12826 PR debug/48853
12827 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
12828 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
12829 Pmode and mem_mode is not VOIDmode.
12830
12831 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
12832
12833 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
12834 TYPE_QUAL_RESTRICT): Convert to enum.
12835
12836 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12837
12838 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
12839 (const_pow2_1_to_8_operand): Ditto.
12840 (const_pow2_1_to_128_operand): Ditto.
12841 (const_pow2_1_to_32768_operand): Ditto.
12842 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
12843 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
12844 in insn constraint to check integer value of operand 3.
12845 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
12846
12847 (PINSR_MODE): New mode iterator.
12848 (sse2p4_1): New mode attribute.
12849 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
12850 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
12851 iterator. Use const_int_operand instead of
12852 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
12853 exact_log2 in insn constraint to check integer value of operand 3.
12854
12855 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12856
12857 * config/i386/sse.md (blendbits): Remove mode attribute.
12858 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
12859 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
12860 Check integer value of operand 3 in insn constraint.
12861
12862 2011-05-09 Richard Guenther <rguenther@suse.de>
12863
12864 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
12865 for diagnostics.
12866 (lto_symtab_merge): Likewise. Do not register types here.
12867 (lto_symtab_merge_decls_2): Likewise.
12868 (lto_symtab_merge_decls_1): Likewise.
12869 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
12870 * gimple.c (enum gtc_mode): Declare.
12871 (gimple_types_compatible_p): Make static.
12872
12873 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12874
12875 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
12876 temporary register to match Pmode.
12877
12878 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12879
12880 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
12881 and *vec_concatv4si_1_avx.
12882
12883 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12884
12885 PR rtl-optimization/48927
12886 * ira-conflicts.c (commutative_constraint_p): Use
12887 recog_data.alternative_enabled_p to disable alternatives where
12888 "enabled" attribute is false.
12889 (get_dup_num): Ditto.
12890 * ira-lives.c (single_reg_class): Ditto.
12891 (ira_implicitly_set_insn_hard_regs): Ditto.
12892
12893 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
12894
12895 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
12896 (dataflow_set_preserve_mem_locs): Likewise.
12897
12898 2011-05-09 Philipp Thomas <pth@suse.de>
12899
12900 * config/mep/mep.c (mep_validate_vliw): Syntax description
12901 should not be translated.
12902
12903 2011-05-09 Joseph Myers <joseph@codesourcery.com>
12904
12905 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
12906 * config/mips/mips-tables.opt: New file (generated).
12907 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
12908 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
12909 MIPS_ARCH_OPTION_NATIVE): Define.
12910 * config/mips/mips.c (mips_cpu_info_table): Move contents to
12911 mips-cpus.def.
12912 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
12913 mips_parse_cpu): Remove.
12914 (mips_cpu_info_from_opt, mips_default_arch): New.
12915 (mips_handle_option): Don't assert that global structures are in
12916 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
12917 (mips_option_override): Use new variables and functions to set
12918 state of these options. Use strcmp to check for individual CPU names.
12919 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
12920 definition.
12921 * config/mips/mips.opt (march=): Use ToLower and Enum.
12922 (mips): Use ToLower, Enum and Var.
12923 (mtune=): Use ToLower and Enum.
12924 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
12925
12926 2011-05-08 Jan Hubicka <jh@suse.cz>
12927
12928 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
12929 Arrange type pairs to be UID ordered.
12930 (gimple_lookup_type_leader): Make inline.
12931
12932 2011-05-09 Nick Clifton <nickc@redhat.com>
12933
12934 PR target/48899
12935 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
12936 PROCESSOR_DEFAULT.
12937
12938 PR target/48897
12939 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
12940 variable 's'.
12941
12942 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
12943
12944 * combine.c (simplify_comparison): Abstract out parts into...
12945 (simplify_compare_const): ... new function.
12946 (try_combine): Generalize parallel arithmetic/compare combining
12947 to call simplify_compare_const() and CANONICALIZE_COMPARE().
12948
12949 2011-05-08 Jan Hubicka <jh@suse.cz>
12950
12951 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
12952 (cgraph_create_virtual_clone): Call hooks once virtual clone
12953 is finished.
12954 * cgraph.h (cgraph_clone_node): Update prototype.
12955 * ipa-cp.c (ipcp_estimate_growth): Use
12956 estimate_ipcp_clone_size_and_time.
12957 * ipa-inline-transform.c (clone_inlined_nodes): Update.
12958 * lto-cgraph.c (input_node): Update.
12959 * ipa-inline.c (recursive_inlining): Update.
12960 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
12961 (evaluate_conditions_for_known_args): Break out from ...
12962 (evaluate_conditions_for_edge): ... here.
12963 (evaluate_conditions_for_ipcp_clone): New function.
12964 (inline_node_duplication_hook): Update clone summary based
12965 on parameter map.
12966 (estimate_callee_size_and_time): Rename to ...
12967 (estimate_node_size_and_time): take NODE instead of EDGE;
12968 take POSSIBLE_TRUTHS as argument.
12969 (estimate_callee_size_and_time): Update.
12970 (estimate_ipcp_clone_size_and_time): New function.
12971 (do_estimate_edge_time): Update.
12972
12973 2011-05-08 Richard Guenther <rguenther@suse.de>
12974
12975 PR middle-end/48908
12976 PR middle-end/48905
12977 * expmed.c (expand_shift_1): Compute adjusted constant shift
12978 amount manually.
12979
12980 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
12981
12982 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
12983
12984 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
12985
12986 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
12987
12988 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
12989
12990 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
12991
12992 2011-05-07 Jan Hubicka <jh@suse.cz>
12993
12994 * ipa-inline-transform.c (inline_call): Account when program size
12995 decreases.
12996 * ipa-inline.c (relative_time_benefit): New function.
12997 (edge_badness): Reorganize to be power 2 based; fix thinko when
12998 computing badness for negative growth; update comments to match
12999 reality; better dumps.
13000
13001 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
13002
13003 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
13004 type to bool and adjust comment.
13005 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
13006 (fold_mathfn_compare): Remove calls to global_bindings_p.
13007 (fold_inf_compare): Likewise.
13008 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
13009 * c-tree.h (global_bindings_p): Adjust prototype.
13010 * c-decl.c (global_bindings_p): Return bool and simplify.
13011
13012 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
13013
13014 PR tree-optimization/48837
13015 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
13016 when accumulator transformation is performed.
13017
13018 2011-05-06 Jan Hubicka <jh@suse.cz>
13019
13020 * i386.h (ix86_tune_indices): Add
13021 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
13022 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
13023 * i386.c (initial_ix86_tune_features): Add
13024 X86_SOFTARE_PREFETCHING_BENEFICIAL.
13025 (software_prefetching_beneficial_p): Remove predicate.
13026 (ix86_option_override_internal): Use new macro.
13027
13028 2011-05-06 Jan Hubicka <jh@suse.cz>
13029
13030 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
13031
13032 2011-05-06 Jan Hubicka <jh@suse.cz>
13033
13034 * cgraph.c (cgraph_add_thunk): Create real function node instead
13035 of alias node; finalize it and mark needed/reachale; arrange visibility
13036 to be right and add it into the corresponding same comdat group list.
13037 (dump_cgraph_node): Dump thunks.
13038 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
13039 cgraph_function_with_gimple_body_p,
13040 cgraph_first_function_with_gimple_body,
13041 cgraph_next_function_with_gimple_body): New functions.
13042 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
13043 New macros.
13044 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
13045 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
13046 * cgraphunit.c (cgraph_finalize_function): Only look into possible
13047 devirtualization when optimizing.
13048 (verify_cgraph_node): Verify thunks.
13049 (cgraph_analyze_function): Analyze thunks.
13050 (cgraph_mark_functions_to_output): Output thunks only in combination
13051 with function they are assigned to.
13052 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
13053 alias into normal node.
13054 (assemble_thunks): New functoin.
13055 (cgraph_expand_function): Use it.
13056 * lto-cgraph.c (lto_output_node): Stream thunks.
13057 (input_overwrite_node): Stream in thunks.
13058 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
13059 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
13060 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
13061 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
13062 (inline_analyze_function): Do not care about thunk jump functions.
13063 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
13064 * ipa-prop.c (ipa_prop_write_jump_functions): Use
13065 cgraph_function_with_gimple_body_p.
13066 * passes.c (do_per_function_toporder): Use
13067 cgraph_function_with_gimple_body_p.
13068 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
13069 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
13070 (function_called_by_processed_nodes_p): Likewise.
13071
13072 2011-05-06 Joseph Myers <joseph@codesourcery.com>
13073
13074 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
13075 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
13076 entries.
13077 (mabi=): Replace with separate entries for mabi=altivec,
13078 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
13079 mabi=ieeelongdouble and mabi=ibmlongdouble.
13080 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
13081 check for -mabi=spe without SPE ABI support here.
13082 (rs6000_handle_option): Replace OPT_mabi_ handling with
13083 OPT_mabi_altivec and OPT_mabi_spe handling.
13084
13085 2011-05-06 Cary Coutant <ccoutant@google.com>
13086
13087 * dwarf2out.c (contains_subprogram_definition): New function.
13088 (should_move_die_to_comdat): Call it.
13089
13090 2011-05-06 Jeff Law <law@redhat.com>
13091
13092 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
13093 remove_ctrl_stmt_and_useless_edges.
13094 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
13095 (fixup_template_block, thread_single_edge): Likewise.
13096 (mark_threaded_blocks): Use THREAD_TARGET.
13097
13098 2011-05-06 Alan Modra <amodra@gmail.com>
13099
13100 PR target/48900
13101 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
13102 const0_rtx as the arg to the dummy __tls_get_addr libcall.
13103
13104 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
13105
13106 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
13107 constraint modifier to "r".
13108
13109 2011-05-06 Joseph Myers <joseph@codesourcery.com>
13110
13111 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
13112 fall through for OPT_mcmodel_.
13113
13114 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13115
13116 * config/s390/s390.c (s390_asm_trampoline_template): Comment
13117 instruction sizes.
13118 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
13119
13120 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13121
13122 PR target/47930
13123 * config/arm/arm.opt (marm): Document it.
13124 (mthumb): Reject negative variant.
13125
13126 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
13127
13128 PR target/48898
13129 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
13130 Fix typo in "ccvt" variable name.
13131
13132 2011-05-06 Tristan Gingold <gingold@adacore.com>
13133
13134 PR target/48895
13135 * config/vms/vms-ar.c (main): Remove cwd variable.
13136
13137 2011-05-06 Jakub Jelinek <jakub@redhat.com>
13138
13139 PR debug/48902
13140 * var-tracking.c (prepare_call_arguments): Move else before #endif.
13141
13142 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
13143
13144 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
13145 * gimplify.c (gimplify_switch_expr): Likewise.
13146 * omp-low.c (expand_omp_sections): Likewise.
13147 * tree-eh.c (lower_try_finally_switch): Likewise.
13148 (lower_eh_dispatch): Likewise.
13149 * tree.h (build_case_label): Declare.
13150 * tree.c (build_case_label): Define.
13151
13152 2011-05-05 Jason Merrill <jason@redhat.com>
13153
13154 PR c++/40975
13155 * tree-inline.c (copy_tree_r): Use copy_statement_list.
13156 (copy_statement_list): Don't recurse.
13157 * stor-layout.c (copy_self_referential_tree_r): Don't allow
13158 STATEMENT_LIST.
13159
13160 2011-05-05 Joseph Myers <joseph@codesourcery.com>
13161
13162 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
13163 through from -mfpu= handling.
13164 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
13165
13166 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
13167
13168 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
13169 POST_MODIFY.
13170
13171 2011-05-05 Steve Ellcey <sje@cup.hp.com>
13172
13173 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
13174 for 11.31.
13175 (hppa[12]*-*-hpux11*): Ditto.
13176 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
13177 * config/ia64/hpux-unix2003.h: New.
13178 * config/pa/pa-hpux1131.opt: New.
13179 * config/pa/pa-hpux1131.h: New.
13180 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
13181 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
13182 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
13183
13184 2011-05-05 Jakub Jelinek <jakub@redhat.com>
13185
13186 PR debug/48853
13187 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
13188 instead of mode as 3rd argument to recursive call.
13189 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
13190 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
13191 VOIDmode.
13192 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
13193 don't give up if mode is Pmode and mem_mode is not VOIDmode.
13194 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
13195 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
13196
13197 2011-05-05 Julian Brown <julian@codesourcery.com>
13198
13199 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
13200 parenthesis in D-register case.
13201
13202 2011-05-05 Joseph Myers <joseph@codesourcery.com>
13203
13204 * opt-functions.awk (var_type_struct): Handle Enum options.
13205 * optc-gen.awk: Don't check range of variables of character type.
13206 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
13207 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
13208 rs6000_sdata_name, rs6000_explicit_options): Remove.
13209 (rs6000_option_override_internal): Check for -malign-power here.
13210 Use global_options_set instead of rs6000_explicit_options.
13211 (rs6000_parse_fpu_option): Remove.
13212 (rs6000_handle_option): Access variables via opts and opts_set
13213 pointers. Use error_at and warning_at. Add fall-through
13214 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
13215 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
13216 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
13217 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
13218 here. Don't use rs6000_parse_fpu_option.
13219 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
13220 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
13221 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
13222 (mrecip=): Use Var.
13223 (mspe): Use Var and Save.
13224 (mtraceback=): Use Enum and Var.
13225 (rs6000_traceback_type): New Enum and EnumValue entries.
13226 (mfloat-gprs=): Use Enum, Var and Save.
13227 (rs6000_float_gprs): New Enum and EnumValue entries.
13228 (mlong-double-): use Var and Save.
13229 (msched-costly-dep=, minsert-sched-nops=): Use Var.
13230 (malign-): Use Enum and Var.
13231 (rs6000_alignment_flags): New Enum and EnumValue entries.
13232 (mfpu=): Use Enum.
13233 (fpu_type_t): New Enum and EnumValue entries.
13234 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13235 global_options_set instead of rs6000_explicit_options.
13236 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13237 global_options_set instead of rs6000_explicit_options.
13238 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13239 global_options_set instead of rs6000_explicit_options.
13240 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13241 global_options_set instead of rs6000_explicit_options.
13242 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
13243 global_options_set instead of rs6000_explicit_options.
13244 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13245 global_options_set instead of rs6000_explicit_options.
13246 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
13247 definition.
13248 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13249 global_options_set instead of rs6000_explicit_options.
13250 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
13251 (rs6000_cmodel): New Enum and EnumValue entries.
13252 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13253 global_options_set instead of rs6000_explicit_options.
13254 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
13255 (mtls-size=): Use Enum and Var.
13256 (rs6000_tls_size): New Enum and EnumValue entries.
13257
13258 2011-05-05 Michael Matz <matz@suse.de>
13259
13260 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
13261 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
13262 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
13263 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
13264 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
13265 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
13266 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
13267 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
13268 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
13269 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
13270 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
13271 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
13272 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
13273 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
13274 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
13275 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
13276
13277 2011-05-05 Richard Guenther <rguenther@suse.de>
13278
13279 * expmed.c (expand_variable_shift): Rename to ...
13280 (expand_shift_1): ... this. Take an expanded shift amount.
13281 For rotates recurse directly not building trees for the shift amount.
13282 (expand_variable_shift): Wrap around expand_shift_1.
13283 (expand_shift): Adjust.
13284
13285 2011-05-05 Jakub Jelinek <jakub@redhat.com>
13286
13287 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
13288
13289 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
13290
13291 * tree.h (get_pending_sizes): Remove prototype.
13292 (put_pending_size): Likewise.
13293 (put_pending_sizes): Likewise.
13294 * stor-layout.c (pending_sizes): Delete.
13295 (get_pending_sizes): Likewise.
13296 (put_pending_size): Likewise.
13297 (put_pending_sizes): Likewise.
13298 (variable_size): Do not call put_pending_size and tidy up.
13299 * function.h (struct function): Remove dont_save_pending_sizes_p.
13300 * lto-streamer-in.c (input_function): Do not stream it.
13301 * lto-streamer-out.c (output_function): Likewise.
13302 * tree-inline.c (initialize_cfun): Do not copy it.
13303 * c-decl.c (store_parm_decls): Do not set it.
13304 * omp-low.c (create_task_copyfn): Likewise.
13305 * tree-optimize.c (tree_rest_of_compilation): Likewise.
13306
13307 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
13308
13309 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
13310 conditions.
13311 (*movdf_internal): Ditto.
13312 (*movdf_internal_nointeger): Ditto.
13313 (*movsf_internal): Ditto.
13314
13315 2011-05-05 Joseph Myers <joseph@codesourcery.com>
13316
13317 * c-decl.c (finish_decl): Don't call get_pending_sizes.
13318 (grokparm): Add parameter expr. Pass it to grokdeclarator.
13319 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
13320 (c_variable_size): Remove.
13321 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
13322 call put_pending_sizes.
13323 (get_parm_info): Add parameter expr. Use it to set
13324 arg_info->pending_sizes.
13325 (store_parm_decls): Use arg_info->pending_sizes instead or calling
13326 get_pending_sizes.
13327 * c-parser.c (c_parser_parms_declarator): Update call to
13328 c_parser_parms_list_declarator.
13329 (c_parser_parms_list_declarator): Take parameter expr. Update
13330 call to push_parm_decl. Update recursive call. Don't call
13331 get_pending_sizes. Update calls to get_parm_info.
13332 (c_parser_objc_method_definition): Update calls to
13333 c_parser_objc_method_decl and objc_start_method_definition.
13334 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
13335 (c_parser_objc_method_decl): Add parameter expr. Update call to
13336 grokparm.
13337 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
13338 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
13339 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
13340
13341 2011-05-05 Michael Hope <michael.hope@linaro.org>
13342
13343 PR pch/45979
13344 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
13345 __ARM_EABI__ hosts.
13346
13347 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13348
13349 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
13350 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
13351 (spu_output_mi_thunk): New function.
13352
13353 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13354
13355 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
13356 targetm.asm_out.print_operand.
13357 * config/sol2.c: Include target.h.
13358
13359 2011-05-04 Jan Hubicka <jh@suse.cz>
13360
13361 * ipa-inline.c (reset_edge_caches): New function.
13362 (update_caller_keys): Add check_inlinablity_for; do not
13363 reset edge caches; remove now unnecesary loop.
13364 (update_callee_keys): Add comments; reset node_growth_cache of callee.
13365 (update_all_callee_keys): Likewise.
13366 (inline_small_functions): Sanity check cache; update code
13367 recomputing it.
13368
13369 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
13370
13371 PR rtl-optimization/47612
13372 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
13373 as the last insn of the sequence to be moved.
13374
13375 2011-05-04 Tobias Burnus <burnus@net-b.de>
13376
13377 PR fortran/48864
13378 * doc/invoke.texi (Ofast): Document that it
13379 enables Fortran's -fno-protect-parens.
13380
13381 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
13382
13383 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
13384
13385 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
13386
13387 * stor-layout.c (variable_size): Do not issue errors.
13388
13389 2011-05-04 Richard Guenther <rguenther@suse.de>
13390
13391 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
13392 for array-ref indices.
13393 (tree_coverage_counter_addr): Likewise.
13394 (build_fn_info_type): Use size_int for index types.
13395 (build_gcov_info): Likewise.
13396
13397 2011-05-04 Richard Guenther <rguenther@suse.de>
13398
13399 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
13400 to build_int_cst.
13401 * c-typeck.c (really_start_incremental_init): Use bitsize_int
13402 for constructor indices.
13403 (push_init_level): Likewise.
13404
13405 2011-05-04 Richard Guenther <rguenther@suse.de>
13406
13407 * explow.c (promote_mode): Move variable declarations before code.
13408
13409 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
13410
13411 * tree.h (build_function_type_array): Declare.
13412 (build_varargs_function_type_array): Declare.
13413 (build_function_type_vec, build_varargs_function_type_vec): Define.
13414 * tree.c (build_function_type_array_1): New function.
13415 (build_function_type_array): New function.
13416 (build_varargs_function_type_array): New function.
13417
13418 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
13419
13420 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
13421 before setting STMT_VINFO_TYPE.
13422
13423 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13424
13425 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
13426 instead of spu_pass_by_reference.
13427
13428 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13429
13430 * calls.c (emit_library_call_value_1): Invoke
13431 promote_function_mode hook on libcall arguments.
13432 * explow.c (promote_function_mode, promote_mode): Handle TYPE
13433 argument being NULL.
13434 * targhooks.c (default_promote_function_mode): Lisewise.
13435 * config/s390/s390.c (s390_promote_function_mode): Likewise.
13436 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
13437
13438 * doc/tm.texi: Document that TYPE argument might be NULL.
13439
13440 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13441
13442 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
13443
13444 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13445
13446 From Bernd Schmidt
13447 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
13448
13449 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13450
13451 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
13452 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
13453 Move ...
13454 * mips-tfile.c: ... here.
13455 Don't include coretypes.h, tm.h, filenames.h.
13456 (saber_stop): Remove definition and all calls.
13457 [__SABER__]: Remove.
13458 (__LINE__): Remove default.
13459 (Size_t, Ptrdiff_t): Remove definitions.
13460 Replace by size_t, ptrdiff_t.
13461 [!MIPS_DEBUGGING_INFO]: Remove.
13462 (SHASH_SIZE, THASH_SIZE): Remove defaults.
13463 (progname): Add const.
13464 (STATIC): Remove.
13465 Replace all uses by static.
13466 (ALIGN_SYMTABLE_OFFSET): Remove default.
13467 * mips-tdump.c: Don't include coretypes.h, tm.h.
13468 Remove !MIPS_IS_STAB guard.
13469 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
13470 $(TM_H), filenames.h dependencies.
13471 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
13472
13473 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13474
13475 From Jie Zhang
13476 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
13477 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
13478
13479 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13480
13481 From Bernd Schmidt
13482 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
13483 account and save/restore RETS.
13484 (PROFILE_BEFORE_PROLOGUE): Define.
13485 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
13486 the push insn to use predecrement.
13487
13488 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13489
13490 From Jie Zhang
13491 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
13492
13493 2011-05-04 Nick Clifton <nickc@redhat.com>
13494
13495 * config/mn10300/mn10300.c: Include cfgloop.h.
13496 (DUMP): New macro.
13497 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
13498 Lcc or a FLcc insn into the instruction stream.
13499 (mn10300_block_contains_call): New function. Returns true if the
13500 given basic block contains a CALL insn.
13501 (mn10300_loop_contains_call_insn): New function. Returns true if
13502 the given loop contains a CALL insn.
13503 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
13504 to use the SETLB and Lcc or FLcc insns.
13505 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
13506 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
13507 * config/mn10300/mn10300.opt (msetlb): New option. Used to
13508 disable the SETLB optimization.
13509 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
13510 __SETLB__ or __NO_SETLB__.
13511 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
13512 (movsf_internal): Handle MDR register.
13513 (cmpsi): Make visible.
13514 (setlb): New pattern.
13515 (Lcc): New pattern.
13516 (FLcc): New pattern.
13517
13518 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
13519
13520 PR target/48860
13521 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
13522 for reg<->xmm moves.
13523 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
13524 (vec_concatv2di_rex64_sse): Ditto.
13525 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
13526 (*vec_extractv2di_1_rex64): Ditto.
13527
13528 Revert:
13529 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
13530
13531 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
13532 reg<->xmm moves.
13533 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
13534
13535 2011-05-04 Richard Guenther <rguenther@suse.de>
13536
13537 * tree.h (int_const_binop): Remove notrunc argument.
13538 * fold-const.c (int_const_binop): Remove notrunc argument. Always
13539 create integer constants that are properly truncated.
13540 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
13541 (const_binop): Remove zero notrunc argument to int_const_binop.
13542 (size_binop_loc): Likewise.
13543 (fold_div_compare): Likewise.
13544 (maybe_canonicalize_comparison_1): Likewise.
13545 (fold_comparison): Likewise.
13546 (fold_binary_loc): Likewise.
13547 (multiple_of_p): Likewise.
13548 * expr.c (store_constructor): Likewise.
13549 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13550 (maybe_fold_stmt_addition): Likewise.
13551 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
13552 * stor-layout.c (layout_type): Likewise.
13553 * tree-data-ref.c (tree_fold_divides_p): Likewise.
13554 * tree-sra.c (build_ref_for_offset): Likewise.
13555 (build_user_friendly_ref_for_offset): Likewise.
13556 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
13557 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13558 * tree-ssa-loop-niter.c (inverse): Likewise.
13559 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13560 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
13561 * tree-switch-conversion.c (check_range): Likewise.
13562 (build_constructors): Likewise.
13563 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
13564 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
13565 (extract_range_from_assert): Likewise.
13566 (vrp_int_const_binop): Likewise.
13567 (extract_range_from_binary_expr): Likewise.
13568 (extract_range_from_unary_expr): Likewise.
13569 (check_array_ref): Likewise.
13570 (find_case_label_range): Likewise.
13571 (simplify_div_or_mod_using_ranges): Likewise.
13572 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
13573 comparing case labels for merging.
13574
13575 2011-05-03 Mark Wielaard <mjw@redhat.com>
13576
13577 * dwarf2out.c (debug_str_hash_forced): Removed.
13578 (gen_label_for_indirect_string): Removed.
13579 (get_debug_string_label): Removed.
13580 (AT_string_form): Generate label directly.
13581 (output_indirect_string): Test indirect_string_node for
13582 DW_FORM_strp instead of checking label and refcount.
13583 (prune_indirect_string): Removed.
13584 (prune_unused_types): Don't check debug_str_hash_forced or
13585 call prune_indirect_string.
13586
13587 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
13588
13589 PR other/48093
13590 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
13591
13592 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
13593
13594 PR debug/47994
13595 PR debug/47919
13596 * combine.c (try_combine): Skip debug insns at m_split tests.
13597
13598 2011-04-26 Mark Wielaard <mjw@redhat.com>
13599
13600 PR42288
13601 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
13602 when info_section_emitted.
13603
13604 2011-05-03 Joseph Myers <joseph@codesourcery.com>
13605
13606 * config/mips/mips-opts.h: New.
13607 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
13608 to mips-opts.h.
13609 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
13610 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
13611 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
13612 via opts pointer.
13613 * config/mips/mips.h (enum mips_code_readable_setting): Move to
13614 mips-opts.h.
13615 (mips_abi, mips_code_readable): Don't declare.
13616 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
13617 (mabi=): Use Enum and Var.
13618 (mips_abi): New Enum and EnumValue entries.
13619 (mcode-readable=): Use Enum and Var.
13620 (mips_code_readable_setting): New Enum and EnumValue entries.
13621 (mr10k-cache-barrier=): Use Enum and Var.
13622 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
13623
13624 2011-05-03 Jan Hubicka <jh@suse.cz>
13625
13626 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
13627 replace hash by pointer map.
13628 (cgraph_node_set_element_def, cgraph_node_set_element,
13629 const_cgraph_node_set_element, varpool_node_set_element_def,
13630 varpool_node_set_element, const_varpool_node_set_element): Remove.
13631 (free_cgraph_node_set, free_varpool_node_set): New function.
13632 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
13633 * tree-emutls.c: Free varpool node set.
13634 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
13635 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
13636 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
13637 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
13638 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
13639 Move here from ipa.c; implement using pointer_map
13640 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
13641 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
13642 debug_cgraph_node_set, varpool_node_set_new,
13643 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
13644 dump_varpool_node_set, debug_varpool_node_set):
13645 Move to ipa-uitls.c.
13646 * passes.c (ipa_write_summaries): Update.
13647
13648 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13649
13650 From Mike Frysinger:
13651 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
13652 bf542/bf544/bf547/bf548/bf549.
13653
13654 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
13655
13656 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
13657
13658 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13659
13660 From Bernd Schmidt:
13661 * config/bfin/bfin.md (MOVCC): New mode_macro.
13662 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
13663 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
13664 comments from generated assembly.
13665
13666 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13667
13668 From Bernd Schmidt
13669 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
13670 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
13671 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
13672 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
13673 * config/bfin/lib1funcs.asm (___muldi3): New function.
13674
13675 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13676
13677 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
13678 build_function_type_list instead of build_function_type.
13679 Rearrange initialization of `args' to do so.
13680
13681 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13682
13683 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
13684 instead of build_function_type.
13685
13686 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13687
13688 * config/rs6000/rs6000.c (spe_init_builtins): Call
13689 build_function_type_list instead of build_function_type.
13690 (paired_init_builtins, altivec_init_builtins): Likewise.
13691 (builtin_function_type): Likewise.
13692
13693 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13694
13695 * config/sh/sh.c (sh_media_init_builtins): Call
13696 build_function_type_list instead of build_function_type.
13697
13698 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13699
13700 * config/sparc/sparc.c (sparc_file_end): Call
13701 build_function_type_list instead of build_function_type.
13702
13703 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13704
13705 * config/alpha/alpha.c (alpha_init_builtins): Call
13706 build_function_type_list instead of build_function_type.
13707
13708 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13709
13710 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
13711 build_function_type_list instead of build_function_type.
13712
13713 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13714
13715 * config/iq2000/i2000.c (iq2000_init_builtins): Call
13716 build_function_type_list instead of build_function_type.
13717 Delete `endlink' variable.
13718
13719 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13720
13721 * config/avr/avr.c (avr_init_builtins): Call
13722 build_function_type_list instead of build_function_type.
13723
13724 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13725
13726 * config/picochip/picochip.c (picochip_init_builtins): Call
13727 build_function_type_list instead of build_function_type.
13728 Delete `endlink' variable.
13729
13730 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13731
13732 * config/bfin/bfin.c (bfin_init_builtins): Call
13733 build_function_type_list instead of build_function_type.
13734
13735 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13736
13737 From Bernd Schmidt
13738 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
13739 that's not CONST_INT. Seemingly redundant check is due to PR39768.
13740
13741 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13742
13743 From Jie Zhang:
13744 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
13745 libbffastfp overrides libgcc when -mfast-fp.
13746
13747 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13748
13749 Originally from Bernd Schmidt
13750 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
13751 * config/bfin/bfin.c (override_options): Test it and error if
13752 TARGET_FDPIC.
13753
13754 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13755
13756 Originally From Bernd Schmidt
13757 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
13758 FD-PIC.
13759
13760 2011-05-03 Jeff Law <law@redhat.com>
13761
13762 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
13763 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
13764 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
13765 than accessing AUX field directly. Free the AUX field before
13766 clearing it.
13767 (thread_block, thread_through_loop_header): Likewise.
13768 (thread_single_edge, mark_threaded_blocks): Likewise.
13769 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
13770 (register_jump_thread): Do not attempt to thread to a NULL edge.
13771
13772 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
13773
13774 * function.c (init_function_start): Call decide_function_section.
13775 * varasm.c (decide_function_section): New function.
13776 (assemble_start_function): When not using
13777 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
13778 or first_function_block_is_cold.
13779 * rtl.h (decide_function_section): Declare.
13780
13781 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
13782 Jakub Jelinek <jakub@redhat.com>
13783
13784 PR target/48774
13785 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
13786 only succeed if req_mode is the same as set_mode.
13787
13788 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
13789
13790 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
13791 * genemit.c (gen_exp): Handle RETURN.
13792 * emit-rtl.c (verify_rtx_sharing): Likewise.
13793 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
13794 * rtl.c (copy_rtx): RETURN is shared.
13795 * rtl.h (enum global_rtl_index): Add GR_RETURN.
13796 (ret_rtx): New.
13797 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
13798 * config/s390/s390.c (s390_emit_epilogue): Likewise.
13799 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
13800 * config/cris/cris.c (cris_expand_return): Likewise.
13801 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
13802 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
13803 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
13804 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
13805 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
13806 Likewise.
13807 * config/v850/v850.c (expand_epilogue): Likewise.
13808 * config/bfin/bfin.c (bfin_expand_call): Likewise.
13809 * config/arm/arm.md (epilogue): Likewise.
13810 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
13811 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
13812 variable to ret_reg.
13813
13814 2011-05-03 Richard Guenther <rguenther@suse.de>
13815
13816 PR lto/48846
13817 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
13818 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
13819 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
13820
13821 2011-05-03 Richard Guenther <rguenther@suse.de>
13822
13823 * c-decl.c (grokdeclarator): Instead of looking at
13824 TREE_OVERFLOW check if the constant fits in the index type.
13825
13826 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13827
13828 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
13829 (vec_store_lanes<mode><mode>): Likewise.
13830
13831 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13832
13833 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
13834 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
13835 convert_optab_index values.
13836 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
13837 * genopinit.c (optabs): Initialize the new optabs.
13838 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
13839 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
13840 (expand_STORE_LANES): New functions.
13841 * tree.h (build_array_type_nelts): Declare.
13842 * tree.c (build_array_type_nelts): New function.
13843 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
13844 (vect_model_load_cost): Likewise.
13845 (vect_store_lanes_supported, vect_load_lanes_supported)
13846 (vect_record_strided_load_vectors): Declare.
13847 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
13848 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
13849 (vect_transform_strided_load): Split out statement recording into...
13850 (vect_record_strided_load_vectors): ...this new function.
13851 * tree-vect-stmts.c (create_vector_array, read_vector_array)
13852 (write_vector_array, create_array_ref): New functions.
13853 (vect_model_store_cost): Add store_lanes_p argument.
13854 (vect_model_load_cost): Add load_lanes_p argument.
13855 (vectorizable_store): Try to use store-lanes functions for
13856 interleaved stores.
13857 (vectorizable_load): Likewise load-lanes and loads.
13858 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
13859 to vect_model_store_cost.
13860 (vect_build_slp_tree): Likewise vect_model_load_cost.
13861
13862 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13863
13864 * hooks.h (hook_bool_mode_uhwi_false): Declare.
13865 * hooks.c (hook_bool_mode_uhwi_false): New function.
13866 * target.def (array_mode_supported_p): New hook.
13867 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
13868 * doc/tm.texi: Regenerate.
13869 * stor-layout.c (mode_for_array): New function.
13870 (layout_type): Use it.
13871 * config/arm/arm.c (arm_array_mode_supported_p): New function.
13872 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
13873
13874 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
13875
13876 PR target/48723
13877 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
13878 for -fstack-check if the size to allocate is negative.
13879
13880 2011-05-02 Lawrence Crowl <crowl@google.com>
13881
13882 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
13883 (timevar_cond_start): New for starting a timer only when it is not
13884 already running.
13885 (timevar_cond_stop): New for stopping a timer when it was not already
13886 running.
13887
13888 * timevar.c (timevar_stop): Enable start/stop timers to start again.
13889 (timevar_cond_start): New as above.
13890 (timevar_cond_stop): New as above.
13891
13892 * timevar.def: Add start/stop timers for compiler phases,
13893 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
13894 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
13895 and TV_PHASE_FINALIZE.
13896 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
13897 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
13898 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
13899 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
13900 Make unused TV_OVERLOAD into a start/stop timer.
13901
13902 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
13903 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
13904 to indicate that they are start/stop timers.
13905
13906 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
13907 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
13908 Move initialization to do_compile.
13909 (do_compile): Add initialization from above.
13910 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
13911
13912 * c-decl.c (c_write_global_declarations): Add start/stop of
13913 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
13914
13915 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
13916 or TV_PARSE_INLINE, as appropriate.
13917 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
13918 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
13919
13920 2011-05-02 Jason Merrill <jason@redhat.com>
13921
13922 PR c++/40975
13923 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
13924
13925 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
13926
13927 PR c/35445
13928 * c-decl.c (finish_decl): Only create a composite if the types are
13929 compatible.
13930
13931 2011-05-02 Joseph Myers <joseph@codesourcery.com>
13932
13933 * config/fr30/fr30-protos.h (Mmode): Don't define.
13934 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
13935 definition where used.
13936 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
13937 define. Expand definitions where used.
13938 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
13939 Expand definitions where used.
13940 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
13941 rx_function_arg, rx_function_arg_advance,
13942 rx_function_arg_boundary): Expand definitions of those macros.
13943 * config/v850/v850-protos.h (Mmode): Don't define. Expand
13944 definition where used.
13945
13946 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
13947
13948 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
13949 reg<->xmm moves.
13950 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
13951 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
13952 with *movv2sf_internal_rex64_avx.
13953 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
13954 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
13955 Use %v prefix in insn mnemonic to handle TARGET_AVX.
13956 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
13957 "vex" in "prefix" attribute calculation.
13958 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
13959
13960 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
13961
13962 PR target/47951
13963 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
13964 inputs match the output.
13965
13966 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
13967
13968 PR target/47955
13969 * config/m68k/m68k.c (m68k_expand_prologue): Set
13970 current_function_static_stack_size.
13971
13972 2011-05-02 Jan Hubicka <jh@suse.cz>
13973
13974 * lto-streamer.c (lto_streamer_cache_insert_1,
13975 lto_streamer_cache_lookup, lto_streamer_cache_create,
13976 lto_streamer_cache_delete): Use pointer map instead of hashtable.
13977 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
13978
13979 2011-05-02 Joseph Myers <joseph@codesourcery.com>
13980
13981 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
13982 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
13983 config/m68k/t-opts: New files.
13984 * config/m68k/m68k-tables.opt: New file (generated).
13985 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
13986 extra_options and m68k/t-opts to tmake_file.
13987 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
13988 (all_isas): Initialize using m68k-isas.def.
13989 (all_microarchs): Initialize using m68k-microarchs.def.
13990 (m68k_find_selection): Remove.
13991 (m68k_handle_option): Don't assert that global structures are in
13992 use. Use error_at. Access variables via opts pointer. Don't
13993 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
13994 directly for -m68020-40 and -m68020-60.
13995 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
13996 m68k_tune_entry here.
13997 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
13998 to m68k-opts.h.
13999 (m68k_library_id_string): Remove declaration.
14000 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
14001 (m68k_library_id_string): New Variable.
14002 (march=, mcpu=, mtune=): Use Enum and Var.
14003
14004 2011-05-02 Richard Guenther <rguenther@suse.de>
14005
14006 * varasm.c (output_constructor_regular_field): Compute zero-based
14007 index with double-ints. Make sure to ICE instead of producing
14008 wrong code.
14009 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
14010 in asserts. Properly use a signed type.
14011
14012 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
14013
14014 * config/i386/sse.md (V): New mode iterator.
14015 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
14016 TARGET_SSE2.
14017 (V_256): Rename from AVX256MODE.
14018 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
14019 condition to all users.
14020 (VF1): Ditto.
14021 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
14022 condition to all users.
14023 (VF_128): Make V4SF mode unconditional.
14024 (VF_256): Rename from AVX256MODEF2P.
14025 (VI4F_128): Rename from SSEMODE4S.
14026 (VI8F_128): Rename from SSEMODE2D.
14027 (VI4F_256): Rename from AVX256MODE8P.
14028 (VI8F_256): Rename from AVX256MODE4P.
14029 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
14030 (ssescalarmodesuffix): Remove SF and DF modes.
14031 (SSEMODE124): Remove.
14032 (SSEMODE1248): Ditto.
14033 (SSEMODEF2P): Ditto.
14034 (AVXMODEF2P): Ditto.
14035 (AVXMODEFDP): Ditto.
14036 (AVXMODEFSP): Ditto.
14037 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
14038 unconditional.
14039 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
14040 unconditional.
14041 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
14042 xop_pcmov_<mode>256. Use V mode iterator.
14043
14044 Adjust RTX patterns globally for renamed mode attributes.
14045
14046 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14047
14048 * haifa-sched.c (sched_emit_insn): Emit insn before first
14049 non-scheduled insn. Inform back-end about new insn. Add
14050 new insn to scheduled_insns list.
14051
14052 2011-05-02 Richard Guenther <rguenther@suse.de>
14053
14054 PR tree-optimization/48822
14055 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
14056 (process_scc): Indicate which iteration we start.
14057
14058 2011-05-02 Jan Hubicka <jh@suse.cz>
14059
14060 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
14061 (lto_section_overrun): New.
14062 * lto-section-out.c (append_block): Rename to ...
14063 (lto_append_block): ... this one; export.
14064 (lto_output_1_stream): Move lto lto-streamer.h
14065 (lto_output_data_stream): Update.
14066 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
14067 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
14068 functions.
14069
14070 2011-05-02 Richard Guenther <rguenther@suse.de>
14071
14072 * tree.c (tree_code_counts): New global array.
14073 (record_node_allocation_statistics): Count individual tree codes.
14074 (dump_tree_statistics): Dump individual code stats.
14075
14076 2011-05-01 Jan Hubicka <jh@suse.cz>
14077
14078 * ipa-inline.c (caller_growth_limits): Fix thinko when
14079 looking for largest stack frame.
14080 * ipa-inline.h (dump_inline_summary): Declare.
14081 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
14082 on stack usage.
14083 (dump_inline_summary): Export.
14084 (debug_inline_summary): Declare as DEBUG_FUNCTION.
14085
14086 2011-05-01 Anatoly Sokolov <aesok@post.ru>
14087
14088 * reginfo.c (memory_move_cost): Change rclass argument type form
14089 'enum reg_class' to reg_class_t.
14090 * reload.h (memory_move_cost): Update prototype.
14091 * postreload.c reload_cse_simplify_set): Change type dclass var to
14092 reg_class_t.
14093 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
14094 Update prototype.
14095 (ira_allocate_and_set_costs): Change aclass argument type form
14096 'enum reg_class' to reg_class_t.
14097 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
14098 Change aclass argument type to reg_class_t.
14099 (update_conflict_hard_reg_costs): Change type aclass and pref vars
14100 to reg_class_t.
14101 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
14102 memory_move_cost call.
14103
14104 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
14105 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
14106 Change type tmp var to reg_class_t.
14107
14108 2011-04-30 Jan Hubicka <jh@suse.cz>
14109
14110 * ipa-inline.c (can_inline_edge_p): Disregard limits when
14111 inlining into function with flatten attribute.
14112 (want_inline_small_function_p): Be more realistic about inlining
14113 cold calls where callee size grows.
14114
14115 2011-04-30 Jan Hubicka <jh@suse.cz>
14116
14117 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
14118 flags.
14119
14120 2011-04-30 Anatoly Sokolov <aesok@post.ru>
14121
14122 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
14123 PRINT_OPERAND_PUNCT_VALID_P): Remove.
14124 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
14125 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
14126 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14127 (print_operand): Rename to...
14128 (sparc_print_operand): ...this. Make static. Adjust
14129 sparc_print_operand function call.
14130 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
14131 functions.
14132
14133 2011-04-30 Jan Hubicka <jh@suse.cz>
14134
14135 PR middle-end/48752
14136 * ipa-inline.c (early_inliner): Disable when doing late
14137 addition of function.
14138
14139 2011-04-30 Jakub Jelinek <jakub@redhat.com>
14140
14141 * dwarf2out.c (get_address_mode): New inline.
14142 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
14143 if not dwarf_strict emit
14144 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
14145 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
14146 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
14147 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
14148 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
14149 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
14150 mem_loc_descriptor callers.
14151 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14152 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
14153 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
14154 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
14155 (base_types): New variable.
14156 (get_base_type_offset, calc_base_type_die_sizes,
14157 base_type_for_mode, mark_base_types, base_type_cmp,
14158 move_marked_base_types): New functions.
14159 (calc_die_sizes): Assert that die_offset is 0 or equal to
14160 next_die_offset.
14161 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
14162 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
14163 callers. If not dwarf_strict, call mem_loc_descriptor even for
14164 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
14165 (gen_subprogram_die): Don't give up on call site parameters
14166 with non-integral or large integral modes. Adjust
14167 mem_loc_descriptor callers.
14168 (prune_unused_types): Call prune_unused_types_mark on base_types
14169 vector entries.
14170 (resolve_addr): Call mark_base_types.
14171 (dwarf2out_finish): Call move_marked_base_types.
14172
14173 PR tree-optimization/48809
14174 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
14175 type.
14176 (gen_inbound_check): Don't compute index_expr - range_min in utype
14177 again, instead reuse SSA_NAME initialized in build_arrays.
14178 Remove two useless gsi_for_stmt calls.
14179
14180 2011-04-29 Jeff Law <law@redhat.com>
14181
14182 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
14183
14184 2011-04-29 Martin Jambor <mjambor@suse.cz>
14185
14186 * cgraph.h (cgraph_postorder): Remove declaration.
14187 * ipa-utils.h (ipa_free_postorder_info): Declare.
14188 (ipa_reverse_postorder): Likewise.
14189 * cgraphunit.c: Include ipa-utils.h.
14190 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
14191 * ipa-inline.c: Include ipa-utils.h.
14192 (ipa_inline): Update call to ipa_reverse_postorder.
14193 * ipa-pure-const.c (propagate_pure_const): Update call to
14194 ipa_reduced_postorder and ipa_print_order. Call
14195 ipa_free_postorder_info to clean up.
14196 (propagate_nothrow): Likewise.
14197 * ipa-reference.c (propagate): Removed a useless call to
14198 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
14199 and ipa_print_order. Call ipa_free_postorder_info to clean up.
14200 * ipa.c: Include ipa-utils.h.
14201 (ipa_profile): Update call to ipa_reverse_postorder.
14202 (cgraph_postorder): Moved to...
14203 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
14204 (ipa_utils_print_order): Renamed to ipa_print_order.
14205 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
14206 comments.
14207 (ipa_free_postorder_info): New function.
14208 * passes.c: Include ipa-utils.h.
14209 (do_per_function_toporder): Update call to ipa_reverse_postorder.
14210 (ipa_write_summaries): Likewise.
14211 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
14212 (cgraphunit.o): Likewise.
14213 (ipa.o): Likewise.
14214 (ipa-inline.o): Likewise.
14215
14216 2011-04-29 Jan Hubicka <jh@suse.cz>
14217
14218 * gcc.dg/tree-ssa/inline-10.c: New testcase.
14219 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
14220 * ipa-inline.h (clause_t): Turn into unsigned int.
14221 * ipa-inline-analysis.c (add_clause): Do more simplification.
14222 (and_predicates): Shortcut more cases.
14223 (predicates_equal_p): Move forward; check that clauses are properly
14224 ordered.
14225 (or_predicates): Shortcut more cases.
14226 (edge_execution_predicate): Rewrite as...
14227 (set_cond_stmt_execution_predicate): ... this function; handle
14228 __builtin_constant_p.
14229 (set_switch_stmt_execution_predicate): New .
14230 (compute_bb_predicates): New.
14231 (will_be_nonconstant_predicate): Update TODO.
14232 (estimate_function_body_sizes): Use compute_bb_predicates
14233 and free them later, always try to estimate if stmt is constant.
14234 (estimate_time_after_inlining, estimate_size_after_inlining):
14235 Gracefully handle optimized out edges.
14236 (read_predicate): Fix off by one error.
14237
14238 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
14239
14240 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
14241
14242 2011-04-27 Xinliang David Li <davidxl@google.com>
14243
14244 * tree-profile.c (init_ic_make_global_vars): Set
14245 tls attribute on ic vars.
14246 * coverage.c (coverage_end_function): Initialize
14247 function_list with zero.
14248
14249 2011-04-29 Richard Guenther <rguenther@suse.de>
14250
14251 * builtins.c (fold_builtin_classify_type): Use integer_type_node
14252 for the type of the result.
14253 (fold_builtin_isascii): Likewise.
14254 (fold_builtin_toascii): Use integer_type_node where appropriate.
14255 (fold_builtin_logb): Likewise.
14256 (fold_builtin_frexp): Likewise.
14257 (fold_builtin_strstr): Likewise.
14258 (fold_builtin_strpbrk): Likewise.
14259 (fold_builtin_fputs): Likewise.
14260 (fold_builtin_sprintf): Likewise.
14261 (fold_builtin_snprintf): Likewise.
14262 (fold_builtin_printf): Likewise.
14263 (do_mpfr_remquo): Use a proper type for the assigned constant.
14264 (do_mpfr_lgamma_r): Likewise.
14265 * dwarf2out.c (resolve_one_addr): Use size_int.
14266 * except.c (init_eh): Likewise.
14267 (assign_filter_values): Use integer_type_node for filter values.
14268 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
14269 indices.
14270 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
14271 for EH region numbers.
14272 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
14273 for the shift amount.
14274
14275 2011-04-29 Richard Guenther <rguenther@suse.de>
14276
14277 * expr.h (expand_shift): Rename to ...
14278 (expand_variable_shift): ... this.
14279 (expand_shift): Take a constant shift amount.
14280 * expmed.c (expand_shift): Rename to ...
14281 (expand_variable_shift): ... this.
14282 (expand_shift): New wrapper around expand_variable_shift.
14283 * expr.c (convert_move, emit_group_load_1, emit_group_store,
14284 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
14285 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
14286 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
14287 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
14288 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
14289 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
14290 emit_store_flag_1, emit_store_flag): Likewise.
14291 * builtins.c (expand_builtin_signbit): Likewise.
14292 * calls.c (load_register_parameters): Likewise.
14293 * function.c (assign_parm_setup_block): Likewise.
14294 * lower-subreg.c (resolve_shift_zext): Likewise.
14295 * optabs.c (widen_bswap, expand_abs_nojump,
14296 expand_one_cmpl_abs_nojump, expand_float): Likewise.
14297 * spu/spu.c (spu_expand_extv): Likewise.
14298 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
14299
14300 2011-04-29 Richard Guenther <rguenther@suse.de>
14301
14302 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
14303 for the remapped region number.
14304 * predict.c (build_predict_expr): Use integer_type_node for the
14305 predict kind.
14306 * fold-const.c (fold_binary_loc): Use integer_type_node for
14307 the shift amount. Use a proper type for the PLUS_EXPR operand.
14308
14309 2011-04-29 Michael Matz <matz@suse.de>
14310
14311 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
14312 other trees that just builtins.
14313 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
14314
14315 2011-04-29 Richard Guenther <rguenther@suse.de>
14316
14317 * tree-nested.c (get_trampoline_type): Use size_int.
14318 (get_nl_goto_field): Likewise.
14319 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
14320 for all indexes.
14321 (lower_eh_constructs_2): Likewise.
14322 (lower_resx): Likewise.
14323 (lower_eh_dispatch): Likewise.
14324 * tree-mudflap.c (mf_build_string): Use size_int.
14325 (mudflap_register_call): Use integer_type_node for the flag.
14326 (mudflap_enqueue_constant): Use size_int.
14327 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
14328 instead of rebuilding it.
14329
14330 2011-04-29 Richard Guenther <rguenther@suse.de>
14331
14332 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
14333 Handle OBJ_TYPE_REF.
14334 (find_func_aliases_for_call): Use it more consistently.
14335
14336 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
14337
14338 * haifa-sched.c (last_nondebug_scheduled_insn): New.
14339 (rank_for_schedule): Use it.
14340 (schedule_block): Set it.
14341
14342 2011-04-28 David Li <davidxl@google.com>
14343
14344 * tree.c (crc32_string): Use crc32_byte.
14345 (crc32_byte): New function.
14346 * tree.h (crc32_byte): New function.
14347 * gcov.c (read_graph_file): Handle new cfg_cksum.
14348 (read_count_file): Ditto.
14349 * profile.c (instrument_values): Ditto.
14350 (get_exec_counts): Ditto.
14351 (read_profile_edge_counts): Ditto.
14352 (compute_branch_probabilities): Ditto.
14353 (compute_value_histograms): Ditto.
14354 (branch_prob): Ditto.
14355 (end_branch_prob): Ditto.
14356 * coverage.c (read_counts_file): Ditto.
14357 (get_coverage_counts): Ditto.
14358 (tree_coverage_counter_addr): Ditto.
14359 (coverage_checksum_string): Ditto.
14360 (coverage_begin_output): Ditto.
14361 (coverage_end_function): Ditto.
14362 (build_fn_info_type): Ditto.
14363 (build_fn_info_value): Ditto.
14364 * libgcov.c (gcov_exit): Ditto.
14365 * gcov-dump.c (tag_function): Ditto.
14366 (compute_checksum): Remove.
14367
14368 2011-04-29 Alan Modra <amodra@gmail.com>
14369
14370 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14371 unspec plus offset. Tidy macho code.
14372
14373 2011-04-29 Martin Jambor <mjambor@suse.cz>
14374
14375 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
14376 node instead of a decl. Update all callers.
14377 * cgraph.h: Update declaration.
14378
14379 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
14380
14381 PR tree-optimization/48765
14382 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
14383 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
14384 to indicate if loop aware SLP is being used. Scan the statements
14385 and update the vectorization factor according to the type of
14386 vectorization before statement analysis.
14387 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
14388 pass it to vect_analyze_loop_operations.
14389 (vectorizable_reduction): Set number of copies to 1 in case of pure
14390 SLP statement.
14391 * tree-vect-stmts.c (vectorizable_conversion,
14392 vectorizable_assignment, vectorizable_shift,
14393 vectorizable_operation, vectorizable_type_demotion,
14394 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
14395 Likewise.
14396 (vectorizable_condition): Move the check that it is not SLP
14397 vectorization before the number of copies check.
14398 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
14399 to vectorize the loop using SLP.
14400
14401 2011-04-28 Jakub Jelinek <jakub@redhat.com>
14402
14403 PR middle-end/48597
14404 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
14405 inline asm.
14406
14407 2011-04-28 Joseph Myers <joseph@codesourcery.com>
14408
14409 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
14410 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
14411 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14412 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14413 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
14414 linux*.h headers.
14415 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
14416 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
14417 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
14418 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
14419 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
14420 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
14421 REG_NAME.
14422 * config/i386/linux.h (REG_NAME): Don't define.
14423 * config/i386/linux64.h (REG_NAME): Don't define.
14424 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
14425 Undefine before defining.
14426
14427 2011-04-28 Jan Hubicka <jh@suse.cz>
14428
14429 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
14430 nonconstant_names array.
14431 (estimate_function_body_sizes): Build nonconstant_names array; handle
14432 BUILT_IN_CONSTANT_P.
14433
14434 2011-04-28 Richard Guenther <rguenther@suse.de>
14435
14436 PR bootstrap/48804
14437 Revert
14438 2011-04-28 Richard Guenther <rguenther@suse.de>
14439
14440 * tree-ssa-structalias.c (solve_constraints): Build succ graph
14441 as late as possible.
14442
14443 2011-04-28 Richard Guenther <rguenther@suse.de>
14444
14445 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
14446 (debug_constraint): Do it here.
14447 (dump_constraints): And here.
14448 (rewrite_constraints): And here.
14449 (dump_constraint_edge): Remove.
14450 (dump_constraint_graph): Rewrite to produce DOT output.
14451 (solve_constraints): Build succ graph as late as possible.
14452 Dump constraint graphs before and after solving.
14453
14454 2011-04-28 Richard Guenther <rguenther@suse.de>
14455
14456 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14457 New function split out from ...
14458 (find_func_aliases): ... here. Call it.
14459 (find_func_aliases_for_call): Likewise.
14460
14461 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
14462
14463 * internal-fn.h (internal_fn_name_array): Declare.
14464 (internal_fn_flags_array): Likewise.
14465
14466 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
14467
14468 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
14469 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
14470 Move from sse.md.
14471 (ssemodefsuffix): Remove.
14472 (ssevecmodesuffix): New mode attribute.
14473 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
14474 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
14475 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
14476 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
14477 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
14478 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
14479 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
14480 ssemodesuffix mode attribute.
14481 (float splitters): Use ssevecmodesuffix mode attribute.
14482 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
14483 (sseinsmode): Rename from avxvecmode.
14484 (avxsizesuffix): Rename from avxmodesuffix.
14485 (sseintvecmode): Rename from avxpermvecmode.
14486 (ssedoublevecmode): Rename from ssedoublesizemode.
14487 (ssehalfvecmode): Rename from avxhalfvecmode.
14488 (ssescalarmode): Rename from avxscalarmode.
14489 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
14490 templates for ssemodesuffix mode attribute.
14491 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
14492 mode attribute.
14493
14494 Adjust RTX patterns globally for renamed mode attributes.
14495
14496 2011-04-27 Jan Hubcika <jh@suse.cz>
14497
14498 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
14499 * ipa-inline-analysis.c: Include alloc-pool.h.
14500 (edge_predicate_pool): New.
14501 (trye_predicate_p): New function
14502 (false_predicate_p): New function.
14503 (add_clause): Sanity check that false clauses are "optimized";
14504 never add clauses to predicate that is already known to be false.
14505 (and_predicate): Use flase_predicate_p.
14506 (evaulate_predicate): Rename to ...
14507 (evaluate_predicate): ... this one; update all callers; assert
14508 that false is not listed among possible truths.
14509 (dump_predicate): Use true_predicate_p.
14510 (account_size_time): Use false_predicate_p.
14511 (evaulate_conditions_for_edge): Rename to ...
14512 (evaluate_conditions_for_edge) ... this one.
14513 (edge_set_predicate): New function.
14514 (inline_edge_duplication_hook): Duplicate edge predicates.
14515 (inline_edge_removal_hook): Free edge predicates.
14516 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
14517 (dump_inline_summary): Update.
14518 (estimate_function_body_sizes): Set edge predicates.
14519 (estimate_calls_size_and_time): Handle predicates.
14520 (estimate_callee_size_and_time): Update.
14521 (remap_predicate): Add toplev_predicate; update comment.
14522 (remap_edge_predicates): New function.
14523 (inline_merge_summary): Compute toplev predicate; update.
14524 (read_predicate): New function.
14525 (read_inline_edge_summary): Use it.
14526 (inline_read_section): Likewise.
14527 (write_predicate): New function.
14528 (write_inline_edge_summary): Use it.
14529 (inline_write_summary): Likewise.
14530 (inline_free_summary): Free alloc pool and edge summary vec.
14531
14532 2011-04-27 Richard Guenther <rguenther@suse.de>
14533
14534 * tree-ssa-structalias.c (changed_count): Remove.
14535 (changed): Use a bitmap.
14536 (unify_nodes): Adjust.
14537 (do_sd_constraint): Likewise.
14538 (do_ds_constraint): Likewise.
14539 (do_complex_constraint): Likewise.
14540 (solve_graph): Likewise.
14541
14542 2011-04-27 Jan Hubicka <jh@suse.cz>
14543
14544 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
14545
14546 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
14547
14548 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
14549 (avx_vperm2f128_*_operand): Ditto.
14550 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
14551 Use avx_vpermilp_parallel in insn condition.
14552 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
14553 Use avx_vperm2f128_parallel in insn condition.
14554
14555 2011-04-27 Richard Guenther <rguenther@suse.de>
14556
14557 * Makefile.in (tree-ssa-structalias.o): Remove
14558 gt-tree-ssa-structalias.h dependency.
14559 (GTFILES): Remove tree-ssa-structalias.c.
14560 * tree.c (allocate_decl_uid): New function.
14561 (make_node_stat): Use it.
14562 (copy_node_stat): Likewise.
14563 * tree.h (allocate_decl_uid): Declare.
14564 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
14565 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
14566 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
14567 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
14568 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
14569 (struct heapvar_map): Likewise.
14570 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
14571 heapvar_insert): Likewise.
14572 (make_heapvar_for): Rename to ...
14573 (make_heapvar): ... this. Simplify.
14574 (fake_var_decl_obstack): New global var.
14575 (build_fake_var_decl): New function.
14576 (make_constraint_from_heapvar): Adjust.
14577 (handle_lhs_call): Likewise.
14578 (create_function_info_for): Likewise.
14579 (intra_create_variable_infos): Likewise.
14580 (init_alias_vars): Allocate fake_var_decl_obstack.
14581 (init_alias_heapvars, delete_alias_heapvars): Remove.
14582 (compute_points_to_sets): Do not call init_alias_heapvars.
14583 (ipa_pta_execute): Likewise.
14584 (delete_points_to_sets): Free fake_var_decl_obstack.
14585
14586 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14587
14588 * config/spu/divmovti4.c (union qword_UTItype): New data type.
14589 (si_from_UTItype, si_to_UTItype): New functions.
14590 (__udivmodti4): Use them to implement type-punning.
14591 * config/spu/multi3.c (union qword_TItype): New data type.
14592 (si_from_TItype, si_to_TItype): New functions.
14593 (__multi3): Use them to implement type-punning.
14594
14595 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14596
14597 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
14598
14599 2011-04-27 Jan Hubicka <jh@suse.cz>
14600
14601 * ipa-prop.c (function_insertion_hook_holder): New holder.
14602 (ipa_add_new_function): New function.
14603 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
14604 Register/deregister holder.
14605
14606 2011-04-27 Richard Guenther <rguenther@suse.de>
14607
14608 PR tree-optimization/48772
14609 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
14610
14611 2011-04-27 Richard Guenther <rguenther@suse.de>
14612
14613 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
14614 TARGET_MEM_REF handling.
14615
14616 2011-04-27 Nick Clifton <nickc@redhat.com>
14617
14618 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
14619 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
14620 (REG_CLASS_NAMES): Likewise.
14621 (REG_CLASS_CONTENTS): Likewise.
14622 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
14623 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
14624 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
14625 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
14626 (EVEN_REGS): New macro. Alias for QUAD_REGS.
14627 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
14628 duplicate register classes.
14629 (frv_class_likely_spilled_p): Likewise.
14630 (frv_register_move_cost): Likewise.
14631
14632 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
14633 end of the regno_reg_class array.
14634
14635 2011-04-27 Jakub Jelinek <jakub@redhat.com>
14636
14637 PR c/48742
14638 * c-typeck.c (build_binary_op): Don't wrap arguments if
14639 int_operands is true.
14640
14641 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
14642
14643 PR target/48767
14644 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
14645 targetm.calls.must_pass_in_stack for void type.
14646
14647 2011-04-26 Jan Hubicka <jh@suse.cz>
14648
14649 * cgraphbuild.c (build_cgraph_edges): Update call
14650 of cgraph_create_edge and cgraph_create_indirect_edge.
14651 * cgraph.c (cgraph_create_edge_including_clones,
14652 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
14653 cgraph_update_edges_for_call_stmt_node): Do not take nest
14654 argument; do not initialize call_stmt_size/time.
14655 (dump_cgraph_node): Do not dump nest.
14656 (cgraph_clone_edge): Do not take loop_nest argument;
14657 do not propagate it; do not clone call_stmt_size/time.
14658 (cgraph_clone_node): Likewise.
14659 (cgraph_create_virtual_clone): Update.
14660 * cgraph.h (struct cgraph_edge): Remove
14661 call_stmt_size/call_stmt_time/loop_nest.
14662 (cgraph_create_edge, cgraph_create_indirect_edge,
14663 cgraph_create_edge_including_clones, cgraph_clone_node): Update
14664 prototype.
14665 * tree-emutls.c (gen_emutls_addr): Update.
14666 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
14667 loop_nest; handle indirect calls, too.
14668 (clone_inlined_nodes): Do not care about updating inline summaries.
14669 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
14670 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
14671 stream call_stmt_size/call_stmt_time/loop_nest.
14672 * ipa-inline.c (edge_badness): Update.
14673 (ipa_inline): dump summaries after inlining.
14674 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
14675 New.
14676 (inline_edge_summary): New function.
14677 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
14678 (inline_edge_removal_hook): Handle edge summaries.
14679 (inline_edge_duplication_hook): New hook.
14680 (inline_summary_alloc): Alloc hooks.
14681 (initialize_growth_caches): Do not register removal hooks.
14682 (free_growth_caches); Do not free removal hook.
14683 (dump_inline_edge_summary): New function.
14684 (dump_inline_summary): Use it.
14685 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
14686 (inline_update_callee_summaries): New function.
14687 (inline_merge_summary): Use it.
14688 (do_estimate_edge_time, do_estimate_edge_growth): Update.
14689 (read_inline_edge_summary): New function.
14690 (inline_read_section): Use it.
14691 (write_inline_edge_summary): New function.
14692 (inline_write_summary): Use it.
14693 (inline_free_summary): Free edge new holders.
14694 * tree-inline.c (copy_bb): Update.
14695
14696 2011-04-26 Jason Merrill <jason@redhat.com>
14697
14698 * tree-eh.c (lower_try_finally_switch): Create the label along with
14699 the CASE_LABEL_EXPR.
14700
14701 2011-04-26 David S. Miller <davem@davemloft.net>
14702 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14703
14704 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
14705 * configure: Regenerate.
14706
14707 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14708
14709 PR target/48258
14710 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
14711 reduction.
14712 (VEC_reduc): New code iterator and splitters for vector reduction.
14713 (VEC_reduc_name): Ditto.
14714 (VEC_reduc_rtx): Ditto.
14715 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
14716 (reduc_<VEC_reduc_name>_v4sf): Ditto.
14717
14718 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
14719 support for extracting SF on VSX.
14720
14721 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
14722 generating xscvspdp.
14723 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
14724 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
14725 double add, minimum, maximum vector reduction.
14726 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
14727 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
14728 optimize double vector reduction.
14729 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
14730
14731 2011-04-26 Joseph Myers <joseph@codesourcery.com>
14732
14733 * config/fr30/fr30.h (inhibit_libc): Don't define.
14734 * config/m32r/m32r-protos.h: Correct comment.
14735 * config/v850/v850.h (GHS_default_section_names,
14736 GHS_current_section_names): Use tree, not union tree_node *.
14737
14738 2011-04-26 Xinliang David Li <davidxl@google.com>
14739
14740 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
14741 * c-family/c-opts.c (c_common_handle_option): Set
14742 warn_maybe_uninitialized.
14743 * opts.c (common_handle_option): Ditto.
14744 * common.opt: New option.
14745 * tree-ssa.c (warn_uninit): Add one more parameter.
14746 (warn_uninitialized_var): Pass warning code.
14747 * tree-flow.h: Interface change.
14748
14749 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14750
14751 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
14752 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
14753 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
14754
14755 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14756
14757 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
14758 * config/mips/mips.opt (mmips-tfile): Remove.
14759
14760 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
14761 mips-tdump reference to ...
14762 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
14763 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
14764 reference by Tru64 UNIX.
14765
14766 2011-04-26 Jakub Jelinek <jakub@redhat.com>
14767
14768 PR debug/48768
14769 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
14770 is error_mark_node, set value to NULL.
14771
14772 PR tree-optimization/48734
14773 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
14774 if return value from maybe_fold_*_comparsions isn't something
14775 the code is prepared to handle.
14776
14777 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
14778
14779 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
14780 mode check.
14781 (ext_QIreg_nomode_operands): Remove.
14782 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
14783 (*andsi_1): Ditto.
14784 (*andhi_1): Ditto.
14785
14786 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
14787
14788 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
14789
14790 2011-04-26 Richard Guenther <rguenther@suse.de>
14791
14792 * c-typeck.c (build_unary_op): Do not expand array-refs via
14793 pointer arithmetic. Only adjust qualifiers for function types.
14794
14795 2011-04-26 Richard Guenther <rguenther@suse.de>
14796
14797 PR middle-end/48694
14798 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
14799 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
14800 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
14801 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
14802
14803 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
14804
14805 * doc/extend.texi: Document __underlying_type.
14806
14807 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
14808
14809 * config/rs6000/titan.md (automata_option "progress"): Remove.
14810
14811 2011-04-25 Jeff Law <law@redhat.com>
14812
14813 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
14814
14815 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14816
14817 * system.h (ENUM_BITFIELD): Remove.
14818
14819 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
14820 Eric Botcazou <ebotcazou@adacore.com>
14821
14822 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
14823 for STORE_FLAG_VALUE==-1 case.
14824
14825 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
14826
14827 PR target/43804
14828 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
14829 LEGITIMATE_PIC_OPERAND_P.
14830
14831 2011-04-24 Jan Hubicka <jh@suse.cz>
14832
14833 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
14834 WPA hack.
14835 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
14836 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
14837 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
14838 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
14839 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
14840 Sanity check predicate length.
14841 (remap_predicate): Likewise; sanity check jump functions.
14842 (inline_read_section, inline_write_summary): Sanity check
14843 predicate length.
14844
14845 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
14846
14847 PR other/48748
14848 * doc/extend.texi (Type Traits): Document __is_standard_layout,
14849 __is_literal_type, and __is_trivial; update throughout about
14850 possibly cv-qualified void types.
14851
14852 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
14853
14854 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
14855 testsuite and make it version agnostic.
14856
14857 2011-04-22 Jan Hubicka <jh@suse.cz>
14858
14859 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
14860
14861 2011-04-23 Jakub Jelinek <jakub@redhat.com>
14862
14863 PR c/48685
14864 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
14865 to VOID_TYPE even around MODIFY_EXPR.
14866
14867 2011-04-22 Mike Stump <mikestump@comcast.net>
14868
14869 * gensupport.c (read_md_rtx): Fix typo in comment.
14870 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
14871 comment.
14872
14873 2011-04-22 Jan Hubicka <jh@suse.cz>
14874
14875 * gengtype.c (open_base_files): Add ipa-inline.h include.
14876 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
14877 ipa-prop.c; update all uses.
14878 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
14879 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
14880 merge summary of inlined function into former caller.
14881 * ipa-inline.c (max_benefit): Remove.
14882 (edge_badness): Compensate for removal of benefits.
14883 (update_caller_keys): Use
14884 reset_node_growth_cache/reset_edge_growth_cache.
14885 (update_callee_keys): Likewise.
14886 (update_all_callee_keys): Likewise.
14887 (inline_small_functions): Do not collect max_benefit; do not reset
14888 estimated_growth; call free_growth_caches and initialize_growth_caches.
14889 * ipa-inline.h (struct condition, type clause_t, struct predicate,
14890 struct size_time_entry): New structures.
14891 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
14892 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
14893 and estimated_growth.
14894 (edge_growth_cache_entry): New structure.
14895 (node_growth_cache, edge_growth_cache): New global vars.
14896 (estimate_growth): Turn into inline.
14897 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
14898 initialize_growth_caches, free_growth_caches): Declare.
14899 (estimate_edge_growth): Rewrite.
14900 (estimate_edge_time): Implement as inline cache lookup.
14901 (reset_node_growth_cache, reset_edge_growth_cache): New inline
14902 functions.
14903 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
14904 (NUM_CONDITIONS): New constant.
14905 (predicate_conditions): New enum.
14906 (IS_NOT_CONSTANT): New constant.
14907 (edge_removal_hook_holder): New var.
14908 (node_growth_cache, edge_growth_cache): New global vars.
14909 (true_predicate, single_cond_predicate, false_predicate,
14910 not_inlined_predicate, add_condition, add_clause, and_predicates,
14911 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
14912 dump_clause, dump_predicate, account_size_time,
14913 evaulate_conditions_for_edge): New functions.
14914 (inline_summary_alloc): Move to heap.
14915 (inline_node_removal_hook): Clear condition and entry vectors.
14916 (inline_edge_removal_hook): New function.
14917 (initialize_growth_caches, free_growth_caches): New function.
14918 (dump_inline_summary): Update.
14919 (edge_execution_predicate): New function.
14920 (will_be_nonconstant_predicate): New function.
14921 (estimate_function_body_sizes): Compute BB and constantness predicates.
14922 (compute_inline_parameters): Do not clear estimated_growth.
14923 (estimate_edge_size_and_time): New function.
14924 (estimate_calls_size_and_time): New function.
14925 (estimate_callee_size_and_time): New function.
14926 (remap_predicate): New function.
14927 (inline_merge_summary): New function.
14928 (do_estimate_edge_time): New function based on...
14929 (estimate_edge_time): ... this one.
14930 (do_estimate_edge_growth): New function.
14931 (do_estimate_growth): New function based on....
14932 (estimate_growth): ... this one.
14933 (inline_analyze_function): Analyze after deciding on jump functions.
14934 (inline_read_section): New function.
14935 (inline_read_summary): Use it.
14936 (inline_write_summary): Write all the new data.
14937 * ipa-prop.c (ipa_get_param_decl_index): Export.
14938 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
14939 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
14940 Declare.
14941 (ipa_get_lattice): Move here from ipa-cp.c
14942 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
14943 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
14944 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
14945 cgraph_edge_inlinable_p): Remove.
14946 * cgraphunit.c: Include ipainline.h
14947 (cgraph_process_new_functions): Update call of
14948 compute_inline_parameters.
14949
14950 2011-04-22 Richard Guenther <rguenther@suse.de>
14951
14952 * tree.c (build_int_cst): Properly create canonicalized integer
14953 constants.
14954 (build_int_cst_type): Remove scary comments.
14955
14956 2011-04-22 Xinliang David Li <davidxl@google.com>
14957
14958 * toplev.c (process_options): Enable -Werror=coverage-mismatch
14959 by default when -Wno-error is not specified.
14960 * opts-global.c (decode_options): Remove call to
14961 control_warning_options.
14962
14963 2011-04-22 Jakub Jelinek <jakub@redhat.com>
14964
14965 PR tree-optimization/48717
14966 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
14967 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
14968
14969 2011-04-22 Joseph Myers <joseph@codesourcery.com>
14970
14971 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
14972 definition where used.
14973
14974 2011-04-22 Jakub Jelinek <jakub@redhat.com>
14975
14976 PR c/48716
14977 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
14978 TREE_STATIC variables declared inside of some OpenMP construct.
14979
14980 2011-04-22 Martin Jambor <mjambor@suse.cz>
14981
14982 PR middle-end/48585
14983 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
14984
14985 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
14986
14987 PR c/36750
14988 * c-typeck.c (pop_init_level): Do not warn about initializing
14989 with ` = {0}'.
14990
14991 2011-04-22 Alan Modra <amodra@gmail.com>
14992
14993 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
14994 when returning call_cookie.
14995 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
14996 pointers, to functions with no more vector args than the current
14997 function, and some non-local calls for ABI_V4.
14998 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
14999 sibcall_nonlocal_aix64): Combine to ..
15000 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
15001 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
15002 (sibcall_value_nonlocal_aix<mode>): ..likewise.
15003 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
15004 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
15005 operand.
15006 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
15007 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
15008 sibcall_value_symbolic_64): Delete.
15009
15010 2011-04-21 Xinliang David Li <davidxl@google.com>
15011
15012 * cgraph.h: Remove pid.
15013 * cgraph.c: Remove pid.
15014 * value-prof.c (init_node_map): New function.
15015 (del_node_map): New function.
15016 (find_func_by_funcdef_no): New function.
15017 (gimple_ic_transform): Call new function.
15018 * cgraphunit.c (cgraph_finalize_function): Remove pid.
15019 * function.c (get_last_funcdef_no): New function.
15020 * function.h (get_last_funcdef_no): New function.
15021 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
15022 to libgcov function.
15023 (tree-profiling): Call node map init and delete function.
15024
15025 2011-04-21 Ian Lance Taylor <iant@google.com>
15026
15027 * godump.c (go_format_type): Use exported Go name for anonymous
15028 field name.
15029
15030 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
15031
15032 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
15033 Call builtin_function_type_list instead of builtin_function_type.
15034 (UNARY, BINARY, TRINARY, QUAD): Likewise.
15035
15036 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
15037
15038 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
15039 build_function_type_list instead of build_function_type.
15040 Delete variable `endlink'.
15041
15042 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
15043
15044 * config/s390/s390.c (s390_init_builtins): Call
15045 build_function_type_list instead of build_function_type.
15046
15047 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
15048
15049 * config/ia64/ia64.c (ia64_init_builtins): Call
15050 build_function_type_list instead of builtin_function_type.
15051
15052 2011-04-21 Easwaran Raman <eraman@google.com>
15053
15054 * cfgexpand.c (stack_var): Remove OFFSET...
15055 (add_stack_var): ...and its reference here...
15056 (expand_stack_vars): ...and here.
15057 (stack_var_cmp): Sort by descending order of size.
15058 (partition_stack_vars): Change heuristic.
15059 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
15060 (dump_stack_var_partition): Add newline after each partition.
15061
15062 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
15063 Jeff Law <law@redhat.com>
15064
15065 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
15066 * gengtype.c (matching_file_name_substitute): Likewise.
15067
15068 2011-04-21 Richard Guenther <rguenther@suse.de>
15069
15070 PR lto/48703
15071 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
15072
15073 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
15074
15075 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
15076
15077 2011-04-21 Richard Guenther <rguenther@suse.de>
15078
15079 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
15080 file name.
15081
15082 2011-04-21 Richard Guenther <rguenther@suse.de>
15083
15084 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
15085 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
15086 Use DECL_P, not SSA_VAR_P.
15087 (ptr_derefs_may_alias_p): Likewise.
15088 (ptr_deref_may_alias_ref_p_1): Likewise.
15089 (decl_refs_may_alias_p): Likewise.
15090 (refs_may_alias_p_1): Likewise.
15091 (ref_maybe_used_by_call_p_1): Likewise.
15092 (call_may_clobber_ref_p_1): Likewise.
15093 (indirect_ref_may_alias_decl_p): Assume indirect refrences
15094 are either MEM_REF or TARGET_MEM_REF.
15095 (indirect_refs_may_alias_p): Likewise.
15096 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
15097 for MEM_EXPR of indirect calls.
15098
15099 2011-04-21 Tristan Gingold <gingold@adacore.com>
15100
15101 * vmsdbgout.c (write_srccorr): Compute file length from the string.
15102 (dst_file_info_struct): Remove flen field.
15103 (lookup_filename): Remove code that set flen field.
15104
15105 2011-04-21 Tristan Gingold <gingold@adacore.com>
15106
15107 * config/ia64/ia64.c (ia64_start_function): Add a guard.
15108
15109 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
15110
15111 PR target/48708
15112 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
15113 vec_extract and vec_concat for non-SSE4_1 targets.
15114
15115 2011-04-21 Richard Guenther <rguenther@suse.de>
15116
15117 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
15118 return statements.
15119
15120 2011-04-21 Joseph Myers <joseph@codesourcery.com>
15121
15122 * config/i386/cygming.h (union tree_node, TREE): Don't define or
15123 undefine.
15124 (FILE): Don't undefine.
15125
15126 2011-04-21 Joseph Myers <joseph@codesourcery.com>
15127
15128 * config/alpha/alpha.c (struct machine_function): Use rtx, not
15129 struct rtx_def *.
15130 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
15131 struct rtx_def *.
15132 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
15133 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
15134 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
15135 rtx_def *.
15136 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
15137 definitions where used.
15138 * config/microblaze/microblaze.h (struct microblaze_args): Use
15139 rtx, not struct rtx_def *.
15140 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
15141 rtx_def *.
15142 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
15143 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
15144 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
15145 not struct rtx_def *.
15146 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
15147 struct rtx_def *.
15148 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
15149 rtx_def *.
15150 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
15151
15152 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
15153
15154 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
15155 operand_equal_p to compare DR_BASE_ADDRESSes.
15156 (vect_check_interleaving): Likewise.
15157
15158 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
15159
15160 PR target/46329
15161 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
15162 for all Neon struct constants.
15163
15164 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
15165
15166 * target.def (legitimate_constant_p): New hook.
15167 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
15168 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
15169 * doc/tm.texi: Regenerate.
15170 * hooks.h (hook_bool_mode_rtx_true): Declare.
15171 * hooks.c (hook_bool_mode_rtx_true): Define.
15172 * system.h (LEGITIMATE_CONSTANT_P): Poison.
15173 * calls.c (precompute_register_parameters): Replace uses of
15174 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
15175 (emit_library_call_value_1): Likewise.
15176 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
15177 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
15178 * ira-costs.c (scan_one_insn): Likewise.
15179 * recog.c (general_operand, immediate_operand): Likewise.
15180 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
15181 * reload1.c (init_eliminable_invariants): Likewise.
15182
15183 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
15184 mode argument.
15185 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
15186 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
15187 argument.
15188 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15189 * config/alpha/predicates.md (input_operand): Update call to
15190 alpha_legitimate_constant_p.
15191
15192 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
15193 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
15194 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
15195 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15196 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
15197 (arm_legitimate_constant_p): New functions.
15198 (arm_cannot_force_const_mem): Make static.
15199
15200 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
15201
15202 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
15203 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
15204 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
15205 instead of bfin_legitimate_constant_p.
15206 (bfin_legitimate_constant_p): Make static. Add a mode argument.
15207 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15208
15209 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
15210
15211 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
15212
15213 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
15214 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
15215 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15216 (frv_legitimate_constant_p): Make static. Add a mode argument.
15217
15218 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
15219 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
15220 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
15221
15222 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
15223 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
15224 * config/i386/i386.c (legitimate_constant_p): Rename to...
15225 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
15226 argument.
15227 (ix86_cannot_force_const_mem): Update accordingly.
15228 (ix86_legitimate_address_p): Likewise.
15229 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15230 * config/i386/i386.md: Update commentary.
15231
15232 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
15233 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
15234 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15235 (ia64_legitimate_constant_p): Make static. Add a mode argument.
15236
15237 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
15238
15239 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
15240 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
15241 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15242 (lm32_legitimate_constant_p): Make static. Add a mode argument.
15243
15244 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
15245 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
15246 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
15247
15248 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
15249 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15250 (m32r_legitimate_constant_p): New function.
15251
15252 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
15253 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
15254 LEGITIMATE_CONSTANT_P.
15255 (LEGITIMATE_CONSTANT_P): Delete.
15256 * config/m68k/m68k.c (m68k_expand_prologue): Call
15257 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
15258 (m68k_legitimate_constant_p): New function.
15259 * config/m68k/m68k.md: Update comments.
15260
15261 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
15262 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15263 (mcore_legitimate_constant_p): New function.
15264
15265 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
15266 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
15267 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
15268 Add a mode argument.
15269 (mep_legitimate_address): Update accordingly.
15270 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15271
15272 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
15273 Delete.
15274 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
15275 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
15276 static. Check OP's mode for VOIDmode.
15277 (microblaze_legitimate_constant_p): New function.
15278 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15279
15280 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
15281 * config/mips/mips.c (mips_legitimate_constant_p): New function.
15282 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
15283 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15284 * config/mips/predicates.md: Update comments.
15285
15286 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
15287 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
15288 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15289 (mmix_legitimate_constant_p): Make static, return a bool, and take
15290 a mode argument.
15291 (mmix_print_operand_address): Update accordingly.
15292
15293 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
15294 Delete.
15295 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
15296 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
15297 static. Add a mode argument.
15298 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15299
15300 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
15301
15302 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
15303 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15304 (pa_legitimate_constant_p): New function.
15305
15306 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
15307
15308 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
15309 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15310 (pdp11_legitimate_constant_p): New function.
15311
15312 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
15313 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15314 (rs6000_legitimate_constant_p): New function.
15315
15316 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
15317 (rx_legitimate_constant_p): ...this.
15318 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
15319 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
15320 (rx_legitimate_constant_p): ...this.
15321 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15322 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
15323
15324 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
15325 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
15326 * config/s390/s390.c (legitimate_constant_p): Rename to...
15327 (s390_legitimate_constant_p): ...this. Make static, return a bool,
15328 and add a mode argument.
15329 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15330
15331 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
15332
15333 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
15334 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15335 (sh_legitimate_constant_p): New function.
15336
15337 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
15338 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
15339 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15340 (legitimate_constant_p): Rename to...
15341 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
15342 argument.
15343 (constant_address_p): Update accordingly.
15344
15345 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
15346 argument and return a bool.
15347 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
15348 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15349 (spu_legitimate_constant_p): Add a mode argument and return a bool.
15350 (spu_rtx_costs): Update accordingly.
15351 * config/spu/predicates.md (vec_imm_operand): Likewise.
15352
15353 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
15354
15355 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
15356 * config/v850/v850.c (v850_legitimate_constant_p): New function.
15357 (TARGET_LEGITIMATE_CONSTANT_P): Define.
15358
15359 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
15360 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
15361 * config/vax/vax.c (legitimate_constant_p): Likewise.
15362
15363 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
15364 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15365 (xtensa_legitimate_constant_p): New function.
15366
15367 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
15368
15369 * target.def (cannot_force_const_mem): Add a mode argument.
15370 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
15371 * doc/tm.texi: Regenerate.
15372 * hooks.h (hook_bool_mode_rtx_false): Declare.
15373 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
15374 (hook_bool_mode_const_rtx_true): Likewise.
15375 (hook_bool_mode_rtx_false): New function.
15376 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
15377 to be non-VOID. Update call to cannot_force_const_mem.
15378 (find_reloads): Update accordingly.
15379 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
15380 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
15381 argument.
15382 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
15383 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
15384 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
15385 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
15386 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
15387 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
15388 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
15389 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
15390 (m68k_cannot_force_const_mem): ...this new function.
15391 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
15392 argument.
15393 (mips_const_insns, mips_legitimize_const_move): Update calls.
15394 (mips_secondary_reload_class): Likewise.
15395 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
15396 (pa_cannot_force_const_mem): ...this new function.
15397 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
15398 (rs6000_cannot_force_const_mem): ...this new function.
15399 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
15400 argument.
15401 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
15402 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
15403 to...
15404 (xtensa_cannot_force_const_mem): ...this new function.
15405
15406 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
15407
15408 * config/mips/mips.c (mips16_build_function_stub): Call
15409 build_function_type_list instead of build_function_type.
15410 (mips16_build_call_stub): Likewise.
15411
15412 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
15413
15414 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
15415 instead of build_function_type.
15416
15417 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
15418
15419 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
15420 instead of build_function_type.
15421
15422 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
15423
15424 PR target/48678
15425 * config/i386/i386.md (insv): Change operand 0 constraint to
15426 "register_operand". Change operand 1 and 2 constraint to
15427 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
15428 * config/i386/sse.md (sse4_1_pinsrb): Export.
15429 (sse2_pinsrw): Ditto.
15430 (sse4_1_pinsrd): Ditto.
15431 (sse4_1_pinsrq): Ditto.
15432 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
15433 * config/i386/i386.c (ix86_expand_pinsr): New.
15434
15435 2011-04-20 Easwaran Raman <eraman@google.com>
15436
15437 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
15438 containing union type only with -fstrict-aliasing.
15439
15440 2011-04-20 Jim Meyering <meyering@redhat.com>
15441
15442 Remove useless if-before-free tests.
15443 * calls.c (expand_call, save_area): Likewise.
15444 * cfgcleanup.c (try_forward_edges): Likewise.
15445 * collect2.c (collect_execute): Likewise.
15446 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
15447 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
15448 * coverage.c (coverage_checksum_string): Likewise.
15449 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
15450 * cselib.c (cselib_init): Likewise.
15451 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
15452 (df_set_clean_cfg): Likewise.
15453 * function.c (free_after_compilation): Likewise.
15454 * gcc.c (do_spec_1, main): Likewise.
15455 * gcov.c (create_file_names): Likewise.
15456 * gensupport.c (identify_predicable_attribute): Likewise.
15457 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
15458 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
15459 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
15460 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
15461 * ipa-pure-const.c (local_pure_const): Likewise.
15462 * ipa-reference.c (propagate): Likewise.
15463 * ira-costs.c (free_ira_costs): Likewise.
15464 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
15465 * matrix-reorg.c (mat_free): Likewise.
15466 * prefix.c (get_key_value): Likewise.
15467 * profile.c (compute_value_histograms): Likewise.
15468 * reload1.c (free_reg_equiv): Likewise.
15469 * sched-deps.c (free_deps): Likewise.
15470 * sel-sched-ir.c (fence_clear): Likewise.
15471 * sese.c (set_rename, if_region_set_false_region): Likewise.
15472 * tree-data-ref.c (free_rdg): Likewise.
15473 * tree-eh.c (lower_try_finally): Likewise.
15474 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
15475 * tree-ssa-live.c (delete_var_map): Likewise.
15476 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
15477 * tree-ssa-pre.c (phi_trans_add): Likewise.
15478
15479 2011-04-20 Jakub Jelinek <jakub@redhat.com>
15480
15481 PR tree-optimization/48611
15482 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
15483 beyond ERT_MUST_NOT_THROW region.
15484
15485 2011-04-20 Catherine Moore <clm@codesourcery.com>
15486
15487 * config/mips/mips.opt (mfix-24k): New.
15488 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
15489 * config/mips/mips.md (length): Increase by 4 for stores if
15490 fixing 24K errata.
15491 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
15492 all noreorder if fixing 24K errata.
15493 * doc/invoke.texi: Document mfix-24k.
15494
15495 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
15496
15497 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
15498 quad-word modes, reduce to 9-bit index range when above 1016 limit.
15499
15500 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
15501
15502 * config/arm/arm.c (arm_gen_constant): Move movw support ....
15503 (const_ok_for_op): ... to here.
15504
15505 2011-04-20 Kai Tietz <ktietz@redhat.com>
15506
15507 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
15508 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
15509
15510 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
15511
15512 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
15513
15514 2011-04-20 Richard Guenther <rguenther@suse.de>
15515
15516 PR tree-optimization/47892
15517 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
15518 are if-convertible.
15519
15520 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
15521
15522 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
15523
15524 2011-04-20 Tristan Gingold <gingold@adacore.com>
15525
15526 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
15527
15528 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
15529
15530 PR target/18145
15531
15532 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
15533 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
15534 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
15535 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
15536 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
15537
15538 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
15539 New prototype.
15540
15541 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
15542 (avr_asm_named_section, avr_asm_output_aligned_common,
15543 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
15544 New functions to update...
15545 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
15546 (avr_asm_init_sections): Overwrite section callbacks for
15547 data_section, bss_section.
15548 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
15549 from here to...
15550 (avr_file_end): ...here.
15551
15552 2011-04-20 Richard Guenther <rguenther@suse.de>
15553
15554 PR middle-end/48695
15555 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
15556 objects and types here. Adjust for their offset before comparing.
15557
15558 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
15559
15560 * tree-vect-stmts.c (vectorizable_store): Only chain one related
15561 statement per copy.
15562
15563 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
15564
15565 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
15566 (GIMPLE_H): Include $(INTERNAL_FN_H).
15567 (OBJS-common): Add internal-fn.o.
15568 (internal-fn.o): New rule.
15569 * internal-fn.def: New file.
15570 * internal-fn.h: Likewise.
15571 * internal-fn.c: Likewise.
15572 * gimple.h: Include internal-fn.h.
15573 (GF_CALL_INTERNAL): New gf_mask.
15574 (gimple_statement_call): Put fntype into a union with a new
15575 internal_fn field.
15576 (gimple_build_call_internal): Declare.
15577 (gimple_build_call_internal_vec): Likewise.
15578 (gimple_call_same_target_p): Likewise.
15579 (gimple_call_internal_p): New function.
15580 (gimple_call_internal_fn): Likewise.
15581 (gimple_call_fntype): Return null for internal calls.
15582 (gimple_call_set_fntype): Assert that the function is not internal.
15583 (gimple_call_set_fn): Likewise.
15584 (gimple_call_set_fndecl): Likewise.
15585 (gimple_call_set_internal_fn): New function.
15586 (gimple_call_addr_fndecl): Handle null functions.
15587 (gimple_call_return_type): Likewise null types.
15588 * gimple.c (gimple_build_call_internal_1): New function.
15589 (gimple_build_call_internal): Likewise.
15590 (gimple_build_call_internal_vec): Likewise.
15591 (gimple_call_same_target_p): Likewise.
15592 (gimple_call_flags): Handle calls to internal functions.
15593 (gimple_call_fnspec): New function.
15594 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
15595 (gimple_has_side_effects): Handle null functions.
15596 (gimple_rhs_has_side_effects): Likewise.
15597 (gimple_call_copy_skip_args): Handle calls to internal functions.
15598 * cfgexpand.c (expand_call_stmt): Likewise.
15599 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
15600 * gimple-fold.c (gimple_fold_call): Handle null functions.
15601 (gimple_fold_stmt_to_constant_1): Don't fold
15602 calls to internal functions.
15603 * gimple-low.c (gimple_check_call_args): Handle calls to internal
15604 functions.
15605 * gimple-pretty-print.c (dump_gimple_call): Likewise.
15606 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
15607 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
15608 (do_warn_unused_result): Likewise.
15609 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
15610 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
15611 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
15612 the target of a call.
15613 (initialize_hash_element): Update accordingly.
15614 (hashable_expr_equal_p): Use gimple_call_same_target_p.
15615 (iterative_hash_hashable_expr): Handle calls to internal functions.
15616 (print_expr_hash_elt): Likewise.
15617 * tree-ssa-pre.c (can_value_number_call): Likewise.
15618 (eliminate): Handle null functions.
15619 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
15620 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
15621 (find_func_aliases): Likewise.
15622 * value-prof.c (gimple_ic_transform): Likewise.
15623 (gimple_indirect_call_to_profile): Likewise.
15624 * lto-streamer-in.c (input_gimple_stmt): Likewise.
15625 * lto-streamer-out.c (output_gimple_stmt): Likewise.
15626
15627 2011-04-19 Jan Hubicka <jh@suse.cz>
15628
15629 * ipa-inline-transform.c (save_inline_function_body): Add comments.
15630 * ipa-inline.c (inline_small_functions): Compute summaries first,
15631 populate heap later.
15632
15633 2011-04-19 Jan Hubicka <jh@suse.cz>
15634
15635 * cgraph.h (save_inline_function_body): Remove.
15636 * ipa-inline-transform.c: New file, broke out of...
15637 * ipa-inline.c: ... this one; Update toplevel comment.
15638 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
15639 make global.
15640 (update_noncloned_frequencies): Move to ipa-inline-transform.c
15641 (cgraph_mark_inline_edge): Rename to inline_call; move to
15642 ipa-inline-transform.c.
15643 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
15644 move to ipa-inline-transform.c
15645 (recursive_inlining, inline_small_functions, flatten_function,
15646 ipa_inline, inline_always_inline_functions,
15647 early_inline_small_functions): Update.
15648 (inline_transform): Move to ipa-inline-transform.c.
15649 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
15650 Declare.
15651 * Makefile.in (ipa-inline-transform.o): New file.
15652 * cgraphunit.c (save_inline_function_body): Move to
15653 ipa-inline-transform.c
15654
15655 2011-04-19 DJ Delorie <dj@redhat.com>
15656
15657 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
15658 registers if we already know there aren't any.
15659 (m32c_emit_epilogue): Don't emit a barrier here.
15660 (m32c_emit_eh_epilogue): Likewise.
15661 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
15662 operands at expand time.
15663 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
15664 int" wchar type.
15665 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
15666 duplicates. Provide aliases instead.
15667 * config/m32c/prologue.md (eh_return): Emit a barrier here.
15668 (eh_epilogue): Add a "(return)" here as a hint to other parts of
15669 the compiler.
15670
15671 2011-04-19 Anatoly Sokolov <aesok@post.ru>
15672
15673 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
15674 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
15675 (general_or_i64_p, sparc_register_move_cost): New function.
15676
15677 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15678
15679 * doc/install.texi (Configuration, --enable-threads): Remove mach.
15680 Add lynx, mipssde. Sort table.
15681
15682 2011-04-19 Xinliang David Li <davidxl@google.com>
15683
15684 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
15685 not negative.
15686
15687 2011-04-19 Jakub Jelinek <jakub@redhat.com>
15688
15689 PR target/48678
15690 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
15691 is a SUBREG with non-MODE_INT mode inside of it.
15692
15693 2011-04-19 Martin Jambor <mjambor@suse.cz>
15694
15695 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
15696 also according to actual contants.
15697 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
15698 (gimple_fold_call): Use it.
15699 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
15700
15701 2011-04-19 Martin Jambor <mjambor@suse.cz>
15702
15703 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
15704 non-pointer assignments.
15705
15706 2011-04-19 Martin Jambor <mjambor@suse.cz>
15707
15708 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
15709 account anc_offset and otr_type from the indirect edge info.
15710 * ipa-prop.c (get_ancestor_addr_info): New function.
15711 (compute_complex_ancestor_jump_func): Assignment analysis moved to
15712 get_ancestor_addr_info, call it.
15713 (ipa_note_param_call): Do not initialize information about polymorphic
15714 calls, return the indirect call graph edge. Remove the last
15715 parameter, adjust all callers.
15716 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
15717 parameters. Initialize polymorphic information in the indirect edge.
15718
15719 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
15720
15721 PR lto/48148
15722 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
15723 the types if they have different enumeration identifiers.
15724
15725 2011-04-19 Jan Hubicka <jh@suse.cz>
15726
15727 * cgraph.h (cgraph_optimize_for_size_p): Declare.
15728 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
15729 * predict.c (cgraph_optimize_for_size_p): Break out from ...
15730 (optimize_function_for_size_p) ... here.
15731
15732 2011-04-19 Richard Guenther <rguenther@suse.de>
15733
15734 PR lto/48207
15735 * tree.c (free_lang_data): Do not reset the decl-assembler-name
15736 langhook.
15737
15738 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
15739
15740 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
15741 if DECL_NO_INLINE_WARNING_P is set on the function.
15742
15743 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
15744
15745 PR fortran/47976
15746 * reload1.c (inc_for_reload): Return void. All callers changed.
15747 (emit_input_reload_insns): Don't try to delete previous output
15748 reloads to a register, or record spill_reg_store for autoincs.
15749
15750 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
15751
15752 * gengtype.h: Updated copyright year.
15753 (struct input_file_st): Add inpisplugin field.
15754 (type_fileloc): New function.
15755 * gengtype.c
15756 (write_typed_struct_alloc_def): Add gcc_assert.
15757 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
15758 (write_typed_alloc_defns): Don't output for plugin files.
15759 (input_file_by_name): Clear inpisplugin field.
15760 (main): Set inpisplugin field for plugin files.
15761
15762 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
15763
15764 * gengtype-state.c (string_eq): New.
15765 (read_state): Use string_eq instead of strcmp when creating the
15766 state_ident_tab.
15767
15768 2011-04-19 Wei Guozhi <carrot@google.com>
15769
15770 PR target/47855
15771 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
15772 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
15773 linkage.
15774 * config/arm/constraints.md (Uu): New constraint.
15775 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
15776
15777 2011-04-19 Tristan Gingold <gingold@adacore.com>
15778
15779 * config.gcc (-*-*-*vms): Added.
15780 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
15781 definitions moved.
15782 * config/vms/vms-ld.c: New file.
15783 * config/vms/vms-ar.c: New file.
15784 * config/vms/t-vmsnative: New file.
15785
15786 2011-04-18 Xinliang David Li <davidxl@google.com>
15787
15788 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
15789
15790 2011-04-18 Jakub Jelinek <jakub@redhat.com>
15791
15792 PR middle-end/48661
15793 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
15794 if TREE_TYPE (v) is non-NULL.
15795
15796 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
15797 gimple_get_virt_mehtod_for_binfo.
15798 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
15799 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
15800 callers.
15801 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15802
15803 2011-04-18 Michael Matz <matz@suse.de>
15804 Steve Ellcey <sje@cup.hp.com>
15805
15806 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
15807 use its mode as source mode if it isn't VOIDmode.
15808
15809 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
15810
15811 * doc/passes.texi: Fill crossref nodes.
15812
15813 2011-04-18 Jim Meyering <meyering@redhat.com>
15814
15815 Fix doubled-word typos in comments and strings
15816 * config/alpha/vms-unwind.h: s/for for/for/
15817 * config/arm/unwind-arm.h: Likewise.
15818 * config/microblaze/microblaze.c: Likewise.
15819 * config/sh/constraints.md: s/in in/in/
15820 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
15821
15822 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
15823
15824 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
15825 (AVX_FLOAT_MODE_P): Ditto.
15826 (AVX128_VEC_FLOAT_MODE_P): Ditto.
15827 (AVX256_VEC_FLOAT_MODE_P): Ditto.
15828 (AVX_VEC_FLOAT_MODE_P): Ditto.
15829 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
15830 (UNSPEC_MASKSTORE): Ditto.
15831 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
15832 Merge from <sse>_movmsk<ssemodesuffix> and
15833 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
15834 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
15835 iterator.
15836 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
15837 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
15838 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
15839
15840 2011-04-18 Jan Hubicka <jh@suse.cz>
15841
15842 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
15843
15844 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
15845 (want_inline_function_called_once_p): Break out the logic from
15846 ipa_inline.
15847 (edge_badness): Ensure that profile is not misupdated.
15848 (lookup_recursive_calls): Prioritize by call frequencies.
15849 (inline_small_functions): Move program size estimates here;
15850 actually process whole queue even when unit growth has been
15851 met. (to properly compute inline_failed reasons and for the
15852 case unit size decrease.) Revisit comments on recursive inlining.
15853 (ipa_inline): Remove unit summary code; first inline hot calls
15854 of functions called once, cold calls next.
15855 (order, nnodes): Remove unused variables.
15856 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
15857 (GTFILES): Remove ipa-inline.c
15858 * sel-sched.c (fill_insns): Silence uninitialized var warning.
15859
15860 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
15861
15862 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
15863
15864 2011-04-18 Jie Zhang <jie@codesourcery.com>
15865 Richard Earnshaw <rearnsha@arm.com>
15866
15867 * arm.c (neon_builtin_type_bits): Remove.
15868 (typedef enum neon_builtin_mode): New.
15869 (T_MAX): Don't define.
15870 (typedef enum neon_builtin_datum): Remove bits, codes[],
15871 num_vars and base_fcode. Add mode, code and fcode.
15872 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
15873 VAR10): Change accordingly.
15874 (neon_builtin_data[]): Change accordingly
15875 (arm_init_neon_builtins): Change accordingly.
15876 (neon_builtin_compare): Remove.
15877 (locate_neon_builtin_icode): Remove.
15878 (arm_expand_neon_builtin): Change accordingly.
15879
15880 * arm.h (enum arm_builtins): Move to ...
15881 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
15882
15883 * arm.c (arm_builtin_decl): Declare.
15884 (TARGET_BUILTIN_DECL): Define.
15885 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
15886 (arm_builtin_decls[]): New.
15887 (arm_init_neon_builtins): Store builtin declarations in
15888 arm_builtin_decls[].
15889 (arm_init_tls_builtins): Likewise.
15890 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
15891 (arm_builtin_decl): New.
15892
15893 2011-04-18 Richard Guenther <rguenther@suse.de>
15894
15895 * tree.c (upper_bound_in_type): Build properly canonicalized
15896 INTEGER_CSTs.
15897 (lower_bound_in_type): Likewise.
15898
15899 2011-04-18 Richard Guenther <rguenther@suse.de>
15900
15901 * gimple.h (gimple_call_addr_fndecl): New function.
15902 (gimple_call_fndecl): Use it.
15903 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
15904 for direct calls.
15905 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
15906 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
15907
15908 2011-04-18 Richard Guenther <rguenther@suse.de>
15909
15910 PR middle-end/48650
15911 * tree.c (build_string): STRING_CST is now derived from tree_typed.
15912
15913 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
15914
15915 PR lto/48492
15916 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
15917 DECL_IN_CONSTANT_POOL without RTL.
15918
15919 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
15920 Ira Rosen <ira.rosen@linaro.org>
15921
15922 PR target/48252
15923 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
15924 to match neon_vzip/vuzp/vtrn_internal.
15925 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
15926 outputs explicitly dependent on both inputs.
15927 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
15928
15929 2011-04-18 Jakub Jelinek <jakub@redhat.com>
15930
15931 PR tree-optimization/48616
15932 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
15933 whether the shift is by scalar or vector based on whether all SLP
15934 scalar stmts have the same rhs.
15935
15936 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
15937
15938 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
15939 memory operands.
15940
15941 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
15942
15943 PR target/43700
15944 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
15945 registers.
15946
15947 2011-04-17 Jan Hubicka <jh@suse.cz>
15948
15949 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
15950 * cgrpahunit.c (cgraph_finalize_function): Do not set
15951 finalized_by_frontend.
15952 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
15953 finalized_by_frontend.
15954
15955 2011-04-17 Jan Hubicka <jh@suse.cz>
15956
15957 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
15958 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
15959 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
15960 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
15961 method.
15962 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
15963 gimple-fold.c
15964 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
15965
15966 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
15967
15968 PR lto/48538
15969 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
15970 is non-null before accessing it.
15971 (input_cgraph): Remove trailing spaces.
15972
15973 2011-04-17 Revital Eres <revital.eres@linaro.org>
15974
15975 * params.def (sms-min-sc): New param flag.
15976 * modulo-sched.c (sms_schedule): Use it.
15977 * doc/invoke.texi (sms-min-sc): Document it.
15978
15979 2011-04-17 Jan Hubicka <jh@suse.cz>
15980
15981 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
15982 present, also set gimple_call_set_cannot_inline.
15983 * ipa-inline.c: Update toplevel comment.
15984 (MAX_TIME): Remove.
15985 (cgraph_clone_inlined_nodes): Fix linebreaks.
15986 (cgraph_check_inline_limits): Restructure to ...
15987 (caller_growth_limits): ... this one; be more tolerant
15988 on growth in nested inline chains; add explanatory comment;
15989 fix stack accounting thinko introduced by previous patch.
15990 (cgraph_default_inline_p): Remove.
15991 (report_inline_failed_reason): New function.
15992 (can_inline_edge_p): New function.
15993 (can_early_inline_edge_p): New function.
15994 (leaf_node_p): Move upwards in file.
15995 (want_early_inline_function_p): New function.
15996 (want_inline_small_function_p): New function.
15997 (want_inline_self_recursive_call_p): New function.
15998 (cgraph_edge_badness): Rename to ...
15999 (edge_badness) ... this one; fix linebreaks.
16000 (update_edge_key): Update call of edge_baddness; add
16001 detailed dump about queue updates.
16002 (update_caller_keys): Use can_inline_edge_p and
16003 want_inline_small_function_p.
16004 (cgraph_decide_recursive_inlining): Rename to...
16005 (recursive_inlining): Use can_inline_edge_p and
16006 want_inline_self_recursive_call_p; simplify and remove no longer
16007 valid FIXME.
16008 (cgraph_set_inline_failed): Remove.
16009 (add_new_edges_to_heap): Use can_inline_edge_p and
16010 want_inline_small_function_p.
16011 (cgraph_decide_inlining_of_small_functions): Rename to ...
16012 (inline_small_functions): ... this one; cleanup; use
16013 can/want predicates; cleanup debug ouput; work edges till fibheap
16014 is exhausted and do not stop once unit growth is reached; remove
16015 later loop processing remaining edges.
16016 (cgraph_flatten): Rename to ...
16017 (flatten_function): ... this one; use can_inline_edge_p
16018 and can_early_inline_edge_p predicates.
16019 (cgraph_decide_inlining): Rename to ...
16020 (ipa_inline): ... this one; remove unreachable nodes before
16021 inlining functions called once; simplify the pass.
16022 (cgraph_perform_always_inlining): Rename to ...
16023 (inline_always_inline_functions): ... this one; use
16024 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
16025 (cgraph_decide_inlining_incrementally): Rename to ...
16026 (early_inline_small_functions): ... this one; simplify
16027 using new predicates; cleanup; make dumps prettier.
16028 (cgraph_early_inlining): Rename to ...
16029 (early_inliner): newer inline regular functions into always-inlines;
16030 fix updating of call stmt summaries.
16031 (pass_early_inline): Update for new names.
16032 (inline_transform): Fix formating.
16033 (gate_cgraph_decide_inlining): Rename to ...
16034 (pass_ipa_inline): ... this one.
16035 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
16036 * ipa-inline-analysis.c (dump_inline_summary): Update.
16037 (compute_inline_parameters): Do not compute disregard_inline_limits;
16038 look for mismatching arguments.
16039 (estimate_growth): Fix handlig of non-trivial self recursion.
16040 (inline_read_summary): Do not read info->disregard_inline_limits.
16041 (inline_write_summary): Do not write info->disregard_inline_limits.
16042 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
16043 and move all checks into can_inline_edge_p predicate; re-enable code
16044 comparing optimization levels.
16045 (expand_call_inline): Do not test inline_forbidden_into_p.
16046 * Makefile.in (ipa-inline.o): Update arguments.
16047
16048 2011-04-17 Revital Eres <revital.eres@linaro.org>
16049
16050 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
16051
16052 2011-04-17 Revital Eres <revital.eres@linaro.org>
16053
16054 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
16055
16056 2011-04-17 Michael Matz <matz@suse.de>
16057
16058 PR tree-optimization/48622
16059 PR lto/48645
16060 * ipa-inline-analysis.c (inline_read_summary): Read size/time
16061 in same order as they're written.
16062
16063 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16064
16065 * config/pa/predicates.md: Reorganize and simplify predicates.
16066 Eliminate duplicate code checks.
16067 (arith_operand): Rename to arith14_operand
16068 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
16069 * config/pa/pa.md: Use renamed operands.
16070 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
16071 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
16072 arith11_operand, adddi3_operand, indexed_memory_operand,
16073 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
16074 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
16075 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
16076 move_dest_operand, move_src_operand, prefetch_cc_operand,
16077 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
16078 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
16079 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
16080 div_operand, int5_operand, movb_comparison_operator,
16081 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
16082 arith_double_operand, ireg_operand, lhs_lshift_operand,
16083 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
16084 integer_store_memory_operand): Likewise.
16085 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
16086 (integer_store_memory_operand, read_only_operand,
16087 function_label_operand, borx_reg_operand,
16088 non_hard_reg_operand): Likewise.
16089 (eq_neq_comparison_operator): Delete unused operator.
16090 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
16091 function_label_operand.
16092 (emit_move_sequence): Likewise.
16093
16094 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
16095
16096 * config/i386/sse.md (sseunpackmode): New mode attribute.
16097 (ssepackmode): Ditto.
16098 (vec_pack_trunc_<mode>): Macroize expander from
16099 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
16100 (vec_unpacks_lo_<mode>): Macroize expander from
16101 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16102 (vec_unpacks_hi_<mode>): Macroize expander from
16103 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16104 (vec_unpacku_lo_<mode>): Macroize expander from
16105 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16106 (vec_unpacku_hi_<mode>): Macroize expander from
16107 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16108 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
16109 ix86_expand_sse4_unpack.
16110 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
16111
16112 2011-04-16 Jan Hubicka <jh@suse.cz>
16113
16114 * cgraphbuild.c: Include ipa-inline.h.
16115 (reset_inline_failed): Use initialize_inline_failed.
16116 * cgraph.c: Include ipa-inline.h.
16117 (cgraph_create_node_1): Do not initialize estimated_growth.
16118 (initialize_inline_failed): More to ipa-inline-analysis.c
16119 (dump_cgraph_node): Do not dump inline flags.
16120 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
16121 and disregard_inline_limits flags.
16122 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
16123 time, size, estimated_growth.
16124 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
16125 Update.
16126 * cgraphunit.c (cgraph_decide_is_function_needed): Use
16127 DECL_DISREGARD_INLINE_LIMITS.
16128 (cgraph_analyze_function): Do not initialize
16129 node->local.disregard_inline_limits.
16130 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
16131 inlinable, versionable and disregard_inline_limits.
16132 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
16133 cgraph_check_inline_limits, cgraph_default_inline_p,
16134 cgraph_edge_badness, update_caller_keys, update_callee_keys,
16135 add_new_edges_to_heap): Update.
16136 (cgraph_decide_inlining_of_small_function): Update; set
16137 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
16138 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
16139 cgraph_decide_inlining_incrementally): Update.
16140 * ipa-inline.h (inline_summary): Add inlinable, versionable,
16141 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
16142 time, size and estimated_growth parameters.
16143 (estimate_edge_growth): Update.
16144 (initialize_inline_failed): Declare.
16145 * ipa-split.c: Include ipa-inline.h
16146 (execute_split_functions): Update.
16147 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
16148 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
16149 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
16150 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
16151 estimated_growth to INT_MIN.
16152 (inline_node_duplication_hook): Likewise.
16153 (dump_inline_summary): Dump new fields.
16154 (compute_inline_parameters): Update.
16155 (estimate_edge_time, estimate_time_after_inlining,
16156 estimate_size_after_inlining, estimate_growth, inline_read_summary,
16157 inline_write_summary):
16158 (initialize_inline_failed): Move here from cgraph.c.
16159 * tree-sra.c: Include ipa-inline.h.
16160 (ipa_sra_preliminary_function_checks): Update.
16161 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
16162 ipa-inline.h.
16163
16164 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
16165
16166 * config/i386/sse.md (V16): New mode iterator.
16167 (VI1, VI8): Ditto.
16168 (AVXMODEQI, AVXMODEDI): Remove.
16169 (sse2, sse3): New mode attribute.
16170 (mov<mode>): Use V16 mode iterator.
16171 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
16172 (push<mode>1): Use V16 mode iterator.
16173 (movmisalign<mode>): Ditto.
16174 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
16175 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
16176 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
16177 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
16178 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
16179 avx_movdqu<avxmodesuffix>.
16180 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
16181 *avx_movdqu<avxmodesuffix>.
16182 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
16183 avx_lddqu<avxmodesuffix>.
16184 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
16185 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
16186 avx_movnt<AVXMODEDI:mode>.
16187 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
16188 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
16189
16190 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
16191
16192 PR target/48629
16193 * haifa-sched.c (prune_ready_list, schedule_block): Use
16194 sched_pressure_p rather than flag_sched_pressure.
16195
16196 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
16197
16198 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
16199 cgraph_get_node instead of cgraph_get_create_node.
16200
16201 2011-04-15 Jakub Jelinek <jakub@redhat.com>
16202
16203 * cfgexpand.c (expand_debug_expr): Use
16204 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
16205
16206 2011-04-15 Michael Matz <matz@suse.de>
16207
16208 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
16209 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
16210 * function.c (gimplify_parameters): Ditto.
16211 * gimplify.c (gimplify_vla_decl): Ditto.
16212
16213 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
16214 (gimple_call_set_alloca_for_var): New inline function.
16215 (gimple_call_alloca_for_var_p): Ditto.
16216 * gimple.c (gimple_build_call_from_tree): Remember
16217 CALL_ALLOCA_FOR_VAR_P state.
16218 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
16219
16220 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
16221 calls if they were for VLA objects.
16222
16223 2011-04-15 Martin Jambor <mjambor@suse.cz>
16224
16225 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
16226 of ADR_EXPRs.
16227
16228 2011-04-15 Martin Jambor <mjambor@suse.cz>
16229
16230 PR middle-end/48601
16231 * tree-emutls.c (lower_emutls_function_body): Call
16232 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
16233 result is non-NULL.
16234
16235 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
16236
16237 * c-decl.c (detect_field_duplicates): Call
16238 objc_detect_field_duplicates instead of objc_get_interface_ivars.
16239
16240 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
16241
16242 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
16243 * gimple.c (gimple_asm_clobbers_memory_p): Define.
16244 * ipa-pure-const.c (check_stmt): Call it.
16245 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
16246
16247 2011-04-15 Richard Guenther <rguenther@suse.de>
16248
16249 PR tree-optimization/48290
16250 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
16251 Properly decide inhibiting propagation based on the valueized
16252 operand. Do loop-closed SSA form preserving here ...
16253 (init_copy_prop): ... not here.
16254
16255 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
16256
16257 PR target/48612
16258 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
16259 (*ieee_smax<mode>3): Likewise.
16260
16261 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16262
16263 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
16264 Replace match_operand with match_dup for the third operand in
16265 these expanders.
16266
16267 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
16268
16269 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
16270 to track processing of conditionals. Update all callers.
16271 (try_combine, simplify_if_then_else): Update.
16272
16273 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
16274
16275 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
16276 -fsched-pressure.
16277
16278 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
16279
16280 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
16281 instead of match_operand for operand 3.
16282
16283 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
16284
16285 * recog.h (insn_operand_data): Add an "allows_mem" field.
16286 * genoutput.c (output_operand_data): Initialize it.
16287 * optabs.c (maybe_legitimize_operand_same_code): New function.
16288 (maybe_legitimize_operand): Use it when matching the original
16289 op->value.
16290
16291 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
16292
16293 * gimplify.c: Fix issues in comments throughout.
16294 (voidify_wrapper_expr): Fix long line.
16295 (build_stack_save_restore): Likewise.
16296 (gimplify_loop_expr): Likewise.
16297 (gimplify_compound_lval): Likewise.
16298 (gimplify_init_ctor_eval): Likewise.
16299 (gimplify_modify_expr_rhs): Likewise.
16300 (omp_notice_threadprivate_variable): Likewise.
16301
16302 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
16303
16304 * cfgexpand.c (expand_call_stmt): Convert the function type to the
16305 original one if this is not a builtin function.
16306
16307 2011-04-14 Jakub Jelinek <jakub@redhat.com>
16308
16309 PR target/48605
16310 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
16311 offset it as needed based on top 2 bits in operands[3], change
16312 MEM mode to SFmode and mask those 2 bits away from operands[3].
16313
16314 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
16315
16316 * c-parser.c (c_parser_objc_protocol_definition): Updated for
16317 change from objc_declare_protocols() to objc_declare_protocol().
16318
16319 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
16320
16321 * config/i386/sse.md (sse4_1): New mode attribute.
16322 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
16323 avx_blend<ssemodesuffix><avxmodesuffix> and
16324 sse4_1_blend<ssemodesuffix> using VF mode iterator.
16325 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
16326 avx_blendv<ssemodesuffix><avxmodesuffix> and
16327 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
16328 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
16329 avx_dp<ssemodesuffix><avxmodesuffix> and
16330 sse4_1_dp<ssemodesuffix> using VF mode iterator.
16331 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
16332 (sse4_1_packusdw): Merge with *avx_packusdw.
16333 (sse4_1_pblendvb): Merge with *avx_pblendvb.
16334 (sse4_1_pblendw): Merge with *avx_pblendw.
16335 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
16336 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
16337 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
16338 VF mode iterator.
16339 (sse4_1_round<ssescalarmodesuffix>): Merge with
16340 *avx_round<ssescalarmodesuffix>.
16341 (aesenc): Merge with *avx_aesenc.
16342 (aesenclast): Merge with *avx_aesenclast.
16343 (aesdec): Merge with *avx_aesdec.
16344 (aesdeclast): Merge with *avx_aesdeclast.
16345 (pclmulqdq): Merge with *pclmulqdq.
16346 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
16347 New predicate.
16348 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
16349
16350 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
16351
16352 PR middle-end/48608
16353 * cfgexpand.c (get_decl_align_unit): Renamed to ...
16354 (align_local_variable): This. Update DECL_ALIGN.
16355 (add_stack_var): Updated.
16356 (expand_one_stack_var): Likewise.
16357
16358 2011-04-14 Richard Guenther <rguenther@suse.de>
16359
16360 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
16361 Remove.
16362 (dse_initialize_block_local_data, dse_leave_block,
16363 record_voperand_set, get_stmt_uid): Likewise.
16364 (dse_possible_dead_store_p): Allow any kind of killing stmt.
16365 (dse_optimize_stmt): Remove voperand set handling code.
16366 Simplify and improve to handle any kind of killing stmt.
16367 (dse_record_phi): Remove.
16368 (dse_enter_block): Simplify.
16369 (tree_ssa_dse): Likewise.
16370 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
16371
16372 2011-04-14 Jan Hubicka <jh@suse.cz>
16373
16374 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
16375 * cgraph.h (struct inline_summary): Move to ipa-inline.h
16376 (cgraph_local_info): Remove inline_summary.
16377 * ipa-cp.c: Include ipa-inline.h.
16378 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
16379 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
16380 accesor.
16381 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
16382 (input_overwrite_node): Do not set inline summary.
16383 (input_node): Do not stream inline summary.
16384 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
16385 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
16386 growth; we do not have inline parameters computed for that anyway.
16387 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
16388 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
16389 (inline_summary_t): New type and VECtor.
16390 (debug_inline_summary, dump_inline_summaries): Declare.
16391 (inline_summary): Use VOCtor.
16392 (estimate_edge_growth): Kill hack computing call stmt size directly.
16393 * lto-section-in.c (lto_section_name): Add inline section.
16394 * ipa-inline-analysis.c: Include lto-streamer.h
16395 (node_removal_hook_holder, node_duplication_hook_holder): New holders
16396 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
16397 (inline_summary_vec): Define.
16398 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
16399 dump_inline_summaries): New functions.
16400 (estimate_function_body_sizes): Properly compute size/time of outgoing
16401 calls.
16402 (compute_inline_parameters): Alloc inline_summary; do not compute
16403 size/time of incomming calls.
16404 (estimate_edge_time): Avoid missing time summary hack.
16405 (inline_read_summary): Read inline summary info.
16406 (inline_write_summary): Write inline summary info.
16407 (inline_free_summary): Free all hooks and inline summary vector.
16408 * lto-streamer.h: Add LTO_section_inline_summary section.
16409 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
16410 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
16411
16412 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
16413
16414 * tree-vectorizer.h (vect_strided_store_supported): Add a
16415 HOST_WIDE_INT argument.
16416 (vect_strided_load_supported): Likewise.
16417 (vect_permute_store_chain): Return void.
16418 (vect_transform_strided_load): Likewise.
16419 (vect_permute_load_chain): Delete.
16420 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
16421 count argument. Check that the count is a power of two.
16422 (vect_strided_load_supported): Likewise.
16423 (vect_permute_store_chain): Return void. Update after above changes.
16424 Assert that the access is supported.
16425 (vect_permute_load_chain): Likewise.
16426 (vect_transform_strided_load): Return void.
16427 * tree-vect-stmts.c (vectorizable_store): Update calls after
16428 above interface changes.
16429 (vectorizable_load): Likewise.
16430 (vect_analyze_stmt): Don't check for strided powers of two here.
16431
16432 2011-04-14 Richard Guenther <rguenther@suse.de>
16433
16434 PR tree-optimization/48590
16435 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
16436 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
16437 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
16438 BUILT_IN_STACK_SAVE.
16439 * tree-ssa-dce.c (propagate_necessity): Handle
16440 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
16441
16442 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
16443
16444 * c-parser.c (c_parser_objc_class_declaration): Updated call to
16445 objc_declare_class.
16446
16447 2011-04-14 Richard Guenther <rguenther@suse.de>
16448
16449 * tree.h (get_object_alignment_1): Declare.
16450 * builtins.c (get_object_alignment_1): Split out worker from ...
16451 (get_object_alignment): ... here.
16452 * fold-const.c (get_pointer_modulus_and_residue): Use
16453 get_object_alignment_1.
16454
16455 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
16456
16457 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
16458 type parameter.
16459 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
16460 parameter. Generalise code to handle arrays as well as vectors.
16461 (vect_setup_realignment): Update accordingly.
16462 * tree-vect-stmts.c (vectorizable_store): Likewise.
16463 (vectorizable_load): Likewise.
16464
16465 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
16466
16467 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
16468 within the per-copy loop.
16469
16470 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
16471
16472 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
16473 in the dump file.
16474
16475 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
16476
16477 * doc/options.texi (Negative): Explicitly mention that the
16478 Negative chain must be circular.
16479
16480 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
16481
16482 * function.h (block_chainon): Declare.
16483 * function.c (block_chainon): Define.
16484
16485 2011-04-14 Anatoly Sokolov <aesok@post.ru>
16486 Eric Weddington <eric.weddington@atmel.com>
16487 Georg-Johann Lay <avr@gjlay.de>
16488
16489 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
16490 New Includes
16491 (avr_init_builtins, avr_expand_builtin,
16492 avr_expand_delay_cycles, avr_expand_unop_builtin,
16493 avr_expand_binop_builtin ): New functions.
16494 (avr_builtin_id): New enum
16495 (struct avr_builtin_description): New struct
16496 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
16497 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
16498
16499 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
16500 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
16501 UNSPECV_DELAY_CYCLES): new enumeration values
16502 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
16503 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
16504 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
16505 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
16506 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
16507 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
16508 "fmulsu"): New insns
16509
16510 * config/avr/avr-c.c: fix line endings
16511 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
16512 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
16513 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
16514 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
16515 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
16516
16517 * doc/extend.texi (AVR Built-in Functions): New node
16518 (Target Builtins): Add documentation of AVR
16519 built-in functions.
16520
16521 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
16522
16523 PR target/44643
16524 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
16525 alone. Error if non-const data has attribute progmem.
16526
16527 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16528
16529 * tree.h (struct tree_constructor): Include tree_typed instead of
16530 tree_common.
16531 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
16532 TS_TYPED instead of TS_COMMON.
16533
16534 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
16535
16536 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
16537 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
16538 (sse2_psadbw): Merge with *avx_psadbw.
16539 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
16540 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
16541 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
16542 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
16543 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
16544 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
16545 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
16546 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
16547 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
16548 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
16549 (ssse3_palignrti): Merge with *avx_palignrti.
16550
16551 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16552
16553 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
16554 * tree-ssanames.c (fini_ssanames): VEC_free it.
16555 (make_ssa_name_fn): Update for VECness of free_ssanames.
16556 (release_ssa_name, release_dead_ssa_names): Likewise.
16557 * tree.h (struct tree_ssa_name): Include tree_typed instead of
16558 tree_common.
16559 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
16560 TS_TYPED instead of TS_COMMON.
16561
16562 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16563
16564 * postreload-gcse.c (gcse_after_reload_main): Add calls to
16565 statistics_counter_event.
16566 * tree-ssa-copyrename.c (stats): Define.
16567 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
16568 statistics_counter_event.
16569 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
16570 (bswap_stats, widen_mul_stats): Define.
16571 (insert_reciprocals): Increment rdivs_inserted.
16572 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
16573 rfuncs_inserted. Add calls to statistics_counter_event.
16574 (execute_cse_sincos_1): Increment inserted.
16575 (execute_cse_sincos): Zeroize sincos_stats. Add call to
16576 statistics_counter_event.
16577 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
16578 of bswap_stats. Add calls to statistics_counter_event.
16579 (convert_mult_to_widen): Increment widen_mults_inserted.
16580 (convert_plusminus_to_widen): Increment maccs_inserted.
16581 (convert_mult_to_fma): Increment fmas_inserted.
16582 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
16583 calls to statistics_counter_event.
16584
16585 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
16586
16587 PR rtl-optimization/48455
16588 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
16589 `temp_costs->mem_cost'.
16590
16591 2011-04-13 Jan Hubicka <jh@suse.cz>
16592
16593 * ipa-inline.h: New file.
16594 * ipa-inline-analysis.c: New file. Broken out of ...
16595 * ipa-inline.c: ... this file; update toplevel comment;
16596 include ipa-inline.h
16597 (inline_summary): Move to ipa-inline.h
16598 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
16599 ipa-inline-analysis.c.
16600 (cgraph_estimate_time_after_inlining): Rename to
16601 estiamte_time_after_inlining; move to ipa-inline-analysis.c
16602 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
16603 to estimate_edge_growth.
16604 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
16605 rename to estimate_size_after_inlining.
16606 (cgraph_mark_inline_edge): Update for new naming convention.
16607 (cgraph_check_inline_limits): Likewise.
16608 (cgraph_edge_badness): Likewise.
16609 (cgraph_decide_recursive_inlining): Likewise.
16610 (cgraph_decide_inlining_of_small_functions): Likewise.
16611 (cgraph_decide_inlining_incrementally): Likewise.
16612 (cgraph_estimate_growth): Rename to estimate_growth; move to
16613 ipa-inline-analysis.c.
16614 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
16615 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
16616 (compute_inline_parameters): Likewise.
16617 (compute_inline_parameters_for_current): Likewise.
16618 (pass_inline_parameters): Likewise.
16619 (inline_indirect_intraprocedural_analysis): Likewise.
16620 (analyze_function): Rename to inline_analyze_function; likewise.
16621 (add_new_function): Move to ipa-inline-analysis.c.
16622 (inline_generate_summary): Likewise.
16623 (inline_read_summary): Likewise.
16624 (inline_write_summary): Likewise.
16625 * Makefile.in (ipa-inline-analysis.c): New file.
16626
16627 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16628
16629 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
16630 * configure: Regenerate.
16631
16632 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16633
16634 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
16635 instead of tree_common.
16636 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
16637 Likewise.
16638 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
16639 TS_TYPED rather than TS_COMMON.
16640 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
16641
16642 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
16643
16644 PR target/45263
16645 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
16646 r20 around calls of __tablejump_elpm__
16647
16648 2011-04-13 Jakub Jelinek <jakub@redhat.com>
16649
16650 PR middle-end/48591
16651 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
16652 NULL.
16653 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
16654
16655 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
16656
16657 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
16658 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
16659 (cfi_vec): New typedef.
16660 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
16661 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
16662 (cie_cfi_vec): New static variable.
16663 (cie_cfi_head): Delete.
16664 (add_cfi): Accept a cfi_vec * as first argument. All callers and
16665 declaration changed. Use vector rather than list operations.
16666 (new_cfi): Don't initialize the dw_cfi_next field.
16667 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
16668 rather than list operations.
16669 (lookup_cfa): Use vector rather than list operations.
16670 (output_cfis): New argument upto. Accept a cfi_vec rather than
16671 a dw_cfi_ref list head as argument. All callers changed.
16672 Iterate over the vector using upto as a maximum index.
16673 (output_all_cfis): New static function.
16674 (output_fde): Use vector rather than list operations. Use the
16675 new upto argument for output_cfis rather than manipulating a
16676 list.
16677 (dwarf2out_begin_prologue): Change initializations to match
16678 new struct members.
16679 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
16680 from the vector length rather than searching for the end of a list.
16681 Use output_all_cfis.
16682 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
16683
16684 2011-04-13 Nick Clifton <nickc@redhat.com>
16685
16686 * config/rx/rx.md (movmemsi): Do not use this pattern when
16687 volatile pointers are involved.
16688
16689 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
16690
16691 * config/i386/sse.md (pinsrbits): Remove.
16692 (sse2_packsswb): Merge with *avx_packsswb.
16693 (sse2_packssdw): Merge with *avx_packssdw.
16694 (sse2_packuswb): Merge with *avx_packuswb.
16695 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
16696 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
16697 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
16698 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
16699 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
16700 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
16701 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
16702 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
16703 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
16704 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
16705 (sse2_loadld): Merge with *avx_loadld.
16706 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
16707 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
16708 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
16709 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
16710 (vec_concatv2di): Merge with *vec_concatv2di_avx.
16711
16712 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
16713
16714 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
16715 calling TREE_CHAIN.
16716 * print-tree.c (print_node): Likewise.
16717 * tree-inline.c (copy_tree_r): Likewise.
16718 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
16719 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
16720 instead of TS_COMMON.
16721 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
16722 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
16723 (copy_node_stat): Zero TREE_CHAIN only if necessary.
16724 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
16725 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
16726 ...and these...
16727 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
16728 * tree.h: ...here.
16729 (TREE_CHAIN): Check for a TS_COMMON structure.
16730 (TREE_TYPE): Check for a TS_TYPED structure.
16731
16732 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
16733
16734 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
16735 cgraph_get_create_node instead of cgraph_node.
16736
16737 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
16738
16739 * c-parser.c (c_parser_initelt): Updated call to
16740 objc_build_message_expr.
16741 (c_parser_postfix_expression): Likewise.
16742
16743 2011-04-12 Kai Tietz <ktietz@redhat.com>
16744
16745 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
16746 MASK_MS_BITFIELD_LAYOUT bit.
16747
16748 2011-04-12 Jakub Jelinek <jakub@redhat.com>
16749
16750 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
16751 assert it is always true.
16752 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
16753 moves.
16754
16755 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
16756
16757 * c-parser.c (c_lex_one_token): Rewritten conditional used when
16758 compiling Objective-C to be more efficient.
16759
16760 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
16761
16762 * opts-common.c (decode_cmdline_options_to_array): Remove variable
16763 argv_copied.
16764
16765 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16766
16767 * recog.h, genoutput.c, optabs.c: Revert last patch.
16768
16769 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16770
16771 PR target/48090
16772 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
16773
16774 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16775
16776 * recog.h (insn_operand_data): Add an "allows_mem" field.
16777 * genoutput.c (output_operand_data): Initialize it.
16778 * optabs.c (maybe_legitimize_operand_same_code): New function.
16779 (maybe_legitimize_operand): Use it when matching the original
16780 op->value.
16781
16782 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16783
16784 * genpreds.c (process_define_predicate): Move most processing
16785 to gensupport.c. Continue to validate the expression.
16786 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
16787 (process_define_predicate): Move processing to gensupport.c.
16788 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
16789 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
16790 (compute_predicate_codes): Moved from genrecog.c. Add lineno
16791 argument.
16792 (valid_predicate_name_p): New function, split out from old
16793 genpreds.c:process_define_predicate.
16794 (process_define_predicate): New function, combining code from
16795 old genpreds.c and genrecog.c functions.
16796 (process_rtx): Call it for DEFINE_PREDICATE and
16797 DEFINE_SPECIAL_PREDICATE.
16798
16799 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16800
16801 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
16802 size of a '%A' memory reference.
16803 (T_DREG, T_QREG): New neon_builtin_type_bits.
16804 (arm_init_neon_builtins): Assert that the load and store operands
16805 are neon_struct_operands.
16806 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
16807 (NEON_ARG_MEMORY): New builtin_arg.
16808 (neon_dereference_pointer): New function.
16809 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
16810 Handle NEON_ARG_MEMORY.
16811 (arm_expand_neon_builtin): Update after above interface changes.
16812 Use NEON_ARG_MEMORY for loads and stores.
16813 * config/arm/predicates.md (neon_struct_operand): New predicate.
16814 * config/arm/iterators.md (V_two_elem): Tweak formatting.
16815 (V_three_elem): Use BLKmode for accesses that have no associated mode.
16816 (V_four_elem): Tweak formatting.
16817 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
16818 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
16819 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
16820 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
16821 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
16822 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
16823 (neon_vst4<mode>): Replace pointer operand with a memory operand.
16824 Use %A in the output template.
16825 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
16826 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
16827 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
16828 the width of the memory access. Remove post-increment.
16829 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
16830
16831 2011-04-12 Nick Clifton <nickc@redhat.com>
16832
16833 * config/v850/v850.c (expand_prologue): Do not use the CALLT
16834 instruction for interrupt handlers if the target is the basic V850
16835 architecture.
16836 (expand_epilogue): Likewise.
16837
16838 2011-04-12 Jakub Jelinek <jakub@redhat.com>
16839
16840 PR rtl-optimization/48549
16841 * combine.c (propagate_for_debug): Also stop after BB_END of
16842 this_basic_block. Process LAST and just stop processing after it.
16843 (combine_instructions): If last_combined_insn has been deleted,
16844 set last_combined_insn to its PREV_INSN.
16845
16846 2011-04-12 Richard Guenther <rguenther@suse.de>
16847
16848 PR tree-optimization/46076
16849 * gimple.h (struct gimple_statement_call): Add fntype field.
16850 (gimple_call_fntype): Adjust.
16851 (gimple_call_set_fntype): New function.
16852 * gimple.c (gimple_build_call_1): Set the call function type.
16853 * gimplify.c (gimplify_call_expr): Preserve the function
16854 type the frontend used for the call.
16855 (gimplify_modify_expr): Likewise.
16856 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
16857 function type.
16858 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
16859 function type.
16860 * tree-ssa.c (useless_type_conversion_p): Function pointer
16861 conversions are useless.
16862
16863 2011-04-12 Martin Jambor <mjambor@suse.cz>
16864
16865 * cgraph.h (cgraph_node): Remove function declaration.
16866 (cgraph_create_node): Declare.
16867 (cgraph_get_create_node): Likewise.
16868 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
16869 Updated all callers.
16870 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
16871 the decl does not already exist. Call cgraph_get_create_node instead
16872 of cgraph_node.
16873 (cgraph_get_create_node): New function.
16874 (cgraph_same_body_alias): Update comment.
16875 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
16876 assert it does not return NULL.
16877 (cgraph_update_edges_for_call_stmt): Likewise.
16878 (cgraph_clone_edge): Likewise.
16879 (cgraph_create_virtual_clone): Likewise.
16880 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
16881 instead of cgraph_node.
16882 (cgraph_add_new_function): Call cgraph_create_node or
16883 cgraph_get_create_node instead of cgraph_node.
16884 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
16885 instead of cgraph_node.
16886 (record_eh_tables): Likewise.
16887 (mark_address): Likewise.
16888 (mark_load): Likewise.
16889 (build_cgraph_edges): Call cgraph_get_create_node instead
16890 of cgraph_node.
16891 (rebuild_cgraph_edges): Likewise.
16892 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
16893 instead of cgraph_node.
16894 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
16895 cgraph_node.
16896 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
16897 cgraph_create_node instead of cgraph_node.
16898 * c-decl.c (finish_function): Call cgraph_get_create_node instead
16899 of cgraph_node.
16900 * lto-cgraph.c (input_node): Likewise.
16901 * lto-streamer-in.c (input_function): Likewise.
16902 * varasm.c (mark_decl_referenced): Likewise.
16903 (assemble_alias): Likewise.
16904
16905 2011-04-12 Martin Jambor <mjambor@suse.cz>
16906
16907 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
16908 instead of cgraph_node and assert it does not return NULL.
16909 * lto-streamer-in.c (lto_read_body): Likewise.
16910 * omp-low.c (new_omp_context): Likewise.
16911 (create_task_copyfn): Likewise.
16912 * tree-emutls.c (lower_emutls_function_body): Likewise.
16913 * matrix-reorg.c (transform_allocation_sites): Likewise.
16914
16915 2011-04-12 Jakub Jelinek <jakub@redhat.com>
16916
16917 PR c/48552
16918 * c-typeck.c (build_asm_expr): Error out on attempts to use
16919 void type outputs or inputs for constraints that allow reg or
16920 don't allow memory.
16921
16922 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
16923 Richard Earnshaw <rearnsha@arm.com>
16924
16925 PR target/48250
16926 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
16927 to use sign-magnitude offsets. Reject unsupported unaligned
16928 cases. Add detailed description in comments.
16929 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
16930 condition from TARGET_32BIT to TARGET_ARM.
16931
16932 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
16933
16934 * tree.h (struct typed_tree): New.
16935 (struct tree_common): Include it instead of tree_base.
16936 (TREE_TYPE): Update for new location of type field.
16937 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
16938 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
16939 (union tree_node): Add typed field.
16940 * treestruct.def (TS_TYPED): New.
16941 * lto-streamer.c (check_handled_ts_structures): Handle it.
16942 * tree.c (MARK_TS_TYPED): New macro.
16943 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
16944
16945 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
16946
16947 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
16948 (force_nonfallthru): Do not alter the loop nest if no basic block
16949 was created.
16950
16951 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
16952
16953 * config/i386/sse.md (VI): New mode iterator.
16954 (SSEMODEI): Remove.
16955 (AVX256MODEI): Ditto.
16956 (AVXMODEF4P): Ditto.
16957 (avxvecpsmode): Ditto.
16958 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
16959 (sse2_andnot<mode>3): New expander.
16960 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
16961 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
16962 (<any_logic:code><mode>3): Use VI mode iterator.
16963 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
16964 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
16965 (*andnottf3): Handle AVX three-operand constraints.
16966 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
16967
16968 2011-04-11 Joseph Myers <joseph@codesourcery.com>
16969 Robert Millan <rmh@gnu.org>
16970
16971 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
16972 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
16973 GNU_USER_DYNAMIC_LINKER64): Define.
16974 (REG_NAME): Don't undefine.
16975 (MD_UNWIND_SUPPORT): Undefine.
16976 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
16977 (REG_NAME): Don't undefine.
16978 (MD_UNWIND_SUPPORT): Undefine.
16979 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
16980
16981 2011-04-11 Joseph Myers <joseph@codesourcery.com>
16982
16983 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
16984 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
16985
16986 2011-04-11 Xinliang David Li <davidxl@google.com>
16987
16988 * value-profile.c (check_ic_target): New function.
16989 (gimple_ic_transform): Sanity check indirect call target.
16990 * gimple-low.c (gimple_check_call_args): Interface change.
16991 (gimple_check_call_matching_types): New function.
16992 * tree-inline.c (tree_can_inline_p): Call new function.
16993
16994 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
16995
16996 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
16997 tree-pretty-print.h & realmpfr.h.
16998
16999 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
17000
17001 PR middle-end/48464
17002 * ira.c (setup_pressure_classes): Fix typo in loop condition.
17003 (setup_allocno_and_important_classes): Ditto.
17004
17005 2011-04-11 Joseph Myers <joseph@codesourcery.com>
17006
17007 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
17008 GNU_USER_DYNAMIC_LINKER.
17009 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
17010 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17011 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
17012 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17013 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17014 GNU_USER_TARGET_OS_CPP_BUILTINS.
17015 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
17016 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17017 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17018 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17019 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
17020 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17021 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17022 GNU_USER_TARGET_OS_CPP_BUILTINS.
17023 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17024 GNU_USER_DYNAMIC_LINKER.
17025 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17026 GNU_USER_TARGET_OS_CPP_BUILTINS.
17027 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
17028 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17029 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
17030 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17031 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
17032 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
17033 GNU_USER_DYNAMIC_LINKER64): Remove.
17034 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
17035 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17036 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17037 GNU_USER_DYNAMIC_LINKER.
17038 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17039 GNU_USER_TARGET_OS_CPP_BUILTINS.
17040 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17041 GNU_USER_TARGET_OS_CPP_BUILTINS.
17042 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
17043 to GNU_USER_TARGET_OS_CPP_BUILTINS.
17044 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17045 GNU_USER_TARGET_OS_CPP_BUILTINS.
17046 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
17047 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
17048 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
17049 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
17050 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17051 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17052 GNU_USER_DYNAMIC_LINKER.
17053 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17054 GNU_USER_TARGET_OS_CPP_BUILTINS.
17055 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
17056 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17057 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17058 GNU_USER_DYNAMIC_LINKER.
17059 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17060 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17061 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
17062 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17063 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17064 GNU_USER_DYNAMIC_LINKER.
17065 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
17066 GNU_USER_DYNAMIC_LINKERN32.
17067 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
17068 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
17069 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
17070 GNU_USER_DYNAMIC_LINKER32.
17071 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
17072 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17073 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17074 GNU_USER_DYNAMIC_LINKER.
17075 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17076 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17077 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
17078 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17079 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17080 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
17081 GNU_USER_DYNAMIC_LINKER32.
17082 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
17083 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
17084 GNU_USER_DYNAMIC_LINKER.
17085 * config/s390/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_LINKER32 to
17088 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
17089 GNU_USER_DYNAMIC_LINKER64.
17090 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
17091 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17092 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17093 GNU_USER_DYNAMIC_LINKER.
17094 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
17095 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17096 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17097 GNU_USER_DYNAMIC_LINKER.
17098 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
17099 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17100 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
17101 GNU_USER_DYNAMIC_LINKER32.
17102 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
17103 GNU_USER_DYNAMIC_LINKER64.
17104 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
17105 GNU_USER_DYNAMIC_LINKER64.
17106 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
17107 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17108 * config/xtensa/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 GNU_USER_DYNAMIC_LINKER.
17111
17112 2011-04-11 Joseph Myers <joseph@codesourcery.com>
17113
17114 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
17115 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
17116 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
17117 GNU_USER_DYNAMIC_LINKER.
17118 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
17119 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
17120 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
17121 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
17122 GNU_USER_DYNAMIC_LINKER64.
17123 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
17124 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
17125 GNU_USER_LINK_EMULATION.
17126 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
17127 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
17128 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
17129 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
17130 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
17131 CPP_SPEC, CC1_SPEC): Remove.
17132 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
17133 (GNU_USER_DYNAMIC_LINKER): Define.
17134 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
17135 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
17136 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
17137 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
17138 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
17139 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
17140 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
17141 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
17142 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
17143 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
17144 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
17145 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
17146 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
17147 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
17148 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
17149 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
17150 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17151 GNU_USER_DYNAMIC_LINKER.
17152 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17153 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
17154 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17155 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
17156 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17157 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
17158 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
17159 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
17160 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
17161 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
17162
17163 2011-04-11 Kai Tietz <ktietz@redhat.com>
17164
17165 PR target/9601
17166 PR target/11772
17167 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
17168 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
17169 comment.
17170 (ix86_is_msabi_thiscall): Removed.
17171 (ix86_is_type_thiscall): Likewise.
17172 (ix86_get_callcvt): New function.
17173 (ix86_comp_type_attributes): Simplify check.
17174 (ix86_function_regparm): Use ix86_get_callcvt for calling
17175 convention attribute checks.
17176 (ix86_return_pops_args): Likewise.
17177 (ix86_static_chain): Likewise.
17178 (x86_this_parameter): Likewise.
17179 (x86_output_mi_thunk): Likewise.
17180 (ix86_function_type_abi): Optimize check for types without attributes.
17181 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
17182 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
17183 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
17184 by flag-values.
17185 (IX86_BASE_CALLCVT): Helper macro.
17186 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
17187 Use ix86_get_callcvt for calling convention attribute checks and avoid
17188 symbol-decoration for stdcall in TARGET_RTD case.
17189 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
17190 Likewise.
17191 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
17192 for declaration.
17193
17194 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
17195
17196 * config/i386/sse.md (VI_128): New mode iterator.
17197 (VI12_128): Rename from SSEMODE12.
17198 (VI14_128): Rename from SSEMODE14.
17199 (VI124_128): New mode iterator.
17200 (VI24_128): Rename from SSEMODE248.
17201 (VI248_128): Rename from SSEMODE248.
17202 (SSEMODE124C8): Remove.
17203 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
17204 (*sse2_<plusminus_insn><mode>3): Merge with
17205 *avx_<plusminus_insn><mode>3.
17206 (*mulv8hi3): Merge with *avx_mulv8hi3.
17207 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
17208 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
17209 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
17210 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
17211 (ashr<mode>3): Merge with *avx_ashr<mode>3.
17212 (lshr<mode>3): Merge with *avx_lshr<mode>3.
17213 (ashl<mode>3): Merge with *avx_ashl<mode>3.
17214 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
17215 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
17216 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17217 (*<smaxmin:code>v8hi3): Ditto.
17218 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
17219 (*<smaxmin:code>v16qi3): Ditto.
17220 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
17221 (*sse2_eq<mode>3): Ditto.
17222 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
17223 (*sse2_gt<mode>3): Ditto.
17224 (vcondv2di): Split out of vcond<mode>.
17225 (vconduv2di): Split out of vcondu<mode>.
17226
17227 2011-04-11 Richard Guenther <rguenther@suse.de>
17228
17229 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
17230 before calling tree_low_cst.
17231
17232 2011-04-11 Richard Guenther <rguenther@suse.de>
17233
17234 * stor-layout.c (layout_type): Compute all array index size operations
17235 in the original type.
17236 (initialize_sizetypes): Add comment.
17237 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
17238
17239 2011-04-11 Joseph Myers <joseph@codesourcery.com>
17240
17241 * common.opt (Tbss=, Tdata=, Ttext=): New options.
17242
17243 2011-04-11 Martin Jambor <mjambor@suse.cz>
17244
17245 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
17246 of cgraph_node, handle NULL return value.
17247 (cgraph_global_info): Likewise.
17248 (cgraph_rtl_info): Likewise.
17249 * tree-inline.c (estimate_num_insns): Likewise.
17250 * gimplify.c (unshare_body): Likewise.
17251 (unvisit_body): Likewise.
17252 (gimplify_body): Likewise.
17253 * predict.c (optimize_function_for_size_p): Likewise.
17254 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
17255 (call_may_clobber_ref_p_1): Likewise.
17256 * varasm.c (function_section_1): Likewise.
17257 (assemble_start_function): Likewise.
17258
17259 2011-04-11 Martin Jambor <mjambor@suse.cz>
17260
17261 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
17262 of cgraph_node.
17263 * final.c (rest_of_clean_state): Likewise.
17264 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
17265 * passes.c (pass_init_dump_file): Likewise.
17266 (execute_all_ipa_transforms): Likewise.
17267 (function_called_by_processed_nodes_p): Likewise.
17268 * predict.c (maybe_hot_frequency_p): Likewise.
17269 (probably_never_executed_bb_p): Likewise.
17270 (compute_function_frequency): Likewise.
17271 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
17272 (unnest_nesting_tree_1): Likewise.
17273 (lower_nested_functions): Likewise.
17274 * tree-optimize.c (execute_fixup_cfg): Likewise.
17275 (tree_rest_of_compilation): Likewise.
17276 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
17277 * tree-sra.c (ipa_early_sra): Likewise.
17278 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
17279 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
17280 * ipa.c (record_cdtor_fn): Likewise.
17281 * ipa-inline.c (cgraph_early_inlining): Likewise.
17282 (compute_inline_parameters_for_current): Likewise.
17283 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
17284 * ipa-pure-const.c (local_pure_const): Likewise.
17285 * ipa-split.c (split_function): Likewise.
17286 (execute_split_functions): Likewise.
17287 * cgraphbuild.c (build_cgraph_edges): Likewise.
17288 (rebuild_cgraph_edges): Likewise.
17289 (cgraph_rebuild_references): Likewise.
17290 (remove_cgraph_callee_edges): Likewise.
17291 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
17292 (verify_cgraph_node): Likewise.
17293 (cgraph_analyze_functions): Likewise.
17294 (cgraph_preserve_function_body_p): Likewise.
17295 (save_inline_function_body): Likewise.
17296 (save_inline_function_body): Likewise.
17297 * tree-inline.c (copy_bb): Likewise.
17298 (optimize_inline_calls): Likewise.
17299
17300 2011-04-11 Martin Jambor <mjambor@suse.cz>
17301
17302 PR tree-optimization/48195
17303 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
17304 ipa_check_create_edge_args.
17305 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
17306 ipa_check_create_edge_args.
17307 * ipa-inline.c (inline_generate_summary): Do not call
17308 ipa_check_create_node_params and ipa_check_create_edge_args.
17309 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
17310 ipa_check_create_edge_args.
17311
17312 2011-04-09 Anatoly Sokolov <aesok@post.ru>
17313
17314 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
17315 instead of loop.
17316 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
17317 * function.c (record_hard_reg_sets): Likewise.
17318 * ira.c (compute_regs_asm_clobbered): Likewise.
17319 * sched-deps.c (sched_analyze_1): Likewise.
17320 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
17321
17322 2011-04-09 Xinliang David Li <davidxl@google.com>
17323
17324 PR tree-optimization/PR48484
17325 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
17326 has_valid_pred lazily
17327
17328 2011-04-09 Duncan Sands <baldrick@free.fr>
17329
17330 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
17331
17332 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
17333
17334 * combine.c (combine_validate_cost): Adjust comments. Set registered
17335 cost of I0 to zero at the end, if any.
17336
17337 2011-04-08 Xinliang David Li <davidxl@google.com>
17338
17339 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
17340 to insane profile data.
17341
17342 2011-04-08 Xinliang David Li <davidxl@google.com>
17343
17344 * ipa-cp.c (ipcp_update_profiling): Correct
17345 negative scale factor due to insane profile data.
17346
17347 2011-04-08 Xinliang David Li <davidxl@google.com>
17348
17349 * final.c (dump_basic_block_info): New function.
17350 (final): Dump basic block.
17351 (final_scan_insn): Remove old dump.
17352
17353 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
17354
17355 PR target/47829
17356 * config.gcc (i386-*-freebsd): Disable unwind table generation for
17357 crtbegin/crtend.
17358
17359 2011-04-08 Michael Matz <matz@suse.de>
17360
17361 PR middle-end/48389
17362 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
17363 functions.
17364 (rebuild_jump_labels): Call rebuild_jump_labels_1.
17365 * rtl.h (rebuild_jump_labels_chain): Declare.
17366 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
17367 insns inserted on edges.
17368
17369 2011-04-08 Joseph Myers <joseph@codesourcery.com>
17370
17371 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
17372 * config/arm/arm-arches.def: New.
17373 * config/arm/arm-opts.h: New.
17374 * config/arm/genopt.sh: New.
17375 * config/arm/arm-tables.opt: New (generated).
17376 * config/arm/arm.c (arm_handle_option, arm_target_help,
17377 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
17378 (all_architectures): Get most table contents from arm-arches.def.
17379 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
17380 arm_selected_tune here.
17381 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
17382 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
17383 (march=, mcpu=, mtune=): Use Enum and Var.
17384 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
17385 (arm.o): Update dependencies.
17386
17387 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
17388
17389 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
17390 of header_file.
17391 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
17392 (write_typed_alloc_defns): Likewise.
17393 (main): Calls write_typed_alloc_defns with output_header.
17394
17395 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
17396
17397 PR inline-asm/48435
17398 * ira-color.c (setup_profitable_hard_regs): Add comments.
17399 Don't take prohibited hard regs into account.
17400 (setup_conflict_profitable_regs): Rename to
17401 get_conflict_profitable_regs.
17402 (check_hard_reg_p): Check prohibited hard regs.
17403
17404 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
17405
17406 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
17407 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
17408 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
17409
17410 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17411
17412 PR target/48366
17413 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
17414 move from floating point to shift amount register.
17415 (emit_move_sequence): Remove secondary reload support for floating
17416 point to shift amount amount register copies.
17417 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
17418 amount register copies.
17419 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
17420 register, return false if mode isn't a scalar integer mode.
17421 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
17422
17423 2011-04-08 Richard Guenther <rguenther@suse.de>
17424
17425 * gimple.c (gimple_call_flags): Remove kludge.
17426
17427 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
17428
17429 * sel-sched.c (sel_region_init): Move call to
17430 sel_setup_region_sched_flags after setup_current_loop_nest.
17431
17432 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
17433
17434 PR rtl-optimization/48272
17435 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
17436 init_insn_reg_pressure_info. Adjust a caller.
17437 * sched-int.h (init_insn_reg_pressure_info): Declare.
17438 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
17439 when sched-pressure is enabled.
17440
17441 2011-04-08 Richard Guenther <rguenther@suse.de>
17442
17443 * gimple.c (gimple_set_modified): Do not queue calls to
17444 MODIFIED_NORETURN_CALLS here ...
17445 * tree-ssa-operands.c (update_stmt_operands): ... but here.
17446
17447 2011-04-08 Richard Guenther <rguenther@suse.de>
17448
17449 PR lto/48467
17450 * toplev.c (lang_dependent_init): Do not open asm_out_file
17451 in WPA mode, nor perform debug machinery initialization.
17452 (finalize): Do not unlink asm_out_file in WPA mode.
17453
17454 2011-04-08 Richard Guenther <rguenther@suse.de>
17455
17456 * gimple.h (gimple_call_fntype): New function.
17457 (gimple_call_return_type): Use it.
17458 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
17459 * gimple-low.c (gimple_check_call_args): Likewise.
17460 * gimple.c (gimple_call_flags): Likewise.
17461 (gimple_call_arg_flags): Likewise.
17462 (gimple_call_return_flags): Likewise.
17463 * tree-cfg.c (verify_gimple_call): Likewise.
17464 (do_warn_unused_result): Likewise.
17465 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
17466 * value-prof.c (gimple_ic_transform): Fix fndecl check.
17467
17468 2011-04-08 Dmitry Melnik <dm@ispras.ru>
17469
17470 PR rtl-optimization/48235
17471 * sel-sched.c (code_motion_process_successors): Recompute the last
17472 insn in basic block if control flow changed.
17473 (code_motion_path_driver): Ditto. Recompute the first insn as well.
17474 Update condition for ilist_remove.
17475
17476 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
17477
17478 PR rtl-optimization/48302
17479 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
17480 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
17481 it to record added preheader blocks.
17482 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
17483 on to sel_add_loop_preheaders.
17484 (sel_region_init): Move call to setup_current_loop_nest after
17485 sel_init_bbs.
17486
17487 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
17488
17489 PR target/48273
17490 * cfgloop.h (loop_has_exit_edges): New helper.
17491 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
17492 non-clonable.
17493 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
17494 that have no exit edges.
17495
17496 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
17497
17498 PR rtl-optimization/48442
17499 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
17500 all callers. Adjust assert.
17501
17502 2011-04-08 Jakub Jelinek <jakub@redhat.com>
17503
17504 PR tree-optimization/48377
17505 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
17506 is_packed to true even for types with smaller TYPE_ALIGN than
17507 TYPE_SIZE.
17508
17509 2011-04-08 Richard Guenther <rguenther@suse.de>
17510
17511 PR bootstrap/48513
17512 * doc/tm.texi: Re-generate.
17513
17514 2011-04-08 Wei Guozhi <carrot@google.com>
17515
17516 PR target/47855
17517 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
17518 * config/arm/arm.c (arm_attr_length_push_multi): New function.
17519 * config/arm/arm.md (*push_multi): Change the length computation to
17520 call a C function.
17521
17522 2011-04-08 Anatoly Sokolov <aesok@post.ru>
17523
17524 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
17525 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
17526 * doc/tm.texi: Regenerate.
17527 * system.h (ASM_OUTPUT_BSS): Poison.
17528 * varasm.c (asm_output_bss): Remove function.
17529 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
17530
17531 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
17532 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
17533 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
17534 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17535 Likewise.
17536 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17537 Likewise.
17538 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17539 Likewise.
17540 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
17541
17542 2011-04-07 Joseph Myers <joseph@codesourcery.com>
17543
17544 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
17545 EnumValue lines.
17546
17547 2011-04-07 Joseph Myers <joseph@codesourcery.com>
17548
17549 * config/m68k/m68k.c (m68k_handle_option): Don't handle
17550 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
17551 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
17552 OPT_mcpu32.
17553 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
17554 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
17555 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
17556 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
17557 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
17558 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
17559 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
17560 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
17561 options. Don't map other m68k options manually. Don't handle
17562 old-style options as canonical.
17563 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
17564 * doc/install.texi (m68k-*-*): Document binutils version requirement.
17565
17566 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
17567
17568 * basic-block.h (force_nonfallthru): Move to...
17569 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
17570 (force_nonfallthru): ...here.
17571 * cfghooks.c (force_nonfallthru): New function.
17572 * cfgrtl.c (force_nonfallthru): Rename into...
17573 (rtl_force_nonfallthru): ...this.
17574 (commit_one_edge_insertion): Do not set AUX field.
17575 (commit_edge_insertions): Do not discover new basic blocks.
17576 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
17577 (cfg_layout_rtl_cfg_hooks): Likewise.
17578 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
17579 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
17580 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
17581
17582 2011-04-07 Anatoly Sokolov <aesok@post.ru>
17583
17584 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
17585 Remove macros.
17586
17587 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
17588
17589 * config/i386/sse.md: Update copyright year.
17590 (avxcvtvecmode): Remove.
17591 (sse_movhlps): Merge with *avx_movhlps.
17592 (sse_movlhps): Merge with *avx_movlhps.
17593 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
17594 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
17595 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
17596 (sse_loadhps): Merge with *avx_loadhps.
17597 (sse_storelps): Merge with *avx_storelps.
17598 (sse_loadlps): Merge with *avx_loadlps.
17599 (sse_movss): Merge with *avx_movss.
17600 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
17601 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
17602 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
17603 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
17604 (vec_set<mode>_0): Ditto.
17605 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
17606 (sse4_1_insertps): Merge with *avx_insertps.
17607 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
17608 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
17609 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
17610 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
17611 (sse2_storehpd): Merge with *avx_storehpd.
17612 (sse2_loadhpd): Merge with *avx_loadhpd.
17613 (sse2_loadlpd): Merge with *avx_loadlpd.
17614 (sse2_movsd): Merge with *avx_movsd.
17615 (*vec_concatv2df): Merge with *vec_concatv2df.
17616
17617 2011-04-07 Jakub Jelinek <jakub@redhat.com>
17618
17619 PR debug/48343
17620 * combine.c (combine_instructions): Add last_combined_insn,
17621 update it if insn is after it, pass it to all try_combine calls.
17622 (try_combine): Add last_combined_insn parameter, pass it instead of
17623 i3 to propagate_for_debug.
17624
17625 2011-04-07 Nick Clifton <nickc@redhat.com>
17626
17627 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
17628 to handle MDR <-> data register transfers.
17629 (movhi_internal): Likewise.
17630
17631 2011-04-07 Alan Modra <amodra@gmail.com>
17632
17633 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
17634 previous stack info.
17635
17636 2011-04-07 Tom de Vries <tom@codesourcery.com>
17637
17638 PR target/43920
17639 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
17640 flow_find_cross_jump. Swap variables to implement backward replacement.
17641 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
17642
17643 2011-04-07 Tom de Vries <tom@codesourcery.com>
17644
17645 PR target/43920
17646 * cfgcleanup.c (walk_to_nondebug_insn): New function.
17647 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
17648 and bb2.
17649 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
17650 src1 or src2. Redirect edges to the last basic block. Update
17651 frequency and count on multiple basic blocks in case of fallthru.
17652
17653 2011-04-07 Tom de Vries <tom@codesourcery.com>
17654
17655 PR target/43920
17656 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
17657 function.
17658 (old_insns_match_p): Change return type. Replace return false/true
17659 with return dir_none/dir_both. Use can_replace_by.
17660 (flow_find_cross_jump): Add dir_p parameter. Init replacement
17661 direction from dir_p. Register replacement direction in dir, last_dir
17662 and afterlast_dir. Handle new return type of old_insns_match_p using
17663 merge_dir. Return replacement direction in dir_p.
17664 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
17665 return type of old_insns_match_p.
17666 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
17667 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
17668 flow_find_cross_jump.
17669 * basic-block.h (enum replace_direction): New type.
17670 (flow_find_cross_jump): Add parameter to declaration.
17671
17672 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
17673
17674 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
17675 (AVXMODEDCVTPS2DQ): Ditto.
17676 (VEC_FLOAT_MODE): Ditto.
17677 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
17678 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
17679 (<any_logic:code><mode>3): Use VF mode iterator.
17680 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
17681 Use VF mode iterator.
17682 (copysign<mode>3): Use VF mode iterator.
17683 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
17684 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
17685 (*<any_logic:code><MODEF:mode>3): Merge with
17686 *avx_<any_logic:code><MODEF:mode>3.
17687 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
17688 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
17689 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
17690 (avx_cvtdq2ps<avxmodesuffix>): Remove.
17691 (sse2_cvtdq2ps): Use %v modifier.
17692 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
17693 (avx_cvtps2dq<avxmodesuffix>): Remove.
17694 (sse2_cvtps2dq): Use %v modifier.
17695 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
17696 (avx_cvttps2dq<avxmodesuffix>): Remove.
17697 (sse2_cvttps2dq): Use %v modifier.
17698 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
17699 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
17700 (sse2_cvtsd2siq): Fix insn template.
17701 (sse2_cvtsd2siq_2): Ditto.
17702 (sse2_cvttsd2siq): Ditto.
17703 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
17704 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
17705
17706 2011-04-06 Joseph Myers <joseph@codesourcery.com>
17707
17708 * gcov-io.c: Use GCC Runtime Library Exception.
17709
17710 2011-04-06 Jakub Jelinek <jakub@redhat.com>
17711
17712 PR debug/48466
17713 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
17714 as base_reg whatever register reg has been eliminated to, instead
17715 of hardcoding STACK_POINTER_REGNUM.
17716
17717 2011-04-06 Joseph Myers <joseph@codesourcery.com>
17718
17719 * doc/tm.texi.in: Document C target hooks as separate from general
17720 target hooks.
17721 * doc/tm.texi: Regenerate.
17722 * genhooks.c (struct hook_desc): Add docname field.
17723 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
17724 docname field.
17725 (hook_array): Include c-target.def.
17726 (emit_documentation): Use docname field in output.
17727 (emit_init_macros): Take docname argument. Only emit definitions
17728 for hooks matching docname.
17729 (main): Expect additional arguments in all cases. Pass argument
17730 to emit_init_macros.
17731 * target.def: Move initial macro definitions and comments to
17732 target-hooks-macros.h.
17733 (gcc_targetcm): Move to c-family/c-target.def.
17734 * target.h (targetcm): Move declaration to c-family/c-target.h.
17735 * targhooks.c (default_handle_c_option): Move to
17736 c-family/c-opts.c.
17737 * targhooks.h (default_handle_c_option): Move declaration to
17738 c-family/c-common.h.
17739 * target-hooks-macros.h: New file.
17740 * config.gcc (target_has_targetcm): Define and use to add to
17741 c_target_objs and cxx_target_objs.
17742 * config/default-c.c: New file.
17743 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
17744 of target.h and target-def.h.
17745 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
17746 (darwin_objc_construct_string, darwin_cfstring_ref_p,
17747 darwin_check_cfstring_format_arg): Make static.
17748 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
17749 TARGET_STRING_OBJECT_REF_TYPE_P,
17750 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
17751 * config/darwin-protos.h (darwin_objc_construct_string,
17752 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
17753 declare.
17754 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
17755 TARGET_STRING_OBJECT_REF_TYPE_P,
17756 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
17757 * config/t-darwin (darwin-c.o): Update dependencies.
17758 * system.h (TARGET_HAS_TARGETCM): Poison.
17759 * Makefile.in (TARGET_H): Update.
17760 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
17761 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
17762 (default-c.o): New target.
17763 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
17764 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
17765 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
17766 c-target.def.
17767 (build/genhooks.o): Update dependencies.
17768
17769 2011-04-06 Richard Guenther <rguenther@suse.de>
17770
17771 * ipa-inline.c (enum inlining_mode): Remove.
17772 (cgraph_flatten): Use some other token.
17773 (cgraph_edge_early_inlinable_p): New function, split out from ...
17774 (cgraph_perform_always_inlining): New function, split out from ...
17775 (cgraph_decide_inlining_incrementally): ... here.
17776 (cgraph_mark_inline_edge): Adjust.
17777 (cgraph_early_inlining): Re-structure.
17778 (pass_early_inline): Require SSA form.
17779
17780 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
17781 Julian Brown <julian@codesourcery.com>
17782 Mark Shinwell <shinwell@codesourcery.com>
17783
17784 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
17785 LO_REGS only for Thumb-1.
17786 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
17787 be used in short instructions when optimising for size on Thumb-2.
17788
17789 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
17790
17791 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
17792 associated with user returns to be preserved.
17793
17794 2011-04-06 Tristan Gingold <gingold@adacore.com>
17795
17796 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
17797 symbol_queue_size, DBXOUT_DECR_NESTING,
17798 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
17799 if XCOFF_DEBUGGING_INFO.
17800
17801 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
17802
17803 * config/i386/i386.md (attribute isa): New.
17804 (attribute enabled): New.
17805 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
17806 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
17807 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
17808 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
17809 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
17810 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17811 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
17812 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
17813
17814 * config/i386/sse.md (VF): New mode iterator.
17815 (VF1): Ditto.
17816 (VF2): Ditto.
17817 (VF_128): Ditto.
17818 (SSEMODEF4): Remove.
17819 (attribute sse): Handle V8SF and V4DF modes.
17820 (<absneg:code><mode>2): Use VF mode iterator.
17821 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
17822 mode iterator.
17823 (<plusminus_insn><mode>3): Use VF mode iterator.
17824 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
17825 Use VF mode iterator.
17826 (<sse>_vm<plusminus_insn><mode>3): Merge with
17827 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
17828 (mul<mode>3): Use VF mode iterator.
17829 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
17830 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
17831 mode iterator.
17832 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
17833 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
17834 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
17835 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
17836 mode iterator.
17837 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
17838 Use VF1 mode iterator.
17839 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
17840 (sqrt<VF2:mode>2): New expander.
17841 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
17842 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
17843 and sqrtv2df2. Use VF mode iterator.
17844 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
17845 mode iterator.
17846 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
17847 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
17848 Use VF1 mode iterator.
17849 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
17850 (<smaxmin:code><mode>3): Use VF mode iterator.
17851 (*<smaxmin:code><mode>3_finite): Merge with
17852 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
17853 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17854 (<sse>_vm<smaxmin:code><mode>2): Merge with
17855 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
17856 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
17857 mode iterator.
17858 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
17859 mode iterator.
17860 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
17861 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
17862 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
17863 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
17864 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
17865 VF mode iterator.
17866 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
17867 Use VF_128 mode iterator.
17868 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
17869 mode iterator.
17870 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
17871 VF_128 mode iterator.
17872 (vcond<mode>): Use VF mode iterator.
17873 * config/i386/predicates.md (sse_comparison_operator): Merge with
17874 avx_comparison_float_operator. Do not declare as special_predicate.
17875 * config/i386/i386.c (struct builtin_description): Update for renamed
17876 compare patterns.
17877 (ix86_expand_args_builtin): Ditto.
17878 (ix86_expand_sse_compare_mask): Ditto.
17879
17880 2011-04-06 Richard Guenther <rguenther@suse.de>
17881
17882 * tree-inline.c (estimate_num_insns): For calls simply account
17883 for all passed arguments and a used return value.
17884
17885 2011-04-06 Richard Guenther <rguenther@suse.de>
17886
17887 PR tree-optimization/47663
17888 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
17889 call_stmt_time fields.
17890 (cgraph_edge_inlinable_p): Declare.
17891 (cgraph_edge_recursive_p): New inline function.
17892 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
17893 (cgraph_clone_edge): Copy it.
17894 * ipa-inline.c (cgraph_estimate_edge_time): New function.
17895 Account for call stmt time.
17896 (cgraph_estimate_time_after_inlining): Take edge argument.
17897 (cgraph_estimate_edge_growth): Account call stmt size.
17898 (cgraph_estimate_size_after_inlining): Take edge argument.
17899 (cgraph_mark_inline_edge): Adjust.
17900 (cgraph_check_inline_limits): Likewise.
17901 (cgraph_recursive_inlining_p): Remove.
17902 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
17903 (cgraph_decide_recursive_inlining): Take edge argument and
17904 adjust.
17905 (cgraph_decide_inlining_of_small_functions): Do not avoid
17906 diags for recursive inlining here.
17907 (cgraph_flatten): Adjust.
17908 (cgraph_decide_inlining_incrementally): Likewise.
17909 (estimate_function_body_sizes): Remove call cost handling.
17910 (compute_inline_parameters): Initialize caller edge call costs.
17911 (cgraph_estimate_edge_growth): New function.
17912 (cgraph_estimate_growth): Use it.
17913 (cgraph_edge_badness): Likewise.
17914 (cgraph_check_inline_limits): Take an edge argument.
17915 (cgraph_decide_inlining_of_small_functions): Adjust.
17916 (cgraph_decide_inlining): Likewise.
17917 * tree-inline.c (estimate_num_insns): Only account for call
17918 return value if it is used.
17919 (expand_call_inline): Avoid diagnostics on recursive inline
17920 functions here.
17921 * lto-cgraph.c (lto_output_edge): Output edge call costs.
17922 (input_edge): Input edge call costs.
17923
17924 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17925
17926 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
17927
17928 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
17929
17930 * doc/invoke.texi (Spec Files): Fix typo.
17931
17932 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
17933
17934 * profile.c (branch_prob): Move declaration of local variable. Remove
17935 obsolete ??? comment. Expand the location explicitly instead of using
17936 the LOCATION_FILE and LOCATION_LINE macros.
17937
17938 2011-04-06 Wei Guozhi <carrot@google.com>
17939
17940 PR target/47855
17941 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
17942 (arm_cond_branch): Likewise.
17943 (arm_cond_branch_reversed): Likewise.
17944 (arm_jump): Likewise.
17945 (push_multi): Likewise.
17946 * config/arm/constraints.md (Py): New constraint.
17947
17948 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17949
17950 PR bootstrap/48471
17951 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
17952 Move these...
17953 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
17954 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
17955 #ifdef DBX_DEBUGGING_INFO.
17956
17957 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
17958
17959 PR bootstrap/48403
17960 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
17961 if old and new states differ.
17962
17963 2011-04-05 Joseph Myers <joseph@codesourcery.com>
17964
17965 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
17966 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
17967 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
17968 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
17969 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
17970 mcfv4e): Use Alias.
17971 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
17972 ColdFire options to -mcpu= options.
17973
17974 2011-04-05 Jeff Law <law@redhat.com>
17975
17976 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
17977 check if BB is a successor of LOOP->header and return
17978 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
17979
17980 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
17981
17982 * cprop.c (struct reg_use): Remove.
17983 (reg_use_table): Make an array of RTX.
17984 (find_used_regs, constprop_register, local_cprop_pass,
17985 bypass_block): Simplify users of reg_use_table.
17986 (cprop_insn): Likewise. Iterate if copy propagation succeeded
17987 on one of the uses found by find_used_regs.
17988
17989 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17990
17991 PR bootstrap/48469
17992 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
17993 declaration.
17994
17995 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17996
17997 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
17998 as an rtx.
17999 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
18000
18001 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
18002
18003 PR middle-end/48441
18004 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
18005
18006 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
18007
18008 * combine.c: Include obstack.h.
18009 (struct insn_link): Define.
18010 (uid_log_links): Adjust type.
18011 (FOR_EACH_LOG_LINK): New macro.
18012 (insn_link_obstack): Declare.
18013 (alloc_insn_link): Define.
18014 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
18015 type of link variables.
18016 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
18017 (try_combine, record_promoted_values, distribute_notes): Likewise.
18018 (distribute_links): Likewise. Tweak prototype.
18019 (clear_log_links): Delete.
18020 (adjust_for_new_dest): Call alloc_insn_link.
18021 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
18022
18023 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
18024
18025 * gcse.c (modify_mem_list): Convert to an array of VECs.
18026 (canon_modify_mem_list, compute_transp): Tweak formatting.
18027 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
18028 (load_killed_in_block_p): Likewise.
18029 (record_last_mem_set_info): Likewise.
18030 (clear_modify_mem_tables): Likewise.
18031
18032 2011-04-05 Tom de Vries <tom@codesourcery.com>
18033
18034 PR middle-end/48461
18035 * function.c (emit_use_return_register_into_block): Only define if
18036 HAVE_return.
18037
18038 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
18039
18040 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
18041
18042 2011-04-05 Joseph Myers <joseph@codesourcery.com>
18043
18044 * config/rx/rx-opts.h: New.
18045 * config/rx/rx.c (rx_cpu_type): Remove.
18046 (rx_handle_option): Don't assert that global structures are in
18047 use. Access variables via opts pointer. Defer most handling of
18048 OPT_mint_register_. Use error_at.
18049 (rx_option_override): Handle deferred OPT_mint_register_ here.
18050 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
18051 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
18052 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
18053 (rx_cpu_types): New Enum and EnumValue entries.
18054 (mint-register=): Use Defer and use Var accordingly.
18055
18056 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
18057
18058 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
18059 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
18060 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
18061 Move these...
18062 (debug_free_queue, debug_nesting, symbol_queue_index):
18063 ...and these...
18064 * dbxout.c: ...to here. Make static.
18065
18066 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
18067
18068 * gcse.c (modify_pair): Define. Define a VEC of it.
18069 (canon_modify_mem_list): Convert to an array of VECs.
18070 (free_insn_expr_list_list): Delete.
18071 (clear_modify_mem_tables): Call VEC_free instead.
18072 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
18073 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
18074 (canon_list_insert, compute_transp): Likewise.
18075
18076 2011-04-05 Tom de Vries <tom@codesourcery.com>
18077
18078 PR target/43920
18079 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
18080 for size.
18081
18082 2011-04-05 Tom de Vries <tom@codesourcery.com>
18083
18084 PR target/43920
18085 * function.c (emit_use_return_register_into_block): New function.
18086 (thread_prologue_and_epilogue_insns): Use
18087 emit_use_return_register_into_block.
18088
18089 2011-04-05 Tom de Vries <tom@codesourcery.com>
18090
18091 PR target/43920
18092 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
18093 insn.
18094
18095 2011-04-05 Tom de Vries <tom@codesourcery.com>
18096
18097 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
18098
18099 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
18100
18101 * config/arm/arm.md (define_constants for unspec): Replace with
18102 define_c_enum.
18103 (define_constants for unspecv): Replace with define_c_enum.
18104 * config/arm/neon.md (define_constants for unspec): Replace with
18105 define_c_enum.
18106
18107 2011-04-04 Richard Henderson <rth@redhat.com>
18108
18109 PR bootstrap/48400
18110 * dwarf2out.c (output_line_info): Always emit line info from
18111 at least one section.
18112 (dwarf2out_init): Create text_section_line_info here ...
18113 (set_cur_line_info_table): ... not here.
18114
18115 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
18116
18117 PR target/48380
18118 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
18119 not called.
18120
18121 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
18122
18123 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
18124
18125 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
18126 (expr_equiv_p): Remove.
18127 (insert_set_in_table): Look at <dest, src> pair instead of expr.
18128 (hash_scan_set): Update call to insert_set_in_table.
18129 (dump_hash_table): Dump <dest, src> pair.
18130 (lookup_set): Simplify. Lookup <dest, src> pair.
18131 (compute_transp): Remove, fold heavily simplified code into...
18132 (compute_local_properties): ...here. Expect COMP and TRANSP
18133 unconditionally.
18134 (find_avail_set): Take set directly from struct expr.
18135 (find_bypass-set): Likewise.
18136 (bypass_block): Likewise.
18137 (cprop_insn): Likewise. Remove redundant INSN_P test.
18138
18139 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
18140 checks on form of COND from find_implicit_sets to here.
18141 (find_implicit_sets): Cleanup control flow. Split critical edges
18142 if it exposes implicit sets. Allocate/resize implicit_sets as
18143 necessary.
18144 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
18145 changed something. Run df_analyze after find_implicit_sets if any
18146 edges were split. Do not allocate implicit_sets here.
18147
18148 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
18149 (gcse_obstack): Renamed to cprop_obstack.
18150 (GNEW, GNEWVEC, GNEWVAR): Remove.
18151 (gmalloc): Remove.
18152 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
18153 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
18154 (gcse_alloc): Likewise, and rename to cprop_alloc.
18155 (alloc_gcse_men, free_gcse_mem): Remove.
18156 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
18157 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
18158 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
18159
18160 * cprop.c (oprs_not_set_p): Remove.
18161 (mark_set, mark_clobber): Remove.
18162 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
18163 (reg_not_set_p): New function.
18164 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
18165 (cprop_insn): Likewise.
18166 (cprop_jump): Use FOR_EACH_EDGE.
18167
18168 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
18169
18170 PR bootstrap/48403
18171 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
18172 (rank_for_schedule): Use scheduled_insns vector instead of
18173 last_scheduled_insn.
18174 (ok_for_early_queue_removal): Likewise.
18175 (queue_to_ready): Search forward in nonscheduled_insns_begin if
18176 we have a dbg_cnt.
18177 (choose_ready): Likewise.
18178 (commit_schedule): Use VEC_iterate.
18179 (schedule_block): Initialize nonscheduled_insns_begin. If we have
18180 a dbg_cnt, use it and ensure the first insn is in the ready list.
18181 (haifa_sched_init): Allocate scheduled_insns.
18182 (sched_extend_ready_list): Don't allocate it; reserve space.
18183 (haifa_sched_finish): Free it.
18184
18185 2011-04-04 Joseph Myers <joseph@codesourcery.com>
18186
18187 * optc-gen.awk: Always remove type from Variable entry before
18188 recording in var_seen.
18189
18190 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
18191
18192 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
18193 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
18194 call to tidy_fallthru_edges.
18195
18196 2011-04-04 Joseph Myers <joseph@codesourcery.com>
18197
18198 * doc/options.texi (ToLower): Document.
18199 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
18200 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
18201 * opts.h (cl_option): Add cl_tolower field.
18202 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
18203 arguments with lowercase strings.
18204 * config/rx/rx.opt (mcpu=): Add ToLower.
18205 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
18206 argument.
18207
18208 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
18209
18210 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
18211
18212 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
18213
18214 * config/vax/vax.c: Include reload.h.
18215
18216 2011-04-04 Anatoly Sokolov <aesok@post.ru>
18217
18218 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
18219 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18220 (sparc_preferred_reload_class): New function.
18221
18222 2011-04-04 Jakub Jelinek <jakub@redhat.com>
18223
18224 PR debug/48401
18225 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
18226 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
18227
18228 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
18229
18230 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
18231 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
18232
18233 2011-04-03 Anatoly Sokolov <aesok@post.ru>
18234
18235 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
18236 (ASM_OUTPUT_ALIGNED_BSS): Define.
18237
18238 2011-04-03 Michael Matz <matz@suse.de>
18239
18240 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
18241 and next_slot members.
18242 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
18243 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
18244 (lto_streamer_cache_append): Declare.
18245 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
18246 unsigned index, remove offset parameter, ensure that we append
18247 or update existing entries.
18248 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
18249 parameter, update next_slot for append.
18250 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
18251 parameter.
18252 (lto_streamer_cache_insert_at): Likewise.
18253 (lto_streamer_cache_append): New function.
18254 (lto_streamer_cache_lookup): Use unsigned index.
18255 (lto_streamer_cache_get): Likewise.
18256 (lto_record_common_node): Don't test tree_node_can_be_shared.
18257 (preload_common_node): Adjust call to lto_streamer_cache_insert.
18258 (lto_streamer_cache_delete): Don't free offsets member.
18259 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
18260 (lto_output_string_with_length): Use lto_output_data_stream.
18261 (lto_output_tree_header): Remove ix parameter, don't write it.
18262 (lto_output_builtin_tree): Likewise.
18263 (lto_write_tree): Adjust callers to above, don't track and write
18264 offset, write unsigned index.
18265 (output_unreferenced_globals): Don't emit all global vars.
18266 (write_global_references): Use unsigned indices.
18267 (lto_output_decl_state_refs): Likewise.
18268 (write_symbol): Likewise.
18269 * lto-streamer-in.c (lto_input_chain): Move earlier.
18270 (input_function): Use unsigned index.
18271 (input_alias_pairs): Don't read and then ignore all global vars.
18272 (lto_materialize_tree): Remove ix_p parameter, don't read index,
18273 don't pass it back, use lto_streamer_cache_append.
18274 (lto_register_var_decl_in_symtab): Use unsigned index.
18275 (lto_register_function_decl_in_symtab): Likewise.
18276 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
18277 index.
18278 (lto_get_builtin_tree): Don't read index, use
18279 lto_streamer_cache_append.
18280 (lto_read_tree): Adjust call to lto_materialize_tree.
18281
18282 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
18283 don't use function calls in arguments to MIN.
18284
18285 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
18286 twice.
18287
18288 * gimple.c (gimple_type_leader_entry): Mark deletable.
18289
18290 2011-04-03 Alan Modra <amodra@gmail.com>
18291
18292 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
18293
18294 2011-04-03 Michael Matz <matz@suse.de>
18295
18296 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
18297 an integer.
18298 * tree.h (tree_decl_non_common.vindex): Adjust comment.
18299
18300 2011-04-03 Michael Matz <matz@suse.de>
18301
18302 * cgraphbuild.c (record_reference): Canonicalize constructor values.
18303 * gimple-fold.c (canonicalize_constructor_val): Accept being called
18304 without function context.
18305 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
18306 current_function_decl and cfun.
18307
18308 2011-04-03 Michael Matz <matz@suse.de>
18309
18310 * tree.c (decl_init_priority_insert): Don't create entry for
18311 default priority.
18312 (decl_fini_priority_insert): Ditto.
18313 (fields_compatible_p, find_compatible_field): Remove.
18314 * tree.h (fields_compatible_p, find_compatible_field): Remove.
18315 * gimple.c (gimple_compare_field_offset): Adjust block comment.
18316
18317 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
18318
18319 * combine.c (try_combine): Remove useless local variable.
18320
18321 2011-04-03 Richard Guenther <rguenther@suse.de>
18322 Ira Rosen <ira.rosen@linaro.org>
18323
18324 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
18325 non-variable offsets and compare the remaining bases of the two
18326 accesses instead of looking for exact same data-ref.
18327
18328 2011-04-02 Kai Tietz <ktietz@redhat.com>
18329
18330 PR target/48416
18331 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
18332
18333 * i386.c (ix86_is_msabi_thiscall): New helper function.
18334 (ix86_is_type_thiscall): New helper function.
18335 (ix86_comp_type_attributes): Handle thiscall for method-functions
18336 special.
18337 (init_cumulative_args): Likewise.
18338 (find_drap_reg): Likewise.
18339 (ix86_static_chain): Likewise.
18340 (x86_this_parameter): Likewise.
18341 (x86_output_mi_thunk): Likewise.
18342
18343 2011-04-01 Olivier Hainque <hainque@adacore.com>
18344 Nicolas Setton <setton@adacore.com>
18345 Eric Botcazou <ebotcazou@adacore.com>
18346
18347 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
18348 (add_gnat_descriptive_type_attribute): New function.
18349 (gen_array_type_die): Call it.
18350 (gen_enumeration_type_die): Likewise.
18351 (gen_struct_or_union_type_die): Likewise.
18352 (modified_type_die): Likewise.
18353 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
18354 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
18355 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
18356
18357 2011-04-01 Jakub Jelinek <jakub@redhat.com>
18358
18359 PR bootstrap/48148
18360 * dwarf2out.c (resolve_addr): Don't call force_decl_die
18361 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
18362
18363 Revert:
18364 2011-03-17 Richard Guenther <rguenther@suse.de>
18365
18366 PR bootstrap/48148
18367 * lto-cgraph.c (input_overwrite_node): Clear the abstract
18368 origin for decls in other ltrans units.
18369 (input_varpool_node): Likewise.
18370
18371 2011-04-01 Jakub Jelinek <jakub@redhat.com>
18372
18373 PR middle-end/48335
18374 * expr.c (expand_assignment): Handle all possibilities
18375 if TO_RTX is CONCAT.
18376 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
18377 (store_split_bit_field): If SUBREG_REG (op0) or
18378 op0 itself has smaller mode than word, return it
18379 for offset 0 and const0_rtx for out-of-bounds stores.
18380 If word is const0_rtx, skip it.
18381
18382 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
18383
18384 * config/h8300/h8300.c (print_operand_address): Rename to...
18385 (h8300_print_operand_address): ...this. Make static. Adjust comments.
18386 Call h8300_print_operand and h8300_print_operand_address instead of
18387 print_operand and print_operand_address. Declare.
18388 (print_operand): Renake to...
18389 (h8300_print_operand): ...this. Make static. Adjust comments.
18390 Call h8300_print_operand instead of print_operand. Declare.
18391 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
18392 (h8300_register_move_cost): Likewise.
18393 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
18394 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
18395 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
18396 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
18397 * config/h8300/h8300-protos.h (print_operand): Delete.
18398 (print_operand_address): Delete.
18399
18400 2011-04-01 Richard Henderson <rth@redhat.com>
18401
18402 PR 48400
18403 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
18404 in strict mode before dwarf4. Re-order tests to early out
18405 before switching sections.
18406
18407 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
18408
18409 * config/h8300/constraints.md: New file.
18410 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
18411 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
18412 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
18413 * config/h8300/predicates.md (bit_operand): Likewise.
18414 (incdec_operand): Use satisfies_constraint_M and
18415 satisfies_constraint_O. Don't use C code block.
18416 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
18417 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
18418 (compute_mov_length): Use satisfies_constraint_G.
18419 (fix_bit_operand): Use satisfies_constraint_U.
18420 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
18421 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
18422 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
18423 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
18424 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
18425 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
18426 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18427 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
18428 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
18429 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
18430 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
18431 (EXTRA_MEMORY_CONSTRAINT): Delete.
18432
18433 2011-04-01 Andrew Pinski <pinskia@gmail.com>
18434 Michael Meissner <meissner@linux.vnet.ibm.com>
18435
18436 PR target/48262
18437 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
18438 operands, as per the specifications.
18439
18440 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
18441 (vec_extract_evenv4sf): Ditto.
18442 (vec_extract_evenv8hi): Ditto.
18443 (vec_extract_evenv16qi): Ditto.
18444 (vec_extract_oddv4si): Ditto.
18445
18446 2011-03-31 Mark Wielaard <mjw@redhat.com>
18447
18448 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
18449 high_pc attribute if the CU has no associated code. Only output
18450 DW_AT_entry_pc for CU if not generating strict dwarf and
18451 dwarf_version < 4.
18452
18453 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
18454
18455 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
18456 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
18457 out of ...
18458 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
18459 * final.c (final_start_function): Call the new function rather
18460 than using a NULL argument for dwarf2out_frame_debug.
18461
18462 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
18463 that contains the prologue.
18464
18465 * haifa-sched.c (queue_insn): New arg REASON. All callers
18466 changed. Print it in debugging output.
18467
18468 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
18469
18470 * sched-ebb.c (begin_schedule_ready): Remove second argument.
18471 Split most of the code into...
18472 (begin_move_insn): ... here. New function.
18473 (ebb_sched_info): Add a pointer to it.
18474 * haifa-sched.c (scheduled_insns): New static variable.
18475 (sched_extend_ready_list): Allocate it.
18476 (schedule_block): Use it to record the order of scheduled insns.
18477 Perform RTL changes to move insns only after all scheduling
18478 decisions have been made.
18479 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
18480 begin_move_insn field.
18481 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
18482 * sched-int.h (struct haifa_sched_info): Remove second argument
18483 from begin_schedule_ready hook. Add new member begin_move_insn.
18484 * sched-rgn.c (begin_schedule_ready): Remove second argument.
18485 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
18486
18487 * haifa-sched.c (prune_ready_list): New function, broken out of
18488 schedule_block.
18489 (schedule_block): Use it.
18490
18491 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18492
18493 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
18494
18495 2011-04-01 Kai Tietz <ktietz@redhat.com>
18496
18497 * config.gcc (*-*-mingw*): Allow as option the
18498 posix threading model.
18499 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
18500 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
18501 definition.
18502 (CPP_SPEC): Add pthread/no-pthread handling.
18503 (LIB_SPEC): Likewise.
18504 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
18505 (LIB_SPEC): Likewise.
18506 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
18507 flag to pass -pthread option for shared libgcc build.
18508 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
18509 for shared libgcc build.
18510 * config/i386/t-mingw-pthread: New file.
18511 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
18512 New define to enable use of library pthread by default.
18513 * config/i386/mingw.opt (pthread): New driver option.
18514 (no-pthread): New driver option.
18515 * config/i386/cygming.opt: Make sure trailing empty line is retained.
18516 * config/i386/mingw-w64.opt: Likewise.
18517
18518 2011-04-01 Gary Funck <gary@intrepid.com>
18519
18520 * c-decl.c (grokdeclarator): Fix formatting.
18521
18522 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18523
18524 * expr.c (emit_block_move_via_movmem): Use n_generator_args
18525 instead of n_operands.
18526 (set_storage_via_setmem): Likewise.
18527 * optabs.c (maybe_gen_insn): Likewise.
18528 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
18529 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
18530 (mips_expand_builtin_direct): Likewise.
18531 * config/spu/spu.c (expand_builtin_args): Likewise.
18532
18533 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18534
18535 * recog.h (insn_data_d): Add n_generator_args.
18536 * genoutput.c (data): Likewise.
18537 (output_insn_data): Print it.
18538 (max_opno, num_dups): Delete.
18539 (scan_operands): Just fill in "d->operand[...]".
18540 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
18541
18542 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18543
18544 * gensupport.h (pattern_stats): New structure.
18545 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
18546 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
18547 (max_operand_1, max_operand_vec): Delete.
18548 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
18549
18550 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
18551
18552 * emit-rtl.c (emit_pattern_after_setloc): New function.
18553 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
18554 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
18555 (emit_pattern_after): New function.
18556 (emit_insn_after, emit_jump_insn_after): Call it.
18557 (emit_call_insn_after, emit_debug_insn_after): Likewise.
18558 (emit_pattern_before_setloc): New function.
18559 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
18560 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
18561 Likewise.
18562 (emit_pattern_before): New function.
18563 (emit_insn_before, emit_jump_insn_before): Call it.
18564 (emit_call_insn_before, emit_debug_insn_before): Likewise.
18565
18566 2011-03-31 Richard Henderson <rth@redhat.com>
18567
18568 * dwarf2out.c (dw_separate_line_info_ref): Remove.
18569 (dw_separate_line_info_entry): Remove.
18570 (enum dw_line_info_opcode): New.
18571 (dw_line_info_entry): Use it.
18572 (dw_line_info_table, dw_line_info_table_p): New.
18573 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
18574 (line_info_table, line_info_label_num): Remove.
18575 (line_info_table_in_use): Remove.
18576 (separate_line_info_table): Remove.
18577 (separate_line_info_table_allocated): Remove.
18578 (separate_line_info_table_in_use): Remove.
18579 (LINE_INFO_TABLE_INCREMENT): Remove.
18580 (line_info_label_num): New.
18581 (cur_line_info_table): New.
18582 (text_section_line_info, cold_text_section_line_info): New.
18583 (separate_line_info): New.
18584 (SEPARATE_LINE_CODE_LABEL): Remove.
18585 (print_dwarf_line_table): Remove.
18586 (debug_dwarf): Don't dump it.
18587 (output_one_line_info_table): New.
18588 (output_line_info): Use it.
18589 (new_line_info_table): New.
18590 (set_cur_line_info_table): New.
18591 (dwarf2out_switch_text_section): Use it.
18592 (dwarf2out_begin_function): Likewise.
18593 (push_dw_line_info_entry): New.
18594 (dwarf2out_source_line): Rewrite for new line info tables.
18595 (dwarf2out_init): Remove dead initailizations.
18596
18597 2011-03-31 Joseph Myers <joseph@codesourcery.com>
18598
18599 * opts.h (cl_option): Add comments to fields. Add bit-fields for
18600 various flags.
18601 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
18602 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
18603 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
18604 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
18605 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
18606 * opt-functions.awk (flag_init, switch_bit_fields): New.
18607 (switch_flags): Don't handle flags moved to bit-fields. Don't
18608 generate CL_MISSING_OK or CL_SAVE.
18609 * optc-gen.awk: Update to generate bit-field output as well as
18610 flags field.
18611 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
18612 bit-field instead of CL_REJECT_DRIVER flag.
18613 * opts-common.c (generate_canonical_option,
18614 decode_cmdline_option): Use bit-fields instead of CL_* flags.
18615 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
18616 instead of CL_REJECT_NEGATIVE flag.
18617 * toplev.c (print_switch_values): Use cl_report bit-field instead
18618 of CL_REPORT flag.
18619
18620 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
18621
18622 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
18623 a zero minimum index only if it is redundant.
18624
18625 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
18626
18627 PR rtl-optimization/48381
18628 * ira-color.c (assign_hard_reg): Use hard reg set intersection
18629 instead of ira_class_hard_reg_index for calculating conflicting
18630 hard registers.
18631
18632 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
18633
18634 * cprop.c: Clean up hash table building.
18635 (reg_avail_info): Remove.
18636 (oprs_available_p): Remove.
18637 (record_last_reg_set_info): Remove.
18638 (record_last_set_info): Remove.
18639 (reg_available_p): New function.
18640 (gcse_constant_p): Do not treat unfolded conditions as constants.
18641 (make_set_regs_unavailable): New function.
18642 (hash_scan_set): Simplify with new reg_available_p.
18643 (compute_hash_table_work): Traverse insns stream only once.
18644 Do not compute reg_avail_info. Traverse insns in reverse order.
18645 Record implicit sets after recording explicit sets from the block.
18646
18647 2011-03-31 Michael Matz <matz@suse.de>
18648
18649 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
18650
18651 2011-03-31 Anatoly Sokolov <aesok@post.ru>
18652
18653 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
18654 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
18655 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18656 (h8300_mode_dependent_address_p): New function.
18657 (h8300_get_index): Make static.
18658
18659 2011-03-31 Jeff Law <law@redhat.com>
18660
18661 * reload1.c (elimination_effects): Fix typo in recent change.
18662
18663 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
18664 typo potentially leading to null pointer dereference.
18665
18666 * caller-save.c (new_saved_hard_reg): Eliminate return value.
18667 (setup_save_areas): Corresponding changes to avoid useless
18668 assignments.
18669
18670 * jump.c (reversed_comparison_code_parts): Avoid successive return
18671 statements when REVERSE_CONDITION is defined.
18672
18673 * expr.c (expand_assignment): Avoid useless assignments.
18674 (expand_expr_real_1): Likewise.
18675 (expand_expr_real_2): Avoid useless statements.
18676
18677 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
18678
18679 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
18680
18681 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
18682 statements.
18683
18684 * stmt.c (expand_expr_stmt): Avoid useless assignment.
18685
18686 2011-03-31 Joseph Myers <joseph@codesourcery.com>
18687
18688 PR target/47109
18689 * doc/tm.texi.in (TARGET_VERSION): Remove.
18690 * doc/tm.texi: Regenerate.
18691 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
18692 * collect2.c (main): Don't use TARGET_VERSION.
18693 * mips-tdump.c (main): Don't use TARGET_VERSION.
18694 * mips-tfile.c (main): Don't use TARGET_VERSION.
18695 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
18696 * config/rs6000/vxworksae.h: Remove.
18697 * config/alpha/alpha.h (TARGET_VERSION): Remove.
18698 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
18699 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
18700 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
18701 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
18702 * config/arm/arm.h (TARGET_VERSION): Remove.
18703 * config/arm/coff.h (TARGET_VERSION): Remove.
18704 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
18705 * config/arm/elf.h (TARGET_VERSION): Remove.
18706 * config/arm/freebsd.h (TARGET_VERSION): Remove.
18707 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
18708 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
18709 * config/arm/pe.h (TARGET_VERSION): Remove.
18710 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
18711 * config/arm/semi.h (TARGET_VERSION): Remove.
18712 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
18713 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
18714 * config/arm/vxworks.h (TARGET_VERSION): Remove.
18715 * config/avr/avr.h (TARGET_VERSION): Remove.
18716 * config/bfin/bfin.h (TARGET_VERSION): Remove.
18717 * config/fr30/fr30.h (TARGET_VERSION): Remove.
18718 * config/frv/frv.h (TARGET_VERSION): Remove.
18719 * config/h8300/h8300.h (TARGET_VERSION): Remove.
18720 * config/i386/cygwin.h (TARGET_VERSION): Remove.
18721 * config/i386/darwin.h (TARGET_VERSION): Remove.
18722 * config/i386/darwin64.h (TARGET_VERSION): Remove.
18723 * config/i386/djgpp.h (TARGET_VERSION): Remove.
18724 * config/i386/freebsd.h (TARGET_VERSION): Remove.
18725 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
18726 * config/i386/gnu.h (TARGET_VERSION): Remove.
18727 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
18728 * config/i386/i386elf.h (TARGET_VERSION): Remove.
18729 * config/i386/linux.h (TARGET_VERSION): Remove.
18730 * config/i386/linux64.h (TARGET_VERSION): Remove.
18731 * config/i386/lynx.h (TARGET_VERSION): Remove.
18732 * config/i386/mingw32.h (TARGET_VERSION): Remove.
18733 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
18734 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
18735 * config/i386/netware.h (TARGET_VERSION): Remove.
18736 * config/i386/nto.h (TARGET_VERSION): Remove.
18737 * config/i386/openbsd.h (TARGET_VERSION): Remove.
18738 * config/i386/vxworks.h (TARGET_VERSION): Remove.
18739 * config/ia64/elf.h (TARGET_VERSION): Remove.
18740 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
18741 * config/ia64/hpux.h (TARGET_VERSION): Remove.
18742 * config/ia64/linux.h (TARGET_VERSION): Remove.
18743 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
18744 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
18745 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
18746 * config/lm32/lm32.h (TARGET_VERSION): Remove.
18747 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
18748 * config/m32c/m32c.h (TARGET_VERSION): Remove.
18749 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
18750 * config/m32r/m32r.h (TARGET_VERSION): Remove.
18751 * config/m68k/linux.h (TARGET_VERSION): Remove.
18752 * config/m68k/m68k.h (TARGET_VERSION): Remove.
18753 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
18754 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
18755 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
18756 * config/mep/mep.h (TARGET_VERSION): Remove.
18757 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
18758 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
18759 * config/mips/iris6.h (MACHINE_TYPE): Remove.
18760 * config/mips/linux.h (TARGET_VERSION): Remove.
18761 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
18762 * config/mips/vxworks.h (TARGET_VERSION): Remove.
18763 * config/mmix/mmix.h (TARGET_VERSION): Remove.
18764 * config/mn10300/linux.h (TARGET_VERSION): Remove.
18765 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
18766 * config/pa/pa.h (TARGET_VERSION): Remove.
18767 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
18768 * config/picochip/picochip.h (TARGET_VERSION): Remove.
18769 * config/rs6000/aix.h (TARGET_VERSION): Remove.
18770 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
18771 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
18772 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
18773 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
18774 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
18775 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
18776 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
18777 * config/rs6000/linux.h (TARGET_VERSION): Remove.
18778 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
18779 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
18780 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
18781 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
18782 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
18783 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
18784 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
18785 * config/s390/linux.h (TARGET_VERSION): Remove.
18786 * config/s390/s390.h (TARGET_VERSION): Remove.
18787 * config/s390/tpf.h (TARGET_VERSION): Remove.
18788 * config/score/score.h (TARGET_VERSION): Remove.
18789 * config/sh/linux.h (TARGET_VERSION): Remove.
18790 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
18791 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
18792 * config/sh/sh.h (TARGET_VERSION): Remove.
18793 * config/sh/sh64.h (TARGET_VERSION): Remove.
18794 * config/sh/superh.h (TARGET_VERSION): Remove.
18795 * config/sh/vxworks.h (TARGET_VERSION): Remove.
18796 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
18797 * config/sparc/linux.h (TARGET_VERSION): Remove.
18798 * config/sparc/linux64.h (TARGET_VERSION): Remove.
18799 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
18800 TARGET_NAME32, TARGET_NAME): Remove.
18801 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
18802 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
18803 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
18804 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
18805 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
18806 * config/spu/spu.h (TARGET_VERSION): Remove.
18807 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
18808 * config/v850/v850.h (TARGET_VERSION): Remove.
18809 * config/vax/linux.h (TARGET_VERSION): Remove.
18810 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
18811 * config/xtensa/elf.h (TARGET_VERSION): Remove.
18812 * config/xtensa/linux.h (TARGET_VERSION): Remove.
18813
18814 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
18815
18816 PR target/48142
18817 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
18818 frame-related from frame-unrelated adjustments to the stack pointer.
18819
18820 2011-03-31 Jakub Jelinek <jakub@redhat.com>
18821
18822 * common.opt (fdebug-types-section): Move earlier.
18823 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
18824
18825 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
18826
18827 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
18828 var.
18829
18830 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
18831
18832 * tree.h (CASE_CHAIN): Define.
18833 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
18834 (gimple_redirect_edge_and_branch): Likewise.
18835
18836 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
18837
18838 PR middle-end/48367
18839 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
18840 calculation.
18841
18842 2011-03-30 Jeff Law <law@redhat.com>
18843
18844 * PR bootstrap/48371
18845 * reload1.c (reload): Fix botch in last change.
18846
18847 * reload.h (struct reload): Fix typo introduced in last change.
18848
18849 2011-03-30 Joseph Myers <joseph@codesourcery.com>
18850
18851 * config/arm/arm.opt (mhard-float, msoft-float): Mark
18852 Undocumented. Remove help text.
18853 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
18854 -mhard-float.
18855
18856 2011-03-30 Joseph Myers <joseph@codesourcery.com>
18857
18858 * doc/options.texi (NegativeAlias): Document.
18859 (Alias): Mention NegativeAlias.
18860 * opt-functions.awk: Handle NegativeAlias.
18861 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
18862 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
18863 * opts.h (CL_NEGATIVE_ALIAS): Define.
18864 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
18865 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
18866 OPT_mspe_.
18867 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
18868 Alias entries.
18869 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
18870 mno-spe and mno-isel instead of mspe=no and -misel=no.
18871
18872 2011-03-29 Mark Wielaard <mjw@redhat.com>
18873
18874 * common.opt (fdebug-types-section): New flag.
18875 * doc/invoke.texi: Document new -fno-debug-types-section flag.
18876 * dwarf2out.c (use_debug_types): New define.
18877 (struct die_struct): Mark die_id with GTY desc use_debug_types.
18878 (print_die): Guard output of type unit signatures using
18879 use_debug_types.
18880 (build_abbrev_table): Replace assert of dwarf_version >= 4
18881 with assert on use_debug_types.
18882 (size_of_die): Likewise.
18883 (unmark_dies): Likewise.
18884 (value_format): Decide AT_ref_external form on use_debug_types.
18885 (output_die): Replace dwarf_version version check guard with
18886 use_debug_types where appropriate.
18887 (modified_type_die): Likewise.
18888 (gen_reference_type_die): Likewise.
18889 (dwarf2out_start_source_file): Likewise.
18890 (dwarf2out_end_source_file): Likewise.
18891 (prune_unused_types_walk_attribs): Likewise.
18892 (dwarf2out_finish): Likewise.
18893
18894 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
18895
18896 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
18897
18898 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18899
18900 PR rtl-optimization/48332
18901 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
18902 mode of input operand N and modeN to its actual mode.
18903
18904 2011-03-30 Jeff Law <law@redhat.com>
18905
18906 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
18907 define accessor macro.
18908 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
18909 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
18910 (reg_equiv_init): Likewise.
18911 (reg_equivs_size): New variable.
18912 (reg_equiv_init_size): Remove.
18913 (allocate_initial_values): Move prototype to here from....
18914 * integrate.h (allocate_initial_values): Remove prototype.
18915 * integrate.c: Include reload.h.
18916 (allocate_initial_values): Corresponding changes.
18917 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
18918 (fix_reg_equiv_init, no_equiv): Corresponding changes.
18919 (update_equiv_regs): Corresponding changes.
18920 (ira): Corresponding changes.
18921 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
18922 (push_secondary_reload): Corresponding changes.
18923 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
18924 (make_memloc, find_reloads_address): Corresponding changes.
18925 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
18926 (find_reloads_address_1): Corresponding changes.
18927 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
18928 (refers_to_regno_for_reload_p): Corresponding changes.
18929 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
18930 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
18931 * reload1.c: Include ggc.h.
18932 (grow_reg_equivs): New function.
18933 (replace_pseudos_in, reload): Corresponding changes.
18934 (calculate_needs_all_insns, alter_regs): Corresponding changes.
18935 (eliminate_regs_1, elimination_effects): Corresponding changes.
18936 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
18937 (delete_output_reload): Likewise.
18938 * caller-save.c (mark_referenced_regs): Corresponding changes.
18939 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
18940 * frv/predicates.md (frv_load_operand): Corresponding changes.
18941 * microblaze/microblaze.c (double_memory_operand): Corresponding
18942 changes.
18943 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
18944 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
18945 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
18946 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
18947 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
18948 changes.
18949 * pa/pa.c (emit_move_sequence): Corresponding changes.
18950 * vax/vax.c (nonindexed_address_p): Corresponding changes.
18951
18952 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18953
18954 PR target/47551
18955 * config/arm/arm.c (coproc_secondary_reload_class): Handle
18956 structure modes. Don't check neon_vector_mem_operand for
18957 vector or structure modes.
18958
18959 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18960 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18961
18962 PR target/43590
18963 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
18964 operand 1 and reshuffle the operands to match.
18965 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
18966
18967 2011-03-30 Christian Schüler <cschueler@gmx.de>
18968
18969 PR driver/48208
18970 * config/c.opt (F): Added 'Driver' to -F option.
18971
18972 PR driver/48260
18973 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
18974 handler function.
18975 * config/darwin.opt: Added '-arch' option.
18976
18977 2011-03-30 Nick Clifton <nickc@redhat.com>
18978
18979 * config/rx/rx.md: Add peepholes and patterns to combine
18980 extending loads and simple arithmetic instructions.
18981 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
18982 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
18983 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
18984 modes to use pre-decrement and post-increment addressing.
18985 (rx_is_restricted_memory_address): Add range checking of REG+INT
18986 addresses.
18987 (rx_print_operand): Add support for %Q. Fix handling of %Q.
18988 (rx_memory_move_cost): Adjust cost of stores.
18989 (rx_adjust_insn_length): New function.
18990
18991 2011-03-30 Jakub Jelinek <jakub@redhat.com>
18992
18993 PR c/48305
18994 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
18995 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
18996 matching arg00/arg01 types.
18997
18998 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
18999
19000 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
19001 last_location to UNKNOWN_LOCATION.
19002
19003 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
19004
19005 PR target/48349
19006 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
19007 FLOAT_SSE_REGS.
19008
19009 2011-03-30 Joseph Myers <joseph@codesourcery.com>
19010 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19011
19012 PR bootstrap/48337
19013 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
19014 Init(PROCESSOR_V7).
19015 (sparc_cpu): Likewise.
19016 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
19017 PROCESSOR_V7.
19018
19019 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
19020
19021 PR target/48336
19022 PR middle-end/48342
19023 PR rtl-optimization/48345
19024 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
19025 hard regs for given mode from profitable regs when doing secondary
19026 allocation.
19027
19028 2011-03-29 Jeff Law <law@redhat.com>
19029
19030 PR bootstrap/48327
19031 * tree-ssa-threadupdate.c (struct redirection_data): Remove
19032 do_not_duplicate field.
19033 (lookup_redirection_data): Corresponding changes.
19034 (create_duplicates): Always create a template block.
19035 (redirect_edges): Remove code which reused the original block
19036 when it was going to become unreachable code.
19037 (thread_block): Don't set do_not_duplicate field.
19038
19039 2011-03-29 Joseph Myers <joseph@codesourcery.com>
19040
19041 * lto-opts.c (register_user_option_p, lto_register_user_option):
19042 Make type argument unsigned.
19043 * lto-streamer.h (lto_register_user_option): Make type argument
19044 unsigned.
19045 * opth-gen.awk: Make CL_* macros unsigned.
19046 * opts-common.c (find_opt): Make lang_mask argument unsigned.
19047 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
19048 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
19049 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
19050 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
19051 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
19052 (find_opt): Make lang_mask argument unsigned.
19053
19054 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
19055
19056 PR rtl-optimization/48331
19057 PR rtl-optimization/48334
19058 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
19059 for any used algorithm.
19060
19061 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
19062
19063 * ira-conflicts.c (build_object_conflicts): Add unused attribute
19064 to parent_max.
19065
19066 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
19067
19068 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
19069 (alpha_option_override): Don't set alpha_sr_alias_set.
19070 (emit_frame_store_1): Use gen_frame_mem rather than calling
19071 set_mem_alias_set.
19072 (alpha_expand_epilogue): Ditto.
19073
19074 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
19075
19076 PR tree-optimization/48290
19077 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
19078 vectorization, check that relevant phis in the basic block after
19079 the inner loop are really inner loop's exit phis.
19080
19081 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
19082
19083 PR debug/48190
19084 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
19085 (cached_dw_loc_list_def): New structure.
19086 (cached_dw_loc_list): New typedef.
19087 (cached_dw_loc_list_table): New variable.
19088 (cached_dw_loc_list_table_hash): New function.
19089 (cached_dw_loc_list_table_eq): Likewise.
19090 (add_location_or_const_value_attribute): Take a bool cache_p.
19091 Cache the list when the parameter is true.
19092 (gen_formal_parameter_die): Update caller.
19093 (gen_variable_die): Likewise.
19094 (dwarf2out_finish): Likewise.
19095 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
19096 while generating debug info for the decl.
19097 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
19098 (dwarf2out_init): Initialize cached_dw_loc_list_table.
19099 (resolve_addr): Cache the result of resolving a chain of
19100 location lists.
19101
19102 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
19103
19104 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
19105 conflict object hard regset nodes have intersecting hard reg sets.
19106
19107 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
19108 after regstat_init_n_sets_and_refs.
19109
19110 * ira.c: Add more comments at the top.
19111 (setup_stack_reg_pressure_class, setup_pressure_classes):
19112 Add comments how we compute the register pressure classes.
19113 (setup_allocno_and_important_classes): Add more comments.
19114 (setup_class_translate_array, reorder_important_classes)
19115 (setup_reg_class_relations): Add comments.
19116
19117 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
19118 start of the file.
19119
19120 * ira-color.c: Add 2011 to the Copyright line.
19121 (assign_hard_reg): Add more comments.
19122 (improve_allocation): Ditto.
19123
19124 * ira-costs.c: Add 2011 to the Copyright line.
19125 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
19126 comments.
19127 (setup_regno_cost_classes_by_mode): Ditto.
19128
19129 Initial patches from ira-improv branch:
19130
19131 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
19132
19133 * ira-build.c (ira_create_object): Remove initialization of
19134 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
19135 (ira_create_allocno): Remove initialization of
19136 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
19137 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
19138 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
19139 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
19140 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
19141 Initialize ALLOCNO_ADD_DATA.
19142 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
19143 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
19144 ALLOCNO_REG.
19145 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
19146 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
19147
19148 * ira.c (ira_reallocate): Remove.
19149 (setup_pressure_classes): Call
19150 ira_init_register_move_cost_if_necessary. Use
19151 ira_register_move_cost instead of ira_get_register_move_cost.
19152 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
19153 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
19154
19155 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
19156 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
19157 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
19158 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
19159 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
19160 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
19161 Fix formatting.
19162 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
19163 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
19164 (struct allocno_color_data): New.
19165 (allocno_color_data_t): New typedef.
19166 (allocno_color_data): New definition.
19167 (ALLOCNO_COLOR_DATA): New macro.
19168 (struct object_color_data): New.
19169 (object_color_data_t): New typedef.
19170 (object_color_data): New definition.
19171 (OBJECT_COLOR_DATA): New macro.
19172 (update_copy_costs, calculate_allocno_spill_cost): Call
19173 ira_init_register_move_cost_if_necessary. Use
19174 ira_register_move_cost instead of ira_get_register_move_cost.
19175 (move_spill_restore, update_curr_costs): Ditto.
19176 (allocno_spill_priority): Make it inline.
19177 (color_pass): Allocate and free allocno_color_dat and object_color_data.
19178 (struct coalesce_data, coalesce_data_t): New.
19179 (allocno_coalesce_data): New definition.
19180 (ALLOCNO_COALESCE_DATA): New macro.
19181 (merge_allocnos, coalesced_allocno_conflict_p): Use
19182 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
19183 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
19184 (coalesce_allocnos): Ditto.
19185 (setup_coalesced_allocno_costs_and_nums): Ditto.
19186 (collect_spilled_coalesced_allocnos): Ditto.
19187 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
19188 (setup_slot_coalesced_allocno_live_ranges): Ditto.
19189 (coalesce_spill_slots): Ditto.
19190 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
19191 free allocno_coalesce_data.
19192
19193 * ira-conflicts.c: Fix formatting.
19194 (process_regs_for_copy): Call
19195 ira_init_register_move_cost_if_necessary. Use
19196 ira_register_move_cost instead of ira_get_register_move_cost.
19197 (build_object_conflicts): Optimize.
19198
19199 * ira-costs.c (record_reg_classes): Optimize. Call
19200 ira_init_register_move_cost_if_necessary. Use
19201 ira_register_move_cost, ira_may_move_in_cost, and
19202 ira_may_move_out_cost instead of ira_get_register_move_cost and
19203 ira_get_may_move_cost.
19204 (record_address_regs): Ditto.
19205 (scan_one_insn): Optimize.
19206 (find_costs_and_classes): Optimize.
19207 (process_bb_node_for_hard_reg_moves): Call
19208 ira_init_register_move_cost_if_necessary. Use
19209 ira_register_move_cost instead of ira_get_register_move_cost.
19210
19211 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
19212 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
19213 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
19214 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
19215 definitions.
19216 (ira_initiate_emit_data, ira_finish_emit_data)
19217 (create_new_allocno): New functions.
19218 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
19219 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
19220 Use ira_register_move_cost instead of ira_get_register_move_cost.
19221
19222 * ira-int.h: Fix some comments.
19223 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
19224 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
19225 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
19226 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
19227 add_data.
19228 (struct ira_allocno): Make mode and aclass a bitfield. Move other
19229 bitfield after mode. Make hard_regno a short int. Make
19230 hard_regno short. Remove first_coalesced_allocno and
19231 next_coalesced_allocno. Move mem_optimized_dest_p,
19232 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
19233 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
19234 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
19235 temp, colorable_p. Add new member add_data.
19236 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
19237 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
19238 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
19239 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
19240 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
19241 (ALLOCNO_ADD_DATA): New macro.
19242 (ira_emit_data_t): New typedef.
19243 (struct ira_emit_data): New. Move mem_optimized_dest_p,
19244 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
19245 from struct ira_allocno.
19246 (ALLOCNO_EMIT_DATA): New macro.
19247 (ira_allocno_emit_data, allocno_emit_reg): New.
19248 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
19249 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
19250 (OBJECT_ADD_DATA): New macro.
19251 (ira_reallocate): Remove.
19252 (ira_initiate_emit_data, ira_finish_emit_data): New.
19253 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
19254 (ira_init_register_move_cost_if_necessary): New.
19255 (ira_object_conflict_iter_next): Merge into
19256 ira_object_conflict_iter_cond.
19257 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
19258
19259 * ira-live.c (process_single_reg_class_operands): Call
19260 ira_init_register_move_cost_if_necessary. Use
19261 ira_register_move_cost instead of ira_get_register_move_cost.
19262
19263 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
19264
19265 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
19266
19267 * ira-costs.c: Fix formatting.
19268 (cost_classes, cost_classes_num): Remove.
19269 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
19270 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
19271 (cost_classes_del, cost_classes_htab): New.
19272 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
19273 (initiate_regno_cost_classes, setup_cost_classes): New.
19274 (setup_regno_cost_classes_by_aclass): New.
19275 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
19276 (record_reg_classes): Use regno_cost_classes instead of
19277 cost_classes. Move checking opposite operand up.
19278 (record_address_regs): Use regno_cost_classes
19279 instead of cost_classes.
19280 (scan_one_insn): Ditto. Use always general register.
19281 (print_allocno_costs): Use regno_cost_classes instead of
19282 cost_classes.
19283 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
19284 (find_costs_and_classes): Set up cost classes for each registers.
19285 Use also their mode for this. Use regno_cost_classes instead of
19286 cost_classes.
19287 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
19288 cost_classes.
19289 (free_ira_costs, ira_init_costs): Don't use cost_classes.
19290 (ira_costs, ira_set_pseudo_classes): Call
19291 initiate_regno_cost_classes and finish_regno_cost_classes.
19292
19293 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
19294
19295 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
19296
19297 * target.def (ira_cover_classes): Remove.
19298
19299 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
19300
19301 * doc/tm.texi.in: Ditto.
19302
19303 * ira-conflicts.c: Remove mentioning cover classes from the file.
19304 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
19305 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
19306
19307 * targhooks.c (default_ira_cover_classes): Remove.
19308
19309 * targhooks.h (default_ira_cover_classes): Ditto.
19310
19311 * haifa-sched.c: Remove mentioning cover classes from the file.
19312 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
19313 ira_pressure_classes and ira_pressure_classes_num instead of
19314 ira_reg_class_cover_size and ira_reg_class_cover. Use
19315 sched_regno_pressure_class instead of sched_regno_cover_class.
19316 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
19317 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
19318
19319 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
19320 classes from the file.
19321 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
19322 (struct object_hard_regs, struct object_hard_regs_node): New.
19323 (struct ira_object): New members profitable_hard_regs,
19324 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
19325 (struct ira_allocno): Rename cover_class to aclass. Rename
19326 cover_class_cost and updated_cover_class_cost to class_cost and
19327 updated_class_cost. Remove splay_removed_p and
19328 left_conflict_size. Add new members colorable_p.
19329 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
19330 (ALLOCNO_COLORABLE_P): New macro.
19331 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
19332 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
19333 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
19334 (OBJECT_...): Rename parameter C to O.
19335 (OBJECT_PROFITABLE_HARD_REGS): New macro.
19336 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
19337 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
19338 (struct target_ira_int): New members x_ira_max_memory_move_cost,
19339 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
19340 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
19341 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
19342 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
19343 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
19344 x_ira_reg_class_subunion.
19345 (ira_max_memory_move_cost, ira_max_register_move_cost)
19346 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
19347 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
19348 (ira_important_class_nums, ira_reg_class_superunion): New macros.
19349 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
19350 (ira_reg_class_union): Rename to ira_reg_class_subunion.
19351 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
19352 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
19353 (ira_tune_allocno_costs_and_cover_classes): Rename to
19354 ira_tune_allocno_costs.
19355 (ira_debug_hard_regs_forest): New.
19356 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
19357 (ira_object_conflict_iter_next): Fix comments.
19358 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
19359 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
19360 cover_class to aclass.
19361 (ira_allocate_and_accumulate_costs): Ditto.
19362 (ira_allocate_and_set_or_copy_costs): Ditto.
19363
19364 * opts.c (decode_options): Remove ira_cover_class check.
19365
19366 * ira-color.c: Remove mentioning cover classes from the file. Use
19367 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
19368 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
19369 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
19370 (splay-tree.h): Remove include.
19371 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
19372 before copy_freq_compare_func.
19373 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
19374 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
19375 New definitions.
19376 (hard_regs_roots, hard_regs_node_vec): Ditto.
19377 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
19378 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
19379 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
19380 (create_new_object_hard_regs_node): Ditto.
19381 (add_new_object_hard_regs_node_to_forest): Ditto.
19382 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
19383 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
19384 Ditto.
19385 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
19386 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
19387 (remove_unused_object_hard_regs_nodes): Ditto.
19388 (enumerate_object_hard_regs_nodes): Ditto.
19389 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
19390 (object_hard_regs_subnode_t): Ditto.
19391 (struct object_hard_regs_subnode): Ditto.
19392 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
19393 (setup_object_hard_regs_subnode_index): Ditto.
19394 (get_object_hard_regs_subnodes_num): Ditto.
19395 (form_object_hard_regs_nodes_forest): Ditto.
19396 (finish_object_hard_regs_nodes_tree): Ditto.
19397 (finish_object_hard_regs_nodes_forest): Ditto.
19398 (allocnos_have_intersected_live_ranges_p): Rename to
19399 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
19400 (pseudos_have_intersected_live_ranges_p): Rename to
19401 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
19402 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
19403 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
19404 (update_copy_costs): Remove assert. Skip cost update if the hard
19405 reg does not belong the class.
19406 (assign_hard_reg): Process only profitable hard regs.
19407 (uncolorable_allocnos_num): Make it scalar.
19408 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
19409 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
19410 and ira_reg_class_max_nregs.
19411 (bucket_allocno_compare_func): Check frequency first.
19412 (sort_bucket): Add compare function as a parameter.
19413 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
19414 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
19415 (push_allocno_to_stack): Rewrite for checking new allocno
19416 colorability.
19417 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
19418 (push_only_colorable): Pass new parameter to sort_bucket.
19419 (push_allocno_to_spill): Remove.
19420 (allocno_spill_priority_compare): Make it inline and rewrite.
19421 (splay_tree_allocate, splay_tree_free): Remove.
19422 (allocno_spill_sort_compare): New function.
19423 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
19424 build and use splay tree. Choose first allocno in uncolorable
19425 allocno bucket to spill. Remove setting spill cost.
19426 (all_conflicting_hard_regs): Remove.
19427 (setup_allocno_available_regs_num): Check only profitable hard
19428 regs. Print info about hard regs nodes.
19429 (setup_allocno_left_conflicts_size): Remove.
19430 (put_allocno_into_bucket): Don't call
19431 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
19432 (improve_allocation): New.
19433 (color_allocnos): Call setup_profitable_hard_regs,
19434 form_object_hard_regs_nodes_forest, improve_allocation,
19435 finish_object_hard_regs_nodes_forest. Setup spill cost.
19436 (print_loop_title): Use pressure classes.
19437 (color_allocnso): Ditto.
19438 (do_coloring): Remove allocation and freeing splay_tree_node_pool
19439 and allocnos_for_spilling.
19440 (ira_sort_regnos_for_alter_reg): Don't setup members
19441 {first,next}_coalesced_allocno.
19442 (color): Remove allocating and freeing removed_splay_allocno_vec.
19443 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
19444 prohibited_class_mode_regs.
19445
19446 * ira-lives.c: Remove mentioning cover classes from the file. Fix
19447 formatting.
19448 (update_allocno_pressure_excess_length): Use pressure classes.
19449 (inc_register_pressure, dec_register_pressure): Check for pressure
19450 class.
19451 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
19452 pressure class. Use ira_reg_class_nregs instead of
19453 ira_reg_class_max_nregs.
19454 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
19455 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
19456 (single_reg_class): Use ira_reg_class_nregs instead of
19457 ira_reg_class_max_nregs.
19458 (process_bb_node_lives): Use pressure classes.
19459
19460 * ira-emit.c: Remove mentioning cover classes from the file. Use
19461 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
19462 (change_loop): Use pressure classes.
19463 (modify_move_list): Call ira_set_allocno_class instead of
19464 ira_set_allocno_cover_class.
19465
19466 * ira-build.c: Remove mentioning cover classes from the file. Use
19467 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
19468 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
19469 ALLOCNO_UPDATED_CLASS_COST instead of
19470 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
19471 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
19472 (ira_create_allocno): Remove initialization of
19473 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
19474 ALLOCNO_COLORABLE_P.
19475 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
19476 Update conflict regs for the objects.
19477 (create_cap_allocno): Remove assert. Don't propagate
19478 ALLOCNO_AVAILABLE_REGS_NUM.
19479 (ira_free_allocno_costs): New function.
19480 (finish_allocno): Change a part of code into call of
19481 ira_free_allocno_costs.
19482 (low_pressure_loop_node_p): Use pressure classes.
19483 (object_range_compare_func): Don't compare classes.
19484 (setup_min_max_conflict_allocno_ids): Ditto.
19485
19486 * loop-invariant.c: Remove mentioning cover classes from the file.
19487 Use ira_pressure_classes and ira_pressure_classes_num instead of
19488 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
19489 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
19490 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
19491 Use reg_allocno_class instead of reg_cover_class.
19492 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
19493 STACK_REG_COVER_CLASS.
19494 (get_regno_cover_class): Rename to get_regno_pressure_class.
19495 (move_loop_invariants): Initialize and finalize regstat.
19496
19497 * ira.c: Remove mentioning cover classes from the file. Add
19498 comments about coloring without cover classes. Use ALLOCNO_CLASS
19499 instead of ALLOCNO_COVER_CLASS. Fix formatting.
19500 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
19501 setup_class_subset_and_memory_move_costs.
19502 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
19503 (setup_cover_and_important_classes): Rename to
19504 setup_allocno_and_important_classes.
19505 (setup_class_translate_array): New.
19506 (setup_class_translate): Call it for allocno and pressure classes.
19507 (cover_class_order): Rename to allocno_class_order.
19508 (comp_reg_classes_func): Use ira_allocno_class_translate instead
19509 of ira_class_translate.
19510 (reorder_important_classes): Set up ira_important_class_nums.
19511 (setup_reg_class_relations): Set up ira_reg_class_superunion.
19512 (print_class_cover): Rename to print_classes. Add parameter.
19513 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
19514 Print pressure classes too.
19515 (find_reg_class_closure): Rename to find_reg_classes. Don't call
19516 setup_reg_subclasses.
19517 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
19518 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
19519 (setup_prohibited_class_mode_regs): Use
19520 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
19521 (clarify_prohibited_class_mode_regs): New function.
19522 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
19523 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
19524 (ira_init_once): Initialize them.
19525 (free_register_move_costs): Process them.
19526 (ira_init): Move calls of find_reg_classes and
19527 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
19528 Call clarify_prohibited_class_mode_regs.
19529 (ira_no_alloc_reg): Remove.
19530 (too_high_register_pressure_p): Use pressure classes.
19531
19532 * sched-deps.c: Remove mentioning cover classes from the file.
19533 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
19534 ira_pressure_classes and ira_pressure_classes_num instead of
19535 ira_reg_class_cover_size and ira_reg_class_cover.
19536 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
19537 sched_regno_pressure_class instead of sched_regno_cover_class.
19538 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
19539 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
19540
19541 * ira.h: Add 2010 to Copyright.
19542 (ira_no_alloc_reg): Remove external.
19543 (struct target_ira): Rename x_ira_hard_regno_cover_class,
19544 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
19545 x_ira_class_translate to x_ira_hard_regno_allocno_class,
19546 x_ira_allocno_classes_num, x_ira_allocno_classes, and
19547 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
19548 x_ira_pressure_classes, x_ira_pressure_class_translate, and
19549 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
19550 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
19551 x_ira_no_alloc_regs.
19552 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
19553 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
19554 ira_allocno_classes_num and ira_allocno_classes.
19555 (ira_class_translate): Rename to ira_allocno_class_translate.
19556 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
19557 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
19558 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
19559 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
19560 (ira_no_alloc_regs): New.
19561
19562 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
19563 classes from the file. Use ALLOCNO_CLASS instead of
19564 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
19565 ALLOCNO_COVER_CLASS_COST.
19566 (regno_cover_class): Rename to regno_aclass.
19567 (record_reg_classes): Use ira_reg_class_subunion instead of
19568 ira_reg_class_union.
19569 (record_address_regs): Check overflow.
19570 (scan_one_insn): Ditto.
19571 (print_allocno_costs): Print total mem cost fore regional allocation.
19572 (print_pseudo_costs): Use REG_N_REFS.
19573 (find_costs_and_classes): Use classes intersected with them on the
19574 1st pass. Check overflow. Use ira_reg_class_subunion instead of
19575 ira_reg_class_union. Use ira_allocno_class_translate and
19576 regno_aclass instead of ira_class_translate and regno_cover_class.
19577 Modify code for finding regno_aclass. Setup preferred classes for
19578 the next pass.
19579 (setup_allocno_cover_class_and_costs): Rename to
19580 setup_allocno_class_and_costs. Use regno_aclass instead of
19581 regno_cover_class. Use ira_set_allocno_class instead of
19582 ira_set_allocno_cover_class.
19583 (init_costs, finish_costs): Use regno_aclass instead of
19584 regno_cover_class.
19585 (ira_costs): Use setup_allocno_class_and_costs instead of
19586 setup_allocno_cover_class_and_costs.
19587 (ira_tune_allocno_costs_and_cover_classes): Rename to
19588 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
19589 by processing objects. Use ira_reg_class_max_nregs instead of
19590 ira_reg_class_nregs.
19591
19592 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
19593
19594 * sched-int.h: Remove mentioning cover classes from the file.
19595 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
19596
19597 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
19598 classes from the file.
19599 (struct reg_pref): Rename coverclass into allocnoclass.
19600 (reg_cover_class): Rename to reg_allocno_class.
19601
19602 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
19603
19604 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
19605
19606 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
19607
19608 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
19609
19610 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
19611
19612 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
19613
19614 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
19615
19616 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
19617
19618 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
19619
19620 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
19621
19622 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
19623 (i386_ira_cover_classes): Ditto.
19624
19625 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
19626
19627 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
19628
19629 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
19630
19631 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
19632
19633 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
19634
19635 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
19636
19637 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
19638 (mips_ira_cover_classes): Ditto.
19639
19640 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
19641
19642 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
19643
19644 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
19645
19646 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
19647
19648 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
19649
19650 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
19651 (IRA_COVER_CLASSES_VSX): Ditto.
19652
19653 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
19654 (rs6000_ira_cover_classes): Ditto.
19655
19656 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
19657
19658 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
19659
19660 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
19661
19662 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
19663
19664 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
19665
19666 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
19667
19668 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
19669
19670 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
19671
19672 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
19673
19674 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
19675
19676 2011-03-29 Jakub Jelinek <jakub@redhat.com>
19677
19678 PR debug/48253
19679 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
19680 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
19681 dw_fde_unlikely_section_end_label, cold_in_std_section,
19682 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
19683 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
19684 fields.
19685 (output_fde): Use dw_fde_second_{begin,end} if second is
19686 true, otherwise dw_fde_{begin,end}.
19687 (output_call_frame_info): Test dw_fde_second_begin != NULL
19688 instead of dw_fde_switched_sections.
19689 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
19690 fields, initialize new fields. Initialize in_std_section
19691 unconditionally from the first partition.
19692 (dwarf2out_end_epilogue): Don't override dw_fde_end when
19693 dw_fde_second_begin is non-NULL.
19694 (dwarf2out_switch_text_section): Stop initializing removed
19695 dw_fde_struct fields, initialize new fields, initialize
19696 also dw_fde_end here. Set dw_fde_switch_cfi even when
19697 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
19698 (struct var_loc_list_def): Add last_before_switch field.
19699 (arange_table, arange_table_allocated, arange_table_in_use,
19700 ARANGE_TABLE_INCREMENT, add_arange): Removed.
19701 (size_of_aranges): Count !in_std_section and !second_in_std_section
19702 hunks in fdes, instead of looking at arange_table_in_use.
19703 (output_aranges): Add aranges_length argument, don't call
19704 size_of_aranges here. Instead of using aranges_table*
19705 emit ranges for fdes when !in_std_section resp.
19706 !second_in_std_section.
19707 (dw_loc_list): Break ranges crossing section switch.
19708 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
19709 use dw_fde_second_end instead of dw_fde_end as end of last range.
19710 (gen_subprogram_die): Don't call add_arange. Use
19711 dw_fde_{begin,end} for first partition and if switched
19712 section dw_fde_second_{begin,end} for the second.
19713 (var_location_switch_text_section_1,
19714 var_location_switch_text_section): New functions.
19715 (dwarf2out_begin_function): Initialize cold_text_section even
19716 when function_section () isn't text_section.
19717 (prune_unused_types): Don't walk arange_table.
19718 (dwarf2out_finish): Don't needlessly test
19719 flag_reorder_blocks_and_partition when testing cold_text_section_used.
19720 If info_section_emitted, call size_of_aranges and if it indicates
19721 non-empty .debug_aranges, call output_aranges with the computed
19722 size. Stop using removed dw_fde_struct fields, use
19723 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
19724 for second.
19725
19726 PR debug/48203
19727 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
19728 create ENTRY_VALUE if incoming or address of incoming's MEM
19729 is a hard REG.
19730 * dwarf2out.c (mem_loc_descriptor): Don't emit
19731 DW_OP_GNU_entry_value of DW_OP_fbreg.
19732 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
19733 on ENTRY_VALUE is able to find the canonical parameter VALUE.
19734 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
19735 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
19736 ENTRY_VALUE_EXPs.
19737 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
19738 is a REG_P or MEM_P with REG_P address, compute hash directly
19739 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
19740 (preserve_only_constants): Don't clear VALUES forwaring
19741 ENTRY_VALUE to some other VALUE.
19742
19743 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
19744
19745 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
19746 instead of GEN_INT.
19747
19748 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
19749
19750 * cfgexpand.c (expand_gimple_cond): Always set the source location and
19751 block before expanding the statement.
19752 (expand_gimple_stmt_1): Likewise. Set them here...
19753 (expand_gimple_stmt): ...and not here. Tidy.
19754 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
19755 unknown.
19756
19757 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
19758
19759 * Makefile.in: New rule for cprop.o.
19760 * gcse.c: Move constant/copy propagation to cprop.c.
19761 (compute_local_properties): Only handle expression tables.
19762 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
19763 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
19764 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
19765 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
19766 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
19767 compute_cprop_data, find_used_regs, try_replace_reg,
19768 find_avail_set, cprop_jump, constprop_register, cprop_insn,
19769 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
19770 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
19771 find_bypass_set, reg_killed_on_edge, bypass_block,
19772 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
19773 execute_rtl_cprop, pass_rtl_cprop): Move to...
19774 * cprop.c: ...here. New file, constant/copy propagation for RTL
19775 moved from gcse.c to here with minor cleanups in duplicated code.
19776
19777 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
19778
19779 * config/i386/i386.c (flag_opts): Fix a typo in
19780 -mavx256-split-unaligned-store.
19781
19782 2011-03-28 Anatoly Sokolov <aesok@post.ru>
19783
19784 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
19785 LIBCALL_VALUE): Remove macros.
19786 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19787 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19788 (h8300_function_value, h8300_libcall_value,
19789 h8300_function_value_regno_p): New functions.
19790
19791 2011-03-28 Anatoly Sokolov <aesok@post.ru>
19792
19793 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
19794
19795 2011-03-28 Jeff Law <law@redhat.com>
19796
19797 * tree-ssa-threadupdate.c (redirect_edges): Call
19798 create_edge_and_update_destination_phis as needed.
19799 (create_edge_and_update_destination_phis): Accept new BB argument.
19800 All callers updated.
19801 (thread_block): Do not update the profile when threading around
19802 intermediate blocks.
19803 (thread_single_edge): Likewise.
19804 (determine_bb_domination_status): If BB is not a successor of the
19805 loop header, return NONDOMINATING.
19806 (register_jump_thread): Note when we register a jump thread around
19807 an intermediate block.
19808 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
19809 (thread_across_edge): Use it.
19810
19811 2011-03-28 Tristan Gingold <gingold@adacore.com>
19812
19813 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
19814 when for_return is 2.
19815
19816 2011-03-28 Jeff Law <law@redhat.com>
19817
19818 * var-tracking.c (canonicalize_values_mark): Delete unused
19819 lhs assignment.
19820 (canonicalize_values_star, set_variable_part): Likewise.
19821 (clobber_variable_part, delete_variable_part): Likewise.
19822
19823 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
19824
19825 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
19826
19827 2011-03-28 Martin Jambor <mjambor@suse.cz>
19828
19829 * tree-inline.c (expand_call_inline): Do not check that destination
19830 node is analyzed.
19831 (optimize_inline_calls): Assert that destination node is analyzed.
19832 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
19833 not call tree_lowering_passes.
19834 * cgraph.h (cgraph_analyze_function): Declare.
19835 * cgraphunit.c (cgraph_analyze_function): Make public.
19836
19837 2011-03-28 Joseph Myers <joseph@codesourcery.com>
19838
19839 * config/sparc/sparc-opts.h: New.
19840 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
19841 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
19842 (sparc_option_override): Store processor_type enumeration rather
19843 than string in cpu_default. Remove name and enumeration from
19844 cpu_table. Directly default -mcpu then default -mtune from -mcpu
19845 without using sparc_select. Use target_flags_explicit instead of
19846 fpu_option_set.
19847 * config/sparc/sparc.h (enum processor_type): Move to
19848 sparc-opts.h.
19849 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
19850 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
19851 HeaderInclude entry.
19852 (mcpu=, mtune=): Use Var and Enum.
19853 (sparc_processor_type): New Enum and EnumValue entries.
19854
19855 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19856 Iain Sandoe <iains@gcc.gnu.org>
19857
19858 PR target/48245
19859 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
19860
19861 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
19862
19863 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
19864 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
19865 Insert new statements at it in lieu of STMT.
19866 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
19867 * tree-vect-stmts.c (vectorizable_store): Likewise.
19868 (vectorizable_load): Likewise.
19869
19870 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
19871
19872 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
19873 (divtf3): Ditto.
19874 (multf3): Ditto.
19875 (subtf3): Ditto.
19876
19877 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
19878
19879 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
19880 unaligned 256bit load/store.
19881 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
19882 (*avx_movdqu<avxmodesuffix>): Likewise.
19883
19884 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19885
19886 PR target/48288
19887 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
19888 * config/pa/pa.md (iordi3): Use new predicate in expander.
19889 (iorsi3): Likewise.
19890
19891 2011-03-27 Anatoly Sokolov <aesok@post.ru>
19892
19893 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
19894 FUNCTION_VALUE_REGNO_P): Remove macros.
19895 * config/mips/mips-protos.h (mips_function_value): Remove.
19896 * config/mips/mips.c (mips_function_value): Rename to...
19897 (mips_function_value_1): ... this. Make static. Handle receiving
19898 the function type in 'fn_decl_or_type' argument.
19899 (mips_function_value, mips_libcall_value,
19900 mips_function_value_regno_p): New function.
19901 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19902 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19903
19904 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
19905
19906 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
19907 and -mavx256-split-unaligned-store.
19908 (ix86_option_override_internal): Split 32-byte AVX unaligned
19909 load/store by default.
19910 (ix86_avx256_split_vector_move_misalign): New.
19911 (ix86_expand_vector_move_misalign): Use it.
19912
19913 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
19914 -mavx256-split-unaligned-store.
19915
19916 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
19917 256bit load/store. Generate unaligned store on misaligned memory
19918 operand.
19919 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
19920 256bit load/store.
19921 (*avx_movdqu<avxmodesuffix>): Likewise.
19922
19923 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
19924 -mavx256-split-unaligned-store.
19925
19926 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
19927
19928 PR target/38598
19929 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
19930 Update commentary.
19931
19932 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
19933
19934 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
19935 opno arguments with an expand_operand. Use create_input_operand.
19936 (mips_prepare_builtin_target): Delete.
19937 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
19938 functions.
19939 (mips_expand_builtin_direct): Use create_output_operand and
19940 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
19941 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
19942 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
19943
19944 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
19945
19946 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
19947 function.
19948 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
19949
19950 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
19951
19952 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
19953 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
19954 basic blocks and call commit_edge_insertions directly.
19955 (fixup_abnormal_edges): Move from here to...
19956 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
19957 on the edges and return whether some have actually been inserted.
19958 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
19959 compensation code.
19960
19961 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
19962
19963 PR rtl-optimization/48144
19964 * sel-sched-ir.c (merge_history_vect): Factor out from ...
19965 (merge_expr_data): ... here.
19966 (av_set_intersect): Rename to av_set_code_motion_filter.
19967 Update all callers. Call merge_history_vect when an expression
19968 is found in both sets.
19969 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
19970
19971 2011-03-26 Alan Modra <amodra@gmail.com>
19972
19973 * config/rs6000/predicates.md (word_offset_memref_op): Handle
19974 cmodel medium addresses.
19975 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
19976 64-bit gpr loads and stores.
19977 (rs6000_secondary_reload_ppc64): New function.
19978 * config/rs6000/rs6000-protos.h: Declare it.
19979 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
19980
19981 2011-03-26 Alan Modra <amodra@gmail.com>
19982
19983 PR target/47487
19984 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
19985 GNU Go in traceback table.
19986
19987 2011-03-25 Richard Henderson <rth@redhat.com>
19988
19989 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
19990 if there are exactly 6 operands.
19991 (set_storage_via_setmem): Similarly.
19992
19993 2011-03-25 Kai Tietz <ktietz@redhat.com>
19994
19995 * collect2.c (write_c_file_stat): Handle backslash
19996 as right-hand directory separator.
19997 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
19998 checking just for slash.
19999 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
20000 instead of checking for trailing slash.
20001 * gcc.c (record_temp_file): Use filename_cmp instead
20002 of strcmp.
20003 (do_spec_1): Likewise.
20004 (replace_outfile_spec_function): Likewise.
20005 (is_directory): Use filename_ncmp instead of strncmp.
20006 (print_multilib_info): Likewise.
20007 * gcov.c (find_source): Use filename_cmp instead
20008 instead of strcmp.
20009 (make_gcov_file_name): Fix order of slash/backslash
20010 checks.
20011 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
20012 (add_standard_paths): Likewise.
20013 * mips-tfile.c (saber_stop): Handle backslash.
20014 * prefix.c (update_path): Use filename_ncmp instead of
20015 strncmp.
20016 * profile.c (output_location): Use filename_cmp instead
20017 of strcmp.
20018 * read-md.c (handle_toplevel_file): Handle backslash.
20019 * tlink.c (frob_extension): Likewise.
20020 * tree-cfg.c (same_line_p): Use filename_cmp instead of
20021 strcmp.
20022 * tree-dump.c (dequeue_and_dump): Handle backslash.
20023 * tree.c (get_file_function_name): Likewise.
20024 * gengtype.c (read_input_list): Likewise.
20025 (get_file_realbasename): Likewise.
20026 (get_output_file_with_visibility): Use filename_cmp
20027 instead of strcmp.
20028
20029 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
20030
20031 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
20032 case to VFPv1.
20033
20034 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
20035
20036 * fold-const.c (expr_location_or): New function.
20037 (fold_truth_not_expr): Call it.
20038
20039 2011-03-25 Jeff Law <law@redhat.com>
20040
20041 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
20042 va_end.
20043 * c-family/c-common.c (def_fn_type): Likewise.
20044 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
20045 * emit-rtl.c (gen_rtvec): Likewise.
20046 * lto/lto-lang.c (def_fn_type): Likewise.
20047
20048 2011-03-25 Richard Guenther <rguenther@suse.de>
20049
20050 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
20051 also generate copies.
20052 (fini_copy_prop): Handle constant values properly.
20053
20054 2011-03-25 Jakub Jelinek <jakub@redhat.com>
20055
20056 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
20057 mode size instead of bitsize with DWARF2_ADDR_SIZE.
20058 (hash_loc_operands, compare_loc_operands): Handle
20059 DW_OP_GNU_entry_value.
20060
20061 2011-03-25 Kai Tietz <ktietz@redhat.com>
20062
20063 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
20064 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
20065 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
20066 comment and use macro TARGET_64BIT_MS_ABI instead.
20067 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
20068 and change default behavior for 32-bit MS_ABI.
20069 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
20070 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
20071 32-bit, too.
20072 (ix86_cfun_abi): Likewise.
20073 (ix86_maybe_switch_abi): Adjust comment.
20074 (init_cumulative_args): Check for bit-ness in MS_ABI case.
20075 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
20076 instead of checking for SYSV_ABI.
20077 (ix86_nsaved_sseregs): Likewise.
20078 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
20079 to 16 bytes.
20080 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
20081 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
20082 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
20083 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
20084 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
20085
20086 2011-03-25 Richard Guenther <rguenther@suse.de>
20087
20088 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
20089 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
20090 (verify_gimple): Remove.
20091 * tree-cfg.c (verify_gimple_call): Merge verification
20092 from verify_stmts.
20093 (verify_gimple_phi): Merge verification from verify_stmts.
20094 (verify_gimple_label): New function.
20095 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
20096 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
20097 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
20098 (verify_stmts): Rename to verify_gimple_in_cfg.
20099 (verify_gimple_in_cfg): New function.
20100 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
20101 * tree-ssa.c (verify_ssa): Likewise.
20102 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
20103
20104 2011-03-25 Richard Guenther <rguenther@suse.de>
20105
20106 * passes.c (init_optimization_passes): Add FRE pass after
20107 early SRA.
20108
20109 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
20110 Andrew Stubbs <ams@codesourcery.com>
20111
20112 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
20113 for Cortex-A8.
20114 (arm_movdi_vfp_cortexa8): New pattern.
20115 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
20116 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
20117 instructions when tuning for Cortex-A8. Set attribute "arch".
20118 * config/arm/arm.md: Move include arm-tune.md up a bit.
20119 (define_attr "arch"): Add "onlya8" and "nota8" values.
20120 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
20121
20122 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
20123
20124 PR bootstrap/48282
20125 Revert:
20126 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
20127
20128 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
20129 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
20130 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
20131 * passes.c (init_optimization_passes): Move
20132 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
20133
20134 2011-03-25 Kai Tietz <ktietz@redhat.com>
20135
20136 * c-typeck.c (comptypes_internal): Replace target
20137 hook call of comp_type_attributes by version in tree.c file.
20138 * gimple.c (gimple_types_compatible_p_1): Likewise.
20139 * tree-ssa.c (useless_type_conversion_p): Likewise.
20140 * tree.c (build_type_attribute_qual_variant): Likewise.
20141 (attribute_value_equal): New static helper function.
20142 (comp_type_attributes): New function.
20143 (merge_attributes): Use attribute_value_equal for comparison.
20144 (attribute_list_contained): Likewise.
20145 * tree.h (comp_type_attributes): New prototype.
20146
20147 2011-03-25 Richard Guenther <rguenther@suse.de>
20148
20149 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
20150 of complex types at -O0.
20151 (verify_gimple_assign_binary): Likewise.
20152 (verify_gimple_assign_ternary): Likewise.
20153
20154 2011-03-24 Mark Wielaard <mjw@redhat.com>
20155
20156 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
20157 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
20158
20159 2011-03-24 Mark Wielaard <mjw@redhat.com>
20160
20161 PR debug/48041
20162 * dwarf2out.c (output_abbrev_section): Only write table when
20163 abbrev_die_table_in_use > 1.
20164
20165 2011-02-24 Richard Henderson <rth@redhat.com>
20166
20167 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
20168 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
20169 (alpha_expand_unaligned_load_words): Use extql.
20170 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
20171 (emit_insxl): Handle all modes for consistency.
20172
20173 2011-02-24 Richard Henderson <rth@redhat.com>
20174
20175 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
20176 (alpha_expand_unaligned_load): Likewise.
20177 (alpha_expand_unaligned_store): Likewise.
20178 (alpha_expand_unaligned_load_words): Likewise.
20179 (alpha_expand_unaligned_store_words): Likewise.
20180 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
20181 (alpha_split_lock_test_and_set_12): Likewise.
20182 (print_operand, alpha_fold_builtin_extxx): Likewise.
20183 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
20184 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
20185 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
20186 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
20187 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
20188 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
20189 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
20190 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
20191 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
20192 (extwl, extll, extql): Similarly.
20193 (inswh, inslh, insqh): Similarly.
20194 (mskbl, mskwl, mskll, mskql): Similarly.
20195 (mskwh, msklh, mskqh): Similarly.
20196
20197 2011-02-24 Richard Henderson <rth@redhat.com>
20198
20199 * config/alpha/alpha.md (attribute isa): Add er, ner.
20200 (attribute enabled): Handle them.
20201 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
20202
20203 2011-02-24 Richard Henderson <rth@redhat.com>
20204
20205 * config/alpha/alpha.md (attribute isa): Add vms.
20206 (attribute enabled): Handle it.
20207 (*movsf): Merge *movsf_{nofix,fix,nofp}.
20208 (*movdf): Merge *movdf_{nofix,fix,nofp}.
20209 (*movtf): Rename from *movtf_internal for consistency.
20210 (*movsi): Merge with *movsi_nt_vms.
20211 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
20212 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
20213 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
20214 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
20215
20216 2011-02-24 Richard Henderson <rth@redhat.com>
20217
20218 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
20219 (extendqisi2, extendhisi2): Likewise.
20220 (extendqidi2): Simplify BWX/non-BWX expansions.
20221 (extendhidi2): Similarly.
20222
20223 2011-02-24 Richard Henderson <rth@redhat.com>
20224
20225 * config/alpha/alpha.md (attribute isa): New.
20226 (attribute enabled): New.
20227 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
20228 (zero_extendqisi2, zero_extendqidi2): Similarly.
20229 (zero_extendhisi2, zero_extendhidi2): Similarly.
20230 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
20231
20232 2011-02-24 Richard Henderson <rth@redhat.com>
20233
20234 * config/alpha/predicates.md (input_operand): Revert last change;
20235 update comment to mention 32-bit VMS rather than Windows.
20236
20237 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
20238
20239 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
20240 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
20241 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
20242 * passes.c (init_optimization_passes): Move
20243 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
20244
20245 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
20246
20247 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
20248
20249 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
20250
20251 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
20252 correctly.
20253
20254 2011-03-24 Jakub Jelinek <jakub@redhat.com>
20255
20256 PR debug/48204
20257 * simplify-rtx.c (simplify_const_unary_operation): Call
20258 real_convert when changing mode class with FLOAT_EXTEND.
20259
20260 2011-03-24 Nick Clifton <nickc@redhat.com>
20261
20262 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
20263 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
20264 * config/rx/rx.c (rx_option_override): Set align_jumps,
20265 align_loops and align_labels if not set by the user.
20266 (rx_align_for_label): New function.
20267 (rx_max_skip_for_label): New function.
20268 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
20269 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
20270 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
20271 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
20272 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
20273
20274 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
20275
20276 PR rtl-optimization/48263
20277 * optabs.c (expand_binop_directly): Reinstate convert_modes code
20278 and original commutative_p handling. Use maybe_gen_insn.
20279
20280 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20281
20282 * reload.c (find_reloads_subreg_address): Add address_reloaded
20283 parameter and return true there if the full address has been
20284 reloaded.
20285 (find_reloads_toplev): Pass address_reloaded flag.
20286 (find_reloads_address_1): Don't use address_reloaded parameter.
20287
20288 2011-03-24 Jeff Law <law@redhat.com>
20289
20290 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
20291 unused variable "ann".
20292 (remove_unused_locals): Likewise.
20293
20294 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
20295 statement.
20296
20297 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
20298 after it is freed.
20299
20300 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20301
20302 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
20303 for invalid symbolic addresses.
20304 (s390_secondary_reload): Don't use s390_check_symref_alignment for
20305 larl operands.
20306
20307 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
20308
20309 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
20310 the argument in calls to fold_truth_not_expr.
20311
20312 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
20313
20314 * tree.c (record_node_allocation_statistics): New function.
20315 (make_node_stat, copy_node_stat, build_string): Call it.
20316 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
20317 (build1_stat, build_omp_clause): Likewise.
20318
20319 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
20320
20321 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
20322 last commit.
20323
20324 2011-03-24 Richard Guenther <rguenther@suse.de>
20325
20326 PR tree-optimization/48271
20327 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
20328 blocks that still exist.
20329
20330 2011-03-24 Richard Guenther <rguenther@suse.de>
20331
20332 PR tree-optimization/48270
20333 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
20334 not free datarefs before ddrs.
20335
20336 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
20337
20338 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
20339 from the address built for a reference with variable offset.
20340
20341 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
20342
20343 PR target/48237
20344 * config/i386/i386.md (*movdf_internal_rex64): Do not split
20345 alternatives that can be handled with movq or movabsq insn.
20346 (*movdf_internal): Disable for !TARGET_64BIT.
20347 (*movdf_internal_nointeger): Ditto.
20348 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
20349
20350 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
20351
20352 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
20353 (FUNCTION_ARG_ADVANCE): Likewise.
20354 * tm.texi.in: Change references to them to hook references.
20355 * tm.texi: Regenerate.
20356 * targhooks.c (default_function_arg): Eliminate check for target macro.
20357 (default_function_incoming_arg): Likewise.
20358 (default_function_arg_advance): Likewise.
20359 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
20360 (function_arg_advance): Likewise.
20361 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
20362
20363 2011-03-24 Richard Guenther <rguenther@suse.de>
20364
20365 PR middle-end/48269
20366 * tree-object-size.c (addr_object_size): Do not double-account
20367 for MEM_REF offsets.
20368
20369 2011-03-24 Diego Novillo <dnovillo@google.com>
20370
20371 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
20372 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
20373 (lto_input_data_block): Move from lto-opts.c. Make extern.
20374 Update all users.
20375 (lto_input_string): Rename from input_string. Make extern.
20376 Update all users.
20377 * lto-streamer-out.c (lto_output_string_with_length): Rename from
20378 output_string_with_length.
20379 Output 0 to indicate a non-NULL string. Update all callers to
20380 not emit 0.
20381 (lto_output_string): Rename from output_string. Make extern.
20382 Update all users.
20383 (lto_output_decl_state_streams): Make extern.
20384 (lto_output_decl_state_refs): Make extern.
20385 * lto-streamer.h (lto_input_string): Declare.
20386 (lto_input_data_block): Declare.
20387 (lto_output_string): Declare.
20388 (lto_output_string_with_length): Declare.
20389 (lto_output_decl_state_streams): Declare.
20390 (lto_output_decl_state_refs): Declare.
20391
20392 2011-03-24 Richard Guenther <rguenther@suse.de>
20393
20394 PR tree-optimization/46562
20395 * tree.c (build_invariant_address): New function.
20396 * tree.h (build_invariant_address): Declare.
20397 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
20398 a renamed function moved ...
20399 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
20400 Take valueization callback parameter.
20401 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
20402 * gimple-fold.h: New file.
20403 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
20404 (ccp_fold, fold_const_aggregate_ref,
20405 fold_ctor_reference, fold_nonarray_ctor_reference,
20406 fold_array_ctor_reference, fold_string_cst_ctor_reference,
20407 get_base_constructor): Move ...
20408 * gimple-fold.c: ... here.
20409 (gimple_fold_stmt_to_constant_1): New function
20410 split out from ccp_fold. Take a valueization callback parameter.
20411 Valueize all operands.
20412 (gimple_fold_stmt_to_constant): New wrapper function.
20413 (fold_const_aggregate_ref_1): New function split out from
20414 fold_const_aggregate_ref. Take a valueization callback parameter.
20415 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
20416 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
20417 invariant POINTER_PLUS_EXPRs to invariant form.
20418 (vn_valueize): New function.
20419 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
20420 * tree-vrp.c (vrp_valueize): New function.
20421 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
20422 to fold statements to constants.
20423 * tree-ssa-pre.c (eliminate): Properly guard propagation of
20424 function declarations.
20425 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
20426 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
20427
20428 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
20429
20430 * config/h8300/predicates.md (jump_address_operand): Fix register
20431 mode check.
20432
20433 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
20434
20435 * doc/invoke.texi (max-stores-to-sink): Document.
20436 * params.h (MAX_STORES_TO_SINK): Define.
20437 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
20438 if either vectorization or if-conversion is disabled.
20439 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
20440 tree-vect-data-refs.c vect_equal_offsets.
20441 (dr_equal_offsets_p): New function.
20442 (find_data_references_in_bb): Remove static.
20443 * tree-data-ref.h (find_data_references_in_bb): Declare.
20444 (dr_equal_offsets_p): Likewise.
20445 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
20446 (vect_drs_dependent_in_basic_block): Update calls to
20447 vect_equal_offsets.
20448 (vect_check_interleaving): Likewise.
20449 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
20450 (cond_if_else_store_replacement): Rename to...
20451 (cond_if_else_store_replacement_1): ... this. Change arguments and
20452 documentation.
20453 (cond_if_else_store_replacement): New function.
20454 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
20455 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
20456
20457 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
20458
20459 PR target/46934
20460 * config/arm/arm.md (casesi): Use the gen_int_mode() function
20461 to subtract lower bound instead of GEN_INT().
20462
20463 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
20464
20465 PR other/48179
20466 PR other/48221
20467 PR other/48234
20468 * doc/extend.texi (Alignment): Move section to match order in TOC.
20469 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
20470 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
20471
20472 2011-03-23 Jeff Law <law@redhat.com>
20473
20474 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
20475 before removing the edge.
20476
20477 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
20478 it may have been freed by redirect_branch_edge or
20479 redirect_edge_succ_nodup.
20480
20481 2011-03-23 Richard Guenther <rguenther@suse.de>
20482
20483 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
20484 (check_va_list_escapes): Likewise.
20485 (check_all_va_list_escapes): Likewise.
20486
20487 2011-03-23 Richard Guenther <rguenther@suse.de>
20488
20489 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
20490 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
20491 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
20492 (alias.o): Likewise.
20493 (ipa-type-escape.o): Remove.
20494 (ipa-struct-reorg.o): Likewise.
20495 (GTFILES): Remove ipa-struct-reorg.c.
20496 * alias.c: Do not include ipa-type-escape.h.
20497 * tree-ssa-alias.c: Likewise.
20498 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
20499 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
20500 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
20501 and ipa-type-escape passes.
20502 * tree-pass.h (pass_ipa_type_escape): Remove.
20503 (pass_ipa_struct_reorg): Likewise.
20504 * ipa-struct-reorg.h: Remove.
20505 * ipa-struct-reorg.c: Likewise.
20506 * ipa-type-escape.h: Likewise.
20507 * ipa-type-escape.c: Likewise.
20508 * doc/invoke.texi (-fipa-struct-reorg): Remove.
20509 (--param struct-reorg-cold-struct-ratio): Likewise.
20510 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
20511 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
20512 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
20513
20514 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20515
20516 * config/s390/2084.md: Enable all insn reservations also for z9_ec
20517 cpu attribute value.
20518 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
20519 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
20520 * config/s390/s390.c (processor_flags_table): New constant array.
20521 (s390_handle_arch_option): Remove.
20522 (s390_handle_option): Remove s390_handle_arch_option invocations
20523 and OPT_mwarn_framesize_ handling.
20524 (s390_option_override): Remove s390_handle_arch_option invocation.
20525 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
20526 warnings.
20527 * config/s390/s390.md (cpu attribute): Add z9_ec value.
20528 * config/s390/s390.opt (s390_tune, s390_arch)
20529 (march=): Replace s390_arch_option enum and values with
20530 processor_type. Set variable name to s390_arch. Set
20531 initialization value.
20532 (mtune=): Replace s390_arch_option with processor_type. Set
20533 variable name to s390_tune. Set initialization value.
20534
20535 2011-03-23 Julian Brown <julian@codesourcery.com>
20536
20537 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
20538 accesses which are not naturally aligned.
20539
20540 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
20541
20542 PR target/47553
20543 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
20544
20545 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
20546
20547 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
20548 parameter from "int" to "enum insn_code".
20549 (expand_operand_type): New enum.
20550 (expand_operand): New structure.
20551 (create_expand_operand): New function.
20552 (create_fixed_operand, create_output_operand): Likewise
20553 (create_input_operand, create_convert_operand_to): Likewise.
20554 (create_convert_operand_from, create_address_operand): Likewise.
20555 (create_integer_operand): Likewise.
20556 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
20557 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
20558 (expand_insn, expand_jump_insn): Likewise.
20559 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
20560 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
20561 (expand_movstr, expand_builtin___clear_cache): Likewise.
20562 (expand_builtin_lock_release): Likewise.
20563 * explow.c (allocate_dynamic_stack_space): Likewise.
20564 (probe_stack_range): Likewise. Allow check_stack to FAIL,
20565 and use the default handling in that case.
20566 * expmed.c (check_predicate_volatile_ok): Delete.
20567 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
20568 (emit_cstore): Likewise.
20569 * expr.c (emit_block_move_via_movmem): Likewise.
20570 (set_storage_via_setmem, expand_assignment): Likewise.
20571 (emit_storent_insn, try_casesi): Likewise.
20572 (emit_single_push_insn): Likewise. Allow the expansion to fail.
20573 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
20574 (expand_vec_shift_expr, expand_binop_directly): Likewise.
20575 (expand_twoval_unop, expand_twoval_binop): Likewise.
20576 (expand_unop_direct, emit_indirect_jump): Likewise.
20577 (emit_conditional_move, vector_compare_rtx): Likewise.
20578 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
20579 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
20580 (expand_sync_lock_test_and_set): Likewise.
20581 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
20582 (emit_unop_insn): Likewise.
20583 (expand_copysign_absneg): Change icode to an insn_code.
20584 (create_convert_operand_from_type): New function.
20585 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
20586 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
20587 (expand_insn, expand_jump_insn): Likewise.
20588 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
20589 than const_int_operand for operand 2.
20590
20591 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20592
20593 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
20594 if possible.
20595
20596 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20597
20598 * emit-rtl.c (emit_pattern_before_noloc): New function.
20599 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
20600 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
20601 (emit_pattern_after_noloc): New function.
20602 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
20603 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
20604
20605 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20606
20607 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
20608 (__ffsDI2): Likewise.
20609
20610 2011-03-22 Richard Henderson <rth@redhat.com>
20611
20612 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
20613 of !TARGET_ABI_OPEN_VMS.
20614 (alpha_trampoline_init, alpha_start_function): Likewise.
20615 (alpha_expand_epilogue, alpha_file_start): Likewise.
20616 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
20617 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
20618 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
20619 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
20620 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
20621
20622 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20623
20624 * config/s390/s390-opts.h: New.
20625 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
20626 s390_arch_flags, s390_warn_framesize, s390_stack_size,
20627 s390_stack_guard): Remove.
20628 (s390_handle_arch_option): Return void. Take enum
20629 s390_arch_option value instead of string and searching array.
20630 (s390_handle_option): Don't assert that global structures are in
20631 use. Access variables via opts pointer. Use error_at. Don't use
20632 sscanf for -mstack-guard= or -mstack-size=. Update call to
20633 s390_handle_arch_option.
20634 (s390_option_override): Update call to s390_handle_arch_option.
20635 (s390_emit_prologue): Use %d format for s390_stack_size in
20636 diagnostic. Use %wd for HOST_WIDE_INT.
20637 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
20638 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
20639 * config/s390/s390.opt (config/s390/s390-opts.h): New
20640 HeaderInclude entry.
20641 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
20642 s390_arch_flags, s390_warn_framesize): New Variable entries.
20643 (s390_arch_option): New Enum and EnumValue entries.
20644 (march=): Use Enum instead of Var.
20645 (mstack-guard=, mstack-size=): Use UInteger and Var.
20646 (mtune=): Use Enum.
20647
20648 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20649
20650 * config/score/score.c (score_handle_option): Don't assert that
20651 global structures are in use. Access target_flags via opts
20652 pointer. Use value of -march= option to determine target_flags
20653 settings.
20654 * config/score/score.opt (march=): Use Enum.
20655 (score_arch): New Enum and EnumValue entries.
20656
20657 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20658
20659 * config/mep/mep.c (option_mtiny_specified): Remove.
20660 (mep_option_override): Move register handling for -mivc2 from
20661 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
20662 instead of option_mtiny_specified.
20663 (mep_handle_option): Access target_flags via opts pointer. Don't
20664 assert that global structures are in use. Defer part of -mivc2
20665 handling and move it to mep_option_override.
20666 * config/mep/mep.opt (IVC2): New Mask entry.
20667 (mivc2): Use Var and Defer instead of Mask.
20668
20669 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20670
20671 * config/v850/v850-opts.h: New.
20672 * config/v850/v850.c (small_memory): Replace with
20673 small_memory_physical_max array. Make that array static const.
20674 (v850_handle_memory_option): Take integer value of argument. Take
20675 gcc_options pointer, option text and location. Return void.
20676 Update for changes to small memory structures.
20677 (v850_handle_option): Access target_flags via opts pointer. Don't
20678 assert that global structures are in use. Update calls to
20679 v850_handle_memory_option.
20680 (v850_encode_data_area): Update references to small memory settings.
20681 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
20682 (enum small_memory_type): Move to v850-opts.h.
20683 * config/v850/v850.opt (config/v850/v850-opts.h): New
20684 HeaderInclude entry.
20685 (small_memory_max): New Variable entry.
20686 (msda): Replace by pair of options msda= and msda-. Use UInteger.
20687 (mtda, mzda): Likewise.
20688
20689 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20690
20691 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
20692 pointer. Don't assert that global structures are in use.
20693
20694 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20695
20696 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
20697 via opts pointer. Don't assert that global structures are in use.
20698
20699 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20700
20701 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
20702 (munix=93): Use Var.
20703 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
20704 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
20705 * config/pa/pa-opts.h: New.
20706 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
20707 (pa_handle_option): Don't assert that global structures are in
20708 use. Access target_flags via opts pointer. Don't handle
20709 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
20710 OPT_munix_98 here.
20711 (pa_option_override): Handle deferred OPT_mfixed_range_.
20712
20713 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20714
20715 * config/mn10300/mn10300-opts.h: New.
20716 * config/mn10300/mn10300.c (mn10300_processor,
20717 mn10300_tune_string): Remove.
20718 (mn10300_handle_option): Don't assert that global structures are
20719 in use. Access mn10300_processor via opts pointer. Don't handle
20720 OPT_mtune_ here.
20721 * config/mn10300/mn10300.h (enum processor_type): Move to
20722 mn10300-opts.h.
20723 (mn10300_processor): Remove.
20724 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
20725 HeaderInclude entry.
20726 (mn10300_processor): New Variable entry.
20727 (mtune=): Use Var.
20728
20729 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20730
20731 * config/microblaze/microblaze.c: Don't include opts.h.
20732 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
20733 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
20734 (mno-clearbss): Use Var and Warn.
20735
20736 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20737
20738 * config/m32r/m32r-opts.h: New.
20739 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
20740 (m32r_handle_option): Don't assert that global structures are in
20741 use. Access target_flags and m32r_cache_flush_func via opts
20742 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
20743 OPT_mno_flush_trap here.
20744 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
20745 include of m32r-opts.h.
20746 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
20747 HeaderInclude entry.
20748 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
20749 (mmodel=): Use Enum and Var.
20750 (m32r_model): New Enum and EnumValue entries.
20751 (mno-flush-trap): Use Var.
20752 (msdata=): Use Enum and Var.
20753 (m32r_sdata): New Enum and EnumValue entries.
20754
20755 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20756
20757 * config/m32c/m32c.c: Don't include opts.h.
20758 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
20759 m32c_handle_option): Remove.
20760 (m32c_option_override): Check global_options_set.x_target_memregs
20761 instead of target_memregs_set.
20762 * config/m32c/m32c.h (target_memregs): Remove.
20763 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
20764 variable.
20765
20766 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20767
20768 * config/iq2000/iq2000-opts.h: New.
20769 * config/iq2000/iq2000.c: Don't include opts.h.
20770 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
20771 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
20772 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
20773 HeaderInclude entry.
20774 (iq2000_tune): New Variable entry.
20775 (march=): Add comment. Use Enum.
20776 (iq2000_arch): New Enum and EnumValue entries.
20777 (mcpu=): Use Enum and Var.
20778 (iq2000_tune): New Enum and EnumValue entries.
20779
20780 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20781
20782 * config/ia64/ia64-opts.h: New.
20783 * config/ia64/ia64.c (ia64_tune): Remove.
20784 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
20785 here. Use error_at.
20786 (ia64_option_override): Handle deferred OPT_mfixed_range_.
20787 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
20788 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
20789 HeaderInclude entry.
20790 (ia64_tune): New Variable entry.
20791 (mfixed-range=): Use Defer and Var.
20792 (mtune=): Use Enum and Var.
20793 (ia64_tune): New Enum and EnumValue entries.
20794
20795 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20796
20797 * config/frv/frv-opts.h: New.
20798 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
20799 frv-opts.h.
20800 (frv_cpu_type): Remove.
20801 * config/frv/frv.c: Don't include opts.h.
20802 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
20803 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
20804 (frv_cpu_type): New Variable entry.
20805 (frv_cpu): New Enum and EnumValue entries.
20806
20807 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20808
20809 * config/cris/cris.c (cris_handle_option): Access target_flags via
20810 opts pointer. Don't assert that global structures are in use.
20811 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
20812 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
20813
20814 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20815
20816 * config/bfin/bfin-opts.h: New.
20817 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
20818 bfin_si_revision, bfin_workarounds): Remove.
20819 (bfin_cpus): Make static const.
20820 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
20821 not bfin_lib_id_given.
20822 (bfin_handle_option): Don't set bfin_lib_id_given. Access
20823 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
20824 pointer. Use error_at. Don't assert that global structures are in use.
20825 * config/bfin/bfin.h: Include bfin-opts.h.
20826 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
20827 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
20828 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
20829 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
20830 entries.
20831
20832 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20833
20834 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
20835 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
20836 or -msoft-float here.
20837 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
20838 -msoft-float and -mhard-float.
20839 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
20840 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
20841 msoft-float.
20842 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
20843 -msoft-float.
20844 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
20845 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
20846 not mhard-float.
20847 (LIBGCC_SPEC): Don't handle -msoft-float.
20848 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
20849 -mhard-float.
20850 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
20851 msoft-float.
20852 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
20853 -mfloat-abi=*, not -msoft-float and -mhard-float.
20854 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
20855 -msoft-float.
20856 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
20857 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
20858 mhard-float and msoft-float.
20859 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
20860 mfloat-abi=soft in comments, not mhard-float and msoft-float.
20861 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20862 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
20863 mhard-float.
20864 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
20865 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
20866 msoft-float.
20867 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
20868 not mhard-float.
20869 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
20870 not msoft-float.
20871
20872 2011-03-22 Richard Henderson <rth@redhat.com>
20873
20874 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
20875 TARGET_ABI_WINDOWS_NT.
20876 (alpha_output_function_end_prologue): Likewise.
20877 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
20878 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20879 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
20880 (trap, *movsi_nt_vms): Likewise.
20881 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
20882 (*tablejump_osf_nt_internal): Remove.
20883 * config/alpha/predicates.md (input_operand): Only test Pmode.
20884
20885 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20886
20887 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
20888 via opts pointer. Use error_at. Don't assert that global
20889 structures are in use.
20890
20891 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20892
20893 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
20894 (ix86_handle_option): Access ix86_isa_flags and
20895 ix86_isa_flags_explicit via opts pointer. Don't assert that
20896 global structures are in use.
20897 (ix86_function_specific_save, ix86_function_specific_restore):
20898 Update ix86_isa_flags_explicit field name.
20899 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
20900 (ix86_isa_flags_explicit): Rename TargetSave entry to
20901 x_ix86_isa_flags_explicit.
20902
20903 2011-03-22 Richard Henderson <rth@redhat.com>
20904
20905 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
20906 (alpha_option_override, direct_return): Likewise.
20907 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
20908 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
20909 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
20910 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
20911 (alpha_expand_epilogue, alpha_end_function): Likewise.
20912 (alpha_init_libfuncs): Likewise.
20913 (struct machine_function): Remove unicosmk members.
20914 (print_operand) ['t']: Remove.
20915 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
20916 unicosmk_output_module_name, unicosmk_output_common,
20917 current_section_align, unicosmk_output_text_section_asm_op,
20918 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
20919 unicosmk_section_type_flags, unicosmk_unique_section,
20920 unicosmk_asm_named_section, unicosmk_insert_attributes,
20921 unicosmk_output_align, unicosmk_defer_case_vector,
20922 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
20923 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
20924 unicosmk_output_ssib, unicosmk_add_call_info_word,
20925 unicosmk_extern_head, unicosmk_output_default_externs,
20926 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
20927 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
20928 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
20929 * config/alpha/alpha-protos.h: Update.
20930 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
20931 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
20932 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
20933 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
20934 (*mulsi_se, mulvsi3): Likewise.
20935 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
20936 (*divmodsi_internal, call, call_value, realign): Likewise.
20937 (moddi3, umoddi3): Likewise; remove duplicate expander.
20938 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
20939 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
20940 (*movdi_nofix): Remove r/U alternative.
20941 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
20942 * config/alpha/constraints.md ("U"): Remove.
20943 * config/alpha/predicates.md (call_operand"): Don't test
20944 TARGET_ABI_UNICOSMK.
20945
20946 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20947
20948 * target.def (handle_option): Take gcc_options and
20949 cl_decoded_option pointers and location_t.
20950 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
20951 * doc/tm.texi: Regenerate.
20952 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
20953 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
20954 * lto-opts.c (lto_reissue_options): Generate option structure for
20955 targetm.handle_option call.
20956 * opts.c (target_handle_option): Update call to
20957 targetm.handle_option. Remove assertions about values now passed
20958 down to hook.
20959 * targhooks.c (default_target_handle_option): New.
20960 * targhooks.h (default_target_handle_option): Declare.
20961 * config/alpha/alpha.c: Include opts.h.
20962 (alpha_handle_option): Update to new hook interface.
20963 * config/arm/arm.c: Include opts.h.
20964 (arm_handle_option): Update to new hook interface.
20965 * config/arm/t-arm (arm.o): Update dependencies.
20966 * config/bfin/bfin.c: Include opts.h.
20967 (bfin_handle_option): Update to new hook interface.
20968 * config/cris/cris.c: Include opts.h.
20969 (cris_handle_option): Update to new hook interface.
20970 * config/frv/frv.c: Include opts.h.
20971 (frv_handle_option): Update to new hook interface.
20972 * config/i386/i386.c: Include opts.h.
20973 (ix86_handle_option): Update to new hook interface.
20974 (ix86_valid_target_attribute_inner_p): Generate option structure
20975 for call to ix86_handle_option.
20976 * config/i386/t-i386 (i386.o): Update dependencies.
20977 * config/ia64/ia64.c: Include opts.h.
20978 (ia64_handle_option): Update to new hook interface.
20979 * config/ia64/t-ia64 (ia64.o): Update dependencies.
20980 * config/iq2000/iq2000.c: Include opts.h.
20981 (iq2000_handle_option): Update to new hook interface.
20982 * config/m32c/m32c.c: Include opts.h.
20983 (m32c_handle_option): Update to new hook interface.
20984 * config/m32r/m32r.c: Include opts.h.
20985 (m32r_handle_option): Update to new hook interface.
20986 * config/m68k/m68k.c: Include opts.h.
20987 (m68k_handle_option): Update to new hook interface.
20988 * config/mep/mep.c: Include opts.h.
20989 (mep_handle_option): Update to new hook interface.
20990 * config/microblaze/microblaze.c: Include opts.h.
20991 (microblaze_handle_option): Update to new hook interface.
20992 * config/mips/mips.c: Include opts.h.
20993 (mips_handle_option): Update to new hook interface.
20994 * config/mn10300/mn10300.c: Include opts.h.
20995 (mn10300_handle_option): Update to new hook interface.
20996 * config/pa/pa.c: Include opts.h.
20997 (pa_handle_option): Update to new hook interface.
20998 * config/pdp11/pdp11.c: Include opts.h.
20999 (pdp11_handle_option): Update to new hook interface.
21000 * config/rs6000/rs6000.c: Include opts.h.
21001 (rs6000_handle_option): Update to new hook interface.
21002 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
21003 * config/rx/rx.c: Include opts.h.
21004 (rx_handle_option): Update to new hook interface.
21005 * config/s390/s390.c: Include opts.h.
21006 (s390_handle_option): Update to new hook interface.
21007 * config/score/score.c: Include opts.h.
21008 (score_handle_option): Update to new hook interface.
21009 * config/sh/sh.c: Include opts.h.
21010 (sh_handle_option): Update to new hook interface.
21011 * config/sparc/sparc.c: Include opts.h.
21012 (sparc_handle_option): Update to new hook interface.
21013 * config/v850/v850.c: Include opts.h.
21014 (v850_handle_option): Update to new hook interface.
21015
21016 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21017
21018 * gcc.c (driver_unknown_option_callback): Only permit and save
21019 unknown -Wno- options.
21020 (driver_wrong_lang_callback): Save options directly instead of via
21021 driver_unknown_option_callback.
21022
21023 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
21024
21025 * combine.c (simplify_set): Try harder to find the best CC mode when
21026 simplifying a nested COMPARE on the RHS.
21027
21028 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21029
21030 * config/alpha/gnu.h: Remove.
21031 * config/arc: Remove directory.
21032 * config/arm/netbsd.h: Remove.
21033 * config/arm/t-pe: Remove.
21034 * config/crx: Remove directory.
21035 * config/i386/netbsd.h: Remove.
21036 * config/m68hc11: Remove directory.
21037 * config/m68k/uclinux-oldabi.h: Remove.
21038 * config/mcore/mcore-pe.h: Remove.
21039 * config/mcore/t-mcore-pe: Remove.
21040 * config/netbsd-aout.h: Remove.
21041 * config/rs6000/gnu.h: Remove.
21042 * config/sh/sh-symbian.h: Remove.
21043 * config/sh/symbian-base.c: Remove.
21044 * config/sh/symbian-c.c: Remove.
21045 * config/sh/symbian-cxx.c: Remove.
21046 * config/sh/symbian-post.h: Remove.
21047 * config/sh/symbian-pre.h: Remove.
21048 * config/sh/t-symbian: Remove.
21049 * config/svr3.h: Remove.
21050 * config/vax/netbsd.h: Remove.
21051 * config.build: Don't handle i[34567]86-*-pe.
21052 * config.gcc: Remove handling of deprecations for most deprecated
21053 targets.
21054 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
21055 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
21056 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
21057 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
21058 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
21059 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
21060 Remove cases.
21061 * config.host: Don't handle i[34567]86-*-pe.
21062 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
21063 (ASM_SPEC32): Don't handle -mcall-gnu.
21064 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
21065 -mcall-gnu.
21066 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
21067 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
21068 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
21069 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
21070 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
21071 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
21072 conditional on SYMBIAN.
21073 * configure.ac: Don't handle powerpc*-*-gnu*.
21074 * configure: Regenerate.
21075 * doc/extend.texi (interrupt attribute): Don't mention CRX.
21076 * doc/install-old.texi (m6811, m6812): Don't mention.
21077 * doc/install.texi (arc-*-elf*): Don't document multilib option.
21078 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
21079 (m68k-uclinuxoldabi): Don't mention.
21080 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
21081 Remove.
21082 (-mcall-gnu): Remove.
21083 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
21084 families): Remove constraint documentation.
21085
21086 2011-03-22 Marius Strobl <marius@FreeBSD.org>
21087
21088 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
21089 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
21090 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
21091
21092 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
21093
21094 PR target/48226
21095 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
21096 vector when peeking at the next token for vector, don't expand the
21097 keywords.
21098
21099 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
21100
21101 * config/avr/avr-protos.h (expand_epilogue): Change prototype
21102 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
21103 * config/avr/avr.c (init_cumulative_args)
21104 (avr_function_arg_advance): Use it.
21105 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
21106 sibcall epilogues.
21107 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
21108 (avr_function_ok_for_sibcall): ...this new function.
21109 (avr_lookup_function_attribute1): New static Function.
21110 (avr_naked_function_p, interrupt_function_p)
21111 (signal_function_p, avr_OS_task_function_p)
21112 (avr_OS_main_function_p): Use it.
21113 * config/avr/avr.md ("sibcall", "sibcall_value")
21114 ("sibcall_epilogue"): New expander.
21115 ("*call_insn", "*call_value_insn"): New insn.
21116 ("call_insn", "call_value_insn"): Remove
21117 ("call", "call_value", "epilogue"): Change expander to handle
21118 sibling calls.
21119
21120 2011-03-21 Nick Clifton <nickc@redhat.com>
21121
21122 * doc/invoke.texi (Overall Options): Move closing brace to end of
21123 options list.
21124 (Optimization Options): Add missing @gol.
21125 (Directory Options): Likewise.
21126 (i386 and x86-64 Options): Likewise.
21127 (RS6000 and PowerPC Options): Likewise.
21128 (i386 and x86-64 Windows Options): Likewise.
21129 (V850 Options): Add text missing from descriptions.
21130
21131 2011-03-22 Richard Henderson <rth@redhat.com>
21132
21133 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
21134 (avr_incoming_return_addr_rtx): New.
21135 (emit_push_byte): New.
21136 (expand_prologue): Use it. Remove incorrect dwarf annotation for
21137 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
21138 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
21139 (emit_pop_byte): New.
21140 (expand_epilogue): Use it. Pop frame pointer by bytes.
21141 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
21142 (INCOMING_RETURN_ADDR_RTX): New.
21143 (INCOMING_FRAME_SP_OFFSET): New.
21144 (ARG_POINTER_CFA_OFFSET): New.
21145 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
21146 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
21147 (pophi): Remove.
21148
21149 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
21150
21151 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
21152
21153 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
21154 (FUNCTION_ARG_ADVANCE): Likewise.
21155 * tm.texi.in: Change references to them to hook references.
21156 * tm.texi: Regenerate.
21157 * targhooks.c (default_function_arg): Eliminate check for target
21158 macro.
21159 (default_function_incoming_arg): Likewise.
21160 (default_function_arg_advance): Likewise.
21161 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
21162 (function_arg_advance): Likewise.
21163 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
21164
21165 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
21166
21167 * tree.c (build_call_1): New function.
21168 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
21169
21170 2011-03-22 Richard Guenther <rguenther@suse.de>
21171
21172 PR tree-optimization/48228
21173 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
21174 for single-arg PHIs.
21175
21176 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
21177
21178 PR rtl-optimization/48143
21179 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
21180 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
21181 sse2_cvtps2pd): Likewise.
21182
21183 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21184
21185 * recog.c (canonicalize_change_group): Use validate_unshare_change.
21186
21187 2011-03-22 Richard Guenther <rguenther@suse.de>
21188
21189 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
21190 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
21191 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
21192 and REALIGN_LOAD_EXPR.
21193 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
21194 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
21195 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
21196 DOT_PROD_EXPR case ...
21197 (expand_expr_real_2): ... here.
21198 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
21199 and REALIGN_LOAD_EXPR.
21200 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
21201 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
21202 (vect_create_epilog_for_reduction): Likewise.
21203 (vectorizable_reduction): Likewise.
21204 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
21205 * tree-vect-stmts.c (vectorizable_load): Likewise.
21206
21207 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
21208
21209 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
21210
21211 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21212
21213 * config/s390/s390.c (s390_delegitimize_address): Fix offset
21214 handling for PLTOFF/GOTOFF.
21215
21216 2011-03-22 Nick Clifton <nickc@redhat.com>
21217
21218 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
21219 trailing backslash from the end of the macro definition.
21220
21221 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21222
21223 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
21224 and PLT unspecs.
21225
21226 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
21227
21228 * expr.h (prepare_operand): Move to...
21229 * optabs.h (prepare_operand): ...here and change the insn code
21230 parameter from "int" to "enum insn_code".
21231 (insn_operand_matches): Declare.
21232 * expr.c (init_expr_target): Use insn_operand_matches.
21233 (compress_float_constant): Likewise.
21234 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
21235 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
21236 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
21237 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
21238 Likewise.
21239 (gen_cond_trap): Likewise.
21240 (prepare_operand): Likewise. Change icode to an insn_code.
21241 (insn_operand_matches): New function.
21242 * reload.c (find_reloads_address_1): Use insn_operand_matches.
21243 * reload1.c (gen_reload): Likewise.
21244 * targhooks.c (default_secondary_reload): Likewise.
21245
21246 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
21247
21248 * config/alpha/alpha.md (unspec): New define_c_enum.
21249 (unspecv): Ditto.
21250
21251 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
21252
21253 PR debug/48214
21254 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
21255 between a call and its CALL_ARG_LOCATION note.
21256
21257 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
21258
21259 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
21260
21261 2011-03-21 Jakub Jelinek <jakub@redhat.com>
21262
21263 PR c/42544
21264 PR c/48197
21265 * c-common.c (shorten_compare): If primopN is first sign-extended
21266 to opN and then zero-extended to result type, set primopN to opN.
21267
21268 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
21269
21270 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
21271 for barrier handlers.
21272
21273 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
21274
21275 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
21276 UNSPEC constants to be in the unspec enumeration, and redefine
21277 all UNSPECV constants to be in the unspecv enumeration, so that
21278 dumps print which unspec/unspec_volatile this is.
21279 * config/rs6000/vector.md (UNSPEC_*): Ditto.
21280 * config/rs6000/paired.md (UNSPEC_*): Ditto.
21281 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
21282 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
21283 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
21284
21285 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
21286 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
21287 UNSPECV_LWSYNC, since these are used as unspec_volatile.
21288 * config/rs6000/sync.md (isync, lwsync): Ditto.
21289
21290 2011-03-21 Richard Guenther <rguenther@suse.de>
21291
21292 * params.def (lto-min-partition): Fix typo.
21293
21294 2011-03-21 Richard Guenther <rguenther@suse.de>
21295
21296 PR c/47939
21297 * c-decl.c (grokdeclarator): Drop to the main variant only
21298 for array types. Drop flag_gen_aux_info check.
21299
21300 2011-03-21 Richard Guenther <rguenther@suse.de>
21301
21302 PR translation/47911
21303 * params.def (lto-partitions): Fix typo.
21304 (lto-min-partition): Fix wording.
21305
21306 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
21307
21308 * config/rs6000/t-freebsd: Remove duplication from file.
21309
21310 2011-03-21 Richard Guenther <rguenther@suse.de>
21311
21312 PR middle-end/47661
21313 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
21314
21315 2011-03-21 Richard Guenther <rguenther@suse.de>
21316
21317 PR lto/48210
21318 * params.def (lto-partitions): Require at least 1 partition.
21319
21320 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21321
21322 * gthr-solaris.h: Remove.
21323 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
21324 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
21325 (LIB_SPEC): Likewise.
21326 * config/sol2.opt (threads): Remove.
21327 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
21328 (sparc*-*-solaris2*): Likewise.
21329 * configure.ac (enable_threads): Enable solaris support.
21330 * configure: Regenerate.
21331 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
21332 * doc/install.texi (Configuration, --enable-threads=lib): Remove
21333 solaris.
21334
21335 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21336
21337 * config.gcc: Obsolete *-*-solaris2.8*.
21338 * doc/install.texi (Specific, *-*-solaris2*): Document it.
21339
21340 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21341
21342 PR bootstrap/48135
21343 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
21344 reference. Solaris 8 perl works.
21345
21346 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21347
21348 PR bootstrap/48135
21349 * doc/install.texi (Prerequisites): Move jar etc. up.
21350 Explain support library version requirements.
21351
21352 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21353
21354 PR bootstrap/48135
21355 * doc/install.texi (Prerequisites): Move Perl to build
21356 requirements. Always necessary on Solaris 2 with Sun ld.
21357
21358 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21359
21360 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
21361 binutils 2.21.
21362 (Specific, i?86-*-solaris2.[89]): Likewise.
21363 (Specific, i?86-*-solaris2.10): Likewise.
21364 (Specific, mips-sgi-irix6): Likewise.
21365 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
21366 Update for binutils 2.21.
21367
21368 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21369
21370 * configure.ac (gcc_cv_lto_plugin): Fix typo.
21371 Allow -fuse-linker-plugin for non-default plugin linker.
21372 * configure: Regenerate.
21373
21374 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
21375
21376 PR bootstrap/48167
21377 * gengtype.c (files_rules): Added rule for cp/parser.h.
21378
21379 2011-03-21 Jakub Jelinek <jakub@redhat.com>
21380
21381 PR target/48213
21382 * config/s390/s390.c (s390_delegitimize_address): Don't call
21383 lowpart_subreg if orig_x has BLKmode.
21384
21385 2011-03-21 Kai Tietz <ktietz@redhat.com>
21386
21387 PR target/12171
21388 * doc/plugins.texi: Adjust documentation for plugin register_callback.
21389 * tree.h (attribute_spec): Add new member affects_type_identity.
21390 * attribs.c (empty_attribute_table): Adjust attribute_spec
21391 initializers.
21392 * config/alpha/alpha.c: Likewise.
21393 * config/arc/arc.c: Likewise.
21394 * config/arm/arm.c: Likewise.
21395 * config/avr/avr.c: Likewise.
21396 * config/bfin/bfin.c: Likewise.
21397 * config/crx/crx.c: Likewise.
21398 * config/darwin.h: Likewise.
21399 * config/h8300/h8300.c: Likewise.
21400 * config/i386/cygming.h: Likewise.
21401 * config/i386/i386.c: Likewise.
21402 * config/ia64/ia64.c: Likewise.
21403 * config/m32c/m32c.c: Likewise.
21404 * config/m32r/m32r.c: Likewise.
21405 * config/m68hc11/m68hc11.c: Likewise.
21406 * config/m68k/m68k.c: Likewise.
21407 * config/mcore/mcore.c: Likewise.
21408 * config/mep/mep.c: Likewise.
21409 * config/microblaze/microblaze.c: Likewise.
21410 * config/mips/mips.c: Likewise.
21411 * config/rs6000/rs6000.c: Likewise.
21412 * config/rx/rx.c: Likewise.
21413 * config/sh/sh.c: Likewise.
21414 * config/sol2.h: Likewise.
21415 * config/sparc/sparc.c: Likewise.
21416 * config/spu/spu.c: Likewise.
21417 * config/stormy16/stormy16.c: Likewise.
21418 * config/v850/v850.c: Likewise.
21419
21420 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
21421
21422 * simplify-rtx.c (simplify_binary_operation_1): Handle
21423 (xor (and A B) C) case when B and C are both constants.
21424
21425 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
21426
21427 * tree-dfa.c (add_referenced_var): Fix typo in comment.
21428
21429 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
21430
21431 PR bootstrap/48168
21432 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
21433
21434 2011-03-20 Jakub Jelinek <jakub@redhat.com>
21435
21436 PR rtl-optimization/48156
21437 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
21438 assume df and df_lr are not NULL.
21439
21440 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21441
21442 PR debug/48023
21443 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
21444 between a call and its CALL_ARG_LOCATION note.
21445
21446 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21447
21448 PR debug/48178
21449 * config/sh/sh.c (find_barrier): Don't emit a constant pool
21450 between a call and its corresponding CALL_ARG_LOCATION note.
21451
21452 2011-03-19 Anatoly Sokolov <aesok@post.ru>
21453
21454 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
21455 instead of loop. Use HARD_REGISTER_NUM_P predicate.
21456 * haifa-sched.c (setup_ref_regs): Ditto.
21457 * caller-save.c (add_used_regs_1): Ditto.
21458 * dse.c (look_for_hardregs): Ditto.
21459 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
21460 * sched-rgn.c (check_live_1): Ditto.
21461
21462 2011-03-18 Joseph Myers <joseph@codesourcery.com>
21463
21464 * c-decl.c (diagnose_mismatched_decls): Give an error for
21465 redefining a typedef with variably modified type.
21466
21467 2011-03-18 Joseph Myers <joseph@codesourcery.com>
21468
21469 * c-decl.c (grokfield): Don't allow typedefs for structures or
21470 unions with no tag by default.
21471 * doc/extend.texi (Unnamed Fields): Update.
21472
21473 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
21474
21475 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
21476 Rewrite using indirect functions.
21477 (lwp_slwpcb): Ditto.
21478 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
21479 (avx_vinsertf128<mode>): Ditto.
21480
21481 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21482
21483 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
21484 unspecs.
21485
21486 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21487
21488 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
21489 splitting between a call and its corresponding CALL_ARG_LOCATION note.
21490
21491 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
21492
21493 PR rtl-optimization/48170
21494 * gcse.c (hoist_code): Remove bogus asserts.
21495
21496 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
21497
21498 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
21499 computation for prologue/epilogue.
21500
21501 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21502
21503 * Makefile.in (check-consistency): Remove.
21504
21505 2011-03-18 Jakub Jelinek <jakub@redhat.com>
21506
21507 PR debug/48176
21508 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
21509 arange_table_in_use is 0, but either text_section_used or
21510 cold_text_section_used is true. Don't call it if
21511 !info_section_emitted.
21512
21513 2011-03-18 Anatoly Sokolov <aesok@post.ru>
21514
21515 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
21516 FUNCTION_VALUE_REGNO_P): Remove.
21517 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
21518 Remove.
21519 * config/avr/avr.c (avr_ret_register): Make static inline.
21520 (avr_function_value_regno_p): New function.
21521 (avr_libcall_value): Make static. Add 'func' argument.
21522 (avr_function_value): Make static. Rename 'func' argument to
21523 'fn_decl_or_type', forward it to avr_libcall_value. Call
21524 avr_ret_register function instead of RET_REGISTER macro.
21525 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21526
21527 2011-03-18 Jason Merrill <jason@redhat.com>
21528
21529 PR c++/23372
21530 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
21531
21532 2011-03-18 Richard Guenther <rguenther@suse.de>
21533
21534 * doc/install.texi (--enable-gold): Remove.
21535 (--with-plugin-ld): Document.
21536 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
21537
21538 2011-03-18 Andrew Pinski <pinskia@gmail.com>
21539
21540 PR middle-end/47790
21541 * expr.c (optimize_bitfield_assignment_op): Revamp to work
21542 again after expansion changes.
21543
21544 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
21545
21546 * combine.c (try_combine): Do simplification only call of
21547 subst() on i2 even when i1 is present. Update comments.
21548
21549 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
21550
21551 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
21552 and UNSPEC_PCREL_SYMOFF.
21553
21554 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21555
21556 * config/s390/s390.md: Use define_c_enum for the unspec constant
21557 definitions.
21558
21559 2011-03-18 Richard Henderson <rth@redhat.com>
21560 Jakub Jelinek <jakub@redhat.com>
21561
21562 PR bootstrap/48161
21563 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
21564 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
21565
21566 2011-03-17 Anatoly Sokolov <aesok@post.ru>
21567
21568 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21569 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
21570 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
21571 Change return type to bool.
21572 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21573
21574 2011-03-17 Jakub Jelinek <jakub@redhat.com>
21575
21576 PR debug/48163
21577 * var-tracking.c (prepare_call_arguments): If CALL target
21578 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
21579 pc instead of looking it up using cselib_lookup and use
21580 Pmode for it if x has VOIDmode.
21581 * dwarf2out.c (gen_subprogram_die): If also both first and
21582 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
21583
21584 PR debug/48163
21585 * function.c (assign_parms): For data.passed_pointer parms
21586 use MEM of data.entry_parm instead of data.entry_parm itself
21587 as DECL_INCOMING_RTL.
21588 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
21589 also when passed and declared mode is the same, DECL_RTL
21590 is a MEM with pseudo as address and DECL_INCOMING_RTL is
21591 a MEM too.
21592
21593 2011-03-16 Jeff Law <law@redhat.com>
21594
21595 PR rtl-optimization/37273
21596 * ira-costs.c (scan_one_insn): Detect constants living in memory and
21597 handle them like argument loads from stack slots. Do not double
21598 count memory for memory constants and argument loads from stack slots.
21599
21600 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
21601
21602 PR debug/48160
21603 * var-tracking.c (prepare_call_arguments): Check SUBREG.
21604
21605 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
21606
21607 PR target/48171
21608 * config/i386/i386.opt: Add Save to -mavx and -mfma.
21609
21610 2011-03-17 Jakub Jelinek <jakub@redhat.com>
21611
21612 PR bootstrap/48153
21613 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
21614 if dwarf_strict.
21615 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
21616 Clear call_arg_locations and call_arg_loc_last always.
21617
21618 PR middle-end/48152
21619 * var-tracking.c (prepare_call_arguments): If argument needs to be
21620 passed by reference, adjust argtype and mode.
21621
21622 2011-03-17 Richard Guenther <rguenther@suse.de>
21623
21624 PR middle-end/48134
21625 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
21626 a value make sure to fold the statement.
21627
21628 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
21629
21630 PR target/43872
21631 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
21632 return condition with !cfun->calls_alloca.
21633
21634 2011-03-17 Richard Guenther <rguenther@suse.de>
21635
21636 PR bootstrap/48148
21637 * lto-cgraph.c (input_overwrite_node): Clear the abstract
21638 origin for decls in other ltrans units.
21639 (input_varpool_node): Likewise.
21640
21641 2011-03-17 Richard Guenther <rguenther@suse.de>
21642
21643 PR middle-end/48165
21644 * tree-object-size.c (compute_object_offset): Properly return
21645 the offset operand of MEM_REFs as sizetype.
21646
21647 2011-03-17 Jakub Jelinek <jakub@redhat.com>
21648
21649 PR rtl-optimization/48141
21650 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
21651 * dse.c: Include params.h.
21652 (active_local_stores_len): New variable.
21653 (add_wild_read, dse_step1): Clear it when setting active_local_stores
21654 to NULL.
21655 (record_store, check_mem_read_rtx): Decrease it when removing
21656 from the chain.
21657 (scan_insn): Likewise. Increase it when adding to chain, if it
21658 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
21659 set active_local_stores to NULL before the addition.
21660 * Makefile.in (dse.o): Depend on $(PARAMS_H).
21661
21662 PR rtl-optimization/48141
21663 * dse.c (record_store): If no positions are needed in an insn
21664 that cannot be deleted, at least unchain it from active_local_stores.
21665
21666 2011-03-16 Dodji Seketeli <dodji@redhat.com>
21667
21668 PR debug/47510
21669 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
21670 (lookup_type_die_strip_naming_typedef): ... here.
21671 (get_context_die): Use it.
21672 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
21673 the anonymous struct named by the naming typedef.
21674
21675 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
21676
21677 PR target/48154
21678 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
21679 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
21680
21681 2011-03-16 Jeff Law <law@redhat.com>
21682
21683 * tree-vrp.c (identify_jump_threads): Slightly simplify type
21684 check for operands of conditional. Allow type to be a pointer.
21685
21686 2011-03-16 Richard Guenther <rguenther@suse.de>
21687
21688 PR tree-optimization/48149
21689 * fold-const.c (fold_binary_loc): Fold
21690 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
21691
21692 2011-03-16 Richard Guenther <rguenther@suse.de>
21693
21694 PR tree-optimization/26134
21695 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
21696 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
21697 (non_rewritable_mem_ref_base): Handle complex type component
21698 accesses, constrain offsets for vector and complex extracts
21699 more properly.
21700
21701 2011-03-16 Richard Guenther <rguenther@suse.de>
21702
21703 PR tree-optimization/48146
21704 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
21705 operands avoiding the need for renaming.
21706
21707 2011-03-16 Richard Guenther <rguenther@suse.de>
21708
21709 * gimple-fold.c (maybe_fold_reference): Open-code relevant
21710 constant folding. Move MEM_REF canonicalization first.
21711 Rely on fold_const_aggregate_ref for initializer folding.
21712 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
21713
21714 2011-03-16 Jakub Jelinek <jakub@redhat.com>
21715
21716 PR middle-end/48136
21717 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
21718 arg0/arg1 or their arguments are always fold converted to matching
21719 types.
21720
21721 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
21722 to nargs.
21723
21724 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21725
21726 PR lto/46944
21727 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
21728 Handle in-tree gold.
21729 (ld_vers): Extract binutils version for gold.
21730 (gcc_cv_ld_hidden): Handle gold here.
21731 (gcc_cv_lto_plugin): Determine level of linker plugin support.
21732 * configure: Regenerate.
21733 * config.in: Regenerate.
21734 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
21735 -fuse-linker-plugin otherwise.
21736 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
21737 (LINK_COMMAND_SPEC): Use it.
21738 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
21739
21740 2011-03-16 Jakub Jelinek <jakub@redhat.com>
21741
21742 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
21743 * calls.c: Remove debug.h include.
21744 (emit_call_1): Don't call virtual_call_token debug hook.
21745 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
21746 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
21747 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
21748 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
21749 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
21750 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
21751 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
21752 dwarf2out_virtual_call): Remove.
21753 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
21754 copy_call_info and virtual_call hooks.
21755 (dwarf2out_init): Don't initialize vcall_insn_table,
21756 debug_dcall_section and debug_vcall_section.
21757 (prune_unused_types): Don't mark nodes from dcall_table.
21758 (dwarf2out_finish): Don't output dcall or vcall tables.
21759 * final.c (final_scan_insn): Don't call direct_call or
21760 virtual_call debug hooks.
21761 * debug.h (struct gcc_debug_hooks): Remove direct_call,
21762 virtual_call_token, copy_call_info and virtual_call hooks.
21763 (debug_nothing_uid): Remove prototype.
21764 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
21765 copy_call_info and virtual_call hooks.
21766 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21767 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
21768 * debug.c (do_nothing_debug_hooks): Likewise.
21769 (debug_nothing_uid): Remove.
21770 * doc/invoke.texi (-fenable-icf-debug): Remove.
21771 * common.opt (-fenable-icf-debug): Likewise.
21772
21773 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
21774 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
21775 call's MEM. Handle functions returning aggregate through a hidden
21776 first pointer. For virtual calls add clobbered pc to call arguments
21777 chain.
21778 * dwarf2out.c (gen_subprogram_die): Emit
21779 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
21780 can't be emitted.
21781
21782 PR debug/45882
21783 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
21784 * rtl.h (ENTRY_VALUE_EXP): Define.
21785 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
21786 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
21787 * print-rtl.c (print_rtx): Likewise.
21788 * gengtype.c (adjust_field_rtx_def): Likewise.
21789 * var-tracking.c (vt_add_function_parameter): Adjust
21790 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
21791 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
21792 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
21793 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
21794 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
21795
21796 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
21797 Call var_location debug hook even on CALL_INSNs.
21798 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
21799 * rtl.def (ENTRY_VALUE): New.
21800 * dwarf2out.c: Include cfglayout.h.
21801 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
21802 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
21803 (struct call_arg_loc_node): New type.
21804 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
21805 tail_call_site_count): New variables.
21806 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
21807 DW_TAG_GNU_call_site_parameter.
21808 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
21809 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
21810 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
21811 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
21812 and DW_AT_GNU_all_source_call_sites.
21813 (mem_loc_descriptor): Handle ENTRY_VALUE.
21814 (add_src_coords_attributes): Don't add enything if
21815 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
21816 (dwarf2out_abstract_function): Save and clear call_arg_location,
21817 call_site_count and tail_call_site_count around dwarf2out_decl call.
21818 (gen_call_site_die): New function.
21819 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
21820 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
21821 (dwarf2out_function_decl): Clear call_arg_locations,
21822 call_arg_loc_last, set call_site_count and tail_call_site_count
21823 to -1 and free block_map.
21824 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
21825 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
21826 followed by any real instructions.
21827 (dwarf2out_begin_function): Set call_site_count and
21828 tail_call_site_count to 0.
21829 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
21830 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
21831 attempt to force a DIE for it and worst case remove the attribute.
21832 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
21833 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
21834 the decl itself.
21835 * var-tracking.c: Include tm_p.h.
21836 (vt_stack_adjustments): For calls call note_register_arguments.
21837 (argument_reg_set): New variable.
21838 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
21839 ensure the VALUE is resolved.
21840 (call_arguments): New variable.
21841 (prepare_call_arguments): New function.
21842 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
21843 (struct expand_loc_callback_data): Add ignore_cur_loc field.
21844 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
21845 always use the best expression.
21846 (vt_expand_loc): Add ignore_cur_loc argument.
21847 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
21848 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
21849 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
21850 note for all calls.
21851 (vt_add_function_parameter): Use cselib_lookup_from_insn.
21852 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
21853 argument. Don't call cselib_preserve_only_values and
21854 cselib_reset_table.
21855 (note_register_arguments): New function.
21856 (vt_initialize): Compute argument_reg_set. Call
21857 vt_add_function_parameters before processing basic blocks instead of
21858 afterwards. For calls call prepare_call_arguments before calling
21859 cselib_process_insn.
21860 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
21861 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
21862 (var-tracking.o): Depend on $(TM_P_H).
21863 * cfglayout.h (insn_scope): New prototype.
21864 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
21865 * cfglayout.c (insn_scope): No longer static.
21866 * insn-notes.def (CALL_ARG_LOCATION): New.
21867 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
21868 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
21869 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
21870 nothing for DECL_EXTERNAL BLOCK_VARS.
21871
21872 2011-03-16 Alan Modra <amodra@gmail.com>
21873
21874 PR target/45844
21875 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21876 create invalid offset address for vsx splat insn.
21877 * config/rs6000/predicates.md (splat_input_operand): New.
21878 * config/rs6000/vsx.md (vsx_splat_*): Use it.
21879
21880 2011-03-15 Xinliang David Li <davidxl@google.com>
21881
21882 PR c/47837
21883 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
21884 (normalize_preds): New function.
21885 (is_use_properly_guarded): Normalize def predicates.
21886
21887 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21888
21889 PR target/46788
21890 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
21891 in the output template.
21892
21893 2011-03-15 Richard Guenther <rguenther@suse.de>
21894
21895 PR middle-end/47650
21896 * tree-pretty-print.c (dump_function_declaration): Properly
21897 dump unprototyped and varargs function types.
21898
21899 2011-03-15 Richard Guenther <rguenther@suse.de>
21900
21901 PR tree-optimization/13954
21902 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
21903 and friends.
21904
21905 2011-03-15 Richard Guenther <rguenther@suse.de>
21906
21907 PR tree-optimization/48037
21908 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
21909 selects into BIT_FIELD_REFs.
21910 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
21911 vector select.
21912
21913 2011-03-15 Jakub Jelinek <jakub@redhat.com>
21914
21915 PR tree-optimization/48129
21916 * builtins.c (fold_builtin_snprintf): Convert to type of
21917 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
21918 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
21919
21920 2011-03-15 Richard Guenther <rguenther@suse.de>
21921
21922 PR tree-optimization/41490
21923 * tree-ssa-dce.c (propagate_necessity): Handle returns without
21924 value but with VUSE.
21925 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
21926 return statements.
21927 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
21928 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
21929 * tree-tailcall.c (find_tail_calls): Ignore returns.
21930
21931 2011-03-15 Richard Guenther <rguenther@suse.de>
21932
21933 PR middle-end/48031
21934 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
21935 or variable-indexed array accesses when in gimple form.
21936
21937 2011-03-15 Richard Guenther <rguenther@suse.de>
21938
21939 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
21940
21941 2011-03-15 Alan Modra <amodra@gmail.com>
21942
21943 PR target/48032
21944 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
21945 presume symbol_refs without a symbol_ref_decl are suitably
21946 aligned, nor other trees we may see here. Handle anchor symbols.
21947 (legitimate_constant_pool_address_p): Comment. Add mode param.
21948 Check cmodel=medium addresses. Adjust all calls.
21949 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
21950 creating cmodel=medium optimized access to locals.
21951 * config/rs6000/constraints.md (R): Pass QImode to
21952 legitimate_constant_pool_address_p.
21953 * config/rs6000/predicates.md (input_operand): Pass mode to
21954 legitimate_constant_pool_address_p.
21955 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
21956 Update prototype.
21957
21958 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21959
21960 PR target/48053
21961 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
21962 64-bit constants being loaded into registers other than GPRs such
21963 as loading 0 into a VSX register.
21964
21965 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21966
21967 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
21968
21969 2011-03-14 Jakub Jelinek <jakub@redhat.com>
21970
21971 PR middle-end/47917
21972 * builtins.c (fold_builtin_snprintf): New function.
21973 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
21974 (fold_builtin_4): Likewise.
21975
21976 PR middle-end/38878
21977 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
21978 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
21979 and C - X == X also strip nops from +/-/p+ operand.
21980 When optimizing -X == C, fold C to arg0's type.
21981
21982 PR debug/47946
21983 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
21984 emit it as add_AT_int instead of add_AT_unsigned.
21985
21986 2011-03-14 Tom Tromey <tromey@redhat.com>
21987
21988 * unwind-dw2.c: Include sys/sdt.h if it exists.
21989 (_Unwind_DebugHook): Use STAP_PROBE2.
21990 * config.in, configure: Rebuild.
21991 * configure.ac: Check for sys/sdt.h.
21992
21993 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
21994
21995 * config/i386/i386.md (ROUND_FLOOR): New constant.
21996 (ROUND_CEIL): Ditto.
21997 (ROUND_TRUNC): Ditto.
21998 (ROUND_MXCSR): Ditto.
21999 (ROUND_NO_EXC): Ditto.
22000 (rint<mode>2): Use new defines instead of numerical constants.
22001 (floor<mode>2): Ditto.
22002 (ceil<mode>2): Ditto.
22003 (btrunc<mode>2): Ditto.
22004 * config/i386/i386-builtin-types.def: Define ROUND function type
22005 aliases.
22006 * config/i386/i386.c (enum ix86_builtins): Add
22007 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
22008 (struct builtin_description): Add
22009 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
22010 (ix86_expand_sse_round): New static function.
22011 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
22012 function types.
22013 (ix86_builtin_vectorized_function): Handle
22014 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
22015
22016 2011-03-14 Tom Tromey <tromey@redhat.com>
22017
22018 * c-parser.c (c_parser_asm_string_literal): Clear
22019 warn_overlength_strings.
22020
22021 2011-03-14 Tom Tromey <tromey@redhat.com>
22022
22023 * c-parser.c (disable_extension_diagnostics): Save
22024 warn_overlength_strings.
22025 (restore_extension_diagnostics): Restore warn_overlength_strings.
22026
22027 2011-03-14 Jakub Jelinek <jakub@redhat.com>
22028
22029 * BASE-VER: Change to 4.7.0.
22030
22031 2011-03-14 Richard Guenther <rguenther@suse.de>
22032
22033 PR middle-end/48098
22034 * tree.c (build_vector_from_val): Adjust assert to requirements
22035 and reality.
22036
22037 2011-03-14 Jakub Jelinek <jakub@redhat.com>
22038
22039 PR bootstrap/48102
22040 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
22041
22042 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
22043
22044 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
22045 terms of target_flags_explicit. Adjust copyright year.
22046
22047 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
22048 * config/rs6000/t-freebsd: New file. Add override for
22049 LIB2FUNCS_EXTRA.
22050
22051 2011-03-13 Chris Demetriou <cgd@google.com>
22052
22053 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
22054 (-fno-diagnostics-show-option): this, to reflect current default.
22055 (-Werror=): Update text about -fno-diagnostics-show-option.
22056
22057 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
22058
22059 PR target/48053
22060 * config/rs6000/predicates.md (easy_vector_constant_add_self,
22061 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
22062 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
22063 mode is not V2DImode or V2DFmode.
22064 (vspltis_constant): Do not handle V2DImode and V2DFmode.
22065 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
22066 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
22067 registers to 0.
22068 (movdi_internal64): Likewise.
22069
22070 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
22071
22072 PR tree-optimization/47127
22073 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
22074 parameter.
22075 (set_cloog_options): Same.
22076 (scop_to_clast): Same.
22077 (print_clast_stmt): Do not call cloog_state_malloc and
22078 cloog_state_free.
22079 (print_generated_program): Same.
22080 (gloog): Same.
22081 * graphite-clast-to-gimple.h (cloog_state): Declared.
22082 (scop_to_clast): Adjust declaration.
22083 * graphite.c (cloog_state): Defined here.
22084 (graphite_initialize): Call cloog_state_malloc.
22085 (graphite_finalize): Call cloog_state_free.
22086
22087 2011-03-11 Jason Merrill <jason@redhat.com>
22088
22089 * attribs.c (lookup_attribute_spec): Take const_tree.
22090 * tree.h: Adjust.
22091
22092 2011-03-11 Joseph Myers <joseph@codesourcery.com>
22093
22094 * config/sparc/sparc.c (sparc_option_override): Use
22095 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
22096
22097 2011-03-11 Richard Guenther <rguenther@suse.de>
22098
22099 PR tree-optimization/48067
22100 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
22101 multiplication result will be only used once on the target
22102 stmt.
22103
22104 2011-03-11 Richard Guenther <rguenther@suse.de>
22105
22106 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
22107
22108 2011-03-11 Richard Guenther <rguenther@suse.de>
22109
22110 PR lto/48073
22111 * tree.c (find_decls_types_r): Do not walk types only reachable
22112 from IDENTIFIER_NODEs.
22113
22114 2011-03-11 Jakub Jelinek <jakub@redhat.com>
22115
22116 PR middle-end/48044
22117 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
22118 all vnode->force_output nodes as needed.
22119
22120 2011-03-11 Jason Merrill <jason@redhat.com>
22121
22122 PR c++/48069
22123 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
22124 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
22125
22126 2011-03-11 Martin Jambor <mjambor@suse.cz>
22127
22128 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
22129 cgraph_node.
22130
22131 2011-03-11 Jakub Jelinek <jakub@redhat.com>
22132
22133 PR tree-optimization/48063
22134 * ipa-inline.c (cgraph_decide_inlining): Don't try to
22135 inline functions called once if !tree_can_inline_p (node->callers).
22136
22137 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
22138
22139 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
22140 extra_objs.
22141 * config/score/score3.c: Delete.
22142 * config/score/score3.h: Delete.
22143 * config/score/mul-div.S: Delete.
22144 * config/score/sfp-machine.h: Add new file.
22145 * config/score/constraints.md: Add new file.
22146 * config/score/t-score-softfp: Add new file.
22147 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
22148 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
22149 (score7_extra_constraint): Delete.
22150 (score7_option_override): Remove unused code.
22151 * config/score/score.c: Remove score3 and score5 define and code.
22152 * config/score/score.h: Remove score3 and score5 define and code.
22153 * config/score/score.md: Remove score3 template and unusual insn.
22154 * config/score/score.opt: Remove score3 and score5 options.
22155
22156 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22157
22158 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
22159 when _HPUX_SOURCE is defined.
22160 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
22161
22162 2011-03-10 Jason Merrill <jason@redhat.com>
22163
22164 PR c++/48029
22165 * stor-layout.c (layout_type): Don't set structural equality
22166 on arrays of incomplete type.
22167 * tree.c (type_hash_eq): Handle comparing them properly.
22168
22169 2011-03-10 Jakub Jelinek <jakub@redhat.com>
22170
22171 PR debug/48043
22172 * config/s390/s390.c (s390_delegitimize_address): Make sure the
22173 result mode matches original rtl mode.
22174
22175 2011-03-10 Nick Clifton <nickc@redhat.com>
22176
22177 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
22178 (andsi3, andsi3_flags): Fix timings for three operand alternative.
22179
22180 2011-03-09 Jakub Jelinek <jakub@redhat.com>
22181
22182 PR rtl-optimization/47866
22183 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
22184 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
22185 if target wasn't scalar.
22186 * function.c (assign_stack_temp_for_type): Assert that neither
22187 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
22188 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
22189 macro.
22190 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
22191
22192 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22193
22194 * config/s390/s390-protos.h (s390_label_align): New prototype.
22195 * config/s390/s390.c (s390_label_align): New function.
22196 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
22197
22198 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
22199
22200 PR target/47755
22201 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
22202 V2DI/V2DF constants. Only all 0's or all 1's are easy.
22203 (output_vec_const_move): Ditto.
22204
22205 2011-03-08 Anatoly Sokolov <aesok@post.ru>
22206
22207 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
22208 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
22209 * config/mips/mips.c (mips_preferred_reload_class): Make static.
22210 Change 'rclass' argument and result type to reg_class_t.
22211 (TARGET_PREFERRED_RELOAD_CLASS): Define.
22212
22213 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
22214
22215 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
22216 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
22217 (TARGET_MEMORY_MOVE_COST): Define.
22218 (avr_register_move_cost, avr_memory_move_cost): New Functions.
22219
22220 2011-03-08 Jakub Jelinek <jakub@redhat.com>
22221
22222 PR debug/47881
22223 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
22224 removed anything.
22225
22226 PR tree-optimization/48022
22227 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
22228 for EQ/NE_EXPR.
22229
22230 2011-03-07 Jakub Jelinek <jakub@redhat.com>
22231
22232 PR debug/47991
22233 * var-tracking.c (find_use_val): Return NULL for
22234 cui->sets && cui->store_p BLKmode MEMs.
22235
22236 2011-03-07 Anatoly Sokolov <aesok@post.ru>
22237
22238 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
22239 Remove.
22240 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
22241 xstormy16_print_operand_address): Remove.
22242 * config/stormy16/stormy16.c (xstormy16_print_operand,
22243 xstormy16_print_operand_address): Make static.
22244 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22245
22246 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
22247
22248 PR target/47862
22249 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
22250 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
22251 before definition.
22252
22253 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
22254
22255 PR bootstrap/48000
22256 * cfgloopmanip.c (fix_bb_placements): Return immediately
22257 if FROM is BASE_LOOP's header.
22258
22259 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
22260
22261 * gimplify.c (gimplify_function_tree): Fix building calls
22262 to __builtin_return_address.
22263
22264 2011-03-07 Alan Modra <amodra@gmail.com>
22265
22266 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
22267 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
22268 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
22269 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
22270 return_mode args.
22271 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
22272 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
22273 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
22274 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
22275 * config/rs6000/rs6000.c
22276 (rs6000_elf_end_indicate_exec_stack): Rename to..
22277 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
22278 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
22279 (rs6000_file_start): ..here.
22280 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
22281 file scope variables.
22282 (call_ABI_of_interest): New function.
22283 (init_cumulative_args): Set above vars when function return value
22284 is a float, vector, or small struct.
22285 (rs6000_function_arg_advance_1): Likewise for function args.
22286 (rs6000_va_start): Set rs6000_passes_float if variable arg function
22287 references float args.
22288
22289 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
22290
22291 * doc/cfg.texi: Remove "See" before @ref.
22292 * doc/invoke.texi: Likewise.
22293
22294 2011-03-05 Jason Merrill <jason@redhat.com>
22295
22296 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
22297
22298 2011-03-05 Anthony Green <green@moxielogic.com>
22299
22300 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
22301
22302 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
22303
22304 PR rtl-optimization/47899
22305 * cfgloopmanip.c (fix_bb_placements): Fix first argument
22306 to flow_loop_nested_p when moving the loop upward.
22307
22308 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
22309
22310 PR target/47719
22311 * arm.md (movhi_insn_arch4): Accept any immediate constant.
22312
22313 2011-03-05 Jakub Jelinek <jakub@redhat.com>
22314
22315 PR tree-optimization/47967
22316 * ipa-cp.c (build_const_val): Return NULL instead of creating
22317 VIEW_CONVERT_EXPR for mismatching sizes.
22318 (ipcp_create_replace_map): Return NULL if build_const_val failed.
22319 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
22320 give up on versioning.
22321
22322 2011-03-05 Alan Modra <amodra@gmail.com>
22323
22324 PR target/47986
22325 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
22326 full cmodel medium/large lo_sum + high addresses.
22327
22328 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22329
22330 * config/s390/s390.c (s390_decompose_address): Reject non-literal
22331 pool references in UNSPEC_LTREL_OFFSET.
22332
22333 2011-03-04 Jan Hubicka <jh@suse.cz>
22334
22335 PR lto/47497
22336 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
22337 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
22338 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
22339 Add node pointers.
22340 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
22341 cgraph_add_thunk): Add node pointers.
22342 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
22343 associated to right node.
22344 (input_node): Update use of cgraph_same_body_alias
22345 and cgraph_add_thunk.
22346
22347 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
22348
22349 * config/i386/i386.opt (mprefer-avx128): New flag.
22350 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
22351 modes when the flag -mprefer-avx128 is on.
22352
22353 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
22354
22355 * dwarf2out.c (compare_loc_operands): Fix address handling.
22356
22357 2011-03-04 Alan Modra <amodra@gmail.com>
22358
22359 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
22360
22361 2011-03-04 Richard Guenther <rguenther@suse.de>
22362
22363 PR middle-end/47968
22364 * expmed.c (extract_bit_field_1): Prefer vector modes that
22365 vec_extract patterns can handle.
22366
22367 2011-03-04 Richard Guenther <rguenther@suse.de>
22368
22369 PR middle-end/47975
22370 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
22371
22372 2011-03-04 Richard Henderson <rth@redhat.com>
22373
22374 * explow.c (emit_stack_save): Remove 'after' parameter.
22375 (emit_stack_restore): Likewise.
22376 * expr.h: Update to match.
22377 * builtins.c, calls.c, stmt.c: Likewise.
22378 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
22379 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
22380 * function.c (expand_function_end): Insert the emit_stack_save
22381 sequence before parm_birth_insn instead of after.
22382
22383 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
22384
22385 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
22386 (ssse3_pmaddubsw128): Ditto.
22387 (ssse3_pmaddubsw): Ditto.
22388
22389 2011-03-03 Steve Ellcey <sje@cup.hp.com>
22390
22391 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
22392
22393 2011-03-03 Jakub Jelinek <jakub@redhat.com>
22394
22395 PR c/47963
22396 * gimplify.c (omp_add_variable): Only call omp_notice_variable
22397 on TYPE_SIZE_UNIT if it is a DECL.
22398
22399 PR debug/47283
22400 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
22401 first operand is not is_gimple_mem_ref_addr, try to fold it.
22402 If the operand still isn't is_gimple_mem_ref_addr, clear
22403 MEM_EXPR on op0.
22404
22405 2011-03-03 Richard Guenther <rguenther@suse.de>
22406
22407 PR middle-end/47283
22408 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
22409 match comment.
22410 (refs_may_alias_p_1): For release branches return true if
22411 we are confused by our input.
22412
22413 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22414
22415 * config/s390/s390.c (s390_function_value): Rename to ...
22416 (s390_function_and_libcall_value): ... this.
22417 (s390_function_value): New function.
22418 (s390_libcall_value): New function.
22419 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
22420 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
22421 target macro definitions.
22422 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
22423
22424 2011-03-02 Joseph Myers <joseph@codesourcery.com>
22425
22426 * config/i386/freebsd64.h (CC1_SPEC): Define.
22427 * config/i386/linux64.h (CC1_SPEC): Define.
22428 * config/i386/x86-64.h (CC1_SPEC): Don't define.
22429
22430 2011-03-02 Anatoly Sokolov <aesok@post.ru>
22431
22432 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
22433 Remove.
22434 * config/stormy16/stormy16.c: Include reload.h.
22435 (xstormy16_memory_move_cost): New function.
22436 (TARGET_MEMORY_MOVE_COST): Define.
22437
22438 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
22439
22440 PR rtl-optimization/47925
22441 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
22442 with side effects. Remove the more-specific check for volatile asms.
22443
22444 2011-03-02 Alan Modra <amodra@gmail.com>
22445
22446 PR target/47935
22447 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
22448 toc relative addresses for valid offsets.
22449
22450 2011-03-01 Richard Guenther <rguenther@suse.de>
22451
22452 PR tree-optimization/47890
22453 * tree-vect-loop.c (get_initial_def_for_induction): Set
22454 related stmt properly.
22455
22456 2011-03-01 Richard Guenther <rguenther@suse.de>
22457
22458 PR lto/47924
22459 * lto-streamer.c (lto_record_common_node): Also register
22460 the canonical type.
22461
22462 2011-03-01 Richard Guenther <rguenther@suse.de>
22463
22464 PR lto/46911
22465 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
22466 Do not stream DECL_ABSTRACT_ORIGIN.
22467 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
22468 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
22469 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
22470 Do not stream DECL_ABSTRACT_ORIGIN.
22471 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
22472 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
22473
22474 2011-02-28 Anatoly Sokolov <aesok@post.ru>
22475
22476 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
22477 FUNCTION_VALUE_REGNO_P): Remove.
22478 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
22479 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
22480 Add 'outgoing' argument.
22481 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
22482 function.
22483 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22484 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22485
22486 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
22487
22488 PR debug/28047
22489 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
22490 (lookup_filename): Likewise.
22491 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
22492
22493 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
22494 Jakub Jelinek <jakub@redhat.com>
22495
22496 PR middle-end/47893
22497 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
22498 (assign_stack_local_1): Change last argument type to int.
22499 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
22500 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
22501 don't record padding space into frame_space_list nor use those areas.
22502 (assign_stack_local): Adjust caller.
22503 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
22504 of assign_stack_local, pass 0 as last argument.
22505 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
22506 callers.
22507
22508 2011-02-28 Jakub Jelinek <jakub@redhat.com>
22509
22510 PR debug/47283
22511 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
22512 Use target address_mode and pointer_mode hooks instead of hardcoded
22513 Pmode and ptr_mode. Handle some simple cases of extending if
22514 POINTERS_EXTEND_UNSIGNED < 0.
22515 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
22516 Call convert_debug_memory_address.
22517 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
22518 convert_debug_memory_address.
22519
22520 PR middle-end/46790
22521 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
22522 * configure: Regenerated.
22523 * config.in: Regenerated.
22524 * varasm.c (default_function_section): Return NULL
22525 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
22526
22527 2011-02-28 Martin Jambor <mjambor@suse.cz>
22528
22529 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
22530 the description to match the printed values.
22531
22532 2011-02-28 Richard Guenther <rguenther@suse.de>
22533
22534 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
22535 of the copied scope tree.
22536
22537 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22538
22539 * doc/extend.texi (Function Attributes): Avoid deeply (and
22540 wrongly) nested tables.
22541
22542 2011-02-27 Jakub Jelinek <jakub@redhat.com>
22543
22544 PR middle-end/47903
22545 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
22546 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
22547 r isn't op0 nor op1.
22548
22549 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
22550
22551 * config/avr/avr.md: Remove magic comment for emacs.
22552
22553 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
22554
22555 PR target/45261
22556 * config/avr/avr.c (avr_option_override): Use error on bad options.
22557 (avr_help): New function.
22558 (TARGET_HELP): Define.
22559
22560 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
22561
22562 PR target/42240
22563 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
22564 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
22565
22566 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
22567
22568 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
22569 (ARM Options): Ditto.
22570 (i386 and x86-64 Options): Ditto.
22571 (RX Options): Ditto.
22572 (SPARC Options): Ditto.
22573
22574 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
22575
22576 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
22577 FreeBSD 6 and later. Generally use cpu generic.
22578
22579 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
22580
22581 * doc/cpp.texi: Update copyright years.
22582
22583 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
22584
22585 PR target/46898
22586 * config/lm32/lm32.md (ashrsi3): Added needed variable.
22587
22588 2011-02-25 Jon Beniston <jon@beniston.com>
22589
22590 PR target/46898
22591 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
22592 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
22593 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
22594 (lm32_block_move_inline): Add type cast to remove warning.
22595 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
22596 (gen_int_relational): Move declarations to start of function.
22597
22598 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
22599
22600 PR tree-optimization/45470
22601 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
22602 can throw internally only.
22603 * tree-vect-stmts.c (vectorizable_call): Likewise.
22604
22605 2011-02-24 Anatoly Sokolov <aesok@post.ru>
22606
22607 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
22608 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
22609 * config/stormy16/stormy16-protos.h
22610 (xstormy16_preferred_reload_class): Remove.
22611 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
22612 static. Change 'rclass' argument and return type to reg_class_t.
22613 (TARGET_PREFERRED_RELOAD_CLASS,
22614 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
22615
22616 2011-02-24 Richard Guenther <rguenther@suse.de>
22617
22618 * lto-streamer-in.c (input_bb): Do not find referenced vars
22619 in debug statements.
22620
22621 2011-02-23 Jason Merrill <jason@redhat.com>
22622
22623 * common.opt (fabi-version): Document v5 and v6.
22624
22625 2011-02-23 Richard Guenther <rguenther@suse.de>
22626
22627 PR tree-optimization/47849
22628 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
22629
22630 2011-02-23 Jie Zhang <jie@codesourcery.com>
22631
22632 * opts-common.c (decode_cmdline_option): Print empty string
22633 argument as "" in decoded->orig_option_with_args_text.
22634 * gcc.c (execute): Print empty string argument as ""
22635 in the verbose output.
22636 (do_spec_1): Keep empty string argument.
22637
22638 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
22639
22640 * config.gcc: Declare score-* and crx-* obsolete.
22641
22642 2011-02-23 Jie Zhang <jie@codesourcery.com>
22643
22644 PR rtl-optimization/47763
22645 * web.c (web_main): Ignore naked clobber when replacing register.
22646
22647 2011-02-22 Anatoly Sokolov <aesok@post.ru>
22648
22649 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
22650 Remove.
22651
22652 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
22653
22654 PR doc/47848
22655 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
22656
22657 2011-02-22 Mike Stump <mikestump@comcast.net>
22658
22659 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
22660 assembler.
22661 * configure: Regenerate.
22662
22663 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
22664
22665 PR rtl-optimization/46002
22666 * ira-color.c (update_copy_costs): Change class intersection
22667 test to reg_class_contents[] test of 'hard_regno'.
22668
22669 2011-02-21 Joseph Myers <joseph@codesourcery.com>
22670
22671 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
22672 than Driver option.
22673 * config/hpux11.opt (mt): Likewise.
22674 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
22675 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
22676 * config/vax/elf.opt (mno-asm-pic): Likewise.
22677 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
22678
22679 2011-02-21 Mike Stump <mikestump@comcast.net>
22680
22681 PR target/47822
22682 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
22683 tree so we can get save the type.
22684 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
22685 for CFString instead of trying to use past the end of the builtins.
22686 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
22687 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
22688 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
22689 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
22690 Rename to darwin_builtin_cfstring.
22691 (darwin_init_cfstring_builtins): Return the built type.
22692
22693 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
22694
22695 PR target/47840
22696 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
22697 (_mm256_insert_epi64): Use _mm_insert_epi64.
22698
22699 2011-02-21 Anatoly Sokolov <aesok@post.ru>
22700
22701 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22702 * config/stormy16/stormy16-protos.h
22703 (xstormy16_mode_dependent_address_p): Remove.
22704 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
22705 Make static. Change return type to bool. Change argument type to
22706 const_rtx. Remove dead code.
22707 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22708
22709 2011-02-21 Richard Guenther <rguenther@suse.de>
22710
22711 PR lto/47820
22712 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
22713 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
22714 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
22715 TUs context.
22716 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
22717 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
22718
22719 2011-02-20 Richard Guenther <rguenther@suse.de>
22720
22721 PR lto/47822
22722 * tree.c (free_lang_data_in_decl): Clean builtins from
22723 the TU decl BLOCK_VARS.
22724
22725 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
22726
22727 PR debug/47620
22728 PR debug/47630
22729 * haifa-sched.c (fix_tick_ready): Skip tick computation
22730 for debug insns.
22731
22732 2011-02-19 Richard Guenther <rguenther@suse.de>
22733
22734 PR lto/47647
22735 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
22736 Remove lazy BLOCK_VARS streaming.
22737 (lto_input_ts_block_tree_pointers): Likewise.
22738 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
22739
22740 2011-02-19 Joseph Myers <joseph@codesourcery.com>
22741
22742 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
22743
22744 2011-02-19 Joseph Myers <joseph@codesourcery.com>
22745
22746 * config/i386/biarch32.h, config/i386/mach.h,
22747 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
22748
22749 2011-02-19 Jakub Jelinek <jakub@redhat.com>
22750
22751 PR target/47800
22752 * config/i386/i386.md (peephole2 for shift and plus): Use
22753 operands[1] original mode in the first insn.
22754
22755 2011-02-18 Mike Stump <mikestump@comcast.net>
22756
22757 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
22758
22759 2011-02-18 Jan Hubicka <jh@suse.cz>
22760
22761 PR middle-end/47788
22762 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
22763 to zero when the function is not inlinable at all.
22764
22765 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22766
22767 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
22768 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
22769 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
22770 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
22771 * config/pa/t-pa64: Likewise.
22772 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
22773
22774 2011-02-18 Jakub Jelinek <jakub@redhat.com>
22775
22776 PR driver/47787
22777 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
22778
22779 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22780
22781 PR target/47792
22782 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
22783
22784 2011-02-18 Anatoly Sokolov <aesok@post.ru>
22785
22786 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
22787 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
22788 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
22789 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22790 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
22791 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
22792 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
22793 m32r_load_postinc_p, m32r_store_preinc_predec_p,
22794 m32r_legitimate_address_p): New functions.
22795 * config/m32r/constraints.md (constraint "S"): Don't use
22796 STORE_PREINC_PREDEC_P.
22797 (constraint "U"): Don't use LOAD_POSTINC_P.
22798
22799 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
22800
22801 PR rtl-optimization/46178
22802 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
22803 compute ira_hard_regno_cover_class[].
22804
22805 2011-02-18 Richard Guenther <rguenther@suse.de>
22806
22807 PR lto/47798
22808 * lto-streamer.h (lto_global_var_decls): Declare.
22809 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
22810 statics for global var processing.
22811
22812 2011-02-18 Richard Guenther <rguenther@suse.de>
22813
22814 PR tree-optimization/47737
22815 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
22816 edge dominance check.
22817
22818 2011-02-18 Jakub Jelinek <jakub@redhat.com>
22819
22820 PR debug/47780
22821 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
22822 avoid invalid rtx sharing.
22823
22824 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
22825
22826 * doc/cpp.texi (Obsolete Features): Add background on the
22827 origin of assertions.
22828
22829 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
22830
22831 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
22832 objc_abi == 2.
22833 * config/darwin.c (output_objc_section_asm_op): Added support for
22834 ABI v1 and v2.
22835 (is_objc_metadata): New.
22836 (darwin_objc2_section): New.
22837 (darwin_objc1_section): New.
22838 (machopic_select_section): Added support for ABI v1 and v2.
22839 (darwin_emit_objc_zeroed): New.
22840 (darwin_output_aligned_bss): Detect objc metadata and treat it
22841 appropriately.
22842 (darwin_asm_output_aligned_decl_common): Same.
22843 (darwin_asm_output_aligned_decl_local): Same.
22844 * config/darwin-sections.def: Updated for ABI v1 and v2.
22845 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
22846 compiling Objective-C code for the NeXT runtime, default to using
22847 ABI version 0 for 32-bit, and version 2 for 64-bit.
22848
22849 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22850
22851 * common.opt (optimize_fast): New Variable.
22852 * opts.c (default_options_optimization): Use opts->x_optimize_fast
22853 instead of local variable ofast.
22854
22855 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
22856
22857 * doc/invoke.texi (fobjc-abi-version): Documented.
22858 (fobjc-nilcheck): Documented.
22859 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
22860 version.
22861
22862 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22863
22864 PR driver/47390
22865 * common.opt (export-dynamic): New Driver option.
22866 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
22867
22868 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22869
22870 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
22871
22872 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
22873 Jan Hubicka <jh@suse.cz>
22874
22875 PR debug/47106
22876 PR debug/47402
22877 * cfgexpand.c (account_used_vars_for_block): Remove.
22878 (estimated_stack_frame_size): Use referenced vars.
22879 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
22880 that were referenced in the original function. Test src_fn
22881 rather than cfun. Drop redundant get_var_ann.
22882 (setup_one_parameter): Drop redundant get_var_ann.
22883 (declare_return_variable): Likewise.
22884 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
22885 (copy_arguments_for_versioning): Drop redundant get_var_ann.
22886 * ipa-inline.c (compute_inline_parameters): Do not compute
22887 disregard_inline_limits here.
22888 (compute_inlinable_for_current, pass_inlinable): New.
22889 (pass_inline_parameters): Require PROP_referenced_vars.
22890 * cgraphunit.c (cgraph_process_new_functions): Don't run
22891 compute_inline_parameters explicitly unless function is in SSA form.
22892 (cgraph_analyze_function): Set .disregard_inline_limits.
22893 * tree-sra.c (convert_callers): Compute inliner parameters
22894 only for functions already in SSA form.
22895
22896 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22897
22898 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
22899 -mlittle-endian-data.
22900
22901 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22902
22903 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
22904 -mno-fpu, not -fpu and -no-fpu.
22905 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
22906 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
22907
22908 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
22909
22910 PR target/43653
22911 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
22912 input reload with PLUS RTX.
22913
22914 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22915
22916 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
22917 of InverseVar(MDMX).
22918
22919 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22920
22921 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
22922 --m4-340.
22923
22924 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22925
22926 * config/mn10300/mn10300.opt (mno-crt0): New.
22927
22928 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22929
22930 * config/m68k/uclinux.opt (static-libc): New Driver option.
22931
22932 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22933
22934 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
22935
22936 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22937
22938 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
22939 %{muser-extend-enabled}.
22940
22941 2011-02-16 Richard Guenther <rguenther@suse.de>
22942
22943 PR tree-optimization/47738
22944 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
22945 the TODO from tree_predictive_commoning.
22946
22947 2011-02-15 Jeff Law <law@redhat.com>
22948
22949 Revert
22950 2011-01-25 Jeff Law <law@redhat.com>
22951
22952 PR rtl-optimization/37273
22953 * ira-costs.c (scan_one_insn): Detect constants living in memory and
22954 handle them like argument loads from stack slots. Do not double
22955 count memory for memory constants and argument loads from stack slots.
22956
22957 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22958
22959 PR target/47755
22960 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
22961 mode for vector constants. Remove code that checks for TImode.
22962
22963 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
22964
22965 PR debug/47106
22966 PR debug/47402
22967 * cgraph.h (compute_inline_parameters): Return void.
22968 * ipa-inline.c (compute_inline_parameters): Adjust.
22969
22970 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
22971
22972 PR debug/47106
22973 PR debug/47402
22974 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
22975 rather than decl.
22976 * cfgexpand.c (estimated_stack_frame_size): Likewise.
22977 * ipa-inline.c (compute_inline_parameters): Adjust.
22978
22979 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
22980
22981 PR debug/47106
22982 PR debug/47402
22983 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
22984 Adjust all users. Pass FN to...
22985 * tree-flow-inline.h (first_referenced_var): ... this. Add
22986 fn argument.
22987 * ipa-struct-reorg.c: Adjust.
22988 * tree-dfa.c: Adjust.
22989 * tree-into-ssa.c: Adjust.
22990 * tree-sra.c: Adjust.
22991 * tree-ssa-alias.c: Adjust.
22992 * tree-ssa-live.c: Adjust.
22993 * tree-ssa.c: Adjust.
22994 * tree-ssanames.c: Adjust.
22995 * tree-tailcall.c: Adjust.
22996
22997 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
22998
22999 PR debug/47106
23000 PR debug/47402
23001 * tree-flow.h (referenced_var_lookup): Add fn parameter.
23002 Adjust all callers.
23003 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
23004 * tree-flow-inline.h: Adjust.
23005 * gimple-pretty-print.c: Adjust.
23006 * tree-into-ssa.c: Adjust.
23007 * tree-ssa.c: Adjust.
23008 * cfgexpand.c: Adjust.
23009
23010 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
23011
23012 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
23013 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23014 (EXTRA_CONSTRAINT): Delete.
23015 * config/iq2000/constraints.md: New file.
23016 * config/iq2000/iq2000.md: Include it.
23017 (define_insn ""): Delete.
23018 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
23019 unsupported constraint letters from patterns.
23020 (call_value, call_value_internal1): Likewise.
23021 (call_value_multiple_internal1): Likewise.
23022
23023 2011-02-15 Nick Clifton <nickc@redhat.com>
23024
23025 * config/mn10300/mn10300.c: Include tm-constrs.h.
23026 (struct liw_data): New data structure describing an LIW candidate
23027 instruction.
23028 (extract_bundle): Use struct liw_data. Allow small integer
23029 operands for some instructions.
23030 (check_liw_constraints): Use struct liw_data. Remove swapped
23031 parameter. Add comments describing the checks. Fix bug when
23032 assigning the source of liw1 to the source of liw2.
23033 (liw_candidate): Delete. Code moved into extract_bundle.
23034 (mn10300_bundle_liw): Use struct liw_data. Check constraints
23035 before swapping.
23036 * config/mn10300/predicates.md (liw_operand): New predicate.
23037 Allows registers and small integer constants.
23038 * config/mn10300/constraints.md (O): New constraint. Accetps
23039 integers in the range -8 to +7 inclusive.
23040 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
23041 for moving a small integer into a register. Give this alternative
23042 LIW attributes.
23043 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
23044 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
23045 using the J,K,L and M constraints,
23046 (liw): Remove SI mode on second operands to allow for HI and QI
23047 mode values.
23048 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
23049 instruction.
23050
23051 2011-02-15 Richard Guenther <rguenther@suse.de>
23052
23053 PR tree-optimization/47743
23054 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
23055 for a non-type-compatible VN lookup bail out.
23056
23057 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
23058
23059 * config/fr30/constraints.md: New file.
23060 * config/fr30/fr30.md: Include it.
23061 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
23062 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23063 (EXTRA_CONSTRAINT): Delete.
23064
23065 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
23066
23067 * config/frv/constraints.md: New file.
23068 * config/frv/predicates.md: Include it.
23069 * config/frv/frv.c (reg_class_from_letter): Delete.
23070 (frv_option_override): Don't initialize it.
23071 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
23072 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
23073 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
23074 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
23075 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
23076 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23077 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
23078 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
23079 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
23080 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
23081 (REG_CLASS_FROM_CONSTRAINT): Delete.
23082
23083 2011-02-15 Jakub Jelinek <jakub@redhat.com>
23084
23085 PR middle-end/47581
23086 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
23087 if frame size is 0 in a leaf function.
23088
23089 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23090
23091 PR pch/14940
23092 * config/alpha/host-osf.c: New file.
23093 * config/alpha/x-osf: New file.
23094 * config.host (alpha*-dec-osf*): Use it.
23095
23096 2011-02-14 Anatoly Sokolov <aesok@post.ru>
23097
23098 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23099 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
23100 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
23101 (rx_mode_dependent_address_p): ...this. Make static. Change argument
23102 type to const_rtx.
23103 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23104
23105 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
23106
23107 * config/stormy16/constraints.md: New file.
23108 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
23109 Use satisfies_constraint_Q and satisfies_constraint_R.
23110 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
23111 Delete.
23112 (xstormy16_legitiamte_address_p): Declare.
23113 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
23114 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23115 (EXTRA_CONSTRAINT): Delete.
23116 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
23117 Un-staticize.
23118 (xstormy16_extra_constraint_p): Delete.
23119
23120 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
23121
23122 PR tree-optimization/46494
23123 * loop-unroll.c (split_edge_and_insert): Adjust comment.
23124 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
23125 (pass_rtl_loop_done): Add TODO_verify_flow.
23126 * fwprop.c (pass_rtl_fwprop): Likewise.
23127 * modulo-sched.c (pass_sms): Likewise.
23128 * tree-ssa-dom.c (pass_dominator): Likewise.
23129 * tree-ssa-loop-ch.c (pass_ch): Likewise.
23130 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
23131 (pass_tree_loop_done): Likewise.
23132 * tree-ssa-pre.c (execute_pre): Likewise.
23133 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
23134 * tree-ssa-sink.c (pass_sink_code): Likewise.
23135 * tree-vrp.c (pass_vrp): Likewise.
23136
23137 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
23138
23139 * config/v850/constraints.md: New file.
23140 * config/v850/v850.md: Include it.
23141 * config/v850/predicates.md (reg_or_0_operand): Use
23142 satisfies_constraint_G.
23143 (special_symbolref_operand): Use satisfies_constraint_K.
23144 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
23145 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
23146 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
23147 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
23148 (EXTRA_CONSTRAINT): Delete.
23149 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
23150 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
23151 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
23152
23153 2011-02-14 Anatoly Sokolov <aesok@post.ru>
23154
23155 PR target/47696
23156 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
23157 description.
23158
23159 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
23160
23161 * config/mcore/constraints.md: New file.
23162 * config/mcore/mcore.md: Include it.
23163 * config/mcore/mcore.c (reg_class_from_letter): Delete.
23164 * config/mcore/mcore.h (reg_class_from_letter): Delete.
23165 (REG_CLASS_FROM_LETTER): Delete.
23166 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
23167 insn_const_int_ok_for_constraint.
23168 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
23169 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
23170 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23171 (EXTRA_CONSTRAINT): Delete.
23172
23173 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23174
23175 PR ada/41929
23176 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
23177 (IS_SIGHANDLER): Define.
23178 (sparc64_is_sighandler): New function, split off from
23179 sparc64_fallback_frame_state.
23180 (sparc_is_sighandler): New function, split off from
23181 sparc_fallback_frame_state.
23182 (sparc64_fallback_frame_state): Merge with ...
23183 (sparc_fallback_frame_state): ... this into ...
23184 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
23185 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
23186 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
23187 stack instead of hardcoded offsets.
23188
23189 2011-02-14 Andriy Gapon <avg@freebsd.org>
23190
23191 PR target/45808
23192 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
23193
23194 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23195
23196 * configure: Regenerate.
23197
23198 2011-02-12 Joseph Myers <joseph@codesourcery.com>
23199
23200 PR driver/45731
23201 * gcc.c (asm_options): Correct spec matching --target-help.
23202
23203 2011-02-12 Martin Jambor <mjambor@suse.cz>
23204
23205 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
23206 to gimple call error.
23207
23208 2011-02-12 Mike Stump <mikestump@comcast.net>
23209
23210 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
23211 comments in backslash regions.
23212
23213 2011-02-12 Mike Stump <mikestump@comcast.net>
23214 Jakub Jelinek <jakub@redhat.com>
23215 Iain Sandoe <iains@gcc.gnu.org>
23216
23217 PR target/47324
23218 * dwarf2out.c (output_cfa_loc): When required, apply the
23219 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
23220 (output_loc_sequence): Likewise.
23221 (output_loc_operands_raw): Likewise.
23222 (output_loc_sequence_raw): Likewise.
23223 (output_cfa_loc): Likewise.
23224 (output_loc_list): Suppress register number adjustment when
23225 calling output_loc_sequence()
23226 (output_die): Likewise.
23227
23228 2011-02-12 Anatoly Sokolov <aesok@post.ru>
23229
23230 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
23231 Remove macros.
23232 * config/xtensa/xtensa.c (xtensa_register_move_cost,
23233 xtensa_memory_move_cost): New functions.
23234 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
23235
23236 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
23237
23238 PR lto/47225
23239 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
23240 in the current directory.
23241 * configure: Rebuilt.
23242
23243 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
23244
23245 * config/darwin.c (darwin_override_options): Add a hunk missed
23246 from the commit of r168571. Trim comment line lengths and
23247 correct indents of the preceding block.
23248
23249 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
23250
23251 * gcc.c (driver_handle_option): Concatenate the argument to -F with
23252 the switch.
23253
23254 2011-02-11 Joseph Myers <joseph@codesourcery.com>
23255
23256 * common.opt (nostartfiles): New Driver option.
23257
23258 2011-02-11 Xinliang David Li <davidxl@google.com>
23259
23260 PR tree-optimization/47707
23261 * tree-chrec.c (convert_affine_scev): Keep type precision.
23262
23263 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
23264
23265 PR tree-optimization/47420
23266 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
23267
23268 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
23269
23270 PR rtl-optimization/47614
23271 * rtl.h (check_for_inc_dec): Declare.
23272 * dse.c (check_for_inc_dec): Externalize...
23273 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
23274 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
23275
23276 2011-02-11 Joseph Myers <joseph@codesourcery.com>
23277
23278 PR driver/47678
23279 * gcc.c (main): Do not compile inputs if there were errors in
23280 option handling.
23281 * opts-common.c (read_cmdline_option): Check for wrong language
23282 after other error checks.
23283
23284 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
23285
23286 * cgraph.c: Fix comment typos.
23287 * cgraph.h: Likewise.
23288 * cgraphunit.c: Likewise.
23289 * ipa-cp.c: Likewise.
23290 * ipa-inline.c: Likewise.
23291 * ipa-prop.c: Likewise.
23292 * ipa-pure-const.c: Likewise.
23293 * ipa-ref.c: Likewise.
23294 * ipa-reference.c: Likewise.
23295
23296 2011-02-11 Jakub Jelinek <jakub@redhat.com>
23297
23298 PR debug/47684
23299 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
23300
23301 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23302
23303 PR testsuite/47400
23304 * doc/sourcebuild.texi (Require Support): Document
23305 dg-require-ascii-locale.
23306
23307 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
23308
23309 * doc/lto.texi (Write summary): Fix missing parentheses.
23310
23311 2011-02-10 DJ Delorie <dj@redhat.com>
23312
23313 * config/m32c/m32c.c (m32c_option_override): Disable
23314 -fcombine-stack-adjustments until flag value tracking and compare
23315 optimization can be rewritten.
23316
23317 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
23318
23319 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
23320 PROCESSOR_POWER7.
23321 (PROCESSOR_DEFAULT64): Likewise.
23322
23323 2011-02-10 Richard Henderson <rth@redhat.com>
23324
23325 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
23326 change from 2011-02-03.
23327 * config/rx/rx.c (flags_from_code): Likewise.
23328 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
23329 is valid, n/pz otherwise.
23330 (rx_select_cc_mode): Return CCmode if Y is not zero.
23331
23332 2011-02-10 Richard Guenther <rguenther@suse.de>
23333
23334 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
23335
23336 2011-02-10 Richard Guenther <rguenther@suse.de>
23337
23338 PR tree-optimization/47677
23339 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
23340
23341 2011-02-10 Jakub Jelinek <jakub@redhat.com>
23342
23343 PR target/47665
23344 * combine.c (make_compound_operation): Only change shifts into
23345 multiplication for SCALAR_INT_MODE_P.
23346
23347 2011-02-10 Jie Zhang <jie@codesourcery.com>
23348
23349 PR testsuite/47622
23350 Revert
23351 2011-02-05 Jie Zhang <jie@codesourcery.com>
23352 PR debug/42631
23353 * web.c (entry_register): Don't clobber the number of the
23354 first uninitialized reference in used[].
23355
23356 2011-02-09 Richard Guenther <rguenther@suse.de>
23357
23358 PR tree-optimization/47664
23359 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
23360 all edges again.
23361
23362 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
23363
23364 PR target/46481
23365 PR target/47032
23366 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
23367 PROCESSOR_POWER7.
23368 (PROCESSOR_DEFAULT64): Same.
23369 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
23370
23371 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23372
23373 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
23374
23375 2011-02-09 Martin Jambor <mjambor@suse.cz>
23376
23377 PR middle-end/45505
23378 * tree-sra.c (struct access): New flags grp_scalar_read and
23379 grp_scalar_write. Changed description of assignment read and write
23380 flags.
23381 (dump_access): Dump new flags, reorder all of them.
23382 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
23383 to detect multiple scalar reads.
23384 (analyze_access_subtree): Use the new scalar read write flags instead
23385 of the old flags. Adjusted comments.
23386
23387 2011-02-08 DJ Delorie <dj@redhat.com>
23388
23389 PR target/47548
23390 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
23391 patterns.
23392
23393 2011-02-08 Joseph Myers <joseph@codesourcery.com>
23394
23395 * config/m68k/uclinux.opt: New.
23396 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
23397
23398 2011-02-08 Joseph Myers <joseph@codesourcery.com>
23399
23400 * config/cris/elf.opt (sim): New Driver option.
23401
23402 2011-02-08 Joseph Myers <joseph@codesourcery.com>
23403
23404 * config/xtensa/elf.opt: New.
23405 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
23406
23407 2011-02-08 Joseph Myers <joseph@codesourcery.com>
23408
23409 * config/vax/elf.opt: New.
23410 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
23411
23412 2011-02-08 Joseph Myers <joseph@codesourcery.com>
23413
23414 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
23415
23416 2011-02-08 Joseph Myers <joseph@codesourcery.com>
23417
23418 * config/gnu-user.opt: New.
23419 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
23420 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
23421 *-*-uclinux*): Use gnu-user.opt.
23422
23423 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
23424
23425 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
23426 * config/i386/gnu.h (CPP_SPEC): Likewise.
23427
23428 2011-02-08 Ian Lance Taylor <iant@google.com>
23429
23430 * common.opt (fcx-limited-range): Add SetByCombined flag.
23431 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
23432 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
23433 (fassociative-math, freciprocal-math): Likewise.
23434 (funsafe-math-optimizations): Likewise.
23435 * opth-gen.awk: Handle SetByCombined.
23436 * optc-gen.awk: Likewise.
23437 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
23438 (set_unsafe_math_optimizations_flags): Likewise.
23439 * doc/options.texi (Option properties): Document SetByCombined.
23440
23441 2011-02-08 Joseph Myers <joseph@codesourcery.com>
23442
23443 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
23444 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
23445 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
23446 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
23447 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
23448
23449 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
23450
23451 PR tree-optimization/46834
23452 PR tree-optimization/46994
23453 PR tree-optimization/46995
23454 * graphite-sese-to-poly.c (used_outside_reduction): New.
23455 (detect_commutative_reduction): Call used_outside_reduction.
23456 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
23457 translate_scalar_reduction_to_array only when at least one
23458 loop-phi/close-phi tuple has been detected.
23459
23460 2011-02-08 Richard Guenther <rguenther@suse.de>
23461
23462 PR middle-end/47639
23463 * tree-vect-generic.c (expand_vector_operations_1): Update
23464 stmts here ...
23465 (expand_vector_operations): ... not here. Cleanup EH info
23466 and the CFG if required.
23467
23468 2011-02-08 Richard Guenther <rguenther@suse.de>
23469
23470 PR tree-optimization/47641
23471 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
23472 require type compatibility.
23473
23474 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23475
23476 * gimple-low.c (lower_function_body): Don't remove the location of
23477 the return statement here.
23478 (lower_gimple_return): Do it here instead but only if the return
23479 statement is actually used twice.
23480
23481 2011-02-08 Richard Guenther <rguenther@suse.de>
23482
23483 PR tree-optimization/47632
23484 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
23485 unused up_to_stmt parameter, return whether cfg-cleanup is
23486 necessary, remove EH info properly.
23487 (forward_propagate_into_gimple_cond): Adjust caller.
23488 (forward_propagate_into_cond): Likewise.
23489 (forward_propagate_comparison): Likewise.
23490 (tree_ssa_forward_propagate_single_use_vars): Make
23491 forward_propagate_comparison case similar to the two others.
23492
23493 2011-02-08 Nick Clifton <nickc@redhat.com>
23494
23495 * config/mn10300/mn10300.opt (mliw): New command line option.
23496 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
23497 (liw_bundling): New automaton.
23498 (liw): New attribute.
23499 (liw_op): New attribute.
23500 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
23501 (movsi_internal): Add LIW attributes.
23502 (andsi3): Likewise.
23503 (iorsi3): Likewise.
23504 (xorsi3): Likewise.
23505 (addsi3): Separate register and immediate alternatives.
23506 Add LIW attributes.
23507 (subsi3): Likewise.
23508 (cmpsi): Likewise.
23509 (aslsi3): Likewise.
23510 (lshrsi3): Likewise.
23511 (ashrsi3): Likewise.
23512 (liw): New pattern.
23513 * config/mn10300/mn10300.c (liw_op_names): New
23514 (mn10300_print_operand): Handle 'W' operand descriptor.
23515 (extract_bundle): New function.
23516 (check_liw_constraints): New function.
23517 (liw_candidate): New function.
23518 (mn10300_bundle_liw): New function.
23519 (mn10300_reorg): New function.
23520 (TARGET_MACHINE_DEPENDENT_REORG): Define.
23521 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
23522 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
23523 __LIW__ or __NO_LIW__.
23524 * doc/invoke.texi: Describe the -mliw command line option.
23525
23526 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23527
23528 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
23529 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
23530 pthread_mutex_unlock): Remove.
23531 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
23532 * config/pa/t-pa64: Likewise.
23533 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
23534 shared libc if not linking against libpthread.
23535 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23536
23537 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
23538
23539 PR target/47558
23540 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
23541 on 10.6 and later to ensure that we always use the unwinder from
23542 the system. Only add -no_compact_unwind when tarteting darwin
23543 10.6 or later.
23544
23545 2011-02-07 Steve Ellcey <sje@cup.hp.com>
23546
23547 PR target/46997
23548 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
23549 (vec_interleave_lowv2sf): Ditto.
23550 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
23551 (vec_extract_oddv2sf): Ditto.
23552
23553 2011-02-07 Mike Stump <mikestump@comcast.net>
23554
23555 PR target/42333
23556 Add __ieee_divdc3 entry point.
23557 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
23558 entry point.
23559 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
23560 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
23561 * config/darwin.c (darwin_rename_builtins): Add.
23562 * config/darwin-protos.h (darwin_rename_builtins): Add.
23563
23564 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
23565
23566 PR target/47636
23567 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
23568 for the condition.
23569
23570 2011-02-07 Mike Stump <mikestump@comcast.net>
23571
23572 * config/darwin.opt (mmacosx-version-min): Update default OS version.
23573
23574 2011-02-07 Denis Chertykov <chertykov@gmail.com>
23575
23576 PR target/47534
23577 * config/avr/libgcc.S (exit): Move .endfunc
23578
23579 2011-02-07 Richard Guenther <rguenther@suse.de>
23580
23581 PR tree-optimization/47615
23582 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
23583 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
23584 (run_scc_vn): Initialize it.
23585 (visit_reference_op_load): Use it.
23586 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
23587
23588 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23589
23590 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
23591 DImode trapping arithmetic libfuncs.
23592
23593 2011-02-07 Richard Guenther <rguenther@suse.de>
23594
23595 PR tree-optimization/47621
23596 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
23597 two duplicates ...
23598 (execute_update_addresses_taken): ... here. Make it more
23599 conservative in what we accept.
23600
23601 2011-02-06 Joseph Myers <joseph@codesourcery.com>
23602
23603 * config/sparc/freebsd.h (ASM_SPEC): Define.
23604 * config/sparc/vxworks.h (ASM_SPEC): Define.
23605
23606 2011-02-06 Joseph Myers <joseph@codesourcery.com>
23607
23608 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
23609
23610 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
23611
23612 * doc/invoke.texi: Remove reference to compiler internals from
23613 user documentation.
23614
23615 * reg-notes.def: Remove REG_VALUE_PROFILE.
23616 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
23617
23618 2011-02-05 Jakub Jelinek <jakub@redhat.com>
23619
23620 PR middle-end/47610
23621 * varasm.c (default_section_type_flags): If decl is NULL,
23622 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
23623
23624 2011-02-05 Jie Zhang <jie@codesourcery.com>
23625
23626 PR debug/42631
23627 * web.c (entry_register): Don't clobber the number of the
23628 first uninitialized reference in used[].
23629
23630 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
23631
23632 PR tree-optimization/46194
23633 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
23634 (build_classic_dist_vector_1): Do not represent classic distance
23635 vectors when the access functions are variating in different loops.
23636
23637 2011-02-04 Joseph Myers <joseph@codesourcery.com>
23638
23639 * config/mips/iris6.opt: New.
23640 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
23641
23642 2011-02-04 Richard Henderson <rth@redhat.com>
23643 Steve Ellcey <sje@cup.hp.com>
23644
23645 PR target/46997
23646 * config/ia64/predicates.md (mux1_brcst_element): New.
23647 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
23648 * config/ia64/ia64.c (ia64_unpack_assemble): New.
23649 (ia64_unpack_sign): New.
23650 (ia64_expand_unpack): Rewrite using new routines.
23651 (ia64_expand_widen_sum): Ditto.
23652 (ia64_expand_dot_prod_v8qi): Ditto.
23653 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
23654 routines, add endian check.
23655 (pmpy2_even): Rename from pmpy2_r, add endian check.
23656 (pmpy2_odd): Rename from pmpy2_l, add endian check.
23657 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
23658 (vec_widen_smult_hi_v4hi): Ditto.
23659 (vec_widen_umult_lo_v4hi): Ditto.
23660 (vec_widen_umult_hi_v4hi): Ditto.
23661 (mulv2si3): Change endian checks.
23662 (sdot_prodv4hi): Rewrite with new calls.
23663 (udot_prodv4hi): New.
23664 (vec_pack_ssat_v4hi): Add endian check.
23665 (vec_pack_usat_v4hi): Ditto.
23666 (vec_pack_ssat_v2si): Ditto.
23667 (max1_even): Rename from max1_r, add endian check.
23668 (max1_odd): Rename from max1_l, add endian check.
23669 (*mux1_rev): Format change.
23670 (*mux1_mix): Ditto.
23671 (*mux1_shuf): Ditto.
23672 (*mux1_alt): Ditto.
23673 (*mux1_brcst_v8qi): Use new predicate.
23674 (vec_extract_evenv8qi): Remove endian check.
23675 (vec_extract_oddv8qi): Ditto.
23676 (vec_interleave_lowv4hi): Format change.
23677 (vec_interleave_highv4hi): Ditto.
23678 (mix2_even): Rename from mix2_r, add endian check.
23679 (mix2_odd): Rename from mux2_l, add endian check.
23680 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
23681 (vec_extract_evenodd_helper): Format change.
23682 (vec_extract_evenv4hi): Remove endian check.
23683 (vec_extract_oddv4hi): Remove endian check.
23684 (vec_interleave_lowv2si): Format change.
23685 (vec_interleave_highv2si): Format change.
23686 (vec_initv2si): Remove endian check.
23687 (vecinit_v2si): Add endian check.
23688 (reduc_splus_v2sf): Add endian check.
23689 (reduc_smax_v2sf): Ditto.
23690 (reduc_smin_v2sf): Ditto.
23691 (vec_initv2sf): Remove endian check.
23692 (fpack): Add endian check.
23693 (fswap): Add endian check.
23694 (vec_interleave_highv2sf): Add endian check.
23695 (vec_interleave_lowv2sf): Add endian check.
23696 (fmix_lr): Add endian check.
23697 (vec_setv2sf): Format change.
23698 (*vec_extractv2sf_0_be): Use shift to extract operand.
23699 (*vec_extractv2sf_1_be): New.
23700 (vec_pack_trunc_v4hi): Add endian check.
23701 (vec_pack_trunc_v2si): Format change.
23702
23703 2011-02-04 Jakub Jelinek <jakub@redhat.com>
23704
23705 PR inline-asm/23200
23706 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
23707 do bb, locus and block comparison and disallow loads if it is not set.
23708 (stmt_is_replaceable_p): New function.
23709 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
23710 callers.
23711 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
23712 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
23713 SSA_NAME_DEF_STMT.
23714 * tree-flow.h (stmt_is_replaceable_p): New prototype.
23715
23716 2011-02-04 Joseph Myers <joseph@codesourcery.com>
23717
23718 * config/rs6000/xilinx.opt: New.
23719 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
23720
23721 2011-02-04 Joseph Myers <joseph@codesourcery.com>
23722
23723 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
23724
23725 2011-02-03 Anatoly Sokolov <aesok@post.ru>
23726
23727 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
23728 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23729 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
23730 secondary_reload_info, xtensa_secondary_reload): Remove.
23731 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
23732 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
23733 (xtensa_preferred_reload_class): Make static. Change return and
23734 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
23735 Use CONST_DOUBLE_P predicate.
23736 (xtensa_preferred_output_reload_class): New function.
23737 (xtensa_secondary_reload): Make static.
23738
23739 2011-02-03 Joseph Myers <joseph@codesourcery.com>
23740
23741 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
23742 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
23743 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
23744
23745 2011-02-03 Jakub Jelinek <jakub@redhat.com>
23746
23747 PR middle-end/31490
23748 * output.h (SECTION_RELRO): Define.
23749 (SECTION_MACH_DEP): Adjust.
23750 (get_variable_section): New prototype.
23751 * varpool.c (varpool_finalize_named_section_flags): New function.
23752 (varpool_assemble_pending_decls): Call it.
23753 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
23754 * cgraphunit.c (cgraph_output_in_order): Call
23755 varpool_finalize_named_section_flags.
23756 * varasm.c (get_section): Allow section flags conflicts between
23757 relro and read-only sections if the section hasn't been declared yet.
23758 Set SECTION_OVERRIDE after diagnosing section type conflict.
23759 (get_variable_section): No longer static.
23760 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
23761 readonly sections that need relocations.
23762 (decl_readonly_section_1): New function.
23763 (decl_readonly_section): Use it.
23764
23765 Revert:
23766 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
23767 Steve Ellcey <sje@cup.hp.com>
23768
23769 PR middle-end/31490
23770 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
23771 if section attribute used.
23772
23773 2011-02-03 Jakub Jelinek <jakub@redhat.com>
23774
23775 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
23776 * config/darwin.c (SECTION_NO_ANCHOR): Define.
23777 (darwin_init_sections): Remove assertion.
23778
23779 2011-02-03 Nick Clifton <nickc@redhat.com>
23780
23781 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
23782 lt and ge.
23783 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
23784 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
23785 instead of "n" and "pz".
23786 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
23787 CC_FLAG_S.
23788
23789 2011-02-03 Jakub Jelinek <jakub@redhat.com>
23790
23791 PR target/47312
23792 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
23793 fma, expand FMA_EXPR as fma{,f,l} call.
23794
23795 PR lto/47274
23796 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
23797 copy them into a unsigned char variable and pass address of it to
23798 lto_output_data_stream.
23799
23800 PR target/47564
23801 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
23802 around backend_init_target and lang_dependent_init_target calls.
23803 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
23804 (verify_cgraph_node): Don't call set_cfun here. Use
23805 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
23806 Set error_found for incorrectly represented calls to thunks.
23807
23808 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
23809
23810 PR debug/43092
23811 PR rtl-optimization/43494
23812 * rtl.h (for_each_inc_dec_fn): New type.
23813 (for_each_inc_dec): Declare.
23814 * rtlanal.c (struct for_each_inc_dec_ops): New type.
23815 (for_each_inc_dec_find_inc_dec): New fn.
23816 (for_each_inc_dec_find_mem): New fn.
23817 (for_each_inc_dec): New fn.
23818 * dse.c (struct insn_size): Remove.
23819 (replace_inc_dec, replace_inc_dec_mem): Remove.
23820 (emit_inc_dec_insn_before): New fn.
23821 (check_for_inc_dec): Use it, along with for_each_inc_dec.
23822 (canon_address): Pass mem modes to cselib_lookup.
23823 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
23824 (cselib_lookup_from_insn): Likewise.
23825 (cselib_subst_to_values): Likewise.
23826 * cselib.c (find_slot_memmode): New var.
23827 (cselib_find_slot): New fn. Use it instead of
23828 htab_find_slot_with_hash everywhere.
23829 (entry_and_rtx_equal_p): Use find_slot_memmode.
23830 (autoinc_split): New fn.
23831 (rtx_equal_for_cselib_p): Rename and implement in terms of...
23832 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
23833 Deal with autoinc. Special-case recursion into MEMs.
23834 (cselib_hash_rtx): Likewise.
23835 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
23836 address and MEM modes.
23837 (cselib_subst_to_values): Add memmode, pass it on.
23838 Deal with autoinc.
23839 (cselib_lookup): Add memmode argument, pass it on.
23840 (cselib_lookup_from_insn): Add memmode.
23841 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
23842 (struct cselib_record_autoinc_data): New.
23843 (cselib_record_autoinc_cb): New fn.
23844 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
23845 mode to cselib_lookup. Reset autoinced REGs here instead of...
23846 (cselib_process_insn): ... here.
23847 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
23848 to cselib_lookup.
23849 (add_uses): Likewise, also to cselib_subst_to_values.
23850 (add_stores): Likewise.
23851 * sched-deps.c (add_insn_mem_dependence): Pass mode to
23852 cselib_subst_to_values.
23853 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
23854 * gcse.c (do_local_cprop): Adjusted.
23855 * postreload.c (reload_cse_simplify_set): Adjusted.
23856 (reload_cse_simplify_operands): Adjusted.
23857 * sel-sched-dump (debug_mem_addr_value): Pass mode.
23858
23859 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
23860
23861 PR tree-optimization/45122
23862 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
23863 unsafe assumptions when there's more than one loop exit.
23864
23865 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23866
23867 PR target/47272
23868 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23869 Document using vector double with the load/store builtins, and
23870 that the load/store builtins always use Altivec instructions.
23871
23872 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
23873 to use altivec memory instructions, even on VSX.
23874 (vector_altivec_store_<mode>): Ditto.
23875
23876 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
23877 function.
23878
23879 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23880 V2DF, V2DI support to load/store overloaded builtins.
23881
23882 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
23883 altivec load/store builtins for V2DF/V2DI types.
23884
23885 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23886 set avoid indexed addresses on power6 if -maltivec.
23887 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
23888 vector_altivec_load/vector_altivec_store builtins.
23889 (altivec_expand_st_builtin): Ditto.
23890 (altivec_expand_builtin): Add VSX memory builtins.
23891 (rs6000_init_builtins): Add V2DI types to internal types.
23892 (altivec_init_builtins): Add support for V2DF/V2DI altivec
23893 load/store builtins.
23894 (rs6000_address_for_altivec): Insure memory address is appropriate
23895 for Altivec.
23896
23897 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
23898 vec_vsx_ld and vec_vsx_st.
23899 (vsx_store_<mode>): Ditto.
23900
23901 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
23902 variables to hold long long types for VSX vector memory builtins.
23903 (RS6000_BTI_unsigned_long_long): Ditto.
23904 (long_long_integer_type_internal_node): Ditti.
23905 (long_long_unsigned_type_internal_node): Ditti.
23906
23907 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
23908 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
23909 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
23910
23911 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
23912 short cuts.
23913 (vec_vsx_st): Ditto.
23914
23915 2011-02-02 Joseph Myers <joseph@codesourcery.com>
23916
23917 * config/pa/pa-hpux10.opt: New.
23918 * config/hpux11.opt (pthread): New Driver option.
23919 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
23920 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
23921
23922 2011-02-02 Joseph Myers <joseph@codesourcery.com>
23923
23924 * config/ia64/vms.opt: New.
23925 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
23926
23927 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
23928
23929 PR target/47580
23930 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
23931 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
23932 generator functions.
23933 (vsx_floatuns<VSi><mode>2): Ditto.
23934 (vsx_fix_trunc<mode><VSi>2): Ditto.
23935 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
23936
23937 2011-02-02 Joseph Myers <joseph@codesourcery.com>
23938
23939 * config/i386/djgpp.opt (posix): New Driver option.
23940
23941 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
23942
23943 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
23944 Move to the unsupported targets list.
23945
23946 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
23947
23948 PR rtl-optimization/47525
23949 * df-scan.c: Update copyright years.
23950 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
23951 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
23952
23953 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23954
23955 * config/i386/sysv4.h (TARGET_VERSION): Remove.
23956 (SUBTARGET_RETURN_IN_MEMORY): Remove.
23957 (ASM_OUTPUT_ASCII): Remove.
23958 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
23959
23960 2011-02-02 Jeff Law <law@redhat.com>
23961
23962 PR middle-end/47543
23963 * reload.c (find_reloads_address): Handle reg+d address where both
23964 components are invalid by reloading the entire address.
23965
23966 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
23967 Richard Guenther <rguenther@suse.de>
23968
23969 PR tree-optimization/40979
23970 PR bootstrap/47044
23971 * passes.c (init_optimization_passes): After LIM call copy_prop
23972 and DCE to clean up.
23973 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
23974
23975 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
23976
23977 PR tree-optimization/47576
23978 PR tree-optimization/47555
23979 * doc/invoke.texi (scev-max-expr-complexity): Documented.
23980 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
23981 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
23982 * tree-scalar-evolution.c (follow_ssa_edge): Use
23983 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
23984
23985 2011-02-02 Richard Guenther <rguenther@suse.de>
23986
23987 PR tree-optimization/47566
23988 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
23989
23990 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
23991
23992 PR debug/47106
23993 PR debug/47402
23994 * tree-inline.c (declare_return_variable): Remove unused caller
23995 variable.
23996
23997 PR debug/47106
23998 PR debug/47402
23999 * tree-flow-inline.h (clear_is_used, is_used_p): New.
24000 * cfgexpand.c (account_used_vars_for_block): Use them.
24001 * tree-nrv.c (tree_nrv): Likewise.
24002 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
24003 (dump_scope_block): Likewise.
24004 (remove_unused_locals): Likewise.
24005
24006 PR debug/47106
24007 PR debug/47402
24008 * tree-inline.c (declare_return_variable): Add result decl to
24009 local decls only once.
24010 * gimple-low.c (record_vars_into): Mark newly-created variables
24011 as referenced.
24012
24013 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
24014
24015 PR debug/47498
24016 PR debug/47501
24017 PR debug/45136
24018 PR debug/45130
24019 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24020 debug insns.
24021 (no_real_insns_p, schedule_block, set_priorities): Drop special
24022 treatment of boundary debug insns.
24023 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
24024 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
24025 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24026 (BOUNDARY_DEBUG_INSN_P): Likewise.
24027 (SCHEDULE_DEBUG_INSN_P): Likewise.
24028 * sched-rgn.c (init_ready_list): Drop special treatment of
24029 boundary debug insns.
24030 * final.c (rest_of_clean_state): Clear notes' BB.
24031
24032 2011-02-01 Joseph Myers <joseph@codesourcery.com>
24033
24034 * config/openbsd.opt (assert=): New Driver option.
24035
24036 2011-02-01 Joseph Myers <joseph@codesourcery.com>
24037
24038 * config/i386/nto.opt: New.
24039 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
24040
24041 2011-02-01 Joseph Myers <joseph@codesourcery.com>
24042
24043 * config/i386/netware.opt: New.
24044 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
24045
24046 2011-02-01 Joseph Myers <joseph@codesourcery.com>
24047
24048 * config/interix.opt (posix): New Driver option.
24049
24050 2011-02-01 DJ Delorie <dj@redhat.com>
24051
24052 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
24053
24054 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
24055 class for A0/A1.
24056
24057 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
24058
24059 PR tree-optimization/47561
24060 * toplev.c (process_options): Print the Graphite flags. Add
24061 flag_loop_flatten to the list of options requiring Graphite.
24062
24063 2011-02-01 Joseph Myers <joseph@codesourcery.com>
24064
24065 * config/i386/cygming.opt (posix): New Driver option.
24066
24067 2011-02-01 Joseph Myers <joseph@codesourcery.com>
24068
24069 * config/arm/vxworks.opt: New.
24070 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
24071
24072 2011-02-01 Joseph Myers <joseph@codesourcery.com>
24073
24074 * config/alpha/elf.opt: New.
24075 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
24076 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
24077
24078 2011-02-01 Richard Guenther <rguenther@suse.de>
24079
24080 PR tree-optimization/47559
24081 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
24082 store-motion on references that can throw.
24083
24084 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
24085
24086 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
24087 * tree-pass.h (TDF_CSELIB): New macro.
24088 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
24089 cselib_lookup): Check for it rather than for TDF_DETAILS.
24090
24091 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
24092
24093 PR driver/47547
24094 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
24095 is HOST_BIT_BUCKET.
24096
24097 * opts.c (finish_options): Don't add x_aux_base_name if it is
24098 HOST_BIT_BUCKET.
24099
24100 2011-02-01 Richard Guenther <rguenther@suse.de>
24101
24102 PR tree-optimization/47555
24103 Revert
24104 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
24105
24106 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
24107
24108 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
24109
24110 PR gcc/46692
24111 * config/lm32/t-lm32: Add multilib for all CPU options.
24112
24113 2011-02-01 Richard Guenther <rguenther@suse.de>
24114
24115 PR tree-optimization/47541
24116 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
24117 sure to have a field at offset zero.
24118
24119 2011-01-31 Joseph Myers <joseph@codesourcery.com>
24120
24121 * config/arc/arc.opt (EB, EL): New Driver options.
24122
24123 2011-01-31 Joseph Myers <joseph@codesourcery.com>
24124
24125 * config/alpha/osf5.opt: New.
24126 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
24127
24128 2011-01-31 Joseph Myers <joseph@codesourcery.com>
24129
24130 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
24131
24132 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
24133
24134 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
24135 -floop-interchange.
24136 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
24137 is an alias of -floop-interchange and that it requires the
24138 Graphite infrastructure.
24139 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
24140 flag_loop_interchange based on the value of flag_tree_loop_linear.
24141
24142 2011-01-31 Jakub Jelinek <jakub@redhat.com>
24143 Richard Guenther <rguenther@suse.de>
24144
24145 PR tree-optimization/47538
24146 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
24147 type instead of r1type, except for comparisons. For right
24148 shifts and comparisons punt if there are mismatches in
24149 sizetype vs. non-sizetype types.
24150
24151 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24152
24153 * doc/sourcebuild.texi (Effective-Target Keywords): Document
24154 avx_runtime.
24155
24156 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24157
24158 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
24159 version number.
24160 * configure: Regenerate.
24161
24162 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24163
24164 * configure.ac (gcc_cv_ld_static_option): Define.
24165 (gcc_cv_ld_dynamic_option): Define.
24166 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
24167 instead.
24168 (HAVE_LD_STATIC_DYNAMIC): Update message.
24169 (LD_STATIC_OPTION): Define.
24170 (LD_DYNAMIC_OPTION): Define.
24171 * configure: Regenerate.
24172 * config.in: Regenerate.
24173 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
24174 HAVE_LD_STATIC_DYNAMIC]: Use them.
24175
24176 2011-01-31 Nick Clifton <nickc@redhat.com>
24177
24178 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
24179 registers inside interrupt handlers if the handler is not a leaf
24180 function.
24181
24182 2011-01-31 Nick Clifton <nickc@redhat.com>
24183
24184 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
24185 reg_renumber returning an INVALID_REGNUM.
24186
24187 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
24188
24189 PR libgcj/44341
24190 * doc/install.texi: Document host options discarded when cross
24191 configuring target libraries.
24192
24193 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
24194
24195 Reverted:
24196 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
24197 PR debug/45136
24198 PR debug/45130
24199 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24200 debug insns.
24201 (no_real_insns_p, schedule_block, set_priorities): Drop special
24202 treatment of boundary debug insns.
24203 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
24204 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
24205 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24206 (BOUNDARY_DEBUG_INSN_P): Likewise.
24207 (SCHEDULE_DEBUG_INSN_P): Likewise.
24208 * sched-rgn.c (init_ready_list): Drop special treatment of
24209 boundary debug insns.
24210 * final.c (rest_of_clean-state): Clear notes' BB.
24211
24212 2011-01-31 Alan Modra <amodra@gmail.com>
24213
24214 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
24215 toc relative expressions as we do in print_operand_address.
24216
24217 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
24218
24219 * doc/extend.texi: Follow spelling conventions.
24220 * doc/invoke.texi: Fix a typo.
24221
24222 2011-01-30 Joseph Myers <joseph@codesourcery.com>
24223
24224 * config/hpux11.opt: New.
24225 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
24226 ia64*-*-hpux*): Use hpux11.opt.
24227
24228 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
24229
24230 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
24231 to tmake_file.
24232
24233 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
24234
24235 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
24236 support sites.
24237
24238 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
24239
24240 * doc/install.texi (Binaries): Remove outdated reference for
24241 Motorola 68HC11/68HC12 downloads.
24242
24243 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
24244
24245 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
24246 Drepper's paper.
24247
24248 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
24249
24250 PR bootstrap/47147
24251 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
24252 used by NetBSD.
24253
24254 2011-01-28 Ahmad Sharif <asharif@google.com>
24255
24256 * value-prof.c (check_counter): Corrected error message.
24257
24258 2011-01-29 Jie Zhang <jie@codesourcery.com>
24259
24260 * config/arm/arm.c (arm_legitimize_reload_address): New.
24261 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
24262 arm_legitimize_reload_address.
24263 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
24264
24265 2011-01-28 Ian Lance Taylor <iant@google.com>
24266
24267 * godump.c (go_define): Ignore macros whose definitions include
24268 two adjacent operands.
24269
24270 2011-01-28 Jakub Jelinek <jakub@redhat.com>
24271
24272 PR target/42894
24273 * varasm.c (force_const_mem): Store copy of x in desc->constant
24274 instead of x itself.
24275 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
24276 itself into REG_EQUAL note.
24277
24278 2011-01-28 Joseph Myers <joseph@codesourcery.com>
24279
24280 * config/freebsd.opt (posix, rdynamic): New Driver options.
24281
24282 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24283
24284 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
24285 -Bstatic/-Bdynamic.
24286 * configure: Regenerate.
24287
24288 2011-01-27 Joseph Myers <joseph@codesourcery.com>
24289
24290 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
24291 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
24292
24293 2011-01-27 Anatoly Sokolov <aesok@post.ru>
24294
24295 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
24296 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
24297 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
24298 (s390_preferred_reload_class): Make static. Change return and
24299 'rclass' argument type to reg_class_t.
24300
24301 2011-01-27 Jan Hubicka <jh@suse.cz>
24302
24303 PR middle-end/46949
24304 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
24305 (process_function_and_variable_attributes): Check defined weakrefs.
24306
24307 2011-01-27 Martin Jambor <mjambor@suse.cz>
24308
24309 PR tree-optimization/47228
24310 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
24311 build_ref_for_offset.
24312
24313 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24314
24315 * config/spu/spu-elf.h (ASM_SPEC): Remove.
24316
24317 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
24318
24319 PR rtl-optimization/46856
24320 * postreload.c (reload_combine_recognize_const_pattern): Do not
24321 separate cc0 setter and user on cc0 targets.
24322
24323 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
24324
24325 PR c/43082
24326 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
24327 passed a VOID_TYPE expression, immediately emit an error and
24328 return error_mark_node.
24329
24330 2011-01-26 Jeff Law <law@redhat.com>
24331
24332 PR rtl-optimization/47464
24333 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
24334 rather than may_trap_p as needed.
24335
24336 2011-01-26 DJ Delorie <dj@redhat.com>
24337
24338 PR rtl-optimization/46878
24339 * combine.c (insn_a_feeds_b): Check for the implicit cc0
24340 setter/user dependency as well.
24341
24342 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
24343
24344 PR rtl-optimization/44469
24345 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
24346 after removing trivially dead basic blocks.
24347
24348 2011-01-26 Joseph Myers <joseph@codesourcery.com>
24349
24350 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
24351 * config/frv/frv.h (LINK_SPEC): Likewise.
24352 * config/i386/netware.h (LINK_SPEC): Likewise.
24353 * config/m68k/linux.h (ASM_SPEC): Likewise.
24354 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
24355 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
24356 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24357 * config/sparc/linux.h (ASM_SPEC): Likewise.
24358 * config/sparc/linux64.h (ASM_SPEC): Likewise.
24359 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24360
24361 2011-01-26 Joseph Myers <joseph@codesourcery.com>
24362
24363 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
24364 * config/frv/frv.h (ASM_SPEC): Likewise.
24365 * config/m68k/linux.h (ASM_SPEC): Likewise.
24366 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
24367 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
24368 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24369 * config/sparc/linux.h (ASM_SPEC): Likewise.
24370 * config/sparc/linux64.h (ASM_SPEC): Likewise.
24371 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24372
24373 2011-01-26 Joseph Myers <joseph@codesourcery.com>
24374
24375 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
24376 * config/frv/frv.h (LINK_SPEC): Likewise.
24377 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
24378
24379 2011-01-26 Joseph Myers <joseph@codesourcery.com>
24380
24381 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
24382 * config/frv/frv.h (ASM_SPEC): Likewise.
24383 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
24384 * config/m68k/linux.h (ASM_SPEC): Likewise.
24385 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
24386 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
24387 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24388 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
24389 * config/sparc/linux.h (ASM_SPEC): Likewise.
24390 * config/sparc/linux64.h (ASM_SPEC): Likewise.
24391 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24392 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
24393
24394 2011-01-26 Steve Ellcey <sje@cup.hp.com>
24395
24396 PR target/46997
24397 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
24398 (*mux2): Ditto.
24399 (vec_extract_evenodd_help): Ditto.
24400 (vec_extract_evenv4hi): Ditto.
24401 (vec_extract_oddv4hi): Ditto.
24402 (vec_interleave_lowv2si): Ditto.
24403 (vec_interleave_highv2si): Ditto.
24404 (vec_extract_evenv2si): Ditto.
24405 (vec_extract_oddv2si: Ditto.
24406 (vec_pack_trunc_v2si): Ditto.
24407
24408 2011-01-22 Jan Hubicka <jh@suse.cz>
24409
24410 PR target/47237
24411 * cgraph.h (cgraph_local_info): New field can_change_signature.
24412 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
24413 signature can change.
24414 (ipcp_estimate_growth): Call sequence simplify only if calle signature
24415 can change.
24416 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
24417 (cgraph_function_versioning): We can not change signature of functions
24418 that don't allow that.
24419 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
24420 (lto_input_node): Likewise.
24421 * ipa-inline.c (compute_inline_parameters): Compute
24422 local.can_change_signature.
24423 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
24424 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
24425 functions that can not change signature.
24426 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
24427 init_cumulative_args): Do not use local calling conventions
24428 for functions that can not change signature.
24429
24430 2011-01-22 Jan Hubicka <jh@suse.cz>
24431
24432 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
24433
24434 2011-01-26 Richard Guenther <rguenther@suse.de>
24435
24436 PR tree-optimization/47190
24437 * cgraphunit.c (process_common_attributes): New function.
24438 (process_function_and_variable_attributes): Use it.
24439
24440 2011-01-26 Richard Guenther <rguenther@suse.de>
24441
24442 PR lto/47423
24443 * cgraphbuild.c (record_eh_tables): Record reference to personality
24444 function.
24445
24446 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
24447
24448 PR debug/45454
24449 * sel-sched.c (moveup_expr): Don't let debug insns prevent
24450 non-debug insns from moving up.
24451
24452 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
24453
24454 PR target/40125
24455 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
24456 t-dlldir{,-x} fragment for build and add it to tmake_file.
24457 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
24458 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
24459 * config/i386/t-dlldir: New file.
24460 (SHLIB_DLLDIR): Define.
24461 * config/i386/t-dlldir-x: New file.
24462 (SHLIB_DLLDIR): Define.
24463 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
24464 (SHLIB_INSTALL): Use it.
24465
24466 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
24467
24468 PR target/47246
24469 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
24470 lower bound of the allowed Thumb-2 coprocessor load/store
24471 index range to -256. Add explaining comment.
24472
24473 2011-01-25 Ian Lance Taylor <iant@google.com>
24474
24475 * godump.c (go_define): Improve lexing of macro expansion to only
24476 accept expressions which match Go spec.
24477
24478 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
24479
24480 PR c++/43601
24481 * tree.c (handle_dll_attribute): Handle it.
24482 * doc/extend.texi (@item dllexport): Mention it.
24483 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
24484
24485 2011-01-25 Ian Lance Taylor <iant@google.com>
24486
24487 PR tree-optimization/26854
24488 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
24489 (decl_jump_unsafe): Move higher in file, with no other change.
24490 (bind): Set has_jump_unsafe_decl if appropriate.
24491 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
24492 (check_earlier_gotos): Likewise.
24493 (c_check_switch_jump_warnings): Likewise.
24494
24495 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
24496
24497 * doc/invoke.texi (Warning Options): Add missing hyphen.
24498 (-fprofile-dir): Minor grammatical fixes.
24499 (-fbranch-probabilities): Likewise.
24500
24501 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
24502
24503 PR debug/45136
24504 PR debug/45130
24505 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24506 debug insns.
24507 (no_real_insns_p, schedule_block, set_priorities): Drop special
24508 treatment of boundary debug insns.
24509 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
24510 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
24511 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24512 (BOUNDARY_DEBUG_INSN_P): Likewise.
24513 (SCHEDULE_DEBUG_INSN_P): Likewise.
24514 * sched-rgn.c (init_ready_list): Drop special treatment of
24515 boundary debug insns.
24516 * final.c (rest_of_clean-state): Clear notes' BB.
24517
24518 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24519
24520 * Makefile.in (LAMBDA_H): Removed.
24521 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
24522 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
24523 lambda-trans.o, and tree-loop-linear.o.
24524 (lto-symtab.o): Remove dependence on LAMBDA_H.
24525 (tree-loop-linear.o): Remove rule.
24526 (lambda-mat.o): Same.
24527 (lambda-trans.o): Same.
24528 (lambda-code.o): Same.
24529 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
24530 (tree-vect-slp.o): Same.
24531 * hwint.h (gcd): Moved here.
24532 (least_common_multiple): Same.
24533 * lambda-code.c: Removed.
24534 * lambda-mat.c: Removed.
24535 * lambda-trans.c: Removed.
24536 * lambda.h: Removed.
24537 * tree-loop-linear.c: Removed.
24538 * lto-symtab.c: Do not include lambda.h.
24539 * omega.c (gcd): Removed.
24540 * passes.c (init_optimization_passes): Remove pass_linear_transform.
24541 * tree-data-ref.c (print_lambda_vector): Moved here.
24542 (lambda_vector_copy): Same.
24543 (lambda_matrix_copy): Same.
24544 (lambda_matrix_id): Same.
24545 (lambda_vector_first_nz): Same.
24546 (lambda_matrix_row_add): Same.
24547 (lambda_matrix_row_exchange): Same.
24548 (lambda_vector_mult_const): Same.
24549 (lambda_vector_negate): Same.
24550 (lambda_matrix_row_negate): Same.
24551 (lambda_vector_equal): Same.
24552 (lambda_matrix_right_hermite): Same.
24553 * tree-data-ref.h: Do not include lambda.h.
24554 (lambda_vector): Moved here.
24555 (lambda_matrix): Same.
24556 (dependence_level): Same.
24557 (lambda_transform_legal_p): Removed declaration.
24558 (lambda_collect_parameters): Same.
24559 (lambda_compute_access_matrices): Same.
24560 (lambda_vector_gcd): Same.
24561 (lambda_vector_new): Same.
24562 (lambda_vector_clear): Same.
24563 (lambda_vector_lexico_pos): Same.
24564 (lambda_vector_zerop): Same.
24565 (lambda_matrix_new): Same.
24566 * tree-flow.h (least_common_multiple): Removed declaration.
24567 * tree-parloops.c (lambda_trans_matrix): Moved here.
24568 (LTM_MATRIX): Same.
24569 (LTM_ROWSIZE): Same.
24570 (LTM_COLSIZE): Same.
24571 (LTM_DENOMINATOR): Same.
24572 (lambda_trans_matrix_new): Same.
24573 (lambda_matrix_vector_mult): Same.
24574 (lambda_transform_legal_p): Same.
24575 * tree-pass.h (pass_linear_transform): Removed declaration.
24576 * tree-ssa-loop.c (tree_linear_transform): Removed.
24577 (gate_tree_linear_transform): Removed.
24578 (pass_linear_transform): Removed.
24579 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
24580 flag_loop_interchange.
24581
24582 2011-01-25 Jakub Jelinek <jakub@redhat.com>
24583
24584 PR tree-optimization/47265
24585 PR tree-optimization/47443
24586 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
24587 if name still has some uses.
24588
24589 2011-01-25 Martin Jambor <mjambor@suse.cz>
24590
24591 PR tree-optimization/47382
24592 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
24593 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
24594
24595 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
24596
24597 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
24598 sjlj_except_unwind_info.
24599
24600 2011-01-25 Richard Guenther <rguenther@suse.de>
24601
24602 PR tree-optimization/47426
24603 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
24604 visible functions results escape.
24605
24606 2011-01-25 Jakub Jelinek <jakub@redhat.com>
24607
24608 PR target/45701
24609 * config/arm/arm.c (any_sibcall_uses_r3): New function.
24610 (arm_get_frame_offsets): Use it.
24611
24612 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24613 Jakub Jelinek <jakub@redhat.com>
24614
24615 PR tree-optimization/47271
24616 * tree-if-conv.c (bb_postdominates_preds): New.
24617 (if_convertible_bb_p): Call bb_postdominates_preds.
24618 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
24619 (predicate_scalar_phi): Call bb_postdominates_preds.
24620
24621 2011-01-25 Nick Clifton <nickc@redhat.com>
24622
24623 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
24624 * config/rx/rx.c (rx_function_value): Likewise.
24625 (rx_promote_function_mode): Likewise.
24626 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
24627 in order to make it legitimate.
24628 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
24629 make sure that the first operand is the same as the result register.
24630 (addsi3_unspec): Delete.
24631 (subdi3): Do not accept immediate operands.
24632 (subdi3_internal): Likewise.
24633
24634 2011-01-25 Jeff Law <law@redhat.com>
24635
24636 PR rtl-optimization/37273
24637 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24638 handle them like argument loads from stack slots. Do not double
24639 count memory for memory constants and argument loads from stack slots.
24640
24641 2011-01-25 Jakub Jelinek <jakub@redhat.com>
24642
24643 PR tree-optimization/47427
24644 PR tree-optimization/47428
24645 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
24646 coalesce if the new root var would be TREE_READONLY.
24647
24648 2011-01-25 Richard Guenther <rguenther@suse.de>
24649
24650 PR middle-end/47414
24651 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
24652 correct type for TBAA.
24653
24654 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24655
24656 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
24657 (close_phi_written_to_memory): Call for_each_index with
24658 dr_indices_valid_in_loop.
24659
24660 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24661
24662 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
24663 when it is initialized.
24664
24665 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24666
24667 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
24668 call to graphite_find_data_references_in_stmt.
24669 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
24670 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
24671 call to graphite_find_data_references_in_stmt.
24672 (analyze_drs_in_stmts): Same.
24673 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
24674 in which the scalar analysis of indices is performed.
24675 (create_data_ref): Same. Update call to dr_analyze_indices.
24676 (find_data_references_in_stmt): Update call to create_data_ref.
24677 (graphite_find_data_references_in_stmt): Same.
24678 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
24679 declaration.
24680 (create_data_ref): Same.
24681 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
24682 call to create_data_ref.
24683
24684 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24685
24686 * graphite-sese-to-poly.c (build_poly_scop): Move
24687 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
24688
24689 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24690
24691 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
24692 VAR_DECL, PARM_DECL, and RESULT_DECL.
24693
24694 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24695
24696 * graphite-dependences.c (reduction_dr_1): Allow several reductions
24697 in a reduction PBB.
24698 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
24699 that have already been marked as PBB_IS_REDUCTION.
24700
24701 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24702
24703 * graphite-scop-detection.c (same_close_phi_node): New.
24704 (remove_duplicate_close_phi): New.
24705 (make_close_phi_nodes_unique): New.
24706 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
24707
24708 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24709
24710 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
24711 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
24712 of both data references to be the same.
24713
24714 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24715
24716 * graphite-dependences.c (build_lexicographical_constraint): Remove
24717 the gdim parameter.
24718 (build_lexicographical_constraint): Adjust call to
24719 ppl_powerset_is_empty.
24720 (dependence_polyhedron): Same.
24721 (graphite_legal_transform_dr): Same.
24722 (graphite_carried_dependence_level_k): Same.
24723 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
24724 parameter.
24725 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
24726
24727 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24728
24729 * graphite-sese-to-poly.c
24730 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
24731 (close_phi_written_to_memory): New.
24732 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
24733 and unshare_expr.
24734
24735 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24736
24737 * doc/install.texi: Update the expected version number of PPL to 0.11.
24738 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
24739 #if PPL_VERSION_MINOR < 11.
24740
24741 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24742
24743 * graphite-dependences.c: Include graphite-cloog-util.h.
24744 (new_poly_ddr): Inlined into dependence_polyhedron.
24745 (free_poly_ddr): Moved close by new_poly_ddr.
24746 (dependence_polyhedron_1): Renamed dependence_polyhedron.
24747 Early return NULL when ppl_powerset_is_empty returns true.
24748 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
24749 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
24750 (graphite_legal_transform_dr): Call new_poly_ddr.
24751 (graphite_carried_dependence_level_k): Same.
24752 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
24753 (dot_transformed_deps_stmt_1): Removed.
24754 (dot_deps_stmt_1): Call dot_deps_stmt_2.
24755 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
24756 (dot_deps_1): Call dot_deps_2.
24757 * Makefile.in (graphite-dependences.o): Add missing dependence on
24758 graphite-cloog-util.h.
24759
24760 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24761
24762 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
24763 (build_lexicographical_constraint): Same.
24764 (dependence_polyhedron_1): Same.
24765 (graphite_legal_transform_dr): Same.
24766 (graphite_carried_dependence_level_k): Same.
24767 * graphite-ppl.c (ppl_powerset_is_empty): New.
24768 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
24769 * tree-data-ref.c (dump_data_reference): Print the basic block index.
24770
24771 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24772
24773 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
24774 the "a followed by b" relation and document it.
24775
24776 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24777
24778 * graphite-dependences.c (build_lexicographical_constraint): Stop the
24779 iteration when the bag of constraints is empty.
24780
24781 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24782
24783 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
24784
24785 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24786
24787 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
24788 nest and two loop depths as parameters.
24789 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
24790 lst_perfect_nestify.
24791
24792 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24793
24794 * graphite-dependences.c (print_pddr): Call
24795 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
24796
24797 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24798
24799 * graphite-ppl.c (debug_gmp_value): New.
24800 * graphite-ppl.h (debug_gmp_value): Declared.
24801
24802 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
24803
24804 * doc/install.texi: Document availability of cloog-0.16.
24805
24806 2011-01-25 Vladimir Kargov <kargov@gmail.com>
24807
24808 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
24809 invalid postdominance info.
24810
24811 2011-01-24 Jan Hubicka <jh@suse.cz>
24812
24813 PR c/21659
24814 * doc/extend.texi (weak pragma): Drop claim that it must
24815 appear before definition.
24816 * varasm.c (merge_weak, declare_weak): Only sanity check
24817 that DECL is not output at a time it is declared weak.
24818
24819 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
24820
24821 * machmode.def: Fixed comments.
24822
24823 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
24824
24825 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
24826
24827 2011-01-24 Paul Koning <ni1d@arrl.net>
24828
24829 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
24830 WORDS_BIG_ENDIAN.
24831
24832 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
24833
24834 PR target/46519
24835 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
24836 (block_info): Add scanned and prev.
24837 (move_or_delete_vzeroupper_2): Return if the basic block
24838 has been scanned and the upper 128bit state is unchanged
24839 from the last scan.
24840 (move_or_delete_vzeroupper_1): Return true if the exit
24841 state is changed.
24842 (move_or_delete_vzeroupper): Visit basic blocks using the
24843 work-list based algorithm based on vt_find_locations in
24844 var-tracking.c.
24845
24846 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
24847
24848 2011-01-24 Nick Clifton <nickc@redhat.com>
24849
24850 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
24851 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
24852 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
24853 then define __v850e1__.
24854 * doc/invoke.texi: Document -mv850es.
24855
24856 2011-01-24 Richard Henderson <rth@redhat.com>
24857
24858 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
24859 compound unordered comparisons.
24860 * config/rx/rx.c (rx_split_fp_compare): Remove.
24861 * config/rx/rx-protos.h: Update.
24862 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
24863 (cbranchsf4): Don't call rx_split_fp_compare.
24864 (*cbranchsf4): Use rx_split_cbranch.
24865 (*cmpsf): Don't accept "i" constraint.
24866 (*conditional_branch): Only valid after reload.
24867 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
24868
24869 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24870
24871 PR target/47385
24872 * config/rs6000/altivec.md (vector constant splitters): Add
24873 support for creating vector single precision constants if -mvsx is
24874 used and we would create the constant using Altivec primitives.
24875
24876 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
24877 Richard Sandiford <rdsandiford@googlemail.com>
24878
24879 PR rtl-optimization/47166
24880 * reload1.c (emit_reload_insns): Disable the spill_reg_store
24881 mechanism for PRE_MODIFY and POST_MODIFY.
24882 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
24883 reloadreg.
24884
24885 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
24886
24887 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
24888
24889 2011-01-22 Jan Hubicka <jh@suse.cz>
24890
24891 PR lto/47333
24892 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
24893
24894 2011-01-22 Jan Hubicka <jh@suse.cz>
24895
24896 PR tree-optimization/43884
24897 PR lto/44334
24898 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
24899 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
24900
24901 2011-01-22 Anatoly Sokolov <aesok@post.ru>
24902
24903 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
24904 * config/s390/s390.c (s390_register_move_cost,
24905 s390_memory_move_cost): New.
24906 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
24907
24908 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24909
24910 PR middle-end/47401
24911 * except.c (sjlj_assign_call_site_values): Move setting the
24912 crtl->uses_eh_lsda flag to ...
24913 (sjlj_mark_call_sites): ... here.
24914 (sjlj_emit_function_enter): Support NULL dispatch label.
24915 (sjlj_build_landing_pads): In a function with no landing pads
24916 that still has must-not-throw regions, generate code to register
24917 a personality function with empty LSDA.
24918
24919 2011-01-21 Richard Henderson <rth@redhat.com>
24920
24921 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
24922
24923 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
24924
24925 * compare-elim.c: New file.
24926 * Makefile.in (OBJS-common): Add it.
24927 (compare-elim.o): New.
24928 * common.opt (fcompare-elim): New.
24929 * opts.c (default_options_table): Add OPT_fcompare_elim.
24930 * tree-pass.h (pass_compare_elim_after_reload): New.
24931 * passes.c (init_optimization_passes): Add it.
24932 * recog.h: Protect against re-inclusion.
24933 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
24934 * doc/invoke.texi (-fcompare-elim): Document it.
24935 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
24936 * doc/tm.texi: Rebuild.
24937
24938 2011-01-22 Nick Clifton <nickc@redhat.com>
24939
24940 * config/rx/rx.md (cstoresf4): Pass comparison operator to
24941 rx_split_fp_compare.
24942
24943 2011-01-22 Nick Clifton <nickc@redhat.com>
24944
24945 * config/rx/rx.md (UNSPEC_CONST): New.
24946 (deallocate_and_return): Wrap the amount popped off the stack in
24947 an UNSPEC_CONST in order to stop it being rejected by
24948 -mmax-constant-size.
24949 (pop_and_return): Add a "(return)" rtx.
24950 (call): Drop the immediate operand.
24951 (call_internal): Likewise.
24952 (call_value): Likewise.
24953 (call_value_internal): Likewise.
24954 (sibcall_internal): Likewise.
24955 (sibcall_value_internal): Likewise.
24956 (sibcall): Likewise. Generate an explicit call using
24957 sibcall_internal.
24958 (sibcall_value): Likewise.
24959 (mov<>): FAIL if a constant operand is not legitimate.
24960 (addsi3_unpsec): New pattern.
24961
24962 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
24963 (ok_for_max_constant): New function.
24964 (gen_safe_add): New function.
24965 (rx_expand_prologue): Use gen_safe_add.
24966 (rx_expand_epilogue): Likewise.
24967 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
24968 UNSPEC CONSTs.
24969
24970 2011-01-21 Jeff Law <law@redhat.com>
24971
24972 PR tree-optimization/47053
24973 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
24974 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
24975 statements are deleted.
24976 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
24977 is nonempty, then purge dead edges and cleanup the CFG.
24978
24979 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
24980
24981 PR debug/47402
24982 Temporarily revert:
24983 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
24984 PR debug/47106
24985 * tree-dfa.c (create_var_ann): Mark variable as used.
24986
24987 2011-01-21 Jakub Jelinek <jakub@redhat.com>
24988
24989 PR middle-end/45566
24990 * except.c (convert_to_eh_region_ranges): Emit queued no-region
24991 notes from other section in hot/cold partitioning even if
24992 last_action is -3. Increment call_site_base.
24993
24994 PR rtl-optimization/47366
24995 * fwprop.c (forward_propagate_into): Return bool. If
24996 any changes are made, -fnon-call-exceptions is used and
24997 REG_EH_REGION note is present, call purge_dead_edges
24998 and return true if it purged anything.
24999 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
25000 any EH edges were purged.
25001
25002 2011-01-21 Jeff Law <law@redhat.com>
25003
25004 PR rtl-optimization/41619
25005 * caller-save.c (setup_save_areas): Break out code to determine
25006 which hard regs are live across calls by examining the reload chains
25007 so that it is always used.
25008 Eliminate code which checked REG_N_CALLS_CROSSED.
25009
25010 2011-01-21 Jakub Jelinek <jakub@redhat.com>
25011
25012 PR tree-optimization/47355
25013 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
25014 NOP has non-debug uses beyond PHIs in new_bb.
25015
25016 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
25017
25018 PR debug/47106
25019 * cfgexpand.c (account_used_vars_for_block): Only account vars
25020 that are annotated as used.
25021 (estimated_stack_frame_size): Don't set TREE_USED.
25022 * tree-dfa.c (create_var_ann): Mark variable as used.
25023
25024 2011-01-21 Richard Guenther <rguenther@suse.de>
25025
25026 PR middle-end/47395
25027 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
25028
25029 2011-01-21 Richard Guenther <rguenther@suse.de>
25030
25031 PR tree-optimization/47365
25032 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
25033 (vn_reference_lookup_pieces): Adjust.
25034 (vn_reference_lookup): Likewise.
25035 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
25036 (vn_reference_lookup_3): Only look through kills if in
25037 VN_WALKREWRITE mode.
25038 (vn_reference_lookup_pieces): Adjust.
25039 (vn_reference_lookup): Likewise.
25040 (visit_reference_op_load): Likewise.
25041 (visit_reference_op_store): Likewise.
25042 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
25043 (compute_avail): Likewise.
25044 (eliminate): Likewise.
25045
25046 2011-01-21 Jakub Jelinek <jakub@redhat.com>
25047
25048 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
25049 DECL_IGNORED_P non-reg vars if they are used.
25050
25051 PR tree-optimization/47391
25052 * varpool.c (const_value_known_p): Return false if
25053 decl is volatile.
25054
25055 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
25056
25057 PR bootstrap/47215
25058 * config/i386/i386.c (ix86_local_alignment): Handle
25059 case for va_list_type_node is nil.
25060 (ix86_canonical_va_list_type): Likewise.
25061
25062 2011-01-21 Alan Modra <amodra@gmail.com>
25063
25064 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
25065 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
25066
25067 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25068
25069 * config/arm/arm.md (define_attr type): Rename f_load
25070 and f_store to f_fpa_load and f_fpa_store. Update.
25071 (write_conflict): Deal with rename fallout.
25072 (*push_fp_multi): Likewise.
25073 * config/arm/fpa.md (f_load): Use f_fpa_load.
25074 (f_store): Use f_fpa_store.
25075 (*movsf_fpa): Likewise.
25076 (*movdf_fpa): Likewise.
25077 (*movxf_fpa): Likewise.
25078 (*thumb2_movsf_fpa): Likewise.
25079 (*thumb2_movdf_fpa): Likewise.
25080 (*thumb2_movxf_fpa): Likewise.
25081 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
25082 f_loadd and f_stored.
25083 (*thumb2_movdi_vfp): Likewise.
25084 (*thumb2_movsf_vfp): Fix attribute to f_loads.
25085 (*thumb2_movsi_vfp): Likewise.
25086 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
25087 Use f_loads instead of f_load.
25088 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
25089
25090 2011-01-20 Anatoly Sokolov <aesok@post.ru>
25091
25092 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25093 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
25094 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25095 (xtensa_mode_dependent_address_p): New function.
25096 (constantpool_address_p): Make static. Change return type to bool.
25097 Change argument type to const_rtx. Use CONST_INT_P predicate.
25098
25099 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
25100
25101 PR debug/46583
25102 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
25103
25104 2011-01-20 Jakub Jelinek <jakub@redhat.com>
25105
25106 PR debug/47283
25107 * cfgexpand.c (expand_debug_expr): Instead of generating
25108 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
25109 etc. handling.
25110
25111 2011-01-20 Richard Guenther <rguenther@suse.de>
25112
25113 PR middle-end/47370
25114 * tree-inline.c (remap_gimple_op_r): Recurse manually for
25115 the pointer operand of MEM_REFs.
25116
25117 2011-01-20 Jakub Jelinek <jakub@redhat.com>
25118
25119 PR tree-optimization/46130
25120 * ipa-split.c (consider_split): If return_bb contains non-virtual
25121 PHIs other than for retval or if split_function would not adjust it,
25122 refuse to split.
25123
25124 2011-01-20 Richard Guenther <rguenther@suse.de>
25125
25126 PR tree-optimization/47167
25127 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
25128 Revert previous change, only avoid enumeral type changes.
25129
25130 2011-01-19 Mike Stump <mikestump@comcast.net>
25131
25132 * doc/tm.texi.in (BRANCH_COST): Englishify.
25133 * doc/tm.texi (BRANCH_COST): Likewise.
25134
25135 2011-01-19 Dodji Seketeli <dodji@redhat.com>
25136
25137 PR c++/47291
25138 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
25139 (gen_scheduled_generic_parms_dies): New functions.
25140 (gen_struct_or_union_type_die): Schedule template parameters DIEs
25141 generation for the end of CU compilation.
25142 (dwarf2out_finish): Generate template parameters DIEs here.
25143
25144 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
25145
25146 PR debug/46240
25147 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
25148 debug bind stmt on merge edges.
25149
25150 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
25151
25152 PR debug/47079
25153 PR debug/46724
25154 * function.c (instantiate_expr): Instantiate incoming rtl of
25155 implicit arguments, and recurse on VALUE_EXPRs.
25156 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
25157 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
25158
25159 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
25160
25161 * c-parser.c (c_parser_for_statement): Initialize
25162 collection_expression.
25163
25164 2011-01-19 Joseph Myers <joseph@codesourcery.com>
25165
25166 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
25167
25168 2011-01-19 Joseph Myers <joseph@codesourcery.com>
25169
25170 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
25171 (LINK_SHLIB_SPEC): Don't use %(link_path).
25172 (SUBTARGET_EXTRA_SPECS): Remove link_path.
25173
25174 2011-01-19 Joseph Myers <joseph@codesourcery.com>
25175
25176 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
25177 (NO_SHARED_LIB_SUPPORT): Remove.
25178 (LINK_SHLIB_SPEC): Remove one conditional definition.
25179
25180 2011-01-19 Joseph Myers <joseph@codesourcery.com>
25181
25182 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
25183 %{call_shared}.
25184 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
25185 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
25186 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
25187 %{call_shared} and conditionals on these options not being passed.
25188 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
25189 %{call_shared}.
25190
25191 2011-01-19 Jakub Jelinek <jakub@redhat.com>
25192
25193 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
25194 simplify.
25195
25196 * ipa-split.c: Spelling fixes.
25197
25198 2011-01-19 Richard Henderson <rth@redhat.com>
25199
25200 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
25201 (*mulsi3): Likewise.
25202
25203 * longlong.h [__mn10300__] (count_leading_zeros): New.
25204 [__mn10300__] (umul_ppmm, smul_ppmm): New.
25205 [__mn10300__] (add_ssaaaa, subddmmss): New.
25206 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
25207 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
25208
25209 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25210
25211 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
25212
25213 2011-01-19 Richard Henderson <rth@redhat.com>
25214
25215 * config/mn10300/mn10300.md (addsi3_flags): New.
25216 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
25217 (subsi3_flags, subc_internal, subdi3): New.
25218 (subdi3_internal, *subdi3_degenerate): New.
25219 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
25220
25221 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
25222 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
25223 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
25224 * config/mn10300/mn10300-protos.h: Update.
25225 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
25226 (return_ret): Likewise. Rename from return_internal_regs.
25227 (return_internal): Remove.
25228
25229 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
25230 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
25231 (mn10300_legitimate_constant_p): Likewise.
25232 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
25233 (mn10300_frame_size): New.
25234 (mn10300_expand_prologue): Use it.
25235 (mn10300_expand_epilogue): Likewise.
25236 (mn10300_initial_offset): Likewise.
25237 * config/mn10300/mn10300-protos.h: Update.
25238 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
25239 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
25240 (prologue, epilogue, return_internal): Tidy output code.
25241 (mn10300_store_multiple_operation, return): Likewise.
25242 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
25243 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
25244 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
25245 (load_pic, am33_load_pic): New.
25246 (mn10300_load_pic0, mn10300_load_pic1): New.
25247
25248 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
25249 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
25250 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
25251 (cc_flags_for_mode, cc_flags_for_code): New.
25252 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
25253 overflow flag is not valid. Validate that the flags we need
25254 for the comparison are valid.
25255 (mn10300_output_cmp): Remove.
25256 (mn10300_output_add): New.
25257 (mn10300_select_cc_mode): Use cc_flags_for_code.
25258 (mn10300_split_cbranch): New.
25259 (mn10300_match_ccmode): New.
25260 (mn10300_split_and_operand_count): New.
25261 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
25262 to the function.
25263 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
25264 (addsi3): ... here. Use mn10300_output_add.
25265 (*addsi3_flags): New.
25266 (*am33_subsi3, *mn10300_subsi3): Merge...
25267 (subsi3): ... here. Use attribute isa.
25268 (*subsi3_flags): New.
25269 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
25270 when possible.
25271 (*am33_andsi3, *mn10300_andsi3): Merge...
25272 (andsi3): ... here.
25273 (*andsi3_flags): New.
25274 (andsi3 splitters): New.
25275 (*am33_iorsi3, *mn10300_iorsi3): Merge...
25276 (iorsi3): ... here.
25277 (*iorsi3_flags): New.
25278 (*am33_xorsi3, *mn10300_xorsi3): Merge...
25279 (xorsi3): ... here.
25280 (*xorsi3_flags): New.
25281 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
25282 (one_cmplsi2): ... here.
25283 (*one_cmplsi2_flags): New.
25284 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
25285 instead of "dax" in constraints. Use mn10300_split_cbranch.
25286 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
25287 use matching constraints to eliminate a self-comparison.
25288 (*integer_conditional_branch): Rename from integer_conditional_branch.
25289 Use int_mode_flags to match CC_REG.
25290 (*cbranchsi4_btst, *btstsi): New.
25291 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
25292 mn10300_split_cbranch.
25293 (*am33_cmpsf): Rename from am33_cmpsf.
25294 (*float_conditional_branch): Rename from float_conditional_branch.
25295 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
25296 (zero_extendqisi2): ... here.
25297 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
25298 (zero_extendhisi2): ... here.
25299 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
25300 (extendqisi2): ... here.
25301 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
25302 (extendhisi2): ... here.
25303 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
25304 (ashlsi3): ... here.
25305 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
25306 (lshrsi3): ... here.
25307 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
25308 (ashrsi3): ... here.
25309 (consecutive add peephole): Remove.
25310 * config/mn10300/predicates.md (label_ref_operand): New.
25311 (int_mode_flags): New.
25312 (CCZN_comparison_operator): New.
25313
25314 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
25315 (throughput_42_latency_43): New reservation.
25316 (mulsidi3, umulsidi3): New expanders.
25317 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
25318 the MDR register to allocation; separately allocate the low and
25319 high parts of the DImode result.
25320 (umulsidi3_internal): Similarly.
25321 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
25322 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
25323 (udivsi3, umodsi3): Remove.
25324 (udivmodsi4, divmodsi4): New expanders.
25325 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
25326 (*divmodsi4): Simiarly.
25327 (ext_internal): New.
25328
25329 * config/mn10300/constraints.md ("z"): New constraint.
25330 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
25331 (FIXED_REGISTERS): Don't fix MDR.
25332 (CALL_USED_REGSITERS): Reformat nicely.
25333 (REG_ALLOC_ORDER): Add MDR.
25334 (enum regclass): Add MDR_REGS.
25335 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
25336 (IRA_COVER_CLASSES): Add MDR_REGS.
25337 (REGNO_REG_CLASS): Handle MDR_REG.
25338 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
25339 (mn10300_register_move_cost): Likewise.
25340 * config/mn10300/mn10300.md (MDR_REG): New.
25341 (*movsi_internal): Handle moves to/from MDR_REGS.
25342
25343 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
25344 POST_MODIFY.
25345 (mn10300_secondary_reload): Tidy combination reload classes.
25346 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
25347 addresses for AM33. Allow symbolic offsets for reg+imm.
25348 (mn10300_regno_in_class_p): New.
25349 (mn10300_legitimize_reload_address): New.
25350 * config/mn10300/mn10300.h (enum reg_class): Remove
25351 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
25352 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
25353 SP_OR_GENERAL_REGS.
25354 (REG_CLASS_NAMES): Update to match.
25355 (REG_CLASS_CONTENTS): Likewise.
25356 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
25357 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
25358 (REGNO_IN_RANGE_P): Remove.
25359 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
25360 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
25361 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
25362 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
25363 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
25364 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
25365 (REGNO_GENERAL_P): New.
25366 (HAVE_POST_MODIFY_DISP): New.
25367 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
25368 (LEGITIMIZE_RELOAD_ADDRESS): New.
25369 * config/mn10300/mn10300-protos.h: Update.
25370
25371 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
25372 DATA_REGS for AM33 stack-pointer destination.
25373 (mn10300_preferred_output_reload_class): Likewise.
25374 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
25375 into a form appropriate for ...
25376 (TARGET_SECONDARY_RELOAD): New.
25377 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
25378 * config/mn10300/mn10300-protos.h: Update.
25379 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
25380 reload_insi; use the "A" constraint for the scratch; handle AM33
25381 moves of sp to non-address registers.
25382
25383 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
25384 (*movqi_internal): ... here.
25385 (*am33_movhi, *mn10300_movhi): Merge into...
25386 (*movhi_internal): ... here.
25387 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
25388 as the source/destination of moves from/to SP.
25389 (movsf): Only allow for AM33-2.
25390 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
25391 any integer constant constraint. Only allow for AM33-2. Tidy
25392 all of the alternative outputs.
25393 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
25394 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
25395 for MN103.
25396 (udivsi3, umodsi3): New patterns for MN103 only.
25397
25398 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
25399
25400 * doc/tm.texi.in: Spell out that a lack of register class unions
25401 can lead to ICEs.
25402 * doc/tm.texi: Regenerate.
25403
25404 2011-01-19 Jakub Jelinek <jakub@redhat.com>
25405
25406 PR rtl-optimization/47337
25407 * dce.c (check_argument_store): New function.
25408 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
25409
25410 PR tree-optimization/47290
25411 * tree-eh.c (infinite_empty_loop_p): New function.
25412 (cleanup_empty_eh): Use it.
25413
25414 2011-01-18 Steve Ellcey <sje@cup.hp.com>
25415
25416 PR target/46997
25417 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
25418 (a64_expand_widen_sum): Ditto.
25419 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
25420 (vec_extract_evenodd_help): Ditto.
25421 (vec_extract_evenv4hi): Ditto.
25422 (vec_extract_oddv4hi): Ditto.
25423 (vec_extract_evenv2si): Ditto.
25424 (vec_extract_oddv2si): Ditto.
25425 (vec_extract_evenv2sf): Ditto.
25426 (vec_extract_oddv2sf): Ditto.
25427 (vec_pack_trunc_v4hi: Ditto.
25428 (vec_pack_trunc_v2si): Ditto.
25429 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
25430 (vec_interleave_highv8qi): Ditto.
25431 (mix1_r): Ditto.
25432 (vec_extract_oddv8qi): Ditto.
25433 (vec_interleave_lowv4hi): Ditto.
25434 (vec_interleave_highv4hi): Ditto.
25435 (vec_interleave_lowv2si): Ditto.
25436 (vec_interleave_highv2si): Ditto.
25437
25438 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25439
25440 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
25441 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
25442 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
25443 (pa_c_mode_for_suffix): New.
25444 (TARGET_EXPAND_BUILTIN): Define.
25445 (TARGET_C_MODE_FOR_SUFFIX): Define.
25446 (pa_builtins): Define.
25447 (pa_init_builtins): Register __float128 type and init new support
25448 builtins.
25449 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
25450 * config/pa/quadlib.c (_U_Qfcopysign): New.
25451
25452 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
25453
25454 PR middle-end/46894
25455 * explow.c (allocate_dynamic_stack_space): Do not assume more than
25456 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
25457 are defined.
25458
25459 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25460
25461 PR tree-optimization/47179
25462 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
25463 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
25464
25465 2011-01-18 Richard Guenther <rguenther@suse.de>
25466
25467 PR rtl-optimization/47216
25468 * emit-rtl.c: Include tree-flow.h.
25469 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
25470 of replicating it with different semantics.
25471 * Makefile.in (emit-rtl.o): Adjust.
25472
25473 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25474
25475 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
25476 (cortex_a9_dp): Handle neon types correctly.
25477
25478 2011-01-18 Jakub Jelinek <jakub@redhat.com>
25479
25480 PR rtl-optimization/47299
25481 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
25482 subtarget. Use normal multiplication if both operands are constants.
25483 * expmed.c (expand_widening_mult): Don't try to optimize constant
25484 multiplication if op0 has VOIDmode. Convert op1 constant to mode
25485 before using it.
25486
25487 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25488
25489 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
25490 spacing after 'e.g.', typos, comma, hyphenation.
25491
25492 2011-01-17 Richard Henderson <rth@redhat.com>
25493
25494 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
25495 (rx_restricted_mem_operand): New.
25496 (rx_shift_operand): Use register_operand.
25497 (rx_source_operand, rx_compare_operand): Likewise.
25498 * config/rx/rx.md (addsi3_flags): New expander.
25499 (adddi3): Rewrite as expander.
25500 (adc_internal, *adc_flags, adddi3_internal): New patterns.
25501 (subsi3_flags): New expander.
25502 (subdi3): Rewrite as expander.
25503 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
25504
25505 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
25506 (rx_init_builtins): Remove sat builtin.
25507 (rx_expand_builtin): Likewise.
25508 * config/rx/rx.md (ssaddsi3): New.
25509 (*sat): Rename from sat. Represent the CC_REG input.
25510
25511 * config/rx/predicates.md (rshift_operator): New.
25512 * config/rx/rx.c (rx_expand_insv): Remove.
25513 * config/rx/rx-protos.h: Update.
25514 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
25515 operand to the canonical position.
25516 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
25517 (*bitclr, *bitclr_in_memory): Similarly.
25518 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
25519 (insv): Retain the zero_extract in the expansion.
25520
25521 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
25522 (bswaphi2, bitinvert, revw): Likewise.
25523
25524 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
25525 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
25526 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
25527 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
25528 (bitset, bitset_in_memory): Likewise.
25529 (bitinvert, bitinvert_in_memory): Likewise.
25530 (bitclr, bitclr_in_memory): Likewise.
25531 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
25532 (rx_strend, rx_cmpstrn): Likewise.
25533 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
25534 (bitop peep2 patterns): Remove.
25535
25536 * config/rx/rx.c (rx_match_ccmode): New.
25537 * config/rx/rx-protos.h: Update.
25538 * config/rx/rx.md (abssi2): Clobber, don't set flags.
25539 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
25540 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
25541 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
25542 (fix_truncsfsi2, floatsisf2): Likewise.
25543 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
25544 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
25545 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
25546 (*subsi3_flags, *xorsi3_flags): New.
25547
25548 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
25549
25550 * config/rx/rx.c (rx_print_operand): Remove workaround for
25551 unsplit comparison operations.
25552
25553 * config/rx/rx.md (movsicc): Split after reload.
25554 (*movsicc): Merge *movsieq and *movsine via match_operator.
25555 (*stcc): New pattern.
25556
25557 * config/rx/rx.c (rx_float_compare_mode): Remove.
25558 * config/rx/rx.h (rx_float_compare_mode): Remove.
25559 * config/rx/rx.md (cstoresi4): Split after reload.
25560 (*sccc): New pattern.
25561
25562 * config/rx/predicates.md (label_ref_operand): New.
25563 (rx_z_comparison_operator): New.
25564 (rx_zs_comparison_operator): New.
25565 (rx_fp_comparison_operator): New.
25566 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
25567 Validate that the flags are set properly for the comparison.
25568 (rx_gen_cond_branch_template): Remove.
25569 (rx_cc_modes_compatible): Remove.
25570 (mode_from_flags): New.
25571 (flags_from_code): Rename from flags_needed_for_conditional.
25572 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
25573 (rx_select_cc_mode): Likewise.
25574 (rx_split_fp_compare): New.
25575 (rx_split_cbranch): New.
25576 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
25577 (*cbranchsi4): Use match_operator and rx_split_cbranch.
25578 (*cbranchsf4): Similarly.
25579 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
25580 match_operator and rx_split_cbranch.
25581 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
25582 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
25583 (*cmpsi): Rename from cmpsi.
25584 (*tstsi): Rename from tstsi.
25585 (*cmpsf): Rename from cmpsf; use CC_Fmode.
25586 (*conditional_branch): Rename from conditional_branch.
25587 (*reveresed_conditional_branch): Remove.
25588 (b<code>): Remove expander.
25589 * config/rx/rx-protos.h: Update.
25590
25591 * config/rx/rx.c (rx_compare_redundant): Remove.
25592 * config/rx/rx.md (cmpsi): Don't use it.
25593 * config/rx/rx-protos.h: Update.
25594
25595 * config/rx/rx-modes.def (CC_F): New mode.
25596 * config/rx/rx.c (rx_select_cc_mode): New.
25597 * config/rx/rx.h (SELECT_CC_MODE): Use it.
25598 * config/rx/rx-protos.h: Update.
25599
25600 2011-01-17 Richard Henderson <rth@redhat.com>
25601
25602 * except.c (dump_eh_tree): Fix stray ; after for statement.
25603
25604 2011-01-17 Richard Guenther <rguenther@suse.de>
25605
25606 PR tree-optimization/47313
25607 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
25608 handling before copying the body. Properly deal with
25609 by-reference result in SSA form.
25610
25611 2011-01-17 Ian Lance Taylor <iant@google.com>
25612
25613 PR target/47219
25614 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
25615 (struct_value_alias_set): Don't define.
25616 (sparc_option_override): Don't set sparc_sr_alias_set and
25617 struct_value_alias_set.
25618 (save_or_restore_regs): Use gen_frame_mem rather than calling
25619 set_mem_alias_set.
25620 (sparc_struct_value_rtx): Likewise.
25621
25622 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
25623
25624 PR target/47318
25625 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
25626 (_mm_maskstore_pd): Likewise.
25627 (_mm_maskload_ps): Likewise.
25628 (_mm_maskstore_ps): Likewise.
25629 (_mm256_maskload_pd): Change mask to __m256i.
25630 (_mm256_maskstore_pd): Likewise.
25631 (_mm256_maskload_ps): Likewise.
25632 (_mm256_maskstore_ps): Likewise.
25633
25634 * config/i386/i386-builtin-types.def: Updated.
25635 (ix86_expand_special_args_builtin): Likewise.
25636
25637 * config/i386/i386.c (bdesc_special_args): Update
25638 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
25639 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
25640 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
25641 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
25642
25643 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
25644 Use <avxpermvecmode> on mask register.
25645 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
25646
25647 2011-01-17 Olivier Hainque <hainque@adacore.com>
25648 Michael Haubenwallner <michael.haubenwallner@salomon.at>
25649 Eric Botcazou <ebotcazou@adacore.com>
25650
25651 PR target/46655
25652 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
25653 if <= USHRT_MAX in 32-bit mode.
25654
25655 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25656
25657 * doc/install.texi (Configuration, Specific): Wrap long
25658 lines in examples. Allow line wrapping in long options
25659 and URLs where beneficial for PDF output.
25660
25661 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
25662
25663 * config/mips/mips.c (mips_classify_symbol): Don't return
25664 SYMBOL_PC_RELATIVE for nonlocal labels.
25665
25666 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
25667
25668 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
25669
25670 2011-01-15 Jan Hubicka <jh@suse.cz>
25671
25672 PR tree-optimization/47276
25673 * ipa.c (function_and_variable_visibility): Do not try to mark alias
25674 declarations as needed.
25675
25676 2011-01-15 Martin Jambor <mjambor@suse.cz>
25677
25678 * common.opt (fdevirtualize): New flag.
25679 * doc/invoke.texi (Option Summary): Document it.
25680 * opts.c (default_options_table): Add devirtualize flag.
25681 * ipa-prop.c (detect_type_change): Return immediately if
25682 devirtualize flag is not set.
25683 (detect_type_change_ssa): Likewise.
25684 (compute_known_type_jump_func): Likewise.
25685 (ipa_analyze_virtual_call_uses): Likewise.
25686
25687 2011-01-14 Martin Jambor <mjambor@suse.cz>
25688
25689 PR tree-optimization/45934
25690 PR tree-optimization/46302
25691 * ipa-prop.c (type_change_info): New type.
25692 (stmt_may_be_vtbl_ptr_store): New function.
25693 (check_stmt_for_type_change): Likewise.
25694 (detect_type_change): Likewise.
25695 (detect_type_change_ssa): Likewise.
25696 (compute_complex_assign_jump_func): Check for dynamic type change.
25697 (compute_complex_ancestor_jump_func): Likewise.
25698 (compute_known_type_jump_func): Likewise.
25699 (compute_scalar_jump_functions): Likewise.
25700 (ipa_analyze_virtual_call_uses): Likewise.
25701 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
25702
25703 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25704
25705 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
25706 * config/i386/i386.opt (msse5): New Alias.
25707
25708 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25709
25710 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25711 * config/sparc/linux64.h (CC1_SPEC): Likewise.
25712 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25713 * config/sparc/sparc.h (CC1_SPEC): Likewise.
25714
25715 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25716
25717 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
25718 -mcpu options.
25719 * config/sparc/linux64.h (CC1_SPEC): Likewise.
25720 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25721 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
25722 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
25723 Likewise.
25724 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
25725
25726 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25727
25728 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
25729
25730 2011-01-14 Mike Stump <mikestump@comcast.net>
25731
25732 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
25733 * config/fr30/fr30.md: Likweise
25734 (movsi_push): Likewise.
25735 (movsi_pop): Likewise.
25736 (enter_func): Likewise.
25737 * config/moxie/moxie.md (movsi_push): Likewise.
25738 (movsi_pop): Likewise.
25739
25740 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25741
25742 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
25743 %{no_archive} %{exact_version}.
25744 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
25745 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
25746 %{no_archive} %{exact_version}.
25747 * config/mips/openbsd.h (LINK_SPEC): Likewise.
25748 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
25749 * config/mips/vxworks.h: Likewise.
25750
25751 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25752
25753 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
25754
25755 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25756
25757 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
25758 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
25759
25760 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25761
25762 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
25763 -nodefaultlib.
25764
25765 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25766
25767 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
25768 for mcpu not cpu.
25769 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
25770 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
25771 not cpu.
25772 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
25773 Don't handle -shlib.
25774
25775 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25776
25777 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
25778 (CC1_SPEC): Don't handle -profile.
25779
25780 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25781
25782 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
25783 * config/mips/mips.h (CC1_SPEC): Likewise.
25784
25785 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25786
25787 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
25788 * config/mips/mips.h (CC1_SPEC): Likewise.
25789
25790 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25791
25792 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
25793 * config/m32r/linux.h (LINK_SPEC): Likewise.
25794 * config/mips/linux.h (LINK_SPEC): Likewise.
25795 * config/mips/linux64.h (LINK_SPEC): Likewise.
25796 * config/sparc/linux.h (LINK_SPEC): Likewise.
25797 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
25798 LINK_SPEC): Likewise.
25799 * config/xtensa/linux.h (LINK_SPEC): Likewise.
25800
25801 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25802
25803 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
25804 %{version:-v}.
25805 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
25806
25807 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25808
25809 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
25810 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
25811
25812 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25813
25814 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
25815
25816 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25817
25818 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
25819 supports -Bstatic/-Bdynamic.
25820 * configure: Regenerate.
25821
25822 2011-01-14 Jan Hubicka <jh@suse.cz>
25823 Jack Howarth <howarth@bromo.med.uc.edu>
25824
25825 PR target/46037
25826 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
25827 when checking debug_info_level. Test write_symbols instead of
25828 debug_hooks->var_location when setting flag_var_tracking_uninit.
25829
25830 2011-01-14 Richard Guenther <rguenther@suse.de>
25831
25832 PR tree-optimization/47179
25833 * target.def (ref_may_alias_errno): New target hook.
25834 * targhooks.h (default_ref_may_alias_errno): Declare.
25835 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
25836 (default_ref_may_alias_errno): New function.
25837 * target.h (struct ao_ref_s): Declare.
25838 * tree-ssa-alias.c: Include target.h.
25839 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
25840 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
25841 (targhooks.o): Likewise.
25842 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
25843 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
25844
25845 2011-01-14 Richard Guenther <rguenther@suse.de>
25846
25847 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
25848
25849 2011-01-14 Richard Guenther <rguenther@suse.de>
25850
25851 PR tree-optimization/47280
25852 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
25853 return CFG changes.
25854 (tree_ssa_forward_propagate_single_use_vars): Deal with
25855 CFG changes from associate_plusminus.
25856
25857 2011-01-14 Richard Guenther <rguenther@suse.de>
25858
25859 PR middle-end/47281
25860 Revert
25861 2011-01-11 Richard Guenther <rguenther@suse.de>
25862
25863 PR tree-optimization/46076
25864 * tree-ssa.c (useless_type_conversion_p): Conversions from
25865 unprototyped to empty argument list function types are useless.
25866
25867 2011-01-14 Richard Guenther <rguenther@suse.de>
25868
25869 PR tree-optimization/47286
25870 * tree-ssa-structalias.c (new_var_info): Register variables are global.
25871
25872 2011-01-14 Martin Jambor <mjambor@suse.cz>
25873
25874 PR middle-end/46823
25875 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
25876
25877 2011-01-13 Anatoly Sokolov <aesok@post.ru>
25878
25879 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
25880 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25881 * config/xtensa/xtensa.c (xtensa_libcall_value,
25882 xtensa_function_value_regno_p): New functions.
25883 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25884
25885 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
25886
25887 PR c++/47213
25888 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
25889 PE specific hook.
25890 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
25891 New function prototype.
25892 * config/i386/winnt.c (i386_pe_assemble_visibility):
25893 Warn only if attribute was specified by user.
25894
25895 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
25896
25897 PR target/47251
25898 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
25899 floating point.
25900 (floatunsdidf2_fcfidu): Ditto.
25901
25902 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25903
25904 * config/s390/s390.c (print_operand_address): Replace 'error' with
25905 'output_operand_lossage'.
25906 (print_operand): Likewise.
25907
25908 2011-01-13 Jeff Law <law@redhat.com>
25909
25910 PR rtl-optimization/39077
25911 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
25912 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
25913 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
25914 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
25915 * gcse.c (prune_insertions_deletions): New function.
25916 (compute_pre_data): Use it.
25917
25918 2011-01-13 Dodji Seketeli <dodji@redhat.com>
25919
25920 PR debug/PR46973
25921 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
25922 static function.
25923 (prune_unused_types_mark): Use it.
25924
25925 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
25926
25927 PR rtl-optimization/45352
25928 * sel-sched.c: Update copyright years.
25929 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
25930 in the advancing loop when we have issued issue_rate insns.
25931
25932 2011-01-12 Richard Henderson <rth@redhat.com>
25933
25934 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
25935 (TARGET_MD_ASM_CLOBBERS): New.
25936
25937 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
25938 (TARGET_DELEGITIMIZE_ADDRESS): New.
25939
25940 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
25941 (clzsi2, *bsch): New patterns.
25942
25943 * config/mn10300/mn10300.md (INT): New mode iterator.
25944 (*mov<INT>_clr): New pattern, and peep2 to generate it.
25945
25946 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
25947 flag_split_wide_types.
25948
25949 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
25950 (mn10300_trampoline_init): Rewrite without a template, an immediate
25951 load and a direct branch.
25952 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
25953
25954 2011-01-12 Anatoly Sokolov <aesok@post.ru>
25955
25956 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25957 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
25958 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
25959 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25960
25961 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
25962
25963 PR debug/47209
25964 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
25965 of type.
25966
25967 2011-01-12 Jan Hubicka <jh@suse.cz>
25968
25969 PR driver/47244
25970 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
25971 (PLUGIN_COND_CLOSE): New macro.
25972 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
25973
25974 2011-01-12 Richard Guenther <rguenther@suse.de>
25975
25976 PR lto/47259
25977 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
25978 register variables in a MEM_REF.
25979
25980 2011-01-12 Joseph Myers <joseph@codesourcery.com>
25981
25982 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
25983 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
25984 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
25985 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
25986 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
25987 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
25988 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
25989 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
25990 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
25991 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
25992 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
25993 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
25994 * config/gnu-user.h: New. Copied from linux.h.
25995 (LINUX_TARGET_STARTFILE_SPEC): Rename to
25996 GNU_USER_TARGET_STARTFILE_SPEC.
25997 (LINUX_TARGET_ENDFILE_SPEC): Rename to
25998 GNU_USER_TARGET_ENDFILE_SPEC.
25999 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
26000 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
26001 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
26002 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
26003 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
26004 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
26005 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
26006 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
26007 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
26008 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
26009 * config/arm/linux-eabi.h (CC1_SPEC): Use
26010 GNU_USER_TARGET_CC1_SPEC.
26011 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
26012 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
26013 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
26014 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
26015 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
26016 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
26017 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
26018 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
26019
26020 2011-01-12 Richard Guenther <rguenther@suse.de>
26021
26022 PR other/46946
26023 * doc/invoke.texi (ffast-math): Document it is turned on
26024 with -Ofast.
26025
26026 2011-01-12 Jan Hubicka <jh@suse.cz>
26027
26028 PR tree-optimization/47233
26029 * opts.c (common_handle_option): Disable ipa-reference with profile
26030 feedback.
26031
26032 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
26033
26034 * c-parser.c (c_parser_objc_at_property_declaration): Improved
26035 error message.
26036
26037 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
26038
26039 * c-parser.c (c_lex_one_token): Updated and reindented some
26040 comments. No changes in code.
26041
26042 2011-01-11 Ian Lance Taylor <iant@google.com>
26043
26044 * godump.c (go_output_var): Don't output the variable if there is
26045 already a type with the same name.
26046
26047 2011-01-11 Ian Lance Taylor <iant@google.com>
26048
26049 * godump.c (go_format_type): Don't generate float80.
26050
26051 2011-01-11 Richard Henderson <rth@redhat.com>
26052
26053 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
26054 declaration. Rewrite for both speed and size.
26055 (mn10300_address_cost_1): Remove.
26056 (mn10300_register_move_cost): New.
26057 (mn10300_memory_move_cost): New.
26058 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
26059 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
26060 extensions, shifts, BSWAP, CLZ.
26061 (mn10300_wide_const_load_uses_clr): Remove.
26062 (TARGET_REGISTER_MOVE_COST): New.
26063 (TARGET_MEMORY_MOVE_COST): New.
26064 * config/mn10300/mn10300-protos.h: Update.
26065 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
26066
26067 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
26068 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
26069 * config/mn10300/mn10300-protos.h: Update.
26070 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
26071 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
26072 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
26073 (*test_int_bitfield, *test_byte_bitfield): Remove.
26074 (*bit_test, *subreg_bit_test): Remove.
26075 * config/mn10300/predicates.md (const_8bit_operand): Remove.
26076
26077 * config/mn10300/constraints.md ("c"): Rename from "A".
26078 ("A", "D"): New constraint letters.
26079 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
26080 (fmssf4, fnmasf4, fnmssf4): Likewise.
26081
26082 * config/mn10300/mn10300.md (isa): New attribute.
26083 (enabled): New attribute.
26084
26085 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
26086 (abssf2, negsf2): Define only for hardware fp.
26087 (sqrtsf2): Reformat.
26088 (addsf3, subsf3, mulsf3): Merge expander and insn.
26089
26090 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
26091 (DEBUGGER_AUTO_OFFSET): Remove.
26092 (DEBUGGER_ARG_OFFSET): Remove.
26093
26094 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
26095 Emit register stores with the same offsets as the hardware.
26096 (mn10300_store_multiple_operation): Don't check that the register
26097 save offsets are monotonic.
26098 * config/mn10300/mn10300-protos.h: Update.
26099
26100 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
26101
26102 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
26103 in terms of the value on the stack, not the MDR register.
26104
26105 2011-01-11 Jan Hubicka <jh@suse.cz>
26106
26107 PR lto/45721
26108 PR lto/45375
26109 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
26110 (symbol_alias_set_destroy, symbol_alias_set_contains,
26111 propagate_aliases_backward): Declare.
26112 * lto-streamer-out.c (struct sets): New sturcture.
26113 (trivally_defined_alias): New function.
26114 (output_alias_pair_p): Rewrite.
26115 (output_unreferenced_globals): Fix output of alias pairs.
26116 (produce_symtab): Likewise.
26117 * ipa.c (function_and_variable_visibility): Set weak alias destination
26118 as needed in lto.
26119 * varasm.c (symbol_alias_set_t): Remove.
26120 (symbol_alias_set_destroy): Export.
26121 (propagate_aliases_forward, propagate_aliases_backward): New functions
26122 based on ...
26123 (compute_visible_aliases): ... this one; remove.
26124 (trivially_visible_alias): New
26125 (trivially_defined_alias): New.
26126 (remove_unreachable_alias_pairs): Rewrite.
26127 (finish_aliases_1): Reorganize code checking if alias is defined.
26128 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
26129 in LTO mode.
26130
26131 2011-01-11 Richard Guenther <rguenther@suse.de>
26132
26133 PR tree-optimization/46076
26134 * tree-ssa.c (useless_type_conversion_p): Conversions from
26135 unprototyped to empty argument list function types are useless.
26136
26137 2011-01-11 Richard Guenther <rguenther@suse.de>
26138
26139 PR middle-end/45235
26140 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
26141 volatile MEMs as MEM_READONLY_P.
26142
26143 2011-01-11 Richard Guenther <rguenther@suse.de>
26144
26145 PR tree-optimization/47239
26146 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
26147
26148 2011-01-11 Jeff Law <law@redhat.com>
26149
26150 PR tree-optimization/47086
26151 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
26152 IVs from statements that might throw.
26153
26154 2011-01-10 Jan Hubicka <jh@suse.cz>
26155
26156 PR lto/45375
26157 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
26158
26159 2011-01-10 Jan Hubicka <jh@suse.cz>
26160
26161 PR lto/45375
26162 * profile.c (read_profile_edge_counts): Ignore profile inconistency
26163 when correcting profile.
26164
26165 2011-01-10 Jan Hubicka <jh@suse.cz>
26166
26167 PR lto/46083
26168 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
26169 DECL_FINI_PRIORITY.
26170 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
26171 Restore DECL_FINI_PRIORITY.
26172
26173 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26174
26175 * doc/gimple.texi: Fix quoting of multi-word return values in
26176 @deftypefn statements. Ensure presence of return value. Wrap
26177 overlong @deftypefn lines.
26178 (is_gimple_operand, is_gimple_min_invariant_address): Remove
26179 descriptions of removed functions.
26180 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
26181 of multi-word return value in @deftypefn statement.
26182
26183 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26184
26185 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
26186 (Conditional Expressions, Logical Operators)
26187 (Statement and operand traversals): Do not indent smallexample
26188 code. Fix duplicate function argument in example.
26189
26190 2011-01-10 Jeff Law <law@redhat.com>
26191
26192 PR tree-optimization/47141
26193 * ipa-split.c (split_function): Handle case where we are
26194 returning a value and the return block has a virtual operand phi.
26195
26196 2011-01-10 Jan Hubicka <jh@suse.cz>
26197
26198 PR tree-optimization/47234
26199 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
26200 (pass_feedback_split_functions): Declare.
26201 * passes.c (init_optimization_passes): Add ipa-split as subpass of
26202 tree-profile.
26203 * ipa-split.c (gate_split_functions): Update comments; disable
26204 split-functions for profile_arc_flag and branch_probabilities.
26205 (gate_feedback_split_functions): New function.
26206 (execute_feedback_split_functions): New function.
26207 (pass_feedback_split_functions): New global var.
26208
26209 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
26210
26211 PR lto/46760
26212 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
26213 calling gimple_call_set_cannot_inline.
26214
26215 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
26216
26217 * config/darwin-sections.def: Remove unused section.
26218
26219 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
26220
26221 PR c++/47218
26222 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
26223
26224 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
26225
26226 PR objc/47232
26227 * c-parser.c (c_parser_declaration_or_fndef): Improved
26228 error message.
26229
26230 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
26231
26232 * config/i386/winnt.c (i386_pe_start_function): Make sure
26233 to switch back to function's section.
26234
26235 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
26236
26237 PR gcc/46902
26238 PR testsuite/46912
26239 * plugin.c: Move include of dlfcn.h from here...
26240 * system.h: ... to here.
26241
26242 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26243
26244 * doc/cpp.texi (C++ Named Operators): Fix markup for header
26245 file name.
26246 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
26247 two extra empty pages in PDF output.
26248
26249 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
26250
26251 PR objc/47078
26252 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
26253 for error recovery purposes behave as if it was not specified so
26254 that the default type is usd.
26255
26256 2011-01-07 Jan Hubicka <jh@suse.cz>
26257
26258 PR tree-optmization/46469
26259 * ipa.c (function_and_variable_visibility): Clear needed flags on
26260 nodes with external decls; handle weakrefs merging correctly.
26261
26262 2011-01-07 Joseph Myers <joseph@codesourcery.com>
26263
26264 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
26265 not false.
26266
26267 2011-01-07 Jan Hubicka <jh@suse.cz>
26268
26269 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
26270 and no longer claim that gold is required for linker plugin.
26271 * configure: Regenerate.
26272 * gcc.c (PLUGIN_COND): New macro.
26273 (LINK_COMMAND_SPEC): Use it.
26274 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
26275 * config.in (HAVE_LTO_PLUGIN): New.
26276 * configure.ac (--with-lto-plugin): New parameter; autodetect
26277 HAVE_LTO_PLUGIN.
26278
26279 2011-01-07 Jan Hubicka <jh@suse.cz>
26280
26281 PR tree-optimization/46367
26282 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
26283 when we can update original.
26284 (cgraph_mark_inline_edge): Sanity check.
26285 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
26286
26287 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26288
26289 * config/spu/spu.h (ASM_COMMENT_START): Define.
26290
26291 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
26292
26293 PR driver/42445
26294 * gcc.c (%>S): New.
26295 (SWITCH_KEEP_FOR_GCC): Likewise.
26296 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
26297 (do_spec_1): Handle "%>".
26298
26299 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
26300
26301 2011-01-07 Jakub Jelinek <jakub@redhat.com>
26302
26303 PR target/47201
26304 * config/i386/i386.c (ix86_delegitimize_address): If
26305 simplify_gen_subreg fails, return orig_x.
26306
26307 PR bootstrap/47187
26308 * value-prof.c (gimple_stringop_fixed_value): Handle
26309 lhs of the call properly.
26310
26311 2011-01-07 Jan Hubicka <jh@suse.cz>
26312
26313 PR lto/45375
26314 * lto-opt.c (lto_reissue_options): Set flag_shlib.
26315
26316 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
26317
26318 * target.def (function_switched_text_sections): New hook.
26319 * doc/tm.texi: Regenerated.
26320 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
26321 * final.c (default_function_switched_text_sections): New.
26322 (final_scan_insn): Call function_switched_text_sections when a
26323 mid-function section change occurs.
26324 * output.h (default_function_switched_text_sections): Declare.
26325 * config/darwin-protos.h (darwin_function_switched_text_sections):
26326 Likewise.
26327 * config/darwin.c (darwin_function_switched_text_sections): New.
26328 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
26329
26330 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
26331
26332 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
26333 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
26334 the secondary code fragment when outputting for DWARF == 2.
26335
26336 2011-01-07 Anatoly Sokolov <aesok@post.ru>
26337
26338 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
26339 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
26340 Remove.
26341 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
26342 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
26343
26344 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
26345
26346 PR debug/46704
26347 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
26348 when it is not empty.
26349
26350 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
26351
26352 Bobcat Enablement
26353 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
26354 (case ${target}): Add btver1.
26355 * config/i386/driver-i386.c (host_detect_local_cpu): Let
26356 -march=native recognize btver1 processors.
26357 * config/i386/i386-c.c (ix86_target_macros_internal): Add
26358 btver1 def_and_undef
26359 * config/i386/i386.c (struct processor_costs btver1_cost): New
26360 btver1 cost table.
26361 (m_BTVER1): New definition.
26362 (m_AMD_MULTIPLE): Includes m_BTVER1.
26363 (initial_ix86_tune_features): Add btver1 tune.
26364 (processor_target_table): Add btver1 entry.
26365 (static const char *const cpu_names): Add btver1 entry.
26366 (software_prefetching_beneficial_p): Add btver1.
26367 (ix86_option_override_internal): Add btver1 instruction sets.
26368 (ix86_issue_rate): Add btver1.
26369 (ix86_adjust_cost): Add btver1.
26370 * config/i386/i386.h (TARGET_BTVER1): New definition.
26371 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
26372 (enum processor_type): Add PROCESSOR_BTVER1.
26373 * config/i386/i386.md (define_attr "cpu"): Add btver1.
26374
26375 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26376
26377 PR target/43309
26378 * config/i386/i386.c (legitimize_tls_address)
26379 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
26380 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
26381 (tls_initial_exec_64_sun): New pattern.
26382
26383 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
26384
26385 * doc/invoke.texi (Overall Options): Improve wording and markup
26386 of the description of -wrapper.
26387
26388 2011-01-06 Joseph Myers <joseph@codesourcery.com>
26389
26390 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
26391 rdynamic, threads): New Driver options.
26392
26393 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26394
26395 PR target/38118
26396 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
26397 if coming from .tdata.
26398 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
26399
26400 2011-01-06 Jan Hubicka <jh@suse.cz>
26401
26402 PR lto/47188
26403 * collect2.c (main): Do not enable LTOmode when plugin is active.
26404
26405 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26406
26407 PR other/45915
26408 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
26409 --version output if supported.
26410 * configure: Regenerate.
26411
26412 2011-01-06 Joseph Myers <joseph@codesourcery.com>
26413
26414 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
26415 Driver options.
26416
26417 2011-01-06 Jakub Jelinek <jakub@redhat.com>
26418
26419 PR c/47150
26420 * c-convert.c (convert): When converting a complex expression
26421 other than COMPLEX_EXPR to a different complex type, ensure
26422 c_save_expr is called instead of save_expr, unless in_late_binary_op.
26423 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
26424 when converting COMPLEX_TYPE.
26425
26426 2011-01-06 Ira Rosen <irar@il.ibm.com>
26427
26428 PR tree-optimization/47139
26429 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
26430 only the last reduction value is used outside the loop. Update
26431 documentation.
26432
26433 2011-01-05 Joseph Myers <joseph@codesourcery.com>
26434
26435 * config/rtems.opt: New.
26436 * config.gcc (*-*-rtems*): Use rtems.opt.
26437
26438 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
26439
26440 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
26441 processors do not support 3DNow instructions.
26442
26443 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26444
26445 * config/spu/spu.c (spu_option_override): Set parameter
26446 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
26447
26448 2011-01-05 Jan Hubicka <jh@suse.cz>
26449
26450 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
26451 at the command line.
26452
26453 2011-01-05 Martin Jambor <mjambor@suse.cz>
26454
26455 PR lto/47162
26456 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
26457 deltas on streamed outgoing edges.
26458 (output_node_opt_summary): Output info for outgoing edges only when
26459 the node is in new parameter set.
26460 (output_cgraph_opt_summary): New parameter set, passed to the two
26461 aforementioned functions. Update its forward declaration and its
26462 callee too.
26463
26464 2011-01-05 Tom Tromey <tromey@redhat.com>
26465
26466 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
26467 operator to c_finish_omp_atomic.
26468 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
26469 (build_unary_op): Update.
26470 (build_modify_expr): Update.
26471 (build_asm_expr): Update.
26472
26473 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26474
26475 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
26476 newly inserted insns.
26477 (pad_bb): Likewise.
26478 (spu_emit_branch_hint): Likewise.
26479 (insert_hbrp_for_ilb_runout): Likewise.
26480 (spu_machine_dependent_reorg): Call df_finish_pass after
26481 schedule_insns returns.
26482
26483 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26484
26485 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
26486
26487 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
26488
26489 PR tree-optimization/47005
26490 * tree-sra.c (struct access): Add 'non_addressable' bit.
26491 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
26492 (decide_one_param_reduction): Return 0 if the parameter is passed by
26493 reference and one of the accesses in the group is non_addressable.
26494
26495 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
26496
26497 PR tree-optimization/47056
26498 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
26499 (mark_load): Likewise. Handle FUNCTION_DECL specially.
26500 (mark_store): Likewise. Pass STMT to ipa_record_reference.
26501
26502 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
26503
26504 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
26505 initializer. Skip view conversions from aggregate types.
26506
26507 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
26508
26509 PR bootstrap/47055
26510 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
26511
26512 2011-01-04 Philipp Thomas <pth@suse.de>
26513
26514 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
26515 obvious typo.
26516
26517 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26518
26519 * function.c (thread_prologue_and_epilogue_insns): Do not crash
26520 on empty epilogue sequences.
26521
26522 2011-01-04 Joseph Myers <joseph@codesourcery.com>
26523
26524 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
26525 non-static): New Driver options.
26526
26527 2011-01-04 Jie Zhang <jie@codesourcery.com>
26528
26529 PR driver/47137
26530 * gcc.c (default_compilers[]): Set combinable field to 0
26531 for all assembly languages.
26532
26533 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
26534
26535 * config/mips/loongson3a.md: New file.
26536 * config/mips/mips.md: Include loongson3a.md.
26537 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
26538 TUNE_LOONGSON_3A.
26539
26540 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
26541
26542 PR middle-end/47017
26543 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
26544 instead of convert_memory_address_addr_space on the base expression.
26545
26546 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26547
26548 * config/spu/spu.c (spu_option_override): Update error text
26549 for bad -march= / -mtune= values.
26550
26551 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26552
26553 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
26554 if branch-hint optimization will be performed.
26555
26556 2011-01-03 Jakub Jelinek <jakub@redhat.com>
26557
26558 PR tree-optimization/47148
26559 * ipa-split.c (split_function): Convert arguments to
26560 DECL_ARG_TYPE if possible.
26561
26562 PR tree-optimization/47155
26563 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
26564 when computing uns.
26565
26566 PR rtl-optimization/47157
26567 * combine.c (try_combine): If undobuf.other_insn becomes
26568 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
26569 and set *new_direct_jump_p too.
26570
26571 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
26572
26573 PR tree-optimization/47021
26574 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
26575
26576 2011-01-03 Jakub Jelinek <jakub@redhat.com>
26577
26578 * gcc.c (process_command): Update copyright notice dates.
26579 * gcov.c (print_version): Likewise.
26580 * gcov-dump.c (print_version): Likewise.
26581 * mips-tfile.c (main): Likewise.
26582 * mips-tdump.c (main): Likewise.
26583
26584 2011-01-03 Martin Jambor <mjambor@suse.cz>
26585
26586 PR tree-optimization/46801
26587 * tree-sra.c (type_internals_preclude_sra_p): Check whether
26588 aggregate fields start at byte boundary instead of the bit-field flag.
26589
26590 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
26591
26592 PR driver/47137
26593 * gcc.c (main): Revert revision 168407.
26594
26595 2011-01-03 Martin Jambor <mjambor@suse.cz>
26596
26597 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
26598
26599 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26600
26601 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
26602 vector optab to expand vector/scalar shift, update gimple to vector.
26603
26604 2011-01-03 Martin Jambor <mjambor@suse.cz>
26605
26606 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
26607 a thunk.
26608
26609 2011-01-03 Martin Jambor <mjambor@suse.cz>
26610
26611 PR tree-optimization/46984
26612 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
26613 HOST_WIDE_INT.
26614 (cgraph_create_indirect_edge): Fixed line length.
26615 (cgraph_indirect_call_info): Declare.
26616 (cgraph_make_edge_direct) Update declaration.
26617 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
26618 (cgraph_create_indirect_edge): Use it.
26619 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
26620 callees.
26621 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
26622 the new thunk_delta representation.
26623 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
26624 HOST_WIDE_INT.
26625 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
26626 (ipa_read_indirect_edge_info): Likewise.
26627 * lto-cgraph.c (output_edge_opt_summary): New function.
26628 (output_node_opt_summary): Call it on all outgoing edges.
26629 (input_edge_opt_summary): New function.
26630 (input_node_opt_summary): Call it on all outgoing edges.
26631
26632 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
26633
26634 PR driver/47137
26635 * gcc.c (main): Don't check have_o when settting combine_inputs.
26636
26637 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
26638
26639 * regrename.c: Add general comment describing the pass.
26640 (struct du_head): Remove 'length' field.
26641 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
26642 (regrename_optimize): Do not sort chains. Rework comments, add others.
26643 Force renaming to the preferred class (if any) in the first pass and do
26644 not consider registers that belong to it in the second pass.
26645 (create_new_chain): Do not set 'length' field.
26646 (scan_rtx_reg): Likewise.
26647
26648 2011-01-02 Jakub Jelinek <jakub@redhat.com>
26649
26650 PR tree-optimization/47140
26651 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
26652 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
26653 to bit_value_binop.
26654
26655 PR rtl-optimization/47028
26656 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
26657 parm_birth_insn instead of at the beginning of first bb.
26658
26659 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
26660
26661 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
26662 Remove the word "see" before "@pxref".
26663 * doc/rtl.texi: Remove the word "see" before "@pxref".
26664
26665 2011-01-01 Jan Hubicka <jh@suse.cz>
26666
26667 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
26668 memory.
26669
26670 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
26671
26672 PR target/38662
26673 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
26674
26675 \f
26676 Copyright (C) 2011 Free Software Foundation, Inc.
26677
26678 Copying and distribution of this file, with or without modification,
26679 are permitted in any medium without royalty provided the copyright
26680 notice and this notice are preserved.